]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
No need to use wxPyMake_wxObject for wxImageList. There are no
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 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
554f62e9 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);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
093d3ff1 46#endif
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
093d3ff1
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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
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
7449af73 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
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
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
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
093d3ff1
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;
554f62e9 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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
093d3ff1 388*/
7449af73
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;
093d3ff1 397 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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
093d3ff1
RD
427/*
428 Check the typename
429*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
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. */
554f62e9 481 if (!type) return NULL;
093d3ff1
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
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
7449af73
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);
093d3ff1 507 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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);
093d3ff1 556 }
7449af73
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);
093d3ff1 591 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
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;
093d3ff1 605 for (; u != eu; ++u) {
7449af73 606 register unsigned char uu = *u;
093d3ff1
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;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 622 register unsigned char uu;
093d3ff1
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
093d3ff1
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
093d3ff1
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
554f62e9
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
554f62e9
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
093d3ff1 764#endif
554f62e9
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
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
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
554f62e9
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
093d3ff1 935#endif
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
093d3ff1
RD
978 * pyrun.swg
979 *
554f62e9
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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)
7449af73 1016
c32bde28 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
c32bde28 1032
554f62e9 1033/* Error manipulation */
c32bde28 1034
554f62e9
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;
c32bde28 1041}
d55e5bfc 1042
554f62e9
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;
c32bde28 1048}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
c32bde28 1053
554f62e9
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
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
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;
093d3ff1 1088 } else {
554f62e9
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);
d55e5bfc 1100 }
554f62e9
RD
1101 return result;
1102#endif
093d3ff1 1103}
d55e5bfc 1104
554f62e9 1105/* Unpack the argument tuple */
d55e5bfc 1106
554f62e9
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*/
093d3ff1
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*/
7449af73 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
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 */
093d3ff1
RD
1613#endif
1614 };
1615
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
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 */
093d3ff1 1632#endif
554f62e9
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 */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
554f62e9
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 */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
7449af73 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1 1698}
c32bde28 1699
093d3ff1
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;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c32bde28 1713{
093d3ff1
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 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
c32bde28 1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c32bde28 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
d55e5bfc
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
d55e5bfc 1738{
093d3ff1
RD
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1 1744 }
d55e5bfc
RD
1745}
1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
554f62e9
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
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
093d3ff1 1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
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 */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
7e63a440 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1 1867}
d55e5bfc 1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
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 }
093d3ff1 1880}
d55e5bfc 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d55e5bfc 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
d55e5bfc 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
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);
093d3ff1 1926 } else {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
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;
093d3ff1
RD
1947 }
1948}
d55e5bfc 1949
554f62e9
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 }
d55e5bfc 1961 }
554f62e9 1962 return 0;
c32bde28
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
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 }
093d3ff1 1992 } else {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
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 }
093d3ff1 2042 }
d55e5bfc
RD
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
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);
093d3ff1 2051 } else {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
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;
093d3ff1
RD
2069 }
2070}
d55e5bfc 2071
554f62e9 2072/* Convert a packed value value */
d55e5bfc 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
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 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
554f62e9
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 }
093d3ff1 2115 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
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);
093d3ff1 2126 }
554f62e9
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;
093d3ff1 2140 }
554f62e9
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;
093d3ff1 2147 }
554f62e9
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
093d3ff1 2158}
d55e5bfc 2159
554f62e9
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 }
093d3ff1 2175#endif
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
554f62e9
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]);
093d3ff1 2191 } else {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
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;
093d3ff1 2213 }
093d3ff1 2214 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d55e5bfc 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d55e5bfc 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d55e5bfc 2233
7449af73
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
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
093d3ff1
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
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d55e5bfc 2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
d55e5bfc 2284
554f62e9
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
7449af73
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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
d55e5bfc 2314
554f62e9
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
5e483524 2321
554f62e9
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]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
2503#define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504#define SWIGTYPE_p_wxDash swig_types[38]
2505#define SWIGTYPE_p_wxDateEvent swig_types[39]
2506#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507#define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508#define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509#define SWIGTYPE_p_wxEffects swig_types[43]
2510#define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511#define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512#define SWIGTYPE_p_wxEvent swig_types[46]
2513#define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514#define SWIGTYPE_p_wxFSFile swig_types[48]
2515#define SWIGTYPE_p_wxFileSystem swig_types[49]
2516#define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517#define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518#define SWIGTYPE_p_wxFont swig_types[52]
2519#define SWIGTYPE_p_wxFontList swig_types[53]
2520#define SWIGTYPE_p_wxFontMapper swig_types[54]
2521#define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522#define SWIGTYPE_p_wxGCDC swig_types[56]
2523#define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524#define SWIGTYPE_p_wxGDIObject swig_types[58]
2525#define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526#define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527#define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528#define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529#define SWIGTYPE_p_wxGridSizer swig_types[63]
2530#define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531#define SWIGTYPE_p_wxICOHandler swig_types[65]
2532#define SWIGTYPE_p_wxIcon swig_types[66]
2533#define SWIGTYPE_p_wxIconBundle swig_types[67]
2534#define SWIGTYPE_p_wxIconLocation swig_types[68]
2535#define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536#define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537#define SWIGTYPE_p_wxImage swig_types[71]
2538#define SWIGTYPE_p_wxImageHandler swig_types[72]
2539#define SWIGTYPE_p_wxImageList swig_types[73]
2540#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541#define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542#define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543#define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544#define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545#define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546#define SWIGTYPE_p_wxLocale swig_types[80]
2547#define SWIGTYPE_p_wxMask swig_types[81]
2548#define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549#define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550#define SWIGTYPE_p_wxMenu swig_types[84]
2551#define SWIGTYPE_p_wxMenuBar swig_types[85]
2552#define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553#define SWIGTYPE_p_wxMenuItem swig_types[87]
2554#define SWIGTYPE_p_wxMetaFile swig_types[88]
2555#define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556#define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559#define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560#define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562#define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563#define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566#define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567#define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568#define SWIGTYPE_p_wxObject swig_types[102]
2569#define SWIGTYPE_p_wxOverlay swig_types[103]
2570#define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571#define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572#define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573#define SWIGTYPE_p_wxPaintDC swig_types[107]
2574#define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575#define SWIGTYPE_p_wxPalette swig_types[109]
2576#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577#define SWIGTYPE_p_wxPaperSize swig_types[111]
2578#define SWIGTYPE_p_wxPen swig_types[112]
2579#define SWIGTYPE_p_wxPenList swig_types[113]
2580#define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581#define SWIGTYPE_p_wxPoint swig_types[115]
2582#define SWIGTYPE_p_wxPoint2D swig_types[116]
2583#define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584#define SWIGTYPE_p_wxPrintData swig_types[118]
2585#define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586#define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587#define SWIGTYPE_p_wxPyApp swig_types[121]
2588#define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyEvent swig_types[123]
2590#define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591#define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592#define SWIGTYPE_p_wxPyLocale swig_types[126]
2593#define SWIGTYPE_p_wxPySizer swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxRegion swig_types[131]
2598#define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599#define SWIGTYPE_p_wxRendererNative swig_types[133]
2600#define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601#define SWIGTYPE_p_wxScreenDC swig_types[135]
2602#define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603#define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604#define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605#define SWIGTYPE_p_wxShowEvent swig_types[139]
2606#define SWIGTYPE_p_wxSize swig_types[140]
2607#define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608#define SWIGTYPE_p_wxSizer swig_types[142]
2609#define SWIGTYPE_p_wxSizerItem swig_types[143]
2610#define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611#define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613#define SWIGTYPE_p_wxStockGDI swig_types[147]
2614#define SWIGTYPE_p_wxString swig_types[148]
2615#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616#define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617#define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618#define SWIGTYPE_p_wxValidator swig_types[152]
2619#define SWIGTYPE_p_wxWindow swig_types[153]
2620#define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621#define SWIGTYPE_p_wxWindowDC swig_types[155]
2622#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623#define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624static swig_type_info *swig_types[159];
2625static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
7449af73
RD
2626#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2628
093d3ff1 2629/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2630
554f62e9
RD
2631#if (PY_VERSION_HEX <= 0x02000000)
2632# if !defined(SWIG_PYTHON_CLASSIC)
2633# error "This python version requires to use swig with the '-classic' option"
2634# endif
2635#endif
2636#if (PY_VERSION_HEX <= 0x02020000)
2637# error "This python version requires to use swig with the '-nomodern' option"
2638#endif
2639#if (PY_VERSION_HEX <= 0x02020000)
2640# error "This python version requires to use swig with the '-nomodernargs' option"
2641#endif
2642#ifndef METH_O
2643# error "This python version requires to use swig with the '-nofastunpack' option"
2644#endif
d55e5bfc 2645
093d3ff1
RD
2646/*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649#define SWIG_init init_gdi_
d55e5bfc 2650
093d3ff1 2651#define SWIG_name "_gdi_"
d55e5bfc 2652
554f62e9 2653#define SWIGVERSION 0x010329
d55e5bfc 2654
d55e5bfc 2655
554f62e9
RD
2656#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2658
2659
554f62e9
RD
2660#include <stdexcept>
2661
2662
2663namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
093d3ff1 2671 }
554f62e9
RD
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
093d3ff1 2676 }
554f62e9
RD
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
093d3ff1 2706}
d55e5bfc 2707
d55e5bfc 2708
554f62e9
RD
2709namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
d55e5bfc 2718 }
554f62e9 2719 };
d55e5bfc
RD
2720}
2721
2722
554f62e9
RD
2723#include "wx/wxPython/wxPython.h"
2724#include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
f460c29d
RD
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732SWIGINTERNINLINE PyObject *
2733SWIG_From_int (int value)
2734{
2735 return SWIG_From_long (value);
2736}
2737
2738
554f62e9
RD
2739#include <limits.h>
2740#ifndef LLONG_MIN
2741# define LLONG_MIN LONG_LONG_MIN
2742#endif
2743#ifndef LLONG_MAX
2744# define LLONG_MAX LONG_LONG_MAX
2745#endif
2746#ifndef ULLONG_MAX
2747# define ULLONG_MAX ULONG_LONG_MAX
2748#endif
d55e5bfc 2749
c32bde28 2750
50efceee
RD
2751SWIGINTERN int
2752SWIG_AsVal_long (PyObject* obj, long* val)
2753{
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759}
2760
2761
093d3ff1 2762SWIGINTERN int
554f62e9 2763SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2764{
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2767 return SWIG_TypeError;
093d3ff1
RD
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
554f62e9 2771 return SWIG_OK;
093d3ff1 2772}
c32bde28 2773
d55e5bfc 2774
093d3ff1 2775SWIGINTERN int
554f62e9
RD
2776SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777{
093d3ff1 2778 unsigned long v;
554f62e9
RD
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
093d3ff1 2783 } else {
554f62e9 2784 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2785 }
554f62e9
RD
2786 }
2787 return res;
093d3ff1 2788}
d55e5bfc
RD
2789
2790
554f62e9
RD
2791SWIGINTERNINLINE PyObject*
2792SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2793{
554f62e9
RD
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2796}
d55e5bfc
RD
2797
2798
554f62e9
RD
2799SWIGINTERNINLINE PyObject *
2800SWIG_From_unsigned_SS_char (unsigned char value)
2801{
2802 return SWIG_From_unsigned_SS_long (value);
2803}
d55e5bfc 2804
e9d6f3a4
RD
2805SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
fc46b7f3
RD
2823
2824SWIGINTERN int
2825SWIG_AsVal_bool (PyObject *obj, bool *val)
2826{
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839}
2840
2841SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
fc46b7f3 2846 int alpha = wxALPHA_OPAQUE;
b39fe951 2847 if (self->IsOk()) {
093d3ff1
RD
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
fc46b7f3 2851 alpha = self->Alpha();
093d3ff1
RD
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2858 return rv;
2859 }
554f62e9 2860SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
2863
554f62e9
RD
2864SWIGINTERN int
2865SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2866{
554f62e9
RD
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
d55e5bfc
RD
2877}
2878
554f62e9 2879SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
5a446332 2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
554f62e9 2892SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2896
093d3ff1
RD
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
554f62e9
RD
2911SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2913
fc46b7f3
RD
2914#include <wx/rawbmp.h>
2915
2916
093d3ff1 2917#include <wx/image.h>
d55e5bfc 2918
093d3ff1
RD
2919 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2920 char** cArray = NULL;
2921 int count;
d55e5bfc 2922
093d3ff1
RD
2923 if (!PyList_Check(listOfStrings)) {
2924 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2925 return NULL;
2926 }
2927 count = PyList_Size(listOfStrings);
2928 cArray = new char*[count];
d55e5bfc 2929
093d3ff1
RD
2930 for(int x=0; x<count; x++) {
2931 // TODO: Need some validation and error checking here
2932 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2933 }
2934 return cArray;
d55e5bfc 2935 }
d55e5bfc
RD
2936
2937
554f62e9 2938SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2939 char** cArray = NULL;
2940 wxBitmap* bmp;
2941
2942 cArray = ConvertListOfStrings(listOfStrings);
2943 if (! cArray)
2944 return NULL;
2945 bmp = new wxBitmap(cArray);
2946 delete [] cArray;
2947 return bmp;
2948 }
554f62e9 2949SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2950 char* buf;
2951 Py_ssize_t length;
2952 PyString_AsStringAndSize(bits, &buf, &length);
2953 return new wxBitmap(buf, width, height, depth);
2954 }
554f62e9
RD
2955SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2956SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2957 wxSize size(self->GetWidth(), self->GetHeight());
2958 return size;
2959 }
554f62e9 2960SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2961 wxMask *mask = new wxMask(*self, colour);
2962 self->SetMask(mask);
2963 }
554f62e9 2964SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2965 self->SetWidth(size.x);
2966 self->SetHeight(size.y);
2967 }
554f62e9
RD
2968SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2969SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2970
2971// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2972// appears to me that the other platforms are already doing it, so I'll just
2973// automatically do it for wxMSW here.
2974#ifdef __WXMSW__
195a89b4
RD
2975#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2976#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2977#else
2978#define wxPy_premultiply(p, a) (p)
2979#define wxPy_unpremultiply(p, a) (p)
2980#endif
2981
2982
2983 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2984 buffer data, int DATASIZE,
2985 buffer alpha, int ALPHASIZE)
2986 {
2987 if (DATASIZE != width*height*3) {
2988 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2989 return NULL;
2990 }
2991
2992 if (ALPHASIZE != width*height) {
2993 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2994 return NULL;
2995 }
2996
2997 wxBitmap* bmp = new wxBitmap(width, height, 32);
2998 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return NULL;
3004 }
3005
3006 pixData.UseAlpha();
3007 wxAlphaPixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxAlphaPixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 byte a = *(alpha++);
3012 p.Red() = wxPy_premultiply(*(data++), a);
3013 p.Green() = wxPy_premultiply(*(data++), a);
3014 p.Blue() = wxPy_premultiply(*(data++), a);
3015 p.Alpha() = a;
3016 ++p;
3017 }
3018 p = rowStart;
3019 p.OffsetY(pixData, 1);
3020 }
3021 return bmp;
3022 }
3023
3024 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3025 {
3026 if (DATASIZE != width*height*3) {
3027 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3028 return NULL;
3029 }
3030
3031 wxBitmap* bmp = new wxBitmap(width, height, 24);
3032 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3033 if (! pixData) {
3034 // raise an exception...
3035 wxPyErr_SetString(PyExc_RuntimeError,
3036 "Failed to gain raw access to bitmap data.");
3037 return NULL;
3038 }
3039
3040 wxNativePixelData::Iterator p(pixData);
3041 for (int y=0; y<height; y++) {
3042 wxNativePixelData::Iterator rowStart = p;
3043 for (int x=0; x<width; x++) {
3044 p.Red() = *(data++);
3045 p.Green() = *(data++);
3046 p.Blue() = *(data++);
3047 ++p;
3048 }
3049 p = rowStart;
3050 p.OffsetY(pixData, 1);
3051 }
3052 return bmp;
3053 }
3054
3055
3056 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3057 {
3058 if (DATASIZE != width*height*4) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 wxBitmap* bmp = new wxBitmap(width, height, 32);
3064 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3065 if (! pixData) {
3066 // raise an exception...
3067 wxPyErr_SetString(PyExc_RuntimeError,
3068 "Failed to gain raw access to bitmap data.");
3069 return NULL;
3070 }
3071
3072 pixData.UseAlpha();
3073 wxAlphaPixelData::Iterator p(pixData);
3074 for (int y=0; y<height; y++) {
3075 wxAlphaPixelData::Iterator rowStart = p;
3076 for (int x=0; x<width; x++) {
3077 byte a = data[3];
3078 p.Red() = wxPy_premultiply(*(data++), a);
3079 p.Green() = wxPy_premultiply(*(data++), a);
3080 p.Blue() = wxPy_premultiply(*(data++), a);
3081 p.Alpha() = a; data++;
3082 ++p;
3083 }
3084 p = rowStart;
3085 p.OffsetY(pixData, 1);
3086 }
3087 return bmp;
3088 }
3089
3090
3091 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3092
3093SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3094SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3095SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3096 self->Red() = red;
3097 self->Green() = green;
3098 self->Blue() = blue;
3099 }
3100SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3101 PyObject* rv = PyTuple_New(3);
3102 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3103 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3104 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3105 return rv;
3106 }
3107
3108 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3109
3110SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3111SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3112SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3113 self->Red() = wxPy_premultiply(red, alpha);
3114 self->Green() = wxPy_premultiply(green, alpha);
3115 self->Blue() = wxPy_premultiply(blue, alpha);
3116 self->Alpha() = alpha;
3117 }
3118SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3119 PyObject* rv = PyTuple_New(4);
3120 int red = self->Red();
3121 int green = self->Green();
3122 int blue = self->Blue();
3123 int alpha = self->Alpha();
3124
3125 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3126 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3127 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3128 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3129 return rv;
3130 }
554f62e9 3131SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3132 if ( !colour.IsOk() )
093d3ff1
RD
3133 return new wxMask(bitmap, *wxBLACK);
3134 else
3135 return new wxMask(bitmap, colour);
3136 }
d55e5bfc 3137
093d3ff1 3138#include <wx/iconbndl.h>
d55e5bfc 3139
554f62e9 3140SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3141 wxIcon* icon = new wxIcon();
3142 icon->CopyFromBitmap(bmp);
3143 return icon;
3144 }
554f62e9 3145SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3146 char** cArray = NULL;
3147 wxIcon* icon;
d55e5bfc 3148
093d3ff1
RD
3149 cArray = ConvertListOfStrings(listOfStrings);
3150 if (! cArray)
3151 return NULL;
3152 icon = new wxIcon(cArray);
3153 delete [] cArray;
3154 return icon;
3155 }
554f62e9
RD
3156SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3157SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3158
093d3ff1 3159 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3160
3161
d55e5bfc 3162
093d3ff1 3163 }
554f62e9 3164SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3165
093d3ff1 3166 self->SetIndex(num);
d55e5bfc
RD
3167
3168
d55e5bfc 3169
093d3ff1 3170 }
554f62e9 3171SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3172
093d3ff1 3173 return self->GetIndex();
d55e5bfc
RD
3174
3175
d55e5bfc 3176
093d3ff1 3177 }
554f62e9 3178SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3179#ifdef __WXGTK__
fef4c27a
RD
3180 wxImage img(cursorName, type);
3181 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3182 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3183 return new wxCursor(img);
093d3ff1 3184#else
fef4c27a 3185 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3186#endif
3187 }
554f62e9 3188SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3189
093d3ff1 3190
554f62e9 3191SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3192 (*self) ++;
3193 }
554f62e9 3194SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3195 return self->operator bool();
3196 }
3197
3198#include <wx/fontutil.h>
3199#include <wx/fontmap.h>
3200#include <wx/fontenum.h>
3201
554f62e9 3202SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3203 return self->ToString();
3204 }
3205
3206 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3207 { wxPyRaiseNotImplemented(); return NULL; }
3208
3209 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3210 { wxPyRaiseNotImplemented(); return false; }
3211
554f62e9
RD
3212
3213SWIGINTERNINLINE PyObject *
3214SWIG_From_size_t (size_t value)
3215{
3216 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3217}
3218
3219
3220SWIGINTERNINLINE int
3221SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3222{
3223 unsigned long v;
3224 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3225 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3226 return res;
3227}
3228
3229SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3230 wxFontEncoding alt_enc;
3231 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3232 return PyInt_FromLong(alt_enc);
3233 else {
3234 Py_INCREF(Py_None);
3235 return Py_None;
3236 }
3237 }
554f62e9 3238SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3239 wxNativeFontInfo nfi;
3240 nfi.FromString(info);
3241 return new wxFont(nfi);
3242 }
554f62e9 3243SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3244 return wxFont::New(pointSize, family, flags, face, encoding);
3245 }
554f62e9 3246SWIGINTERN 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
3247 return wxFontBase::New(pixelSize, family,
3248 style, weight, underlined,
3249 face, encoding);
3250 }
554f62e9 3251SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3252 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3253 }
554f62e9
RD
3254SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3255SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3256
3257class wxPyFontEnumerator : public wxFontEnumerator {
3258public:
3259 wxPyFontEnumerator() {}
3260 ~wxPyFontEnumerator() {}
3261
3262 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3263 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3264
3265 PYPRIVATE;
3266};
3267
3268IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3269IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3270
3271
704eda0c 3272SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3273 PyObject* ret;
704eda0c 3274 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3275 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3276 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3277 wxPyEndBlockThreads(blocked);
3278 return ret;
093d3ff1 3279 }
704eda0c 3280SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3281 PyObject* ret;
704eda0c 3282 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3283 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3284 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3285 wxPyEndBlockThreads(blocked);
3286 return ret;
093d3ff1
RD
3287 }
3288
3289#include <locale.h>
3290
554f62e9 3291SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3292 wxLocale* loc;
3293 if (language == -1)
3294 loc = new wxLocale();
3295 else
3296 loc = new wxLocale(language, flags);
3297 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3298 // for the floating point conversions and such to work right.
3299#if PY_VERSION_HEX < 0x02040000
3300 setlocale(LC_NUMERIC, "C");
3301#endif
3302 return loc;
3303 }
554f62e9 3304SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3305 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3306 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3307 // for the floating point conversions and such to work right.
3308#if PY_VERSION_HEX < 0x02040000
3309 setlocale(LC_NUMERIC, "C");
3310#endif
3311 return rc;
3312 }
554f62e9 3313SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3314 bool rc = self->Init(language, flags);
3315 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3316 // for the floating point conversions and such to work right.
3317#if PY_VERSION_HEX < 0x02040000
3318 setlocale(LC_NUMERIC, "C");
3319#endif
3320 return rc;
3321 }
3322
fc46b7f3
RD
3323class wxPyLocale : public wxLocale
3324{
3325public:
3326 wxPyLocale();
3327
3328 wxPyLocale(const wxChar *szName, // name (for messages)
3329 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3330 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3331 bool bLoadDefault = true, // preload wxstd.mo?
3332 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3333
3334 wxPyLocale(int language, // wxLanguage id or custom language
3335 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3336
3337 ~wxPyLocale();
3338
3339 virtual const wxChar *GetString(const wxChar *szOrigString,
3340 const wxChar *szDomain = NULL) const;
3341 virtual const wxChar *GetString(const wxChar *szOrigString,
3342 const wxChar *szOrigString2, size_t n,
3343 const wxChar *szDomain = NULL) const;
3344
3345 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3346 const wxChar *szDomain = NULL) const;
3347 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3348 const wxChar *szOrigString2, size_t n,
3349 const wxChar *szDomain = NULL) const;
3350
3351 PYPRIVATE;
3352private:
3353 DECLARE_NO_COPY_CLASS(wxPyLocale)
3354};
3355
3356wxPyLocale::wxPyLocale() : wxLocale()
3357{
3358}
3359
3360wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3361 const wxChar *szShort, // dir prefix (for msg files)
3362 const wxChar *szLocale, // locale (for setlocale)
3363 bool bLoadDefault, // preload wxstd.mo?
3364 bool bConvertEncoding) // convert Win<->Unix if necessary?
3365 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3366{
3367}
3368
3369wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3370 int flags) : wxLocale(language, flags)
3371{
3372}
3373
3374wxPyLocale::~wxPyLocale()
3375{
3376}
3377
3378const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3379 const wxChar *szDomain) const
3380{
3381 wxChar *str = GetSingularString(szOrigString, szDomain);
3382 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3383}
3384
3385const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3386 const wxChar *szOrigString2, size_t n,
3387 const wxChar *szDomain) const
3388{
3389 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3390 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3391}
3392
3393wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3394 const wxChar *szDomain) const
3395{
3396 bool found;
3397 static wxString str;
3398 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3399 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3400 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3401 PyObject* param1 = wx2PyString(szOrigString);
3402 PyObject* param2 = wx2PyString(szDomain);
3403 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3404 Py_DECREF(param1);
3405 Py_DECREF(param2);
3406 if (ret) {
3407 str = Py2wxString(ret);
3408 Py_DECREF(ret);
3409 }
3410 }
3411 wxPyEndBlockThreads(blocked);
3412 return (found ? (wxChar*)str.c_str() : NULL);
3413}
3414
3415wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3416 const wxChar *szOrigString2, size_t n,
3417 const wxChar *szDomain) const
3418{
3419 bool found;
3420 static wxString str;
3421 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3422 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3423 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3424 PyObject* param1 = wx2PyString(szOrigString);
3425 PyObject* param2 = wx2PyString(szOrigString2);
3426 PyObject* param4 = wx2PyString(szDomain);
3427 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3428 Py_DECREF(param1);
3429 Py_DECREF(param2);
3430 Py_DECREF(param4);
3431 if( ret) {
3432 str = Py2wxString(ret);
3433 Py_DECREF(ret);
3434 }
3435 }
3436 wxPyEndBlockThreads(blocked);
3437 return (found ? (wxChar*)str.c_str() : NULL);
3438}
3439
3440SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3441 wxPyLocale* loc;
3442 if (language == -1)
3443 loc = new wxPyLocale();
3444 else
3445 loc = new wxPyLocale(language, flags);
3446 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3447 // for the floating point conversions and such to work right.
3448#if PY_VERSION_HEX < 0x02040000
3449 setlocale(LC_NUMERIC, "C");
3450#endif
3451 return loc;
3452 }
3453
093d3ff1
RD
3454#include "wx/wxPython/pydrawxxx.h"
3455
554f62e9 3456SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3457 wxColour col;
3458 self->GetPixel(x, y, &col);
3459 return col;
3460 }
554f62e9 3461SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3462 wxColour col;
3463 self->GetPixel(pt, &col);
3464 return col;
3465 }
3466
3467SWIGINTERN int
554f62e9 3468SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3469{
3470 if (PyNumber_Check(obj)) {
3471 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3472 return SWIG_OK;
093d3ff1 3473 }
554f62e9 3474 return SWIG_TypeError;
093d3ff1
RD
3475}
3476
554f62e9 3477SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3478 wxRect rv;
3479 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3480 return rv;
3481 }
554f62e9 3482SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3483 wxRect rect;
3484 self->GetClippingBox(rect);
3485 return rect;
3486 }
554f62e9 3487SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3488 wxArrayInt widths;
3489 self->GetPartialTextExtents(text, widths);
3490 return widths;
3491 }
3492
554f62e9 3493 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3494
554f62e9 3495SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3496 self->SetLogicalOrigin(point.x, point.y);
3497 }
554f62e9 3498SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3499 self->SetDeviceOrigin(point.x, point.y);
3500 }
554f62e9 3501SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3502 self->CalcBoundingBox(point.x, point.y);
3503 }
554f62e9 3504SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3506 }
554f62e9 3507SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3509 }
554f62e9 3510SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3511 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3512 }
554f62e9 3513SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3514 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3515 }
554f62e9 3516SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3518 }
554f62e9 3519SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3520 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3521 }
3522
3523static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3524 *x1 = dc->MinX();
3525 *y1 = dc->MinY();
3526 *x2 = dc->MaxX();
3527 *y2 = dc->MaxY();
3528}
3529
3530
3531#include <wx/dcbuffer.h>
3532
3533
3534#include <wx/dcps.h>
3535
3536
3537#include <wx/metafile.h>
3538
3539
72ef6efb
RD
3540#include <wx/graphics.h>
3541
3542
3543#if !wxUSE_GRAPHICS_CONTEXT
3544// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3545
3546class wxGraphicsPath
3547{
3548public :
3549 wxGraphicsPath() {
3550 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3551 PyErr_SetString(PyExc_NotImplementedError,
3552 "wxGraphicsPath is not available on this platform.");
3553 wxPyEndBlockThreads(blocked);
3554 }
3555 virtual ~wxGraphicsPath() {}
3556
3557 void MoveToPoint( wxDouble, wxDouble ) {}
3558 void AddLineToPoint( wxDouble, wxDouble ) {}
3559 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3560 void CloseSubpath() {}
3561 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3562 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3563
3564 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3565 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3566 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3567 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3568
3569 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3570 void MoveToPoint( const wxPoint2DDouble& ) {}
3571 void AddLineToPoint( const wxPoint2DDouble&) {}
3572 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3573 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3574};
3575
3576
3577class wxGraphicsContext
3578{
3579public:
3580 wxGraphicsContext() {
3581 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3582 PyErr_SetString(PyExc_NotImplementedError,
3583 "wxGraphicsContext is not available on this platform.");
3584 wxPyEndBlockThreads(blocked);
3585 }
3586 virtual ~wxGraphicsContext() {}
3587
3588 static wxGraphicsContext* Create( const wxWindowDC&) {
3589 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3590 PyErr_SetString(PyExc_NotImplementedError,
3591 "wxGraphicsPath is not available on this platform.");
3592 wxPyEndBlockThreads(blocked);
3593 return NULL;
3594 }
3595
3596 wxGraphicsPath * CreatePath() { return NULL; }
3597 void PushState() {}
3598 void PopState() {}
3599 void Clip( const wxRegion & ) {}
3600 void Translate( wxDouble , wxDouble ) {}
3601 void Scale( wxDouble , wxDouble ) {}
3602 void Rotate( wxDouble ) {}
3603 void SetPen( const wxPen & ) {}
3604 void SetBrush( const wxBrush & ) {}
3605 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3606 const wxColour&, const wxColour&) {}
3607 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3608 const wxColour &, const wxColour &) {}
3609 void SetFont( const wxFont & ) {}
3610 void SetTextColor( const wxColour & ) {}
3611 void StrokePath( const wxGraphicsPath * ) {}
3612 void FillPath( const wxGraphicsPath *, int ) {}
3613 void DrawPath( const wxGraphicsPath *, int ) {}
3614 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3615 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3616 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3617 wxDouble *, wxDouble * ) const {}
3618 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3619 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3620 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3621 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3622 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3623 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3624 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3625 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3626 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3627 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3628};
3629
3630
3631class wxGCDC: public wxWindowDC
3632{
3633public:
3634 wxGCDC(const wxWindowDC&) {
3635 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3636 PyErr_SetString(PyExc_NotImplementedError,
3637 "wxGCDC is not available on this platform.");
3638 wxPyEndBlockThreads(blocked);
3639 }
3640
3641 wxGCDC() {
3642 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3643 PyErr_SetString(PyExc_NotImplementedError,
3644 "wxGCDC is not available on this platform.");
3645 wxPyEndBlockThreads(blocked);
3646 }
3647
3648 virtual ~wxGCDC() {}
3649
3650 wxGraphicsContext* GetGraphicContext() { return NULL; }
3651};
3652
3653#endif
3654
b39fe951
RD
3655SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3656 wxArrayDouble widths;
3657 self->GetPartialTextExtents(text, widths);
3658 return widths;
3659 }
f8eb59b9 3660SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3661 size_t c1, c2, count;
3662 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3663 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3664
3665 if ( beginP != NULL && endP != NULL )
3666 {
3667 count = wxMin(c1, c2);
3668 self->StrokeLines(count, beginP, endP);
3669 }
3670 delete [] beginP;
3671 delete [] endP;
3672 }
72ef6efb 3673
0a27f394
RD
3674#include "wx/dcgraph.h"
3675
3676
093d3ff1 3677
554f62e9 3678SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3679 self->AddColour(name, wxColour(red, green, blue));
3680 }
3681
50efceee
RD
3682 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3683 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3684 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3685 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3686
3687
093d3ff1
RD
3688#include <wx/effects.h>
3689
be9b1dca
RD
3690
3691#include "wx/renderer.h"
3692
3693
7449af73 3694SWIGINTERNINLINE PyObject*
554f62e9 3695 SWIG_From_bool (bool value)
be9b1dca 3696{
554f62e9 3697 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3698}
3699
27e45892
RD
3700
3701#include "wx/wxPython/pseudodc.h"
3702
3703SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3704 wxRect rect;
3705 self->GetIdBounds(id, rect);
3706 return rect;
3707 }
093d3ff1
RD
3708#ifdef __cplusplus
3709extern "C" {
3710#endif
554f62e9
RD
3711SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3712 PyObject *resultobj = 0;
3713 wxGDIObject *result = 0 ;
3714
3715 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3716 {
3717 if (!wxPyCheckForApp()) SWIG_fail;
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 result = (wxGDIObject *)new wxGDIObject();
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3724 return resultobj;
3725fail:
3726 return NULL;
d55e5bfc
RD
3727}
3728
3729
554f62e9
RD
3730SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3731 PyObject *resultobj = 0;
3732 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3733 void *argp1 = 0 ;
3734 int res1 = 0 ;
3735 PyObject *swig_obj[1] ;
3736
3737 if (!args) SWIG_fail;
3738 swig_obj[0] = args;
3739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3740 if (!SWIG_IsOK(res1)) {
3741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3742 }
3743 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 delete arg1;
d55e5bfc 3747
554f62e9
RD
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_Py_Void();
3752 return resultobj;
3753fail:
3754 return NULL;
d55e5bfc
RD
3755}
3756
3757
554f62e9
RD
3758SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3759 PyObject *resultobj = 0;
3760 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3761 bool result;
3762 void *argp1 = 0 ;
3763 int res1 = 0 ;
3764 PyObject *swig_obj[1] ;
3765
3766 if (!args) SWIG_fail;
3767 swig_obj[0] = args;
3768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3769 if (!SWIG_IsOK(res1)) {
3770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3771 }
3772 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3773 {
3774 PyThreadState* __tstate = wxPyBeginAllowThreads();
3775 result = (bool)(arg1)->IsNull();
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 {
3780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3781 }
3782 return resultobj;
3783fail:
3784 return NULL;
3785}
3786
3787
3788SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3789 PyObject *obj;
3790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3791 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3792 return SWIG_Py_Void();
3793}
3794
3795SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3796 return SWIG_Python_InitShadowInstance(args);
3797}
3798
3799SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3800 PyObject *resultobj = 0;
3801 byte arg1 = (byte) 0 ;
3802 byte arg2 = (byte) 0 ;
3803 byte arg3 = (byte) 0 ;
fc46b7f3 3804 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
3805 wxColour *result = 0 ;
3806 unsigned char val1 ;
3807 int ecode1 = 0 ;
3808 unsigned char val2 ;
3809 int ecode2 = 0 ;
3810 unsigned char val3 ;
3811 int ecode3 = 0 ;
fc46b7f3
RD
3812 unsigned char val4 ;
3813 int ecode4 = 0 ;
554f62e9
RD
3814 PyObject * obj0 = 0 ;
3815 PyObject * obj1 = 0 ;
3816 PyObject * obj2 = 0 ;
fc46b7f3 3817 PyObject * obj3 = 0 ;
554f62e9 3818 char * kwnames[] = {
fc46b7f3 3819 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
3820 };
3821
fc46b7f3 3822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
3823 if (obj0) {
3824 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3825 if (!SWIG_IsOK(ecode1)) {
3826 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3827 }
3828 arg1 = static_cast< byte >(val1);
3829 }
3830 if (obj1) {
3831 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3832 if (!SWIG_IsOK(ecode2)) {
3833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3834 }
3835 arg2 = static_cast< byte >(val2);
3836 }
3837 if (obj2) {
3838 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3839 if (!SWIG_IsOK(ecode3)) {
3840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3841 }
3842 arg3 = static_cast< byte >(val3);
3843 }
fc46b7f3
RD
3844 if (obj3) {
3845 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3846 if (!SWIG_IsOK(ecode4)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3848 }
3849 arg4 = static_cast< byte >(val4);
3850 }
554f62e9
RD
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3853 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3858 return resultobj;
3859fail:
3860 return NULL;
d55e5bfc
RD
3861}
3862
3863
554f62e9
RD
3864SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj = 0;
3866 wxString *arg1 = 0 ;
3867 wxColour *result = 0 ;
3868 bool temp1 = false ;
3869 PyObject * obj0 = 0 ;
3870 char * kwnames[] = {
3871 (char *) "colorName", NULL
3872 };
3873
3874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3875 {
3876 arg1 = wxString_in_helper(obj0);
3877 if (arg1 == NULL) SWIG_fail;
3878 temp1 = true;
3879 }
3880 {
3881 if (!wxPyCheckForApp()) SWIG_fail;
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (wxColour *)new wxColour((wxString const &)*arg1);
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3888 {
3889 if (temp1)
3890 delete arg1;
3891 }
3892 return resultobj;
3893fail:
3894 {
3895 if (temp1)
3896 delete arg1;
3897 }
3898 return NULL;
b519803b
RD
3899}
3900
3901
554f62e9
RD
3902SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3903 PyObject *resultobj = 0;
3904 unsigned long arg1 ;
3905 wxColour *result = 0 ;
3906 unsigned long val1 ;
3907 int ecode1 = 0 ;
3908 PyObject * obj0 = 0 ;
3909 char * kwnames[] = {
3910 (char *) "colRGB", NULL
3911 };
3912
3913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3914 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3915 if (!SWIG_IsOK(ecode1)) {
3916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3917 }
3918 arg1 = static_cast< unsigned long >(val1);
3919 {
3920 PyThreadState* __tstate = wxPyBeginAllowThreads();
3921 result = (wxColour *)new wxColour(arg1);
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3926 return resultobj;
3927fail:
3928 return NULL;
d55e5bfc
RD
3929}
3930
3931
554f62e9
RD
3932SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3933 PyObject *resultobj = 0;
3934 wxColour *arg1 = (wxColour *) 0 ;
3935 void *argp1 = 0 ;
3936 int res1 = 0 ;
3937 PyObject *swig_obj[1] ;
3938
3939 if (!args) SWIG_fail;
3940 swig_obj[0] = args;
3941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3942 if (!SWIG_IsOK(res1)) {
3943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3944 }
3945 arg1 = reinterpret_cast< wxColour * >(argp1);
3946 {
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 delete arg1;
d55e5bfc 3949
554f62e9
RD
3950 wxPyEndAllowThreads(__tstate);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 resultobj = SWIG_Py_Void();
3954 return resultobj;
3955fail:
3956 return NULL;
d55e5bfc
RD
3957}
3958
3959
554f62e9
RD
3960SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3961 PyObject *resultobj = 0;
3962 wxColour *arg1 = (wxColour *) 0 ;
3963 byte result;
3964 void *argp1 = 0 ;
3965 int res1 = 0 ;
3966 PyObject *swig_obj[1] ;
3967
3968 if (!args) SWIG_fail;
3969 swig_obj[0] = args;
3970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3971 if (!SWIG_IsOK(res1)) {
3972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3973 }
3974 arg1 = reinterpret_cast< wxColour * >(argp1);
3975 {
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 result = (byte)(arg1)->Red();
3978 wxPyEndAllowThreads(__tstate);
3979 if (PyErr_Occurred()) SWIG_fail;
3980 }
3981 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3982 return resultobj;
3983fail:
3984 return NULL;
d55e5bfc
RD
3985}
3986
3987
554f62e9
RD
3988SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3989 PyObject *resultobj = 0;
3990 wxColour *arg1 = (wxColour *) 0 ;
3991 byte result;
3992 void *argp1 = 0 ;
3993 int res1 = 0 ;
3994 PyObject *swig_obj[1] ;
3995
3996 if (!args) SWIG_fail;
3997 swig_obj[0] = args;
3998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3999 if (!SWIG_IsOK(res1)) {
4000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4001 }
4002 arg1 = reinterpret_cast< wxColour * >(argp1);
4003 {
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 result = (byte)(arg1)->Green();
4006 wxPyEndAllowThreads(__tstate);
4007 if (PyErr_Occurred()) SWIG_fail;
4008 }
4009 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4010 return resultobj;
4011fail:
4012 return NULL;
d55e5bfc
RD
4013}
4014
4015
554f62e9
RD
4016SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4017 PyObject *resultobj = 0;
4018 wxColour *arg1 = (wxColour *) 0 ;
4019 byte result;
4020 void *argp1 = 0 ;
4021 int res1 = 0 ;
4022 PyObject *swig_obj[1] ;
4023
4024 if (!args) SWIG_fail;
4025 swig_obj[0] = args;
4026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4027 if (!SWIG_IsOK(res1)) {
4028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4029 }
4030 arg1 = reinterpret_cast< wxColour * >(argp1);
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (byte)(arg1)->Blue();
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4038 return resultobj;
4039fail:
4040 return NULL;
d55e5bfc
RD
4041}
4042
4043
fc46b7f3
RD
4044SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxColour *arg1 = (wxColour *) 0 ;
4047 byte result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4057 }
4058 arg1 = reinterpret_cast< wxColour * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (byte)(arg1)->Alpha();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4066 return resultobj;
4067fail:
4068 return NULL;
4069}
4070
4071
b39fe951 4072SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4073 PyObject *resultobj = 0;
4074 wxColour *arg1 = (wxColour *) 0 ;
4075 bool result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
b39fe951 4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4085 }
4086 arg1 = reinterpret_cast< wxColour * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4089 result = (bool)(arg1)->IsOk();
554f62e9
RD
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 {
4094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4095 }
4096 return resultobj;
4097fail:
4098 return NULL;
4099}
4100
4101
4102SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4103 PyObject *resultobj = 0;
4104 wxColour *arg1 = (wxColour *) 0 ;
4105 byte arg2 ;
4106 byte arg3 ;
4107 byte arg4 ;
fc46b7f3 4108 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4109 void *argp1 = 0 ;
4110 int res1 = 0 ;
4111 unsigned char val2 ;
4112 int ecode2 = 0 ;
4113 unsigned char val3 ;
4114 int ecode3 = 0 ;
4115 unsigned char val4 ;
4116 int ecode4 = 0 ;
fc46b7f3
RD
4117 unsigned char val5 ;
4118 int ecode5 = 0 ;
554f62e9
RD
4119 PyObject * obj0 = 0 ;
4120 PyObject * obj1 = 0 ;
4121 PyObject * obj2 = 0 ;
4122 PyObject * obj3 = 0 ;
fc46b7f3 4123 PyObject * obj4 = 0 ;
554f62e9 4124 char * kwnames[] = {
fc46b7f3 4125 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4126 };
4127
fc46b7f3 4128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4130 if (!SWIG_IsOK(res1)) {
4131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4132 }
4133 arg1 = reinterpret_cast< wxColour * >(argp1);
4134 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4135 if (!SWIG_IsOK(ecode2)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4137 }
4138 arg2 = static_cast< byte >(val2);
4139 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4140 if (!SWIG_IsOK(ecode3)) {
4141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4142 }
4143 arg3 = static_cast< byte >(val3);
4144 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4145 if (!SWIG_IsOK(ecode4)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4147 }
4148 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4149 if (obj4) {
4150 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4151 if (!SWIG_IsOK(ecode5)) {
4152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4153 }
4154 arg5 = static_cast< byte >(val5);
4155 }
554f62e9
RD
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4158 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 resultobj = SWIG_Py_Void();
4163 return resultobj;
4164fail:
4165 return NULL;
4166}
4167
4168
4169SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj = 0;
4171 wxColour *arg1 = (wxColour *) 0 ;
4172 unsigned long arg2 ;
4173 void *argp1 = 0 ;
4174 int res1 = 0 ;
4175 unsigned long val2 ;
4176 int ecode2 = 0 ;
4177 PyObject * obj0 = 0 ;
4178 PyObject * obj1 = 0 ;
4179 char * kwnames[] = {
4180 (char *) "self",(char *) "colRGB", NULL
4181 };
4182
4183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4185 if (!SWIG_IsOK(res1)) {
4186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4187 }
4188 arg1 = reinterpret_cast< wxColour * >(argp1);
4189 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4190 if (!SWIG_IsOK(ecode2)) {
4191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4192 }
4193 arg2 = static_cast< unsigned long >(val2);
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 (arg1)->Set(arg2);
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_Py_Void();
4201 return resultobj;
4202fail:
4203 return NULL;
4204}
4205
4206
4207SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj = 0;
4209 wxColour *arg1 = (wxColour *) 0 ;
4210 wxString *arg2 = 0 ;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 bool temp2 = false ;
4214 PyObject * obj0 = 0 ;
4215 PyObject * obj1 = 0 ;
4216 char * kwnames[] = {
4217 (char *) "self",(char *) "colourName", NULL
4218 };
4219
4220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4222 if (!SWIG_IsOK(res1)) {
4223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4224 }
4225 arg1 = reinterpret_cast< wxColour * >(argp1);
4226 {
4227 arg2 = wxString_in_helper(obj1);
4228 if (arg2 == NULL) SWIG_fail;
4229 temp2 = true;
4230 }
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4233 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 resultobj = SWIG_Py_Void();
4238 {
4239 if (temp2)
4240 delete arg2;
4241 }
4242 return resultobj;
4243fail:
4244 {
4245 if (temp2)
4246 delete arg2;
4247 }
4248 return NULL;
d55e5bfc
RD
4249}
4250
4251
f460c29d
RD
4252SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4253 PyObject *resultobj = 0;
4254 wxColour *arg1 = (wxColour *) 0 ;
4255 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4256 wxString result;
4257 void *argp1 = 0 ;
4258 int res1 = 0 ;
4259 long val2 ;
4260 int ecode2 = 0 ;
4261 PyObject * obj0 = 0 ;
4262 PyObject * obj1 = 0 ;
4263 char * kwnames[] = {
4264 (char *) "self",(char *) "flags", NULL
4265 };
4266
4267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4269 if (!SWIG_IsOK(res1)) {
4270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4271 }
4272 arg1 = reinterpret_cast< wxColour * >(argp1);
4273 if (obj1) {
4274 ecode2 = SWIG_AsVal_long(obj1, &val2);
4275 if (!SWIG_IsOK(ecode2)) {
4276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4277 }
4278 arg2 = static_cast< long >(val2);
4279 }
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 result = ((wxColour const *)arg1)->GetAsString(arg2);
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) SWIG_fail;
4285 }
4286 {
4287#if wxUSE_UNICODE
4288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4289#else
4290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4291#endif
4292 }
4293 return resultobj;
4294fail:
4295 return NULL;
4296}
4297
4298
554f62e9
RD
4299SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4300 PyObject *resultobj = 0;
4301 wxColour *arg1 = (wxColour *) 0 ;
4302 long result;
4303 void *argp1 = 0 ;
4304 int res1 = 0 ;
4305 PyObject *swig_obj[1] ;
4306
4307 if (!args) SWIG_fail;
4308 swig_obj[0] = args;
4309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4310 if (!SWIG_IsOK(res1)) {
4311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4312 }
4313 arg1 = reinterpret_cast< wxColour * >(argp1);
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 result = (long)((wxColour const *)arg1)->GetPixel();
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 resultobj = SWIG_From_long(static_cast< long >(result));
4321 return resultobj;
4322fail:
4323 return NULL;
4324}
4325
4326
4327SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj = 0;
4329 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4330 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4331 bool result;
4332 void *argp1 = 0 ;
4333 int res1 = 0 ;
554f62e9
RD
4334 PyObject * obj0 = 0 ;
4335 PyObject * obj1 = 0 ;
4336 char * kwnames[] = {
e9d6f3a4 4337 (char *) "self",(char *) "other", NULL
554f62e9
RD
4338 };
4339
4340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4342 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4344 }
4345 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4346 arg2 = obj1;
554f62e9 4347 {
e9d6f3a4 4348 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 {
4352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4353 }
4354 return resultobj;
4355fail:
4356 return NULL;
4357}
4358
4359
4360SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4363 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4364 bool result;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
554f62e9
RD
4367 PyObject * obj0 = 0 ;
4368 PyObject * obj1 = 0 ;
4369 char * kwnames[] = {
e9d6f3a4 4370 (char *) "self",(char *) "other", NULL
554f62e9
RD
4371 };
4372
4373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4377 }
4378 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4379 arg2 = obj1;
554f62e9 4380 {
e9d6f3a4 4381 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 {
4385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4386 }
4387 return resultobj;
4388fail:
4389 return NULL;
d55e5bfc
RD
4390}
4391
4392
fc46b7f3 4393SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4394 PyObject *resultobj = 0;
4395 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4396 bool arg2 = (bool) false ;
554f62e9
RD
4397 PyObject *result = 0 ;
4398 void *argp1 = 0 ;
4399 int res1 = 0 ;
fc46b7f3
RD
4400 bool val2 ;
4401 int ecode2 = 0 ;
4402 PyObject * obj0 = 0 ;
4403 PyObject * obj1 = 0 ;
4404 char * kwnames[] = {
4405 (char *) "self",(char *) "includeAlpha", NULL
4406 };
554f62e9 4407
fc46b7f3
RD
4408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4410 if (!SWIG_IsOK(res1)) {
4411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4412 }
4413 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4414 if (obj1) {
4415 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4416 if (!SWIG_IsOK(ecode2)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4418 }
4419 arg2 = static_cast< bool >(val2);
4420 }
554f62e9 4421 {
fc46b7f3 4422 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = result;
4426 return resultobj;
4427fail:
4428 return NULL;
d55e5bfc
RD
4429}
4430
4431
554f62e9
RD
4432SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4433 PyObject *resultobj = 0;
4434 wxColour *arg1 = (wxColour *) 0 ;
4435 unsigned long result;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 PyObject *swig_obj[1] ;
4439
4440 if (!args) SWIG_fail;
4441 swig_obj[0] = args;
4442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4443 if (!SWIG_IsOK(res1)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4445 }
4446 arg1 = reinterpret_cast< wxColour * >(argp1);
4447 {
554f62e9 4448 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4452 return resultobj;
4453fail:
4454 return NULL;
4455}
4456
4457
4458SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4459 PyObject *obj;
4460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4461 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4462 return SWIG_Py_Void();
4463}
4464
4465SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 return SWIG_Python_InitShadowInstance(args);
4467}
4468
4469SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4470 PyObject *resultobj = 0;
4471 int arg1 ;
4472 unsigned char *arg2 = (unsigned char *) 0 ;
4473 unsigned char *arg3 = (unsigned char *) 0 ;
4474 unsigned char *arg4 = (unsigned char *) 0 ;
4475 wxPalette *result = 0 ;
4476 int val1 ;
4477 int ecode1 = 0 ;
4478 void *argp2 = 0 ;
4479 int res2 = 0 ;
4480 void *argp3 = 0 ;
4481 int res3 = 0 ;
4482 void *argp4 = 0 ;
4483 int res4 = 0 ;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 PyObject * obj2 = 0 ;
4487 PyObject * obj3 = 0 ;
4488 char * kwnames[] = {
4489 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4490 };
4491
4492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4493 ecode1 = SWIG_AsVal_int(obj0, &val1);
4494 if (!SWIG_IsOK(ecode1)) {
4495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4496 }
4497 arg1 = static_cast< int >(val1);
4498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4499 if (!SWIG_IsOK(res2)) {
4500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4501 }
4502 arg2 = reinterpret_cast< unsigned char * >(argp2);
4503 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4504 if (!SWIG_IsOK(res3)) {
4505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4506 }
4507 arg3 = reinterpret_cast< unsigned char * >(argp3);
4508 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4509 if (!SWIG_IsOK(res4)) {
4510 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4511 }
4512 arg4 = reinterpret_cast< unsigned char * >(argp4);
4513 {
4514 if (!wxPyCheckForApp()) SWIG_fail;
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4517 wxPyEndAllowThreads(__tstate);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 }
4520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4521 return resultobj;
4522fail:
4523 return NULL;
093d3ff1
RD
4524}
4525
4526
554f62e9
RD
4527SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4528 PyObject *resultobj = 0;
4529 wxPalette *arg1 = (wxPalette *) 0 ;
4530 void *argp1 = 0 ;
4531 int res1 = 0 ;
4532 PyObject *swig_obj[1] ;
4533
4534 if (!args) SWIG_fail;
4535 swig_obj[0] = args;
4536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4537 if (!SWIG_IsOK(res1)) {
4538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4539 }
4540 arg1 = reinterpret_cast< wxPalette * >(argp1);
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 delete arg1;
093d3ff1 4544
554f62e9
RD
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) SWIG_fail;
4547 }
4548 resultobj = SWIG_Py_Void();
4549 return resultobj;
4550fail:
4551 return NULL;
4552}
4553
4554
4555SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj = 0;
4557 wxPalette *arg1 = (wxPalette *) 0 ;
4558 byte arg2 ;
4559 byte arg3 ;
4560 byte arg4 ;
4561 int result;
4562 void *argp1 = 0 ;
4563 int res1 = 0 ;
4564 unsigned char val2 ;
4565 int ecode2 = 0 ;
4566 unsigned char val3 ;
4567 int ecode3 = 0 ;
4568 unsigned char val4 ;
4569 int ecode4 = 0 ;
4570 PyObject * obj0 = 0 ;
4571 PyObject * obj1 = 0 ;
4572 PyObject * obj2 = 0 ;
4573 PyObject * obj3 = 0 ;
4574 char * kwnames[] = {
4575 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4576 };
4577
4578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4580 if (!SWIG_IsOK(res1)) {
4581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4582 }
4583 arg1 = reinterpret_cast< wxPalette * >(argp1);
4584 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4587 }
4588 arg2 = static_cast< byte >(val2);
4589 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4590 if (!SWIG_IsOK(ecode3)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4592 }
4593 arg3 = static_cast< byte >(val3);
4594 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4595 if (!SWIG_IsOK(ecode4)) {
4596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4597 }
4598 arg4 = static_cast< byte >(val4);
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 resultobj = SWIG_From_int(static_cast< int >(result));
4606 return resultobj;
4607fail:
4608 return NULL;
4609}
4610
4611
4612SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj = 0;
4614 wxPalette *arg1 = (wxPalette *) 0 ;
4615 int arg2 ;
4616 byte *arg3 = (byte *) 0 ;
4617 byte *arg4 = (byte *) 0 ;
4618 byte *arg5 = (byte *) 0 ;
4619 bool result;
4620 void *argp1 = 0 ;
4621 int res1 = 0 ;
4622 int val2 ;
4623 int ecode2 = 0 ;
4624 byte temp3 ;
4625 int res3 = SWIG_TMPOBJ ;
4626 byte temp4 ;
4627 int res4 = SWIG_TMPOBJ ;
4628 byte temp5 ;
4629 int res5 = SWIG_TMPOBJ ;
4630 PyObject * obj0 = 0 ;
4631 PyObject * obj1 = 0 ;
4632 char * kwnames[] = {
4633 (char *) "self",(char *) "pixel", NULL
4634 };
4635
4636 arg3 = &temp3;
4637 arg4 = &temp4;
4638 arg5 = &temp5;
4639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4641 if (!SWIG_IsOK(res1)) {
4642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4643 }
4644 arg1 = reinterpret_cast< wxPalette * >(argp1);
4645 ecode2 = SWIG_AsVal_int(obj1, &val2);
4646 if (!SWIG_IsOK(ecode2)) {
4647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4648 }
4649 arg2 = static_cast< int >(val2);
4650 {
4651 PyThreadState* __tstate = wxPyBeginAllowThreads();
4652 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4653 wxPyEndAllowThreads(__tstate);
4654 if (PyErr_Occurred()) SWIG_fail;
4655 }
4656 {
4657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4658 }
4659 if (SWIG_IsTmpObj(res3)) {
4660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4661 } else {
4662 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4664 }
4665 if (SWIG_IsTmpObj(res4)) {
4666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4667 } else {
4668 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4670 }
4671 if (SWIG_IsTmpObj(res5)) {
4672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4673 } else {
4674 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4676 }
4677 return resultobj;
4678fail:
4679 return NULL;
d55e5bfc
RD
4680}
4681
4682
554f62e9
RD
4683SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4684 PyObject *resultobj = 0;
4685 wxPalette *arg1 = (wxPalette *) 0 ;
4686 int result;
4687 void *argp1 = 0 ;
4688 int res1 = 0 ;
4689 PyObject *swig_obj[1] ;
4690
4691 if (!args) SWIG_fail;
4692 swig_obj[0] = args;
4693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4694 if (!SWIG_IsOK(res1)) {
4695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4696 }
4697 arg1 = reinterpret_cast< wxPalette * >(argp1);
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4701 wxPyEndAllowThreads(__tstate);
4702 if (PyErr_Occurred()) SWIG_fail;
4703 }
4704 resultobj = SWIG_From_int(static_cast< int >(result));
4705 return resultobj;
4706fail:
4707 return NULL;
d55e5bfc
RD
4708}
4709
4710
b39fe951 4711SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4712 PyObject *resultobj = 0;
4713 wxPalette *arg1 = (wxPalette *) 0 ;
4714 bool result;
4715 void *argp1 = 0 ;
4716 int res1 = 0 ;
4717 PyObject *swig_obj[1] ;
4718
4719 if (!args) SWIG_fail;
4720 swig_obj[0] = args;
4721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4722 if (!SWIG_IsOK(res1)) {
b39fe951 4723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
4724 }
4725 arg1 = reinterpret_cast< wxPalette * >(argp1);
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4728 result = (bool)(arg1)->IsOk();
554f62e9
RD
4729 wxPyEndAllowThreads(__tstate);
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 {
4733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4734 }
4735 return resultobj;
4736fail:
4737 return NULL;
4738}
4739
4740
4741SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *obj;
4743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4744 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4745 return SWIG_Py_Void();
4746}
4747
4748SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4749 return SWIG_Python_InitShadowInstance(args);
4750}
4751
4752SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4753 PyObject *resultobj = 0;
4754 wxColour *arg1 = 0 ;
4755 int arg2 = (int) 1 ;
4756 int arg3 = (int) wxSOLID ;
4757 wxPen *result = 0 ;
4758 wxColour temp1 ;
4759 int val2 ;
4760 int ecode2 = 0 ;
4761 int val3 ;
4762 int ecode3 = 0 ;
4763 PyObject * obj0 = 0 ;
4764 PyObject * obj1 = 0 ;
4765 PyObject * obj2 = 0 ;
4766 char * kwnames[] = {
4767 (char *) "colour",(char *) "width",(char *) "style", NULL
4768 };
4769
4770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4771 {
4772 arg1 = &temp1;
4773 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4774 }
4775 if (obj1) {
4776 ecode2 = SWIG_AsVal_int(obj1, &val2);
4777 if (!SWIG_IsOK(ecode2)) {
4778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4779 }
4780 arg2 = static_cast< int >(val2);
4781 }
4782 if (obj2) {
4783 ecode3 = SWIG_AsVal_int(obj2, &val3);
4784 if (!SWIG_IsOK(ecode3)) {
4785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4786 }
4787 arg3 = static_cast< int >(val3);
4788 }
4789 {
4790 if (!wxPyCheckForApp()) SWIG_fail;
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4797 return resultobj;
4798fail:
4799 return NULL;
d55e5bfc
RD
4800}
4801
4802
554f62e9
RD
4803SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4804 PyObject *resultobj = 0;
4805 wxPen *arg1 = (wxPen *) 0 ;
4806 void *argp1 = 0 ;
4807 int res1 = 0 ;
4808 PyObject *swig_obj[1] ;
4809
4810 if (!args) SWIG_fail;
4811 swig_obj[0] = args;
4812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4813 if (!SWIG_IsOK(res1)) {
4814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4815 }
4816 arg1 = reinterpret_cast< wxPen * >(argp1);
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 delete arg1;
d55e5bfc 4820
554f62e9
RD
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) SWIG_fail;
4823 }
4824 resultobj = SWIG_Py_Void();
4825 return resultobj;
4826fail:
4827 return NULL;
d55e5bfc
RD
4828}
4829
4830
554f62e9
RD
4831SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxPen *arg1 = (wxPen *) 0 ;
4834 int result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4844 }
4845 arg1 = reinterpret_cast< wxPen * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (int)(arg1)->GetCap();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 resultobj = SWIG_From_int(static_cast< int >(result));
4853 return resultobj;
4854fail:
4855 return NULL;
d55e5bfc
RD
4856}
4857
4858
554f62e9
RD
4859SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4860 PyObject *resultobj = 0;
4861 wxPen *arg1 = (wxPen *) 0 ;
4862 wxColour result;
4863 void *argp1 = 0 ;
4864 int res1 = 0 ;
4865 PyObject *swig_obj[1] ;
4866
4867 if (!args) SWIG_fail;
4868 swig_obj[0] = args;
4869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4870 if (!SWIG_IsOK(res1)) {
4871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4872 }
4873 arg1 = reinterpret_cast< wxPen * >(argp1);
4874 {
4875 PyThreadState* __tstate = wxPyBeginAllowThreads();
4876 result = (arg1)->GetColour();
4877 wxPyEndAllowThreads(__tstate);
4878 if (PyErr_Occurred()) SWIG_fail;
4879 }
4880 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4881 return resultobj;
4882fail:
4883 return NULL;
d55e5bfc
RD
4884}
4885
4886
554f62e9
RD
4887SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4888 PyObject *resultobj = 0;
4889 wxPen *arg1 = (wxPen *) 0 ;
4890 int result;
4891 void *argp1 = 0 ;
4892 int res1 = 0 ;
4893 PyObject *swig_obj[1] ;
4894
4895 if (!args) SWIG_fail;
4896 swig_obj[0] = args;
4897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4898 if (!SWIG_IsOK(res1)) {
4899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4900 }
4901 arg1 = reinterpret_cast< wxPen * >(argp1);
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 result = (int)(arg1)->GetJoin();
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_From_int(static_cast< int >(result));
4909 return resultobj;
4910fail:
4911 return NULL;
d55e5bfc
RD
4912}
4913
4914
554f62e9
RD
4915SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4916 PyObject *resultobj = 0;
4917 wxPen *arg1 = (wxPen *) 0 ;
4918 int result;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 PyObject *swig_obj[1] ;
4922
4923 if (!args) SWIG_fail;
4924 swig_obj[0] = args;
4925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4928 }
4929 arg1 = reinterpret_cast< wxPen * >(argp1);
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 result = (int)(arg1)->GetStyle();
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 resultobj = SWIG_From_int(static_cast< int >(result));
4937 return resultobj;
4938fail:
4939 return NULL;
d55e5bfc
RD
4940}
4941
4942
554f62e9
RD
4943SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4944 PyObject *resultobj = 0;
4945 wxPen *arg1 = (wxPen *) 0 ;
4946 int result;
4947 void *argp1 = 0 ;
4948 int res1 = 0 ;
4949 PyObject *swig_obj[1] ;
4950
4951 if (!args) SWIG_fail;
4952 swig_obj[0] = args;
4953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4954 if (!SWIG_IsOK(res1)) {
4955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4956 }
4957 arg1 = reinterpret_cast< wxPen * >(argp1);
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 result = (int)(arg1)->GetWidth();
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 resultobj = SWIG_From_int(static_cast< int >(result));
4965 return resultobj;
4966fail:
4967 return NULL;
d55e5bfc
RD
4968}
4969
4970
b39fe951 4971SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4972 PyObject *resultobj = 0;
4973 wxPen *arg1 = (wxPen *) 0 ;
4974 bool result;
4975 void *argp1 = 0 ;
4976 int res1 = 0 ;
4977 PyObject *swig_obj[1] ;
4978
4979 if (!args) SWIG_fail;
4980 swig_obj[0] = args;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
b39fe951 4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
4984 }
4985 arg1 = reinterpret_cast< wxPen * >(argp1);
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4988 result = (bool)(arg1)->IsOk();
554f62e9
RD
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 {
4993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4994 }
4995 return resultobj;
4996fail:
4997 return NULL;
4998}
4999
5000
5001SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj = 0;
5003 wxPen *arg1 = (wxPen *) 0 ;
5004 int arg2 ;
5005 void *argp1 = 0 ;
5006 int res1 = 0 ;
5007 int val2 ;
5008 int ecode2 = 0 ;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 char * kwnames[] = {
5012 (char *) "self",(char *) "cap_style", NULL
5013 };
5014
5015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5017 if (!SWIG_IsOK(res1)) {
5018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5019 }
5020 arg1 = reinterpret_cast< wxPen * >(argp1);
5021 ecode2 = SWIG_AsVal_int(obj1, &val2);
5022 if (!SWIG_IsOK(ecode2)) {
5023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5024 }
5025 arg2 = static_cast< int >(val2);
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 (arg1)->SetCap(arg2);
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 resultobj = SWIG_Py_Void();
5033 return resultobj;
5034fail:
5035 return NULL;
5036}
5037
5038
5039SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj = 0;
5041 wxPen *arg1 = (wxPen *) 0 ;
5042 wxColour *arg2 = 0 ;
5043 void *argp1 = 0 ;
5044 int res1 = 0 ;
5045 wxColour temp2 ;
5046 PyObject * obj0 = 0 ;
5047 PyObject * obj1 = 0 ;
5048 char * kwnames[] = {
5049 (char *) "self",(char *) "colour", NULL
5050 };
5051
5052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5054 if (!SWIG_IsOK(res1)) {
5055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5056 }
5057 arg1 = reinterpret_cast< wxPen * >(argp1);
5058 {
5059 arg2 = &temp2;
5060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5061 }
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 (arg1)->SetColour(*arg2);
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 resultobj = SWIG_Py_Void();
5069 return resultobj;
5070fail:
5071 return NULL;
5072}
5073
5074
5075SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj = 0;
5077 wxPen *arg1 = (wxPen *) 0 ;
5078 int arg2 ;
5079 void *argp1 = 0 ;
5080 int res1 = 0 ;
5081 int val2 ;
5082 int ecode2 = 0 ;
5083 PyObject * obj0 = 0 ;
5084 PyObject * obj1 = 0 ;
5085 char * kwnames[] = {
5086 (char *) "self",(char *) "join_style", NULL
5087 };
5088
5089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5091 if (!SWIG_IsOK(res1)) {
5092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5093 }
5094 arg1 = reinterpret_cast< wxPen * >(argp1);
5095 ecode2 = SWIG_AsVal_int(obj1, &val2);
5096 if (!SWIG_IsOK(ecode2)) {
5097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5098 }
5099 arg2 = static_cast< int >(val2);
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 (arg1)->SetJoin(arg2);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_Py_Void();
5107 return resultobj;
5108fail:
5109 return NULL;
5110}
5111
5112
5113SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 int arg2 ;
5117 void *argp1 = 0 ;
5118 int res1 = 0 ;
5119 int val2 ;
5120 int ecode2 = 0 ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 char * kwnames[] = {
5124 (char *) "self",(char *) "style", NULL
5125 };
5126
5127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5129 if (!SWIG_IsOK(res1)) {
5130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5131 }
5132 arg1 = reinterpret_cast< wxPen * >(argp1);
5133 ecode2 = SWIG_AsVal_int(obj1, &val2);
5134 if (!SWIG_IsOK(ecode2)) {
5135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5136 }
5137 arg2 = static_cast< int >(val2);
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 (arg1)->SetStyle(arg2);
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = SWIG_Py_Void();
5145 return resultobj;
5146fail:
5147 return NULL;
5148}
5149
5150
5151SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj = 0;
5153 wxPen *arg1 = (wxPen *) 0 ;
5154 int arg2 ;
5155 void *argp1 = 0 ;
5156 int res1 = 0 ;
5157 int val2 ;
5158 int ecode2 = 0 ;
5159 PyObject * obj0 = 0 ;
5160 PyObject * obj1 = 0 ;
5161 char * kwnames[] = {
5162 (char *) "self",(char *) "width", NULL
5163 };
5164
5165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5169 }
5170 arg1 = reinterpret_cast< wxPen * >(argp1);
5171 ecode2 = SWIG_AsVal_int(obj1, &val2);
5172 if (!SWIG_IsOK(ecode2)) {
5173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5174 }
5175 arg2 = static_cast< int >(val2);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 (arg1)->SetWidth(arg2);
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_Py_Void();
5183 return resultobj;
5184fail:
5185 return NULL;
5186}
5187
5188
5189SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5190 PyObject *resultobj = 0;
5191 wxPen *arg1 = (wxPen *) 0 ;
5192 int arg2 ;
5193 wxDash *arg3 = (wxDash *) 0 ;
5194 void *argp1 = 0 ;
5195 int res1 = 0 ;
5196 PyObject * obj0 = 0 ;
5197 PyObject * obj1 = 0 ;
5198 char * kwnames[] = {
5199 (char *) "self",(char *) "dashes", NULL
5200 };
5201
5202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 arg2 = PyList_Size(obj1);
5210 arg3 = (wxDash*)byte_LIST_helper(obj1);
5211 if (arg3 == NULL) SWIG_fail;
5212 }
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 (arg1)->SetDashes(arg2,arg3);
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 resultobj = SWIG_Py_Void();
5220 {
5221 if (arg3) delete [] arg3;
5222 }
5223 return resultobj;
5224fail:
5225 {
5226 if (arg3) delete [] arg3;
5227 }
5228 return NULL;
d55e5bfc
RD
5229}
5230
5231
554f62e9
RD
5232SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5233 PyObject *resultobj = 0;
5234 wxPen *arg1 = (wxPen *) 0 ;
5235 PyObject *result = 0 ;
5236 void *argp1 = 0 ;
5237 int res1 = 0 ;
5238 PyObject *swig_obj[1] ;
5239
5240 if (!args) SWIG_fail;
5241 swig_obj[0] = args;
5242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5243 if (!SWIG_IsOK(res1)) {
5244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5245 }
5246 arg1 = reinterpret_cast< wxPen * >(argp1);
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 result = (PyObject *)wxPen_GetDashes(arg1);
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 resultobj = result;
5254 return resultobj;
5255fail:
5256 return NULL;
5257}
5258
5259
5260SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj = 0;
5262 wxPen *arg1 = (wxPen *) 0 ;
5263 PyObject *arg2 = (PyObject *) 0 ;
5264 PyObject *arg3 = (PyObject *) 0 ;
5265 void *argp1 = 0 ;
5266 int res1 = 0 ;
5267 PyObject * obj0 = 0 ;
5268 PyObject * obj1 = 0 ;
5269 PyObject * obj2 = 0 ;
5270 char * kwnames[] = {
5271 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5272 };
5273
5274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5276 if (!SWIG_IsOK(res1)) {
5277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5278 }
5279 arg1 = reinterpret_cast< wxPen * >(argp1);
5280 arg2 = obj1;
5281 arg3 = obj2;
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 wxPen__SetDashes(arg1,arg2,arg3);
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 resultobj = SWIG_Py_Void();
5289 return resultobj;
5290fail:
5291 return NULL;
d55e5bfc
RD
5292}
5293
5294
554f62e9
RD
5295SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5296 PyObject *resultobj = 0;
5297 wxPen *arg1 = (wxPen *) 0 ;
5298 int result;
5299 void *argp1 = 0 ;
5300 int res1 = 0 ;
5301 PyObject *swig_obj[1] ;
5302
5303 if (!args) SWIG_fail;
5304 swig_obj[0] = args;
5305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5306 if (!SWIG_IsOK(res1)) {
5307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5308 }
5309 arg1 = reinterpret_cast< wxPen * >(argp1);
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 result = (int)((wxPen const *)arg1)->GetDashCount();
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 resultobj = SWIG_From_int(static_cast< int >(result));
5317 return resultobj;
5318fail:
5319 return NULL;
d55e5bfc
RD
5320}
5321
5322
554f62e9
RD
5323SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5324 PyObject *resultobj = 0;
5325 wxPen *arg1 = (wxPen *) 0 ;
5326 wxBitmap *result = 0 ;
5327 void *argp1 = 0 ;
5328 int res1 = 0 ;
5329 PyObject *swig_obj[1] ;
5330
5331 if (!args) SWIG_fail;
5332 swig_obj[0] = args;
5333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5334 if (!SWIG_IsOK(res1)) {
5335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5336 }
5337 arg1 = reinterpret_cast< wxPen * >(argp1);
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (wxBitmap *)(arg1)->GetStipple();
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5345 return resultobj;
5346fail:
5347 return NULL;
5348}
5349
5350
5351SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5352 PyObject *resultobj = 0;
5353 wxPen *arg1 = (wxPen *) 0 ;
5354 wxBitmap *arg2 = 0 ;
5355 void *argp1 = 0 ;
5356 int res1 = 0 ;
5357 void *argp2 = 0 ;
5358 int res2 = 0 ;
5359 PyObject * obj0 = 0 ;
5360 PyObject * obj1 = 0 ;
5361 char * kwnames[] = {
5362 (char *) "self",(char *) "stipple", NULL
5363 };
5364
5365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5367 if (!SWIG_IsOK(res1)) {
5368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5369 }
5370 arg1 = reinterpret_cast< wxPen * >(argp1);
5371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5372 if (!SWIG_IsOK(res2)) {
5373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5374 }
5375 if (!argp2) {
5376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5377 }
5378 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 (arg1)->SetStipple(*arg2);
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = SWIG_Py_Void();
5386 return resultobj;
5387fail:
5388 return NULL;
5389}
5390
5391
5392SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj = 0;
5394 wxPen *arg1 = (wxPen *) 0 ;
5395 wxPen *arg2 = (wxPen *) 0 ;
5396 bool result;
5397 void *argp1 = 0 ;
5398 int res1 = 0 ;
5399 void *argp2 = 0 ;
5400 int res2 = 0 ;
5401 PyObject * obj0 = 0 ;
5402 PyObject * obj1 = 0 ;
5403 char * kwnames[] = {
5404 (char *) "self",(char *) "other", NULL
5405 };
5406
5407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5409 if (!SWIG_IsOK(res1)) {
5410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5411 }
5412 arg1 = reinterpret_cast< wxPen * >(argp1);
5413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5414 if (!SWIG_IsOK(res2)) {
5415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5416 }
5417 arg2 = reinterpret_cast< wxPen * >(argp2);
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5426 }
5427 return resultobj;
5428fail:
5429 return NULL;
5430}
5431
5432
5433SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj = 0;
5435 wxPen *arg1 = (wxPen *) 0 ;
5436 wxPen *arg2 = (wxPen *) 0 ;
5437 bool result;
5438 void *argp1 = 0 ;
5439 int res1 = 0 ;
5440 void *argp2 = 0 ;
5441 int res2 = 0 ;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 char * kwnames[] = {
5445 (char *) "self",(char *) "other", NULL
5446 };
5447
5448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5450 if (!SWIG_IsOK(res1)) {
5451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5452 }
5453 arg1 = reinterpret_cast< wxPen * >(argp1);
5454 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5455 if (!SWIG_IsOK(res2)) {
5456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5457 }
5458 arg2 = reinterpret_cast< wxPen * >(argp2);
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 {
5466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5467 }
5468 return resultobj;
5469fail:
5470 return NULL;
d55e5bfc
RD
5471}
5472
5473
554f62e9
RD
5474SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5475 PyObject *obj;
5476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5477 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5478 return SWIG_Py_Void();
d55e5bfc
RD
5479}
5480
554f62e9
RD
5481SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5482 return SWIG_Python_InitShadowInstance(args);
5483}
d55e5bfc 5484
554f62e9
RD
5485SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj = 0;
5487 wxColour *arg1 = 0 ;
5488 int arg2 = (int) wxSOLID ;
5489 wxBrush *result = 0 ;
5490 wxColour temp1 ;
5491 int val2 ;
5492 int ecode2 = 0 ;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "colour",(char *) "style", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5500 {
5501 arg1 = &temp1;
5502 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5503 }
5504 if (obj1) {
5505 ecode2 = SWIG_AsVal_int(obj1, &val2);
5506 if (!SWIG_IsOK(ecode2)) {
5507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5508 }
5509 arg2 = static_cast< int >(val2);
5510 }
5511 {
5512 if (!wxPyCheckForApp()) SWIG_fail;
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5519 return resultobj;
5520fail:
5521 return NULL;
5522}
5523
5524
5525SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj = 0;
5527 wxBitmap *arg1 = 0 ;
5528 wxBrush *result = 0 ;
5529 void *argp1 = 0 ;
5530 int res1 = 0 ;
5531 PyObject * obj0 = 0 ;
5532 char * kwnames[] = {
5533 (char *) "stippleBitmap", NULL
5534 };
5535
5536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5538 if (!SWIG_IsOK(res1)) {
5539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5540 }
5541 if (!argp1) {
5542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5543 }
5544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5545 {
5546 if (!wxPyCheckForApp()) SWIG_fail;
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5553 return resultobj;
5554fail:
5555 return NULL;
d55e5bfc
RD
5556}
5557
5558
554f62e9
RD
5559SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5560 PyObject *resultobj = 0;
5561 wxBrush *arg1 = (wxBrush *) 0 ;
5562 void *argp1 = 0 ;
5563 int res1 = 0 ;
5564 PyObject *swig_obj[1] ;
5565
5566 if (!args) SWIG_fail;
5567 swig_obj[0] = args;
5568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5569 if (!SWIG_IsOK(res1)) {
5570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5571 }
5572 arg1 = reinterpret_cast< wxBrush * >(argp1);
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 delete arg1;
d55e5bfc 5576
554f62e9
RD
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 resultobj = SWIG_Py_Void();
5581 return resultobj;
5582fail:
5583 return NULL;
5584}
5585
5586
5587SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5588 PyObject *resultobj = 0;
5589 wxBrush *arg1 = (wxBrush *) 0 ;
5590 wxColour *arg2 = 0 ;
5591 void *argp1 = 0 ;
5592 int res1 = 0 ;
5593 wxColour temp2 ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 char * kwnames[] = {
5597 (char *) "self",(char *) "col", NULL
5598 };
5599
5600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5602 if (!SWIG_IsOK(res1)) {
5603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5604 }
5605 arg1 = reinterpret_cast< wxBrush * >(argp1);
5606 {
5607 arg2 = &temp2;
5608 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5609 }
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 (arg1)->SetColour((wxColour const &)*arg2);
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 resultobj = SWIG_Py_Void();
5617 return resultobj;
5618fail:
5619 return NULL;
5620}
5621
5622
5623SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5624 PyObject *resultobj = 0;
5625 wxBrush *arg1 = (wxBrush *) 0 ;
5626 int arg2 ;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 int val2 ;
5630 int ecode2 = 0 ;
5631 PyObject * obj0 = 0 ;
5632 PyObject * obj1 = 0 ;
5633 char * kwnames[] = {
5634 (char *) "self",(char *) "style", NULL
5635 };
5636
5637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5639 if (!SWIG_IsOK(res1)) {
5640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5641 }
5642 arg1 = reinterpret_cast< wxBrush * >(argp1);
5643 ecode2 = SWIG_AsVal_int(obj1, &val2);
5644 if (!SWIG_IsOK(ecode2)) {
5645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5646 }
5647 arg2 = static_cast< int >(val2);
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 (arg1)->SetStyle(arg2);
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
5654 resultobj = SWIG_Py_Void();
5655 return resultobj;
5656fail:
5657 return NULL;
5658}
5659
5660
5661SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5662 PyObject *resultobj = 0;
5663 wxBrush *arg1 = (wxBrush *) 0 ;
5664 wxBitmap *arg2 = 0 ;
5665 void *argp1 = 0 ;
5666 int res1 = 0 ;
5667 void *argp2 = 0 ;
5668 int res2 = 0 ;
5669 PyObject * obj0 = 0 ;
5670 PyObject * obj1 = 0 ;
5671 char * kwnames[] = {
5672 (char *) "self",(char *) "stipple", NULL
5673 };
5674
5675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5677 if (!SWIG_IsOK(res1)) {
5678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5679 }
5680 arg1 = reinterpret_cast< wxBrush * >(argp1);
5681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5682 if (!SWIG_IsOK(res2)) {
5683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5684 }
5685 if (!argp2) {
5686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5687 }
5688 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 (arg1)->SetStipple((wxBitmap const &)*arg2);
5692 wxPyEndAllowThreads(__tstate);
5693 if (PyErr_Occurred()) SWIG_fail;
5694 }
5695 resultobj = SWIG_Py_Void();
5696 return resultobj;
5697fail:
5698 return NULL;
d55e5bfc
RD
5699}
5700
5701
554f62e9
RD
5702SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 wxBrush *arg1 = (wxBrush *) 0 ;
5705 wxColour result;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject *swig_obj[1] ;
5709
5710 if (!args) SWIG_fail;
5711 swig_obj[0] = args;
5712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5715 }
5716 arg1 = reinterpret_cast< wxBrush * >(argp1);
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = ((wxBrush const *)arg1)->GetColour();
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5724 return resultobj;
5725fail:
5726 return NULL;
d55e5bfc
RD
5727}
5728
5729
554f62e9
RD
5730SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5731 PyObject *resultobj = 0;
5732 wxBrush *arg1 = (wxBrush *) 0 ;
5733 int result;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject *swig_obj[1] ;
5737
5738 if (!args) SWIG_fail;
5739 swig_obj[0] = args;
5740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5743 }
5744 arg1 = reinterpret_cast< wxBrush * >(argp1);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (int)((wxBrush const *)arg1)->GetStyle();
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_From_int(static_cast< int >(result));
5752 return resultobj;
5753fail:
5754 return NULL;
d55e5bfc
RD
5755}
5756
5757
554f62e9
RD
5758SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5759 PyObject *resultobj = 0;
5760 wxBrush *arg1 = (wxBrush *) 0 ;
5761 wxBitmap *result = 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 PyObject *swig_obj[1] ;
5765
5766 if (!args) SWIG_fail;
5767 swig_obj[0] = args;
5768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5769 if (!SWIG_IsOK(res1)) {
5770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5771 }
5772 arg1 = reinterpret_cast< wxBrush * >(argp1);
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5780 return resultobj;
5781fail:
5782 return NULL;
d55e5bfc
RD
5783}
5784
5785
554f62e9
RD
5786SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5787 PyObject *resultobj = 0;
5788 wxBrush *arg1 = (wxBrush *) 0 ;
5789 bool result;
5790 void *argp1 = 0 ;
5791 int res1 = 0 ;
5792 PyObject *swig_obj[1] ;
5793
5794 if (!args) SWIG_fail;
5795 swig_obj[0] = args;
5796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5797 if (!SWIG_IsOK(res1)) {
5798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5799 }
5800 arg1 = reinterpret_cast< wxBrush * >(argp1);
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
5803 result = (bool)((wxBrush const *)arg1)->IsHatch();
5804 wxPyEndAllowThreads(__tstate);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 }
5807 {
5808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5809 }
5810 return resultobj;
5811fail:
5812 return NULL;
f78cc896
RD
5813}
5814
5815
b39fe951 5816SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5817 PyObject *resultobj = 0;
5818 wxBrush *arg1 = (wxBrush *) 0 ;
5819 bool result;
5820 void *argp1 = 0 ;
5821 int res1 = 0 ;
5822 PyObject *swig_obj[1] ;
5823
5824 if (!args) SWIG_fail;
5825 swig_obj[0] = args;
5826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5827 if (!SWIG_IsOK(res1)) {
b39fe951 5828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
5829 }
5830 arg1 = reinterpret_cast< wxBrush * >(argp1);
5831 {
5832 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5833 result = (bool)(arg1)->IsOk();
554f62e9
RD
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 {
5838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5839 }
5840 return resultobj;
5841fail:
5842 return NULL;
d55e5bfc
RD
5843}
5844
5845
554f62e9
RD
5846SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5847 PyObject *obj;
5848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5849 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5850 return SWIG_Py_Void();
d55e5bfc
RD
5851}
5852
554f62e9
RD
5853SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5854 return SWIG_Python_InitShadowInstance(args);
5855}
d55e5bfc 5856
554f62e9
RD
5857SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5858 PyObject *resultobj = 0;
5859 wxString *arg1 = 0 ;
5860 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5861 wxBitmap *result = 0 ;
5862 bool temp1 = false ;
5863 int val2 ;
5864 int ecode2 = 0 ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "name",(char *) "type", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5872 {
5873 arg1 = wxString_in_helper(obj0);
5874 if (arg1 == NULL) SWIG_fail;
5875 temp1 = true;
5876 }
5877 if (obj1) {
5878 ecode2 = SWIG_AsVal_int(obj1, &val2);
5879 if (!SWIG_IsOK(ecode2)) {
5880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5881 }
5882 arg2 = static_cast< wxBitmapType >(val2);
5883 }
5884 {
5885 if (!wxPyCheckForApp()) SWIG_fail;
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5892 {
5893 if (temp1)
5894 delete arg1;
5895 }
5896 return resultobj;
5897fail:
5898 {
5899 if (temp1)
5900 delete arg1;
5901 }
5902 return NULL;
d55e5bfc
RD
5903}
5904
5905
554f62e9
RD
5906SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5907 PyObject *resultobj = 0;
5908 wxBitmap *arg1 = (wxBitmap *) 0 ;
5909 void *argp1 = 0 ;
5910 int res1 = 0 ;
5911 PyObject *swig_obj[1] ;
5912
5913 if (!args) SWIG_fail;
5914 swig_obj[0] = args;
5915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5916 if (!SWIG_IsOK(res1)) {
5917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5918 }
5919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5920 {
554f62e9 5921 delete arg1;
c24da6d6 5922
554f62e9
RD
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_Py_Void();
5926 return resultobj;
5927fail:
5928 return NULL;
5929}
5930
5931
5932SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5933 PyObject *resultobj = 0;
5934 int arg1 ;
5935 int arg2 ;
5936 int arg3 = (int) -1 ;
5937 wxBitmap *result = 0 ;
5938 int val1 ;
5939 int ecode1 = 0 ;
5940 int val2 ;
5941 int ecode2 = 0 ;
5942 int val3 ;
5943 int ecode3 = 0 ;
5944 PyObject * obj0 = 0 ;
5945 PyObject * obj1 = 0 ;
5946 PyObject * obj2 = 0 ;
5947 char * kwnames[] = {
5948 (char *) "width",(char *) "height",(char *) "depth", NULL
5949 };
5950
5951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5952 ecode1 = SWIG_AsVal_int(obj0, &val1);
5953 if (!SWIG_IsOK(ecode1)) {
5954 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5955 }
5956 arg1 = static_cast< int >(val1);
5957 ecode2 = SWIG_AsVal_int(obj1, &val2);
5958 if (!SWIG_IsOK(ecode2)) {
5959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5960 }
5961 arg2 = static_cast< int >(val2);
5962 if (obj2) {
5963 ecode3 = SWIG_AsVal_int(obj2, &val3);
5964 if (!SWIG_IsOK(ecode3)) {
5965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5966 }
5967 arg3 = static_cast< int >(val3);
5968 }
5969 {
5970 if (!wxPyCheckForApp()) SWIG_fail;
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5977 return resultobj;
5978fail:
5979 return NULL;
5980}
5981
5982
5983SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5984 PyObject *resultobj = 0;
5985 wxIcon *arg1 = 0 ;
5986 wxBitmap *result = 0 ;
5987 void *argp1 = 0 ;
5988 int res1 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 char * kwnames[] = {
5991 (char *) "icon", NULL
5992 };
5993
5994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5995 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5996 if (!SWIG_IsOK(res1)) {
5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5998 }
5999 if (!argp1) {
6000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6001 }
6002 arg1 = reinterpret_cast< wxIcon * >(argp1);
6003 {
6004 if (!wxPyCheckForApp()) SWIG_fail;
6005 PyThreadState* __tstate = wxPyBeginAllowThreads();
6006 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6007 wxPyEndAllowThreads(__tstate);
6008 if (PyErr_Occurred()) SWIG_fail;
6009 }
6010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6011 return resultobj;
6012fail:
6013 return NULL;
6014}
6015
6016
6017SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6018 PyObject *resultobj = 0;
6019 wxImage *arg1 = 0 ;
6020 int arg2 = (int) -1 ;
6021 wxBitmap *result = 0 ;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 int val2 ;
6025 int ecode2 = 0 ;
6026 PyObject * obj0 = 0 ;
6027 PyObject * obj1 = 0 ;
6028 char * kwnames[] = {
6029 (char *) "image",(char *) "depth", NULL
6030 };
6031
6032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6033 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6036 }
6037 if (!argp1) {
6038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6039 }
6040 arg1 = reinterpret_cast< wxImage * >(argp1);
6041 if (obj1) {
6042 ecode2 = SWIG_AsVal_int(obj1, &val2);
6043 if (!SWIG_IsOK(ecode2)) {
6044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6045 }
6046 arg2 = static_cast< int >(val2);
6047 }
6048 {
6049 if (!wxPyCheckForApp()) SWIG_fail;
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6056 return resultobj;
6057fail:
6058 return NULL;
c24da6d6
RD
6059}
6060
6061
554f62e9
RD
6062SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj = 0;
6064 PyObject *arg1 = (PyObject *) 0 ;
6065 wxBitmap *result = 0 ;
6066 PyObject * obj0 = 0 ;
6067 char * kwnames[] = {
6068 (char *) "listOfStrings", NULL
6069 };
6070
6071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6072 arg1 = obj0;
6073 {
6074 if (!wxPyCheckForApp()) SWIG_fail;
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (wxBitmap *)new_wxBitmap(arg1);
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6081 return resultobj;
6082fail:
6083 return NULL;
6084}
6085
6086
6087SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 PyObject *arg1 = (PyObject *) 0 ;
6090 int arg2 ;
6091 int arg3 ;
6092 int arg4 = (int) 1 ;
6093 wxBitmap *result = 0 ;
6094 int val2 ;
6095 int ecode2 = 0 ;
6096 int val3 ;
6097 int ecode3 = 0 ;
6098 int val4 ;
6099 int ecode4 = 0 ;
6100 PyObject * obj0 = 0 ;
6101 PyObject * obj1 = 0 ;
6102 PyObject * obj2 = 0 ;
6103 PyObject * obj3 = 0 ;
6104 char * kwnames[] = {
6105 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6106 };
6107
6108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6109 arg1 = obj0;
6110 ecode2 = SWIG_AsVal_int(obj1, &val2);
6111 if (!SWIG_IsOK(ecode2)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6113 }
6114 arg2 = static_cast< int >(val2);
6115 ecode3 = SWIG_AsVal_int(obj2, &val3);
6116 if (!SWIG_IsOK(ecode3)) {
6117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6118 }
6119 arg3 = static_cast< int >(val3);
6120 if (obj3) {
6121 ecode4 = SWIG_AsVal_int(obj3, &val4);
6122 if (!SWIG_IsOK(ecode4)) {
6123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6124 }
6125 arg4 = static_cast< int >(val4);
6126 }
6127 {
6128 if (!wxPyCheckForApp()) SWIG_fail;
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6135 return resultobj;
6136fail:
6137 return NULL;
d55e5bfc
RD
6138}
6139
6140
554f62e9
RD
6141SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6142 PyObject *resultobj = 0;
6143 wxBitmap *arg1 = (wxBitmap *) 0 ;
6144 long result;
6145 void *argp1 = 0 ;
6146 int res1 = 0 ;
6147 PyObject *swig_obj[1] ;
6148
6149 if (!args) SWIG_fail;
6150 swig_obj[0] = args;
6151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6154 }
6155 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6156 {
554f62e9 6157 result = (long)(arg1)->GetHandle();
554f62e9
RD
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 resultobj = SWIG_From_long(static_cast< long >(result));
6161 return resultobj;
6162fail:
6163 return NULL;
6164}
6165
6166
6167SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj = 0;
6169 wxBitmap *arg1 = (wxBitmap *) 0 ;
6170 long arg2 ;
6171 void *argp1 = 0 ;
6172 int res1 = 0 ;
6173 long val2 ;
6174 int ecode2 = 0 ;
6175 PyObject * obj0 = 0 ;
6176 PyObject * obj1 = 0 ;
6177 char * kwnames[] = {
6178 (char *) "self",(char *) "handle", NULL
6179 };
6180
6181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6185 }
6186 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6187 ecode2 = SWIG_AsVal_long(obj1, &val2);
6188 if (!SWIG_IsOK(ecode2)) {
6189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6190 }
6191 arg2 = static_cast< long >(val2);
6192 {
554f62e9 6193 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 resultobj = SWIG_Py_Void();
6197 return resultobj;
6198fail:
6199 return NULL;
d55e5bfc
RD
6200}
6201
6202
b39fe951 6203SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6204 PyObject *resultobj = 0;
6205 wxBitmap *arg1 = (wxBitmap *) 0 ;
6206 bool result;
6207 void *argp1 = 0 ;
6208 int res1 = 0 ;
6209 PyObject *swig_obj[1] ;
6210
6211 if (!args) SWIG_fail;
6212 swig_obj[0] = args;
6213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6214 if (!SWIG_IsOK(res1)) {
b39fe951 6215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6216 }
6217 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6218 {
b39fe951 6219 result = (bool)(arg1)->IsOk();
554f62e9
RD
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 {
6223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6224 }
6225 return resultobj;
6226fail:
6227 return NULL;
d55e5bfc
RD
6228}
6229
6230
554f62e9
RD
6231SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6232 PyObject *resultobj = 0;
6233 wxBitmap *arg1 = (wxBitmap *) 0 ;
6234 int result;
6235 void *argp1 = 0 ;
6236 int res1 = 0 ;
6237 PyObject *swig_obj[1] ;
6238
6239 if (!args) SWIG_fail;
6240 swig_obj[0] = args;
6241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6242 if (!SWIG_IsOK(res1)) {
6243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6244 }
6245 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6246 {
554f62e9 6247 result = (int)(arg1)->GetWidth();
554f62e9
RD
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 resultobj = SWIG_From_int(static_cast< int >(result));
6251 return resultobj;
6252fail:
6253 return NULL;
d55e5bfc
RD
6254}
6255
6256
554f62e9
RD
6257SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6258 PyObject *resultobj = 0;
6259 wxBitmap *arg1 = (wxBitmap *) 0 ;
6260 int result;
6261 void *argp1 = 0 ;
6262 int res1 = 0 ;
6263 PyObject *swig_obj[1] ;
6264
6265 if (!args) SWIG_fail;
6266 swig_obj[0] = args;
6267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6268 if (!SWIG_IsOK(res1)) {
6269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6270 }
6271 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6272 {
554f62e9 6273 result = (int)(arg1)->GetHeight();
554f62e9
RD
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 resultobj = SWIG_From_int(static_cast< int >(result));
6277 return resultobj;
6278fail:
6279 return NULL;
c24da6d6
RD
6280}
6281
6282
554f62e9
RD
6283SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6284 PyObject *resultobj = 0;
6285 wxBitmap *arg1 = (wxBitmap *) 0 ;
6286 int result;
6287 void *argp1 = 0 ;
6288 int res1 = 0 ;
6289 PyObject *swig_obj[1] ;
6290
6291 if (!args) SWIG_fail;
6292 swig_obj[0] = args;
6293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6294 if (!SWIG_IsOK(res1)) {
6295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6296 }
6297 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6298 {
554f62e9 6299 result = (int)(arg1)->GetDepth();
554f62e9
RD
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_From_int(static_cast< int >(result));
6303 return resultobj;
6304fail:
6305 return NULL;
d55e5bfc
RD
6306}
6307
6308
554f62e9
RD
6309SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6310 PyObject *resultobj = 0;
6311 wxBitmap *arg1 = (wxBitmap *) 0 ;
6312 wxSize result;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 PyObject *swig_obj[1] ;
6316
6317 if (!args) SWIG_fail;
6318 swig_obj[0] = args;
6319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6320 if (!SWIG_IsOK(res1)) {
6321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6322 }
6323 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6324 {
554f62e9 6325 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6329 return resultobj;
6330fail:
6331 return NULL;
d55e5bfc
RD
6332}
6333
6334
554f62e9
RD
6335SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6336 PyObject *resultobj = 0;
6337 wxBitmap *arg1 = (wxBitmap *) 0 ;
6338 SwigValueWrapper<wxImage > result;
6339 void *argp1 = 0 ;
6340 int res1 = 0 ;
6341 PyObject *swig_obj[1] ;
6342
6343 if (!args) SWIG_fail;
6344 swig_obj[0] = args;
6345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6346 if (!SWIG_IsOK(res1)) {
6347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6348 }
6349 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6350 {
554f62e9 6351 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6355 return resultobj;
6356fail:
6357 return NULL;
d55e5bfc
RD
6358}
6359
6360
554f62e9
RD
6361SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6362 PyObject *resultobj = 0;
6363 wxBitmap *arg1 = (wxBitmap *) 0 ;
6364 wxMask *result = 0 ;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 PyObject *swig_obj[1] ;
6368
6369 if (!args) SWIG_fail;
6370 swig_obj[0] = args;
6371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6372 if (!SWIG_IsOK(res1)) {
6373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6374 }
6375 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6376 {
554f62e9 6377 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6381 return resultobj;
6382fail:
6383 return NULL;
6384}
6385
6386
6387SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj = 0;
6389 wxBitmap *arg1 = (wxBitmap *) 0 ;
6390 wxMask *arg2 = (wxMask *) 0 ;
6391 void *argp1 = 0 ;
6392 int res1 = 0 ;
6393 int res2 = 0 ;
6394 PyObject * obj0 = 0 ;
6395 PyObject * obj1 = 0 ;
6396 char * kwnames[] = {
6397 (char *) "self",(char *) "mask", NULL
6398 };
6399
6400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6402 if (!SWIG_IsOK(res1)) {
6403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6404 }
6405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6406 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6407 if (!SWIG_IsOK(res2)) {
6408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6409 }
6410 {
554f62e9 6411 (arg1)->SetMask(arg2);
554f62e9
RD
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 resultobj = SWIG_Py_Void();
6415 return resultobj;
6416fail:
6417 return NULL;
6418}
6419
6420
6421SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj = 0;
6423 wxBitmap *arg1 = (wxBitmap *) 0 ;
6424 wxColour *arg2 = 0 ;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 wxColour temp2 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char * kwnames[] = {
6431 (char *) "self",(char *) "colour", NULL
6432 };
6433
6434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 {
6441 arg2 = &temp2;
6442 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6443 }
6444 {
554f62e9 6445 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 resultobj = SWIG_Py_Void();
6449 return resultobj;
6450fail:
6451 return NULL;
6452}
6453
6454
6455SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 wxRect *arg2 = 0 ;
6459 SwigValueWrapper<wxBitmap > result;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 wxRect temp2 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char * kwnames[] = {
6466 (char *) "self",(char *) "rect", NULL
6467 };
6468
6469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6471 if (!SWIG_IsOK(res1)) {
6472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6473 }
6474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6475 {
6476 arg2 = &temp2;
6477 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6478 }
6479 {
554f62e9 6480 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6484 return resultobj;
6485fail:
6486 return NULL;
6487}
6488
6489
6490SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj = 0;
6492 wxBitmap *arg1 = (wxBitmap *) 0 ;
6493 wxString *arg2 = 0 ;
6494 wxBitmapType arg3 ;
6495 wxPalette *arg4 = (wxPalette *) NULL ;
6496 bool result;
6497 void *argp1 = 0 ;
6498 int res1 = 0 ;
6499 bool temp2 = false ;
6500 int val3 ;
6501 int ecode3 = 0 ;
6502 void *argp4 = 0 ;
6503 int res4 = 0 ;
6504 PyObject * obj0 = 0 ;
6505 PyObject * obj1 = 0 ;
6506 PyObject * obj2 = 0 ;
6507 PyObject * obj3 = 0 ;
6508 char * kwnames[] = {
6509 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6510 };
6511
6512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6516 }
6517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6518 {
6519 arg2 = wxString_in_helper(obj1);
6520 if (arg2 == NULL) SWIG_fail;
6521 temp2 = true;
6522 }
6523 ecode3 = SWIG_AsVal_int(obj2, &val3);
6524 if (!SWIG_IsOK(ecode3)) {
6525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6526 }
6527 arg3 = static_cast< wxBitmapType >(val3);
6528 if (obj3) {
6529 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6530 if (!SWIG_IsOK(res4)) {
6531 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6532 }
554f62e9
RD
6533 arg4 = reinterpret_cast< wxPalette * >(argp4);
6534 }
6535 {
554f62e9 6536 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 {
6540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6541 }
6542 {
6543 if (temp2)
6544 delete arg2;
6545 }
6546 return resultobj;
6547fail:
6548 {
6549 if (temp2)
6550 delete arg2;
6551 }
6552 return NULL;
6553}
6554
6555
6556SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj = 0;
6558 wxBitmap *arg1 = (wxBitmap *) 0 ;
6559 wxString *arg2 = 0 ;
6560 wxBitmapType arg3 ;
6561 bool result;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 bool temp2 = false ;
6565 int val3 ;
6566 int ecode3 = 0 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 PyObject * obj2 = 0 ;
6570 char * kwnames[] = {
6571 (char *) "self",(char *) "name",(char *) "type", NULL
6572 };
6573
6574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6578 }
6579 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6580 {
6581 arg2 = wxString_in_helper(obj1);
6582 if (arg2 == NULL) SWIG_fail;
6583 temp2 = true;
6584 }
6585 ecode3 = SWIG_AsVal_int(obj2, &val3);
6586 if (!SWIG_IsOK(ecode3)) {
6587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6588 }
6589 arg3 = static_cast< wxBitmapType >(val3);
6590 {
554f62e9 6591 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 {
6595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6596 }
6597 {
6598 if (temp2)
6599 delete arg2;
6600 }
6601 return resultobj;
6602fail:
6603 {
6604 if (temp2)
6605 delete arg2;
6606 }
6607 return NULL;
d04418a7
RD
6608}
6609
6610
554f62e9
RD
6611SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxBitmap *arg1 = (wxBitmap *) 0 ;
6614 wxPalette *result = 0 ;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6626 {
554f62e9 6627 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6631 return resultobj;
6632fail:
6633 return NULL;
6634}
6635
6636
6637SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj = 0;
6639 wxBitmap *arg1 = (wxBitmap *) 0 ;
6640 wxPalette *arg2 = 0 ;
6641 void *argp1 = 0 ;
6642 int res1 = 0 ;
6643 void *argp2 = 0 ;
6644 int res2 = 0 ;
6645 PyObject * obj0 = 0 ;
6646 PyObject * obj1 = 0 ;
6647 char * kwnames[] = {
6648 (char *) "self",(char *) "palette", NULL
6649 };
6650
6651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",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_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6655 }
6656 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6658 if (!SWIG_IsOK(res2)) {
6659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6660 }
6661 if (!argp2) {
6662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6663 }
6664 arg2 = reinterpret_cast< wxPalette * >(argp2);
6665 {
554f62e9 6666 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 resultobj = SWIG_Py_Void();
6670 return resultobj;
6671fail:
6672 return NULL;
6673}
6674
6675
6676SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj = 0;
6678 wxBitmap *arg1 = (wxBitmap *) 0 ;
6679 wxIcon *arg2 = 0 ;
6680 bool result;
6681 void *argp1 = 0 ;
6682 int res1 = 0 ;
6683 void *argp2 = 0 ;
6684 int res2 = 0 ;
6685 PyObject * obj0 = 0 ;
6686 PyObject * obj1 = 0 ;
6687 char * kwnames[] = {
6688 (char *) "self",(char *) "icon", NULL
6689 };
6690
6691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6693 if (!SWIG_IsOK(res1)) {
6694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6695 }
6696 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6698 if (!SWIG_IsOK(res2)) {
6699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6700 }
6701 if (!argp2) {
6702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6703 }
6704 arg2 = reinterpret_cast< wxIcon * >(argp2);
6705 {
554f62e9 6706 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6711 }
6712 return resultobj;
6713fail:
6714 return NULL;
6715}
6716
6717
6718SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj = 0;
6720 wxBitmap *arg1 = (wxBitmap *) 0 ;
6721 int arg2 ;
6722 void *argp1 = 0 ;
6723 int res1 = 0 ;
6724 int val2 ;
6725 int ecode2 = 0 ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char * kwnames[] = {
6729 (char *) "self",(char *) "height", NULL
6730 };
6731
6732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6734 if (!SWIG_IsOK(res1)) {
6735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6736 }
6737 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6738 ecode2 = SWIG_AsVal_int(obj1, &val2);
6739 if (!SWIG_IsOK(ecode2)) {
6740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6741 }
6742 arg2 = static_cast< int >(val2);
6743 {
554f62e9 6744 (arg1)->SetHeight(arg2);
554f62e9
RD
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 resultobj = SWIG_Py_Void();
6748 return resultobj;
6749fail:
6750 return NULL;
6751}
6752
6753
6754SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6755 PyObject *resultobj = 0;
6756 wxBitmap *arg1 = (wxBitmap *) 0 ;
6757 int arg2 ;
6758 void *argp1 = 0 ;
6759 int res1 = 0 ;
6760 int val2 ;
6761 int ecode2 = 0 ;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 char * kwnames[] = {
6765 (char *) "self",(char *) "width", NULL
6766 };
6767
6768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6770 if (!SWIG_IsOK(res1)) {
6771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6772 }
6773 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6774 ecode2 = SWIG_AsVal_int(obj1, &val2);
6775 if (!SWIG_IsOK(ecode2)) {
6776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6777 }
6778 arg2 = static_cast< int >(val2);
6779 {
554f62e9 6780 (arg1)->SetWidth(arg2);
554f62e9
RD
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 resultobj = SWIG_Py_Void();
6784 return resultobj;
6785fail:
6786 return NULL;
6787}
6788
6789
6790SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6791 PyObject *resultobj = 0;
6792 wxBitmap *arg1 = (wxBitmap *) 0 ;
6793 int arg2 ;
6794 void *argp1 = 0 ;
6795 int res1 = 0 ;
6796 int val2 ;
6797 int ecode2 = 0 ;
6798 PyObject * obj0 = 0 ;
6799 PyObject * obj1 = 0 ;
6800 char * kwnames[] = {
6801 (char *) "self",(char *) "depth", NULL
6802 };
6803
6804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6806 if (!SWIG_IsOK(res1)) {
6807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6808 }
6809 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6810 ecode2 = SWIG_AsVal_int(obj1, &val2);
6811 if (!SWIG_IsOK(ecode2)) {
6812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6813 }
6814 arg2 = static_cast< int >(val2);
6815 {
554f62e9 6816 (arg1)->SetDepth(arg2);
554f62e9
RD
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 resultobj = SWIG_Py_Void();
6820 return resultobj;
6821fail:
6822 return NULL;
6823}
6824
6825
6826SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6827 PyObject *resultobj = 0;
6828 wxBitmap *arg1 = (wxBitmap *) 0 ;
6829 wxSize *arg2 = 0 ;
6830 void *argp1 = 0 ;
6831 int res1 = 0 ;
6832 wxSize temp2 ;
6833 PyObject * obj0 = 0 ;
6834 PyObject * obj1 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "self",(char *) "size", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6843 }
6844 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6845 {
6846 arg2 = &temp2;
6847 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6848 }
6849 {
554f62e9 6850 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_Py_Void();
6854 return resultobj;
6855fail:
6856 return NULL;
6857}
6858
6859
6860SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj = 0;
6862 wxBitmap *arg1 = (wxBitmap *) 0 ;
6863 wxCursor *arg2 = 0 ;
6864 bool result;
6865 void *argp1 = 0 ;
6866 int res1 = 0 ;
6867 void *argp2 = 0 ;
6868 int res2 = 0 ;
6869 PyObject * obj0 = 0 ;
6870 PyObject * obj1 = 0 ;
6871 char * kwnames[] = {
6872 (char *) "self",(char *) "cursor", NULL
6873 };
6874
6875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6877 if (!SWIG_IsOK(res1)) {
6878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6879 }
6880 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6882 if (!SWIG_IsOK(res2)) {
6883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6884 }
6885 if (!argp2) {
6886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6887 }
6888 arg2 = reinterpret_cast< wxCursor * >(argp2);
6889 {
554f62e9 6890 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 {
6894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6895 }
6896 return resultobj;
6897fail:
6898 return NULL;
6899}
6900
6901
6902SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6903 PyObject *resultobj = 0;
6904 wxBitmap *arg1 = (wxBitmap *) 0 ;
6905 wxBitmap *arg2 = (wxBitmap *) 0 ;
6906 bool result;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 void *argp2 = 0 ;
6910 int res2 = 0 ;
6911 PyObject * obj0 = 0 ;
6912 PyObject * obj1 = 0 ;
6913 char * kwnames[] = {
6914 (char *) "self",(char *) "other", NULL
6915 };
6916
6917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6919 if (!SWIG_IsOK(res1)) {
6920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6921 }
6922 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6924 if (!SWIG_IsOK(res2)) {
6925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6926 }
6927 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6928 {
554f62e9 6929 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 {
fc46b7f3
RD
6933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6934 }
6935 return resultobj;
6936fail:
6937 return NULL;
6938}
6939
6940
6941SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj = 0;
6943 wxBitmap *arg1 = (wxBitmap *) 0 ;
6944 wxBitmap *arg2 = (wxBitmap *) 0 ;
6945 bool result;
6946 void *argp1 = 0 ;
6947 int res1 = 0 ;
6948 void *argp2 = 0 ;
6949 int res2 = 0 ;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 char * kwnames[] = {
6953 (char *) "self",(char *) "other", NULL
6954 };
6955
6956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6958 if (!SWIG_IsOK(res1)) {
6959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6960 }
6961 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6963 if (!SWIG_IsOK(res2)) {
6964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6965 }
6966 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6967 {
6968 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6973 }
6974 return resultobj;
6975fail:
6976 return NULL;
6977}
6978
6979
6980SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6981 PyObject *obj;
6982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6983 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6984 return SWIG_Py_Void();
6985}
6986
6987SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6988 return SWIG_Python_InitShadowInstance(args);
6989}
6990
6991SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj = 0;
6993 int arg1 ;
6994 int arg2 ;
6995 buffer arg3 ;
6996 int arg4 ;
6997 buffer arg5 ;
6998 int arg6 ;
6999 wxBitmap *result = 0 ;
7000 int val1 ;
7001 int ecode1 = 0 ;
7002 int val2 ;
7003 int ecode2 = 0 ;
e46e7e0d
RD
7004 Py_ssize_t temp3 ;
7005 Py_ssize_t temp5 ;
fc46b7f3
RD
7006 PyObject * obj0 = 0 ;
7007 PyObject * obj1 = 0 ;
7008 PyObject * obj2 = 0 ;
7009 PyObject * obj3 = 0 ;
7010 char * kwnames[] = {
7011 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7012 };
7013
7014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7015 ecode1 = SWIG_AsVal_int(obj0, &val1);
7016 if (!SWIG_IsOK(ecode1)) {
7017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7018 }
7019 arg1 = static_cast< int >(val1);
7020 ecode2 = SWIG_AsVal_int(obj1, &val2);
7021 if (!SWIG_IsOK(ecode2)) {
7022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7023 }
7024 arg2 = static_cast< int >(val2);
7025 {
e46e7e0d
RD
7026 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7027 arg4 = (int)temp3;
fc46b7f3
RD
7028 }
7029 {
7030 if (obj3 != Py_None) {
e46e7e0d
RD
7031 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7032 arg6 = (int)temp5;
fc46b7f3
RD
7033 }
7034 }
7035 {
7036 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7040 return resultobj;
7041fail:
7042 return NULL;
7043}
7044
7045
7046SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj = 0;
7048 int arg1 ;
7049 int arg2 ;
7050 buffer arg3 ;
7051 int arg4 ;
7052 wxBitmap *result = 0 ;
7053 int val1 ;
7054 int ecode1 = 0 ;
7055 int val2 ;
7056 int ecode2 = 0 ;
e46e7e0d 7057 Py_ssize_t temp3 ;
fc46b7f3
RD
7058 PyObject * obj0 = 0 ;
7059 PyObject * obj1 = 0 ;
7060 PyObject * obj2 = 0 ;
7061 char * kwnames[] = {
7062 (char *) "width",(char *) "height",(char *) "data", NULL
7063 };
7064
7065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7066 ecode1 = SWIG_AsVal_int(obj0, &val1);
7067 if (!SWIG_IsOK(ecode1)) {
7068 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7069 }
7070 arg1 = static_cast< int >(val1);
7071 ecode2 = SWIG_AsVal_int(obj1, &val2);
7072 if (!SWIG_IsOK(ecode2)) {
7073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7074 }
7075 arg2 = static_cast< int >(val2);
7076 {
e46e7e0d
RD
7077 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7078 arg4 = (int)temp3;
fc46b7f3
RD
7079 }
7080 {
7081 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7082 if (PyErr_Occurred()) SWIG_fail;
7083 }
7084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7085 return resultobj;
7086fail:
7087 return NULL;
7088}
7089
7090
7091SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7092 PyObject *resultobj = 0;
7093 int arg1 ;
7094 int arg2 ;
7095 buffer arg3 ;
7096 int arg4 ;
7097 wxBitmap *result = 0 ;
7098 int val1 ;
7099 int ecode1 = 0 ;
7100 int val2 ;
7101 int ecode2 = 0 ;
e46e7e0d 7102 Py_ssize_t temp3 ;
fc46b7f3
RD
7103 PyObject * obj0 = 0 ;
7104 PyObject * obj1 = 0 ;
7105 PyObject * obj2 = 0 ;
7106 char * kwnames[] = {
7107 (char *) "width",(char *) "height",(char *) "data", NULL
7108 };
7109
7110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7111 ecode1 = SWIG_AsVal_int(obj0, &val1);
7112 if (!SWIG_IsOK(ecode1)) {
7113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7114 }
7115 arg1 = static_cast< int >(val1);
7116 ecode2 = SWIG_AsVal_int(obj1, &val2);
7117 if (!SWIG_IsOK(ecode2)) {
7118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7119 }
7120 arg2 = static_cast< int >(val2);
7121 {
e46e7e0d
RD
7122 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7123 arg4 = (int)temp3;
fc46b7f3
RD
7124 }
7125 {
7126 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7130 return resultobj;
7131fail:
7132 return NULL;
7133}
7134
7135
7136SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7137 PyObject *resultobj = 0;
7138 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7139 wxPoint result;
7140 void *argp1 = 0 ;
7141 int res1 = 0 ;
7142 PyObject *swig_obj[1] ;
7143
7144 if (!args) SWIG_fail;
7145 swig_obj[0] = args;
7146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7147 if (!SWIG_IsOK(res1)) {
7148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7149 }
7150 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7151 {
7152 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7156 return resultobj;
7157fail:
7158 return NULL;
7159}
7160
7161
7162SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7163 PyObject *resultobj = 0;
7164 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7165 int result;
7166 void *argp1 = 0 ;
7167 int res1 = 0 ;
7168 PyObject *swig_obj[1] ;
7169
7170 if (!args) SWIG_fail;
7171 swig_obj[0] = args;
7172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7173 if (!SWIG_IsOK(res1)) {
7174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7175 }
7176 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7177 {
7178 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 resultobj = SWIG_From_int(static_cast< int >(result));
7182 return resultobj;
7183fail:
7184 return NULL;
7185}
7186
7187
7188SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7189 PyObject *resultobj = 0;
7190 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7191 int result;
7192 void *argp1 = 0 ;
7193 int res1 = 0 ;
7194 PyObject *swig_obj[1] ;
7195
7196 if (!args) SWIG_fail;
7197 swig_obj[0] = args;
7198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7199 if (!SWIG_IsOK(res1)) {
7200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7201 }
7202 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7203 {
7204 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7205 if (PyErr_Occurred()) SWIG_fail;
7206 }
7207 resultobj = SWIG_From_int(static_cast< int >(result));
7208 return resultobj;
7209fail:
7210 return NULL;
7211}
7212
7213
7214SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7215 PyObject *resultobj = 0;
7216 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7217 wxSize result;
7218 void *argp1 = 0 ;
7219 int res1 = 0 ;
7220 PyObject *swig_obj[1] ;
7221
7222 if (!args) SWIG_fail;
7223 swig_obj[0] = args;
7224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7225 if (!SWIG_IsOK(res1)) {
7226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7227 }
7228 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7229 {
7230 result = ((wxPixelDataBase const *)arg1)->GetSize();
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7234 return resultobj;
7235fail:
7236 return NULL;
7237}
7238
7239
7240SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7241 PyObject *resultobj = 0;
7242 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7243 int result;
7244 void *argp1 = 0 ;
7245 int res1 = 0 ;
7246 PyObject *swig_obj[1] ;
7247
7248 if (!args) SWIG_fail;
7249 swig_obj[0] = args;
7250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7251 if (!SWIG_IsOK(res1)) {
7252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7253 }
7254 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7255 {
7256 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 resultobj = SWIG_From_int(static_cast< int >(result));
7260 return resultobj;
7261fail:
7262 return NULL;
7263}
7264
7265
7266SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7267 PyObject *obj;
7268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7269 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7270 return SWIG_Py_Void();
7271}
7272
7273SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7274 PyObject *resultobj = 0;
7275 wxBitmap *arg1 = 0 ;
7276 wxNativePixelData *result = 0 ;
7277 void *argp1 = 0 ;
7278 int res1 = 0 ;
7279
7280 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7282 if (!SWIG_IsOK(res1)) {
7283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7284 }
7285 if (!argp1) {
7286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7287 }
7288 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7289 {
7290 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7294 return resultobj;
7295fail:
7296 return NULL;
7297}
7298
7299
7300SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7301 PyObject *resultobj = 0;
7302 wxBitmap *arg1 = 0 ;
7303 wxRect *arg2 = 0 ;
7304 wxNativePixelData *result = 0 ;
7305 void *argp1 = 0 ;
7306 int res1 = 0 ;
7307 wxRect temp2 ;
7308
7309 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7311 if (!SWIG_IsOK(res1)) {
7312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7313 }
7314 if (!argp1) {
7315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7316 }
7317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7318 {
7319 arg2 = &temp2;
7320 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7321 }
7322 {
7323 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7327 return resultobj;
7328fail:
7329 return NULL;
7330}
7331
7332
7333SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7334 PyObject *resultobj = 0;
7335 wxBitmap *arg1 = 0 ;
7336 wxPoint *arg2 = 0 ;
7337 wxSize *arg3 = 0 ;
7338 wxNativePixelData *result = 0 ;
7339 void *argp1 = 0 ;
7340 int res1 = 0 ;
7341 wxPoint temp2 ;
7342 wxSize temp3 ;
7343
7344 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7346 if (!SWIG_IsOK(res1)) {
7347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7348 }
7349 if (!argp1) {
7350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7351 }
7352 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7353 {
7354 arg2 = &temp2;
7355 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7356 }
7357 {
7358 arg3 = &temp3;
7359 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7360 }
7361 {
7362 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7366 return resultobj;
7367fail:
7368 return NULL;
7369}
7370
7371
7372SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7373 int argc;
7374 PyObject *argv[4];
7375
7376 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7377 --argc;
7378 if (argc == 1) {
7379 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7380 }
7381 if (argc == 2) {
7382 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7383 }
7384 if (argc == 3) {
7385 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7386 }
7387
7388fail:
7389 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7390 return NULL;
7391}
7392
7393
7394SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 PyObject *resultobj = 0;
7396 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7397 void *argp1 = 0 ;
7398 int res1 = 0 ;
7399 PyObject *swig_obj[1] ;
7400
7401 if (!args) SWIG_fail;
7402 swig_obj[0] = args;
7403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7404 if (!SWIG_IsOK(res1)) {
7405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7406 }
7407 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7408 {
7409 delete arg1;
7410
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_Py_Void();
7414 return resultobj;
7415fail:
7416 return NULL;
7417}
7418
7419
7420SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7421 PyObject *resultobj = 0;
7422 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7423 wxNativePixelData_Accessor 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_wxNativePixelData, 0 | 0 );
7431 if (!SWIG_IsOK(res1)) {
7432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7433 }
7434 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7435 {
7436 result = ((wxNativePixelData const *)arg1)->GetPixels();
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7440 return resultobj;
7441fail:
7442 return NULL;
7443}
7444
7445
7446SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7447 PyObject *resultobj = 0;
7448 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 PyObject *swig_obj[1] ;
7452
7453 if (!args) SWIG_fail;
7454 swig_obj[0] = args;
7455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7458 }
7459 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7460 {
7461 (arg1)->UseAlpha();
7462 if (PyErr_Occurred()) SWIG_fail;
7463 }
7464 resultobj = SWIG_Py_Void();
7465 return resultobj;
7466fail:
7467 return NULL;
7468}
7469
7470
7471SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7472 PyObject *resultobj = 0;
7473 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7474 bool result;
7475 void *argp1 = 0 ;
7476 int res1 = 0 ;
7477 PyObject *swig_obj[1] ;
7478
7479 if (!args) SWIG_fail;
7480 swig_obj[0] = args;
7481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7482 if (!SWIG_IsOK(res1)) {
7483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7484 }
7485 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7486 {
7487 result = (bool)wxNativePixelData___nonzero__(arg1);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 {
7491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7492 }
7493 return resultobj;
7494fail:
7495 return NULL;
7496}
7497
7498
7499SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7500 PyObject *obj;
7501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7502 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7503 return SWIG_Py_Void();
7504}
7505
7506SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7507 return SWIG_Python_InitShadowInstance(args);
7508}
7509
7510SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7511 PyObject *resultobj = 0;
7512 wxNativePixelData *arg1 = 0 ;
7513 wxNativePixelData_Accessor *result = 0 ;
7514 void *argp1 = 0 ;
7515 int res1 = 0 ;
7516
7517 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7519 if (!SWIG_IsOK(res1)) {
7520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7521 }
7522 if (!argp1) {
7523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7524 }
7525 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7526 {
7527 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7531 return resultobj;
7532fail:
7533 return NULL;
7534}
7535
7536
7537SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7538 PyObject *resultobj = 0;
7539 wxBitmap *arg1 = 0 ;
7540 wxNativePixelData *arg2 = 0 ;
7541 wxNativePixelData_Accessor *result = 0 ;
7542 void *argp1 = 0 ;
7543 int res1 = 0 ;
7544 void *argp2 = 0 ;
7545 int res2 = 0 ;
7546
7547 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7551 }
7552 if (!argp1) {
7553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7554 }
7555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7556 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7557 if (!SWIG_IsOK(res2)) {
7558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7559 }
7560 if (!argp2) {
7561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7562 }
7563 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7564 {
7565 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7569 return resultobj;
7570fail:
7571 return NULL;
7572}
7573
7574
7575SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7576 PyObject *resultobj = 0;
7577 wxNativePixelData_Accessor *result = 0 ;
7578
7579 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7580 {
7581 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7585 return resultobj;
7586fail:
7587 return NULL;
7588}
7589
7590
7591SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7592 int argc;
7593 PyObject *argv[3];
7594
7595 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7596 --argc;
7597 if (argc == 0) {
7598 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7599 }
7600 if (argc == 1) {
7601 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7602 }
7603 if (argc == 2) {
7604 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7605 }
7606
7607fail:
7608 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7609 return NULL;
7610}
7611
7612
7613SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7614 PyObject *resultobj = 0;
7615 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7616 void *argp1 = 0 ;
7617 int res1 = 0 ;
7618 PyObject *swig_obj[1] ;
7619
7620 if (!args) SWIG_fail;
7621 swig_obj[0] = args;
7622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7623 if (!SWIG_IsOK(res1)) {
7624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7625 }
7626 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7627 {
7628 delete arg1;
7629
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_Py_Void();
7633 return resultobj;
7634fail:
7635 return NULL;
7636}
7637
7638
7639SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = 0;
7641 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7642 wxNativePixelData *arg2 = 0 ;
7643 void *argp1 = 0 ;
7644 int res1 = 0 ;
7645 void *argp2 = 0 ;
7646 int res2 = 0 ;
7647 PyObject * obj0 = 0 ;
7648 PyObject * obj1 = 0 ;
7649 char * kwnames[] = {
7650 (char *) "self",(char *) "data", NULL
7651 };
7652
7653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7655 if (!SWIG_IsOK(res1)) {
7656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7657 }
7658 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7660 if (!SWIG_IsOK(res2)) {
7661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7662 }
7663 if (!argp2) {
7664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7665 }
7666 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7667 {
7668 (arg1)->Reset((wxNativePixelData const &)*arg2);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
7671 resultobj = SWIG_Py_Void();
7672 return resultobj;
7673fail:
7674 return NULL;
7675}
7676
7677
7678SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7679 PyObject *resultobj = 0;
7680 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7681 bool result;
7682 void *argp1 = 0 ;
7683 int res1 = 0 ;
7684 PyObject *swig_obj[1] ;
7685
7686 if (!args) SWIG_fail;
7687 swig_obj[0] = args;
7688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7689 if (!SWIG_IsOK(res1)) {
7690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7691 }
7692 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7693 {
7694 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 {
7698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7699 }
7700 return resultobj;
7701fail:
7702 return NULL;
7703}
7704
7705
7706SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7707 PyObject *resultobj = 0;
7708 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7709 void *argp1 = 0 ;
7710 int res1 = 0 ;
7711 PyObject *swig_obj[1] ;
7712
7713 if (!args) SWIG_fail;
7714 swig_obj[0] = args;
7715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7716 if (!SWIG_IsOK(res1)) {
7717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7718 }
7719 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7720 {
7721 wxNativePixelData_Accessor_nextPixel(arg1);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 resultobj = SWIG_Py_Void();
7725 return resultobj;
7726fail:
7727 return NULL;
7728}
7729
7730
7731SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj = 0;
7733 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7734 wxNativePixelData *arg2 = 0 ;
7735 int arg3 ;
7736 int arg4 ;
7737 void *argp1 = 0 ;
7738 int res1 = 0 ;
7739 void *argp2 = 0 ;
7740 int res2 = 0 ;
7741 int val3 ;
7742 int ecode3 = 0 ;
7743 int val4 ;
7744 int ecode4 = 0 ;
7745 PyObject * obj0 = 0 ;
7746 PyObject * obj1 = 0 ;
7747 PyObject * obj2 = 0 ;
7748 PyObject * obj3 = 0 ;
7749 char * kwnames[] = {
7750 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7751 };
7752
7753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7757 }
7758 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7760 if (!SWIG_IsOK(res2)) {
7761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7762 }
7763 if (!argp2) {
7764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7765 }
7766 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7767 ecode3 = SWIG_AsVal_int(obj2, &val3);
7768 if (!SWIG_IsOK(ecode3)) {
7769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7770 }
7771 arg3 = static_cast< int >(val3);
7772 ecode4 = SWIG_AsVal_int(obj3, &val4);
7773 if (!SWIG_IsOK(ecode4)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7775 }
7776 arg4 = static_cast< int >(val4);
7777 {
7778 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_Py_Void();
7782 return resultobj;
7783fail:
7784 return NULL;
7785}
7786
7787
7788SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7789 PyObject *resultobj = 0;
7790 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7791 wxNativePixelData *arg2 = 0 ;
7792 int arg3 ;
7793 void *argp1 = 0 ;
7794 int res1 = 0 ;
7795 void *argp2 = 0 ;
7796 int res2 = 0 ;
7797 int val3 ;
7798 int ecode3 = 0 ;
7799 PyObject * obj0 = 0 ;
7800 PyObject * obj1 = 0 ;
7801 PyObject * obj2 = 0 ;
7802 char * kwnames[] = {
7803 (char *) "self",(char *) "data",(char *) "x", NULL
7804 };
7805
7806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7808 if (!SWIG_IsOK(res1)) {
7809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7810 }
7811 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7813 if (!SWIG_IsOK(res2)) {
7814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7815 }
7816 if (!argp2) {
7817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7818 }
7819 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7820 ecode3 = SWIG_AsVal_int(obj2, &val3);
7821 if (!SWIG_IsOK(ecode3)) {
7822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7823 }
7824 arg3 = static_cast< int >(val3);
7825 {
7826 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 resultobj = SWIG_Py_Void();
7830 return resultobj;
7831fail:
7832 return NULL;
7833}
7834
7835
7836SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7837 PyObject *resultobj = 0;
7838 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7839 wxNativePixelData *arg2 = 0 ;
7840 int arg3 ;
7841 void *argp1 = 0 ;
7842 int res1 = 0 ;
7843 void *argp2 = 0 ;
7844 int res2 = 0 ;
7845 int val3 ;
7846 int ecode3 = 0 ;
7847 PyObject * obj0 = 0 ;
7848 PyObject * obj1 = 0 ;
7849 PyObject * obj2 = 0 ;
7850 char * kwnames[] = {
7851 (char *) "self",(char *) "data",(char *) "y", NULL
7852 };
7853
7854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7856 if (!SWIG_IsOK(res1)) {
7857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7858 }
7859 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7861 if (!SWIG_IsOK(res2)) {
7862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7863 }
7864 if (!argp2) {
7865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7866 }
7867 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7868 ecode3 = SWIG_AsVal_int(obj2, &val3);
7869 if (!SWIG_IsOK(ecode3)) {
7870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7871 }
7872 arg3 = static_cast< int >(val3);
7873 {
7874 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
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_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj = 0;
7886 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7887 wxNativePixelData *arg2 = 0 ;
7888 int arg3 ;
7889 int arg4 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892 void *argp2 = 0 ;
7893 int res2 = 0 ;
7894 int val3 ;
7895 int ecode3 = 0 ;
7896 int val4 ;
7897 int ecode4 = 0 ;
7898 PyObject * obj0 = 0 ;
7899 PyObject * obj1 = 0 ;
7900 PyObject * obj2 = 0 ;
7901 PyObject * obj3 = 0 ;
7902 char * kwnames[] = {
7903 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7904 };
7905
7906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7908 if (!SWIG_IsOK(res1)) {
7909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7910 }
7911 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7913 if (!SWIG_IsOK(res2)) {
7914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7915 }
7916 if (!argp2) {
7917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7918 }
7919 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7920 ecode3 = SWIG_AsVal_int(obj2, &val3);
7921 if (!SWIG_IsOK(ecode3)) {
7922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7923 }
7924 arg3 = static_cast< int >(val3);
7925 ecode4 = SWIG_AsVal_int(obj3, &val4);
7926 if (!SWIG_IsOK(ecode4)) {
7927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7928 }
7929 arg4 = static_cast< int >(val4);
7930 {
7931 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 resultobj = SWIG_Py_Void();
7935 return resultobj;
7936fail:
7937 return NULL;
7938}
7939
7940
7941SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj = 0;
7943 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7944 byte arg2 ;
7945 byte arg3 ;
7946 byte arg4 ;
7947 void *argp1 = 0 ;
7948 int res1 = 0 ;
7949 unsigned char val2 ;
7950 int ecode2 = 0 ;
7951 unsigned char val3 ;
7952 int ecode3 = 0 ;
7953 unsigned char val4 ;
7954 int ecode4 = 0 ;
7955 PyObject * obj0 = 0 ;
7956 PyObject * obj1 = 0 ;
7957 PyObject * obj2 = 0 ;
7958 PyObject * obj3 = 0 ;
7959 char * kwnames[] = {
7960 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7961 };
7962
7963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7967 }
7968 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7969 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7970 if (!SWIG_IsOK(ecode2)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7972 }
7973 arg2 = static_cast< byte >(val2);
7974 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7975 if (!SWIG_IsOK(ecode3)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7977 }
7978 arg3 = static_cast< byte >(val3);
7979 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7980 if (!SWIG_IsOK(ecode4)) {
7981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7982 }
7983 arg4 = static_cast< byte >(val4);
7984 {
7985 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_Py_Void();
7989 return resultobj;
7990fail:
7991 return NULL;
7992}
7993
7994
7995SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7996 PyObject *resultobj = 0;
7997 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7998 PyObject *result = 0 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 PyObject *swig_obj[1] ;
8002
8003 if (!args) SWIG_fail;
8004 swig_obj[0] = args;
8005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8008 }
8009 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8010 {
8011 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 resultobj = result;
8015 return resultobj;
8016fail:
8017 return NULL;
8018}
8019
8020
8021SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8022 PyObject *obj;
8023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8024 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8025 return SWIG_Py_Void();
8026}
8027
8028SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8029 return SWIG_Python_InitShadowInstance(args);
8030}
8031
8032SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8033 PyObject *resultobj = 0;
8034 wxBitmap *arg1 = 0 ;
8035 wxAlphaPixelData *result = 0 ;
8036 void *argp1 = 0 ;
8037 int res1 = 0 ;
8038
8039 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8041 if (!SWIG_IsOK(res1)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8043 }
8044 if (!argp1) {
8045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8046 }
8047 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8048 {
8049 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8053 return resultobj;
8054fail:
8055 return NULL;
8056}
8057
8058
8059SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8060 PyObject *resultobj = 0;
8061 wxBitmap *arg1 = 0 ;
8062 wxRect *arg2 = 0 ;
8063 wxAlphaPixelData *result = 0 ;
8064 void *argp1 = 0 ;
8065 int res1 = 0 ;
8066 wxRect temp2 ;
8067
8068 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8070 if (!SWIG_IsOK(res1)) {
8071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8072 }
8073 if (!argp1) {
8074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8075 }
8076 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8077 {
8078 arg2 = &temp2;
8079 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8080 }
8081 {
8082 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8083 if (PyErr_Occurred()) SWIG_fail;
8084 }
8085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8086 return resultobj;
8087fail:
8088 return NULL;
8089}
8090
8091
8092SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8093 PyObject *resultobj = 0;
8094 wxBitmap *arg1 = 0 ;
8095 wxPoint *arg2 = 0 ;
8096 wxSize *arg3 = 0 ;
8097 wxAlphaPixelData *result = 0 ;
8098 void *argp1 = 0 ;
8099 int res1 = 0 ;
8100 wxPoint temp2 ;
8101 wxSize temp3 ;
8102
8103 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8105 if (!SWIG_IsOK(res1)) {
8106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8107 }
8108 if (!argp1) {
8109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8110 }
8111 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8112 {
8113 arg2 = &temp2;
8114 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8115 }
8116 {
8117 arg3 = &temp3;
8118 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8119 }
8120 {
8121 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8125 return resultobj;
8126fail:
8127 return NULL;
8128}
8129
8130
8131SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8132 int argc;
8133 PyObject *argv[4];
8134
8135 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8136 --argc;
8137 if (argc == 1) {
8138 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8139 }
8140 if (argc == 2) {
8141 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8142 }
8143 if (argc == 3) {
8144 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8145 }
8146
8147fail:
8148 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8149 return NULL;
8150}
8151
8152
8153SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8156 void *argp1 = 0 ;
8157 int res1 = 0 ;
8158 PyObject *swig_obj[1] ;
8159
8160 if (!args) SWIG_fail;
8161 swig_obj[0] = args;
8162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8163 if (!SWIG_IsOK(res1)) {
8164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8165 }
8166 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8167 {
8168 delete arg1;
8169
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_Py_Void();
8173 return resultobj;
8174fail:
8175 return NULL;
8176}
8177
8178
8179SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8180 PyObject *resultobj = 0;
8181 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8182 wxAlphaPixelData_Accessor result;
8183 void *argp1 = 0 ;
8184 int res1 = 0 ;
8185 PyObject *swig_obj[1] ;
8186
8187 if (!args) SWIG_fail;
8188 swig_obj[0] = args;
8189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8190 if (!SWIG_IsOK(res1)) {
8191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8192 }
8193 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8194 {
8195 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8199 return resultobj;
8200fail:
8201 return NULL;
8202}
8203
8204
8205SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8206 PyObject *resultobj = 0;
8207 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8208 void *argp1 = 0 ;
8209 int res1 = 0 ;
8210 PyObject *swig_obj[1] ;
8211
8212 if (!args) SWIG_fail;
8213 swig_obj[0] = args;
8214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8215 if (!SWIG_IsOK(res1)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8217 }
8218 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8219 {
8220 (arg1)->UseAlpha();
8221 if (PyErr_Occurred()) SWIG_fail;
8222 }
8223 resultobj = SWIG_Py_Void();
8224 return resultobj;
8225fail:
8226 return NULL;
8227}
8228
8229
8230SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8231 PyObject *resultobj = 0;
8232 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8233 bool result;
8234 void *argp1 = 0 ;
8235 int res1 = 0 ;
8236 PyObject *swig_obj[1] ;
8237
8238 if (!args) SWIG_fail;
8239 swig_obj[0] = args;
8240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8241 if (!SWIG_IsOK(res1)) {
8242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8243 }
8244 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8245 {
8246 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 {
8250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8251 }
8252 return resultobj;
8253fail:
8254 return NULL;
8255}
8256
8257
8258SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8259 PyObject *obj;
8260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8261 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8262 return SWIG_Py_Void();
8263}
8264
8265SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8266 return SWIG_Python_InitShadowInstance(args);
8267}
8268
8269SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8270 PyObject *resultobj = 0;
8271 wxAlphaPixelData *arg1 = 0 ;
8272 wxAlphaPixelData_Accessor *result = 0 ;
8273 void *argp1 = 0 ;
8274 int res1 = 0 ;
8275
8276 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8278 if (!SWIG_IsOK(res1)) {
8279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8280 }
8281 if (!argp1) {
8282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8283 }
8284 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8285 {
8286 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8290 return resultobj;
8291fail:
8292 return NULL;
8293}
8294
8295
8296SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8297 PyObject *resultobj = 0;
8298 wxBitmap *arg1 = 0 ;
8299 wxAlphaPixelData *arg2 = 0 ;
8300 wxAlphaPixelData_Accessor *result = 0 ;
8301 void *argp1 = 0 ;
8302 int res1 = 0 ;
8303 void *argp2 = 0 ;
8304 int res2 = 0 ;
8305
8306 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8308 if (!SWIG_IsOK(res1)) {
8309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8310 }
8311 if (!argp1) {
8312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8313 }
8314 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8315 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8316 if (!SWIG_IsOK(res2)) {
8317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8318 }
8319 if (!argp2) {
8320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8321 }
8322 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8323 {
8324 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8328 return resultobj;
8329fail:
8330 return NULL;
8331}
8332
8333
8334SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8335 PyObject *resultobj = 0;
8336 wxAlphaPixelData_Accessor *result = 0 ;
8337
8338 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8339 {
8340 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8344 return resultobj;
8345fail:
8346 return NULL;
8347}
8348
8349
8350SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8351 int argc;
8352 PyObject *argv[3];
8353
8354 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8355 --argc;
8356 if (argc == 0) {
8357 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8358 }
8359 if (argc == 1) {
8360 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8361 }
8362 if (argc == 2) {
8363 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8364 }
8365
8366fail:
8367 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8368 return NULL;
8369}
8370
8371
8372SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8373 PyObject *resultobj = 0;
8374 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8375 void *argp1 = 0 ;
8376 int res1 = 0 ;
8377 PyObject *swig_obj[1] ;
8378
8379 if (!args) SWIG_fail;
8380 swig_obj[0] = args;
8381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8382 if (!SWIG_IsOK(res1)) {
8383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8384 }
8385 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8386 {
8387 delete arg1;
8388
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = SWIG_Py_Void();
8392 return resultobj;
8393fail:
8394 return NULL;
8395}
8396
8397
8398SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj = 0;
8400 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8401 wxAlphaPixelData *arg2 = 0 ;
8402 void *argp1 = 0 ;
8403 int res1 = 0 ;
8404 void *argp2 = 0 ;
8405 int res2 = 0 ;
8406 PyObject * obj0 = 0 ;
8407 PyObject * obj1 = 0 ;
8408 char * kwnames[] = {
8409 (char *) "self",(char *) "data", NULL
8410 };
8411
8412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8414 if (!SWIG_IsOK(res1)) {
8415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8416 }
8417 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8419 if (!SWIG_IsOK(res2)) {
8420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8421 }
8422 if (!argp2) {
8423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8424 }
8425 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8426 {
8427 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 resultobj = SWIG_Py_Void();
8431 return resultobj;
8432fail:
8433 return NULL;
8434}
8435
8436
8437SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8438 PyObject *resultobj = 0;
8439 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8440 bool result;
8441 void *argp1 = 0 ;
8442 int res1 = 0 ;
8443 PyObject *swig_obj[1] ;
8444
8445 if (!args) SWIG_fail;
8446 swig_obj[0] = args;
8447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8448 if (!SWIG_IsOK(res1)) {
8449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8450 }
8451 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8452 {
8453 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 {
8457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8458 }
8459 return resultobj;
8460fail:
8461 return NULL;
8462}
8463
8464
8465SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8466 PyObject *resultobj = 0;
8467 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8468 void *argp1 = 0 ;
8469 int res1 = 0 ;
8470 PyObject *swig_obj[1] ;
8471
8472 if (!args) SWIG_fail;
8473 swig_obj[0] = args;
8474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8475 if (!SWIG_IsOK(res1)) {
8476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8477 }
8478 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8479 {
8480 wxAlphaPixelData_Accessor_nextPixel(arg1);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_Py_Void();
8484 return resultobj;
8485fail:
8486 return NULL;
8487}
8488
8489
8490SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj = 0;
8492 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8493 wxAlphaPixelData *arg2 = 0 ;
8494 int arg3 ;
8495 int arg4 ;
8496 void *argp1 = 0 ;
8497 int res1 = 0 ;
8498 void *argp2 = 0 ;
8499 int res2 = 0 ;
8500 int val3 ;
8501 int ecode3 = 0 ;
8502 int val4 ;
8503 int ecode4 = 0 ;
8504 PyObject * obj0 = 0 ;
8505 PyObject * obj1 = 0 ;
8506 PyObject * obj2 = 0 ;
8507 PyObject * obj3 = 0 ;
8508 char * kwnames[] = {
8509 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8510 };
8511
8512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8516 }
8517 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8519 if (!SWIG_IsOK(res2)) {
8520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8521 }
8522 if (!argp2) {
8523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8524 }
8525 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8526 ecode3 = SWIG_AsVal_int(obj2, &val3);
8527 if (!SWIG_IsOK(ecode3)) {
8528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8529 }
8530 arg3 = static_cast< int >(val3);
8531 ecode4 = SWIG_AsVal_int(obj3, &val4);
8532 if (!SWIG_IsOK(ecode4)) {
8533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8534 }
8535 arg4 = static_cast< int >(val4);
8536 {
8537 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_Py_Void();
8541 return resultobj;
8542fail:
8543 return NULL;
8544}
8545
8546
8547SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj = 0;
8549 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8550 wxAlphaPixelData *arg2 = 0 ;
8551 int arg3 ;
8552 void *argp1 = 0 ;
8553 int res1 = 0 ;
8554 void *argp2 = 0 ;
8555 int res2 = 0 ;
8556 int val3 ;
8557 int ecode3 = 0 ;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 PyObject * obj2 = 0 ;
8561 char * kwnames[] = {
8562 (char *) "self",(char *) "data",(char *) "x", NULL
8563 };
8564
8565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8567 if (!SWIG_IsOK(res1)) {
8568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8569 }
8570 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8572 if (!SWIG_IsOK(res2)) {
8573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8574 }
8575 if (!argp2) {
8576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8577 }
8578 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8579 ecode3 = SWIG_AsVal_int(obj2, &val3);
8580 if (!SWIG_IsOK(ecode3)) {
8581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8582 }
8583 arg3 = static_cast< int >(val3);
8584 {
8585 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 resultobj = SWIG_Py_Void();
8589 return resultobj;
8590fail:
8591 return NULL;
8592}
8593
8594
8595SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8596 PyObject *resultobj = 0;
8597 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8598 wxAlphaPixelData *arg2 = 0 ;
8599 int arg3 ;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 void *argp2 = 0 ;
8603 int res2 = 0 ;
8604 int val3 ;
8605 int ecode3 = 0 ;
8606 PyObject * obj0 = 0 ;
8607 PyObject * obj1 = 0 ;
8608 PyObject * obj2 = 0 ;
8609 char * kwnames[] = {
8610 (char *) "self",(char *) "data",(char *) "y", NULL
8611 };
8612
8613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8615 if (!SWIG_IsOK(res1)) {
8616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8617 }
8618 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8620 if (!SWIG_IsOK(res2)) {
8621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8622 }
8623 if (!argp2) {
8624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8625 }
8626 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8627 ecode3 = SWIG_AsVal_int(obj2, &val3);
8628 if (!SWIG_IsOK(ecode3)) {
8629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8630 }
8631 arg3 = static_cast< int >(val3);
8632 {
8633 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
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_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8646 wxAlphaPixelData *arg2 = 0 ;
8647 int arg3 ;
8648 int arg4 ;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 void *argp2 = 0 ;
8652 int res2 = 0 ;
8653 int val3 ;
8654 int ecode3 = 0 ;
8655 int val4 ;
8656 int ecode4 = 0 ;
8657 PyObject * obj0 = 0 ;
8658 PyObject * obj1 = 0 ;
8659 PyObject * obj2 = 0 ;
8660 PyObject * obj3 = 0 ;
8661 char * kwnames[] = {
8662 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8663 };
8664
8665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8667 if (!SWIG_IsOK(res1)) {
8668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8669 }
8670 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8672 if (!SWIG_IsOK(res2)) {
8673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8674 }
8675 if (!argp2) {
8676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8677 }
8678 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8679 ecode3 = SWIG_AsVal_int(obj2, &val3);
8680 if (!SWIG_IsOK(ecode3)) {
8681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8682 }
8683 arg3 = static_cast< int >(val3);
8684 ecode4 = SWIG_AsVal_int(obj3, &val4);
8685 if (!SWIG_IsOK(ecode4)) {
8686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8687 }
8688 arg4 = static_cast< int >(val4);
8689 {
8690 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8691 if (PyErr_Occurred()) SWIG_fail;
8692 }
8693 resultobj = SWIG_Py_Void();
8694 return resultobj;
8695fail:
8696 return NULL;
8697}
8698
8699
8700SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8701 PyObject *resultobj = 0;
8702 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8703 byte arg2 ;
8704 byte arg3 ;
8705 byte arg4 ;
8706 byte arg5 ;
8707 void *argp1 = 0 ;
8708 int res1 = 0 ;
8709 unsigned char val2 ;
8710 int ecode2 = 0 ;
8711 unsigned char val3 ;
8712 int ecode3 = 0 ;
8713 unsigned char val4 ;
8714 int ecode4 = 0 ;
8715 unsigned char val5 ;
8716 int ecode5 = 0 ;
8717 PyObject * obj0 = 0 ;
8718 PyObject * obj1 = 0 ;
8719 PyObject * obj2 = 0 ;
8720 PyObject * obj3 = 0 ;
8721 PyObject * obj4 = 0 ;
8722 char * kwnames[] = {
8723 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8724 };
8725
8726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8728 if (!SWIG_IsOK(res1)) {
8729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8730 }
8731 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8732 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8733 if (!SWIG_IsOK(ecode2)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8735 }
8736 arg2 = static_cast< byte >(val2);
8737 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8738 if (!SWIG_IsOK(ecode3)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8740 }
8741 arg3 = static_cast< byte >(val3);
8742 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8743 if (!SWIG_IsOK(ecode4)) {
8744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8745 }
8746 arg4 = static_cast< byte >(val4);
8747 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8748 if (!SWIG_IsOK(ecode5)) {
8749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8750 }
8751 arg5 = static_cast< byte >(val5);
8752 {
8753 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8754 if (PyErr_Occurred()) SWIG_fail;
554f62e9 8755 }
fc46b7f3 8756 resultobj = SWIG_Py_Void();
554f62e9
RD
8757 return resultobj;
8758fail:
8759 return NULL;
8760}
8761
8762
fc46b7f3 8763SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8764 PyObject *resultobj = 0;
fc46b7f3
RD
8765 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8766 PyObject *result = 0 ;
554f62e9
RD
8767 void *argp1 = 0 ;
8768 int res1 = 0 ;
fc46b7f3 8769 PyObject *swig_obj[1] ;
554f62e9 8770
fc46b7f3
RD
8771 if (!args) SWIG_fail;
8772 swig_obj[0] = args;
8773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 8774 if (!SWIG_IsOK(res1)) {
fc46b7f3 8775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 8776 }
fc46b7f3 8777 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 8778 {
fc46b7f3 8779 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
fc46b7f3 8782 resultobj = result;
554f62e9
RD
8783 return resultobj;
8784fail:
8785 return NULL;
d55e5bfc
RD
8786}
8787
8788
fc46b7f3 8789SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
8790 PyObject *obj;
8791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8792 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 8793 return SWIG_Py_Void();
d55e5bfc
RD
8794}
8795
fc46b7f3 8796SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8797 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
8798}
8799
554f62e9
RD
8800SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj = 0;
8802 wxBitmap *arg1 = 0 ;
8803 wxColour const &arg2_defvalue = wxNullColour ;
8804 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8805 wxMask *result = 0 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 wxColour temp2 ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 char * kwnames[] = {
8812 (char *) "bitmap",(char *) "colour", NULL
8813 };
8814
8815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8816 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8817 if (!SWIG_IsOK(res1)) {
8818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8819 }
8820 if (!argp1) {
8821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8822 }
8823 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8824 if (obj1) {
d55e5bfc 8825 {
554f62e9
RD
8826 arg2 = &temp2;
8827 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8828 }
554f62e9
RD
8829 }
8830 {
8831 if (!wxPyCheckForApp()) SWIG_fail;
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8838 return resultobj;
8839fail:
8840 return NULL;
d55e5bfc
RD
8841}
8842
8843
554f62e9
RD
8844SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8845 PyObject *resultobj = 0;
8846 wxMask *arg1 = (wxMask *) 0 ;
8847 void *argp1 = 0 ;
8848 int res1 = 0 ;
8849 PyObject *swig_obj[1] ;
8850
8851 if (!args) SWIG_fail;
8852 swig_obj[0] = args;
8853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8856 }
8857 arg1 = reinterpret_cast< wxMask * >(argp1);
8858 {
554f62e9 8859 delete arg1;
d55e5bfc 8860
554f62e9
RD
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_Py_Void();
8864 return resultobj;
8865fail:
8866 return NULL;
8867}
8868
8869
8870SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8871 PyObject *obj;
8872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8873 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8874 return SWIG_Py_Void();
8875}
8876
8877SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8878 return SWIG_Python_InitShadowInstance(args);
8879}
8880
8881SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj = 0;
8883 wxString *arg1 = 0 ;
8884 wxBitmapType arg2 ;
8885 int arg3 = (int) -1 ;
8886 int arg4 = (int) -1 ;
8887 wxIcon *result = 0 ;
8888 bool temp1 = false ;
8889 int val2 ;
8890 int ecode2 = 0 ;
8891 int val3 ;
8892 int ecode3 = 0 ;
8893 int val4 ;
8894 int ecode4 = 0 ;
8895 PyObject * obj0 = 0 ;
8896 PyObject * obj1 = 0 ;
8897 PyObject * obj2 = 0 ;
8898 PyObject * obj3 = 0 ;
8899 char * kwnames[] = {
8900 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8901 };
8902
8903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8904 {
8905 arg1 = wxString_in_helper(obj0);
8906 if (arg1 == NULL) SWIG_fail;
8907 temp1 = true;
8908 }
8909 ecode2 = SWIG_AsVal_int(obj1, &val2);
8910 if (!SWIG_IsOK(ecode2)) {
8911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8912 }
8913 arg2 = static_cast< wxBitmapType >(val2);
8914 if (obj2) {
8915 ecode3 = SWIG_AsVal_int(obj2, &val3);
8916 if (!SWIG_IsOK(ecode3)) {
8917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8918 }
8919 arg3 = static_cast< int >(val3);
8920 }
8921 if (obj3) {
8922 ecode4 = SWIG_AsVal_int(obj3, &val4);
8923 if (!SWIG_IsOK(ecode4)) {
8924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8925 }
8926 arg4 = static_cast< int >(val4);
8927 }
8928 {
8929 if (!wxPyCheckForApp()) SWIG_fail;
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8936 {
8937 if (temp1)
8938 delete arg1;
8939 }
8940 return resultobj;
8941fail:
8942 {
8943 if (temp1)
8944 delete arg1;
8945 }
8946 return NULL;
d55e5bfc
RD
8947}
8948
8949
554f62e9
RD
8950SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8951 PyObject *resultobj = 0;
8952 wxIcon *arg1 = (wxIcon *) 0 ;
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
8955 PyObject *swig_obj[1] ;
8956
8957 if (!args) SWIG_fail;
8958 swig_obj[0] = args;
8959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8960 if (!SWIG_IsOK(res1)) {
8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8962 }
8963 arg1 = reinterpret_cast< wxIcon * >(argp1);
8964 {
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 delete arg1;
d55e5bfc 8967
554f62e9
RD
8968 wxPyEndAllowThreads(__tstate);
8969 if (PyErr_Occurred()) SWIG_fail;
8970 }
8971 resultobj = SWIG_Py_Void();
8972 return resultobj;
8973fail:
8974 return NULL;
d55e5bfc
RD
8975}
8976
8977
554f62e9
RD
8978SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *resultobj = 0;
8980 wxIcon *result = 0 ;
8981
8982 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8983 {
8984 if (!wxPyCheckForApp()) SWIG_fail;
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = (wxIcon *)new wxIcon();
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8991 return resultobj;
8992fail:
8993 return NULL;
8994}
8995
8996
8997SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxIconLocation *arg1 = 0 ;
9000 wxIcon *result = 0 ;
9001 void *argp1 = 0 ;
9002 int res1 = 0 ;
9003 PyObject * obj0 = 0 ;
9004 char * kwnames[] = {
9005 (char *) "loc", NULL
9006 };
9007
9008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9010 if (!SWIG_IsOK(res1)) {
9011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9012 }
9013 if (!argp1) {
9014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9015 }
9016 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9017 {
9018 if (!wxPyCheckForApp()) SWIG_fail;
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9025 return resultobj;
9026fail:
9027 return NULL;
9028}
9029
9030
9031SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9032 PyObject *resultobj = 0;
9033 wxBitmap *arg1 = 0 ;
9034 wxIcon *result = 0 ;
9035 void *argp1 = 0 ;
9036 int res1 = 0 ;
9037 PyObject * obj0 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "bmp", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9043 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9044 if (!SWIG_IsOK(res1)) {
9045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9046 }
9047 if (!argp1) {
9048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9049 }
9050 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9051 {
9052 if (!wxPyCheckForApp()) SWIG_fail;
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9059 return resultobj;
9060fail:
9061 return NULL;
d55e5bfc
RD
9062}
9063
9064
554f62e9
RD
9065SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj = 0;
9067 PyObject *arg1 = (PyObject *) 0 ;
9068 wxIcon *result = 0 ;
9069 PyObject * obj0 = 0 ;
9070 char * kwnames[] = {
9071 (char *) "listOfStrings", NULL
9072 };
9073
9074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9075 arg1 = obj0;
9076 {
9077 if (!wxPyCheckForApp()) SWIG_fail;
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 result = (wxIcon *)new_wxIcon(arg1);
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9084 return resultobj;
9085fail:
9086 return NULL;
9087}
9088
9089
9090SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj = 0;
9092 wxIcon *arg1 = (wxIcon *) 0 ;
9093 wxString *arg2 = 0 ;
9094 wxBitmapType arg3 ;
9095 bool result;
9096 void *argp1 = 0 ;
9097 int res1 = 0 ;
9098 bool temp2 = false ;
9099 int val3 ;
9100 int ecode3 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 char * kwnames[] = {
9105 (char *) "self",(char *) "name",(char *) "type", NULL
9106 };
9107
9108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9110 if (!SWIG_IsOK(res1)) {
9111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9112 }
9113 arg1 = reinterpret_cast< wxIcon * >(argp1);
9114 {
9115 arg2 = wxString_in_helper(obj1);
9116 if (arg2 == NULL) SWIG_fail;
9117 temp2 = true;
9118 }
9119 ecode3 = SWIG_AsVal_int(obj2, &val3);
9120 if (!SWIG_IsOK(ecode3)) {
9121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9122 }
9123 arg3 = static_cast< wxBitmapType >(val3);
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 {
9131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9132 }
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return resultobj;
9138fail:
9139 {
9140 if (temp2)
9141 delete arg2;
9142 }
9143 return NULL;
d55e5bfc
RD
9144}
9145
9146
554f62e9
RD
9147SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9148 PyObject *resultobj = 0;
9149 wxIcon *arg1 = (wxIcon *) 0 ;
9150 long result;
9151 void *argp1 = 0 ;
9152 int res1 = 0 ;
9153 PyObject *swig_obj[1] ;
9154
9155 if (!args) SWIG_fail;
9156 swig_obj[0] = args;
9157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9158 if (!SWIG_IsOK(res1)) {
9159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9160 }
9161 arg1 = reinterpret_cast< wxIcon * >(argp1);
9162 {
9163 PyThreadState* __tstate = wxPyBeginAllowThreads();
9164 result = (long)(arg1)->GetHandle();
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 resultobj = SWIG_From_long(static_cast< long >(result));
9169 return resultobj;
9170fail:
9171 return NULL;
9172}
9173
9174
9175SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj = 0;
9177 wxIcon *arg1 = (wxIcon *) 0 ;
9178 long arg2 ;
9179 void *argp1 = 0 ;
9180 int res1 = 0 ;
9181 long val2 ;
9182 int ecode2 = 0 ;
9183 PyObject * obj0 = 0 ;
9184 PyObject * obj1 = 0 ;
9185 char * kwnames[] = {
9186 (char *) "self",(char *) "handle", NULL
9187 };
9188
9189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9193 }
9194 arg1 = reinterpret_cast< wxIcon * >(argp1);
9195 ecode2 = SWIG_AsVal_long(obj1, &val2);
9196 if (!SWIG_IsOK(ecode2)) {
9197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9198 }
9199 arg2 = static_cast< long >(val2);
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 wxIcon_SetHandle(arg1,arg2);
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_Py_Void();
9207 return resultobj;
9208fail:
9209 return NULL;
d55e5bfc
RD
9210}
9211
9212
b39fe951 9213SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9214 PyObject *resultobj = 0;
9215 wxIcon *arg1 = (wxIcon *) 0 ;
9216 bool result;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 PyObject *swig_obj[1] ;
9220
9221 if (!args) SWIG_fail;
9222 swig_obj[0] = args;
9223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
b39fe951 9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9226 }
9227 arg1 = reinterpret_cast< wxIcon * >(argp1);
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9230 result = (bool)(arg1)->IsOk();
554f62e9
RD
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9236 }
9237 return resultobj;
9238fail:
9239 return NULL;
d55e5bfc
RD
9240}
9241
9242
554f62e9
RD
9243SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9244 PyObject *resultobj = 0;
9245 wxIcon *arg1 = (wxIcon *) 0 ;
9246 int result;
9247 void *argp1 = 0 ;
9248 int res1 = 0 ;
9249 PyObject *swig_obj[1] ;
9250
9251 if (!args) SWIG_fail;
9252 swig_obj[0] = args;
9253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9256 }
9257 arg1 = reinterpret_cast< wxIcon * >(argp1);
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (int)(arg1)->GetWidth();
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_From_int(static_cast< int >(result));
9265 return resultobj;
9266fail:
9267 return NULL;
c1cb24a4
RD
9268}
9269
9270
554f62e9
RD
9271SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9272 PyObject *resultobj = 0;
9273 wxIcon *arg1 = (wxIcon *) 0 ;
9274 int result;
9275 void *argp1 = 0 ;
9276 int res1 = 0 ;
9277 PyObject *swig_obj[1] ;
9278
9279 if (!args) SWIG_fail;
9280 swig_obj[0] = args;
9281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9282 if (!SWIG_IsOK(res1)) {
9283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9284 }
9285 arg1 = reinterpret_cast< wxIcon * >(argp1);
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 result = (int)(arg1)->GetHeight();
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 resultobj = SWIG_From_int(static_cast< int >(result));
9293 return resultobj;
9294fail:
9295 return NULL;
c1cb24a4
RD
9296}
9297
9298
554f62e9
RD
9299SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9300 PyObject *resultobj = 0;
9301 wxIcon *arg1 = (wxIcon *) 0 ;
9302 int result;
9303 void *argp1 = 0 ;
9304 int res1 = 0 ;
9305 PyObject *swig_obj[1] ;
9306
9307 if (!args) SWIG_fail;
9308 swig_obj[0] = args;
9309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9310 if (!SWIG_IsOK(res1)) {
9311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9312 }
9313 arg1 = reinterpret_cast< wxIcon * >(argp1);
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 result = (int)(arg1)->GetDepth();
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 resultobj = SWIG_From_int(static_cast< int >(result));
9321 return resultobj;
9322fail:
9323 return NULL;
9324}
9325
9326
9327SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj = 0;
9329 wxIcon *arg1 = (wxIcon *) 0 ;
9330 int arg2 ;
9331 void *argp1 = 0 ;
9332 int res1 = 0 ;
9333 int val2 ;
9334 int ecode2 = 0 ;
9335 PyObject * obj0 = 0 ;
9336 PyObject * obj1 = 0 ;
9337 char * kwnames[] = {
9338 (char *) "self",(char *) "w", NULL
9339 };
9340
9341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9343 if (!SWIG_IsOK(res1)) {
9344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9345 }
9346 arg1 = reinterpret_cast< wxIcon * >(argp1);
9347 ecode2 = SWIG_AsVal_int(obj1, &val2);
9348 if (!SWIG_IsOK(ecode2)) {
9349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9350 }
9351 arg2 = static_cast< int >(val2);
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 (arg1)->SetWidth(arg2);
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_Py_Void();
9359 return resultobj;
9360fail:
9361 return NULL;
9362}
9363
9364
9365SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9366 PyObject *resultobj = 0;
9367 wxIcon *arg1 = (wxIcon *) 0 ;
9368 int arg2 ;
9369 void *argp1 = 0 ;
9370 int res1 = 0 ;
9371 int val2 ;
9372 int ecode2 = 0 ;
9373 PyObject * obj0 = 0 ;
9374 PyObject * obj1 = 0 ;
9375 char * kwnames[] = {
9376 (char *) "self",(char *) "h", NULL
9377 };
9378
9379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9381 if (!SWIG_IsOK(res1)) {
9382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9383 }
9384 arg1 = reinterpret_cast< wxIcon * >(argp1);
9385 ecode2 = SWIG_AsVal_int(obj1, &val2);
9386 if (!SWIG_IsOK(ecode2)) {
9387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9388 }
9389 arg2 = static_cast< int >(val2);
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 (arg1)->SetHeight(arg2);
9393 wxPyEndAllowThreads(__tstate);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 resultobj = SWIG_Py_Void();
9397 return resultobj;
9398fail:
9399 return NULL;
9400}
9401
9402
9403SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxIcon *arg1 = (wxIcon *) 0 ;
9406 int arg2 ;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 int val2 ;
9410 int ecode2 = 0 ;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 char * kwnames[] = {
9414 (char *) "self",(char *) "d", NULL
9415 };
9416
9417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9419 if (!SWIG_IsOK(res1)) {
9420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9421 }
9422 arg1 = reinterpret_cast< wxIcon * >(argp1);
9423 ecode2 = SWIG_AsVal_int(obj1, &val2);
9424 if (!SWIG_IsOK(ecode2)) {
9425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9426 }
9427 arg2 = static_cast< int >(val2);
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 (arg1)->SetDepth(arg2);
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_Py_Void();
9435 return resultobj;
9436fail:
9437 return NULL;
9438}
9439
9440
9441SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj = 0;
9443 wxIcon *arg1 = (wxIcon *) 0 ;
9444 wxSize *arg2 = 0 ;
9445 void *argp1 = 0 ;
9446 int res1 = 0 ;
9447 wxSize temp2 ;
9448 PyObject * obj0 = 0 ;
9449 PyObject * obj1 = 0 ;
9450 char * kwnames[] = {
9451 (char *) "self",(char *) "size", NULL
9452 };
9453
9454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9456 if (!SWIG_IsOK(res1)) {
9457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9458 }
9459 arg1 = reinterpret_cast< wxIcon * >(argp1);
9460 {
9461 arg2 = &temp2;
9462 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->SetSize((wxSize const &)*arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472fail:
9473 return NULL;
9474}
9475
9476
9477SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxIcon *arg1 = (wxIcon *) 0 ;
9480 wxBitmap *arg2 = 0 ;
9481 void *argp1 = 0 ;
9482 int res1 = 0 ;
9483 void *argp2 = 0 ;
9484 int res2 = 0 ;
9485 PyObject * obj0 = 0 ;
9486 PyObject * obj1 = 0 ;
9487 char * kwnames[] = {
9488 (char *) "self",(char *) "bmp", NULL
9489 };
9490
9491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9493 if (!SWIG_IsOK(res1)) {
9494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9495 }
9496 arg1 = reinterpret_cast< wxIcon * >(argp1);
9497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9498 if (!SWIG_IsOK(res2)) {
9499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9500 }
9501 if (!argp2) {
9502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9503 }
9504 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 resultobj = SWIG_Py_Void();
9512 return resultobj;
9513fail:
9514 return NULL;
d55e5bfc
RD
9515}
9516
9517
554f62e9
RD
9518SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9519 PyObject *obj;
9520 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9521 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9522 return SWIG_Py_Void();
d55e5bfc
RD
9523}
9524
554f62e9
RD
9525SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9526 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9527}
9528
554f62e9
RD
9529SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9530 PyObject *resultobj = 0;
9531 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9532 int arg2 = (int) 0 ;
9533 wxIconLocation *result = 0 ;
9534 bool temp1 = false ;
9535 int val2 ;
9536 int ecode2 = 0 ;
9537 PyObject * obj0 = 0 ;
9538 PyObject * obj1 = 0 ;
9539 char * kwnames[] = {
9540 (char *) "filename",(char *) "num", NULL
9541 };
9542
9543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9544 if (obj0) {
d55e5bfc 9545 {
554f62e9
RD
9546 arg1 = wxString_in_helper(obj0);
9547 if (arg1 == NULL) SWIG_fail;
9548 temp1 = true;
d55e5bfc 9549 }
554f62e9
RD
9550 }
9551 if (obj1) {
9552 ecode2 = SWIG_AsVal_int(obj1, &val2);
9553 if (!SWIG_IsOK(ecode2)) {
9554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9555 }
9556 arg2 = static_cast< int >(val2);
9557 }
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9565 {
9566 if (temp1)
9567 delete arg1;
9568 }
9569 return resultobj;
9570fail:
9571 {
9572 if (temp1)
9573 delete arg1;
9574 }
9575 return NULL;
d55e5bfc
RD
9576}
9577
9578
554f62e9
RD
9579SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9580 PyObject *resultobj = 0;
9581 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9582 void *argp1 = 0 ;
9583 int res1 = 0 ;
9584 PyObject *swig_obj[1] ;
9585
9586 if (!args) SWIG_fail;
9587 swig_obj[0] = args;
9588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9591 }
9592 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9593 {
9594 PyThreadState* __tstate = wxPyBeginAllowThreads();
9595 delete arg1;
d55e5bfc 9596
554f62e9
RD
9597 wxPyEndAllowThreads(__tstate);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 resultobj = SWIG_Py_Void();
9601 return resultobj;
9602fail:
9603 return NULL;
d55e5bfc
RD
9604}
9605
9606
554f62e9
RD
9607SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9608 PyObject *resultobj = 0;
9609 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9610 bool result;
9611 void *argp1 = 0 ;
9612 int res1 = 0 ;
9613 PyObject *swig_obj[1] ;
9614
9615 if (!args) SWIG_fail;
9616 swig_obj[0] = args;
9617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9618 if (!SWIG_IsOK(res1)) {
9619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9620 }
9621 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 {
9629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9630 }
9631 return resultobj;
9632fail:
9633 return NULL;
9634}
9635
9636
9637SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj = 0;
9639 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9640 wxString *arg2 = 0 ;
9641 void *argp1 = 0 ;
9642 int res1 = 0 ;
9643 bool temp2 = false ;
9644 PyObject * obj0 = 0 ;
9645 PyObject * obj1 = 0 ;
9646 char * kwnames[] = {
9647 (char *) "self",(char *) "filename", NULL
9648 };
9649
9650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9652 if (!SWIG_IsOK(res1)) {
9653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9654 }
9655 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9656 {
9657 arg2 = wxString_in_helper(obj1);
9658 if (arg2 == NULL) SWIG_fail;
9659 temp2 = true;
9660 }
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 (arg1)->SetFileName((wxString const &)*arg2);
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_Py_Void();
9668 {
9669 if (temp2)
9670 delete arg2;
9671 }
9672 return resultobj;
9673fail:
9674 {
9675 if (temp2)
9676 delete arg2;
9677 }
9678 return NULL;
d55e5bfc
RD
9679}
9680
9681
554f62e9
RD
9682SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683 PyObject *resultobj = 0;
9684 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9685 wxString *result = 0 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 PyObject *swig_obj[1] ;
9689
9690 if (!args) SWIG_fail;
9691 swig_obj[0] = args;
9692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9693 if (!SWIG_IsOK(res1)) {
9694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9695 }
9696 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9697 {
9698 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9699 {
554f62e9
RD
9700 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9701 result = (wxString *) &_result_ref;
093d3ff1 9702 }
554f62e9
RD
9703 wxPyEndAllowThreads(__tstate);
9704 if (PyErr_Occurred()) SWIG_fail;
9705 }
9706 {
9707#if wxUSE_UNICODE
9708 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9709#else
9710 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9711#endif
9712 }
9713 return resultobj;
9714fail:
9715 return NULL;
9716}
9717
9718
9719SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj = 0;
9721 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9722 int arg2 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 int val2 ;
9726 int ecode2 = 0 ;
9727 PyObject * obj0 = 0 ;
9728 PyObject * obj1 = 0 ;
9729 char * kwnames[] = {
9730 (char *) "self",(char *) "num", NULL
9731 };
9732
9733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9735 if (!SWIG_IsOK(res1)) {
9736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9737 }
9738 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9739 ecode2 = SWIG_AsVal_int(obj1, &val2);
9740 if (!SWIG_IsOK(ecode2)) {
9741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9742 }
9743 arg2 = static_cast< int >(val2);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 wxIconLocation_SetIndex(arg1,arg2);
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 resultobj = SWIG_Py_Void();
9751 return resultobj;
9752fail:
9753 return NULL;
d55e5bfc
RD
9754}
9755
9756
554f62e9
RD
9757SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9758 PyObject *resultobj = 0;
9759 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9760 int result;
9761 void *argp1 = 0 ;
9762 int res1 = 0 ;
9763 PyObject *swig_obj[1] ;
9764
9765 if (!args) SWIG_fail;
9766 swig_obj[0] = args;
9767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9768 if (!SWIG_IsOK(res1)) {
9769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9770 }
9771 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 result = (int)wxIconLocation_GetIndex(arg1);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_From_int(static_cast< int >(result));
9779 return resultobj;
9780fail:
9781 return NULL;
d55e5bfc
RD
9782}
9783
9784
554f62e9
RD
9785SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9786 PyObject *obj;
9787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9788 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9789 return SWIG_Py_Void();
d55e5bfc
RD
9790}
9791
554f62e9
RD
9792SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9793 return SWIG_Python_InitShadowInstance(args);
9794}
d55e5bfc 9795
554f62e9
RD
9796SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9797 PyObject *resultobj = 0;
9798 wxIconBundle *result = 0 ;
9799
9800 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 result = (wxIconBundle *)new wxIconBundle();
9804 wxPyEndAllowThreads(__tstate);
9805 if (PyErr_Occurred()) SWIG_fail;
9806 }
9807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9808 return resultobj;
9809fail:
9810 return NULL;
9811}
9812
9813
9814SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9815 PyObject *resultobj = 0;
9816 wxString *arg1 = 0 ;
9817 long arg2 ;
9818 wxIconBundle *result = 0 ;
9819 bool temp1 = false ;
9820 long val2 ;
9821 int ecode2 = 0 ;
9822 PyObject * obj0 = 0 ;
9823 PyObject * obj1 = 0 ;
9824 char * kwnames[] = {
9825 (char *) "file",(char *) "type", NULL
9826 };
9827
9828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9829 {
9830 arg1 = wxString_in_helper(obj0);
9831 if (arg1 == NULL) SWIG_fail;
9832 temp1 = true;
9833 }
9834 ecode2 = SWIG_AsVal_long(obj1, &val2);
9835 if (!SWIG_IsOK(ecode2)) {
9836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9837 }
9838 arg2 = static_cast< long >(val2);
9839 {
9840 PyThreadState* __tstate = wxPyBeginAllowThreads();
9841 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) SWIG_fail;
9844 }
9845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9846 {
9847 if (temp1)
9848 delete arg1;
9849 }
9850 return resultobj;
9851fail:
9852 {
9853 if (temp1)
9854 delete arg1;
9855 }
9856 return NULL;
d55e5bfc
RD
9857}
9858
9859
554f62e9
RD
9860SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxIcon *arg1 = 0 ;
9863 wxIconBundle *result = 0 ;
9864 void *argp1 = 0 ;
9865 int res1 = 0 ;
9866 PyObject * obj0 = 0 ;
9867 char * kwnames[] = {
9868 (char *) "icon", NULL
9869 };
9870
9871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9872 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9873 if (!SWIG_IsOK(res1)) {
9874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9875 }
9876 if (!argp1) {
9877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9878 }
9879 arg1 = reinterpret_cast< wxIcon * >(argp1);
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9883 wxPyEndAllowThreads(__tstate);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 }
9886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9887 return resultobj;
9888fail:
9889 return NULL;
d55e5bfc
RD
9890}
9891
9892
554f62e9
RD
9893SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9894 PyObject *resultobj = 0;
9895 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9896 void *argp1 = 0 ;
9897 int res1 = 0 ;
9898 PyObject *swig_obj[1] ;
9899
9900 if (!args) SWIG_fail;
9901 swig_obj[0] = args;
9902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9903 if (!SWIG_IsOK(res1)) {
9904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9905 }
9906 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9907 {
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 delete arg1;
d55e5bfc 9910
554f62e9
RD
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 resultobj = SWIG_Py_Void();
9915 return resultobj;
9916fail:
9917 return NULL;
9918}
9919
9920
9921SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj = 0;
9923 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9924 wxIcon *arg2 = 0 ;
9925 void *argp1 = 0 ;
9926 int res1 = 0 ;
9927 void *argp2 = 0 ;
9928 int res2 = 0 ;
9929 PyObject * obj0 = 0 ;
9930 PyObject * obj1 = 0 ;
9931 char * kwnames[] = {
9932 (char *) "self",(char *) "icon", NULL
9933 };
9934
9935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9937 if (!SWIG_IsOK(res1)) {
9938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9939 }
9940 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9942 if (!SWIG_IsOK(res2)) {
9943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9944 }
9945 if (!argp2) {
9946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9947 }
9948 arg2 = reinterpret_cast< wxIcon * >(argp2);
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 (arg1)->AddIcon((wxIcon const &)*arg2);
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 resultobj = SWIG_Py_Void();
9956 return resultobj;
9957fail:
9958 return NULL;
9959}
9960
9961
9962SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj = 0;
9964 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9965 wxString *arg2 = 0 ;
9966 long arg3 ;
9967 void *argp1 = 0 ;
9968 int res1 = 0 ;
9969 bool temp2 = false ;
9970 long val3 ;
9971 int ecode3 = 0 ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 PyObject * obj2 = 0 ;
9975 char * kwnames[] = {
9976 (char *) "self",(char *) "file",(char *) "type", NULL
9977 };
9978
9979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9981 if (!SWIG_IsOK(res1)) {
9982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9983 }
9984 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9985 {
9986 arg2 = wxString_in_helper(obj1);
9987 if (arg2 == NULL) SWIG_fail;
9988 temp2 = true;
9989 }
9990 ecode3 = SWIG_AsVal_long(obj2, &val3);
9991 if (!SWIG_IsOK(ecode3)) {
9992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9993 }
9994 arg3 = static_cast< long >(val3);
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_Py_Void();
10002 {
10003 if (temp2)
10004 delete arg2;
10005 }
10006 return resultobj;
10007fail:
10008 {
10009 if (temp2)
10010 delete arg2;
10011 }
10012 return NULL;
10013}
10014
10015
10016SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10017 PyObject *resultobj = 0;
10018 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10019 wxSize *arg2 = 0 ;
10020 wxIcon *result = 0 ;
10021 void *argp1 = 0 ;
10022 int res1 = 0 ;
10023 wxSize temp2 ;
10024 PyObject * obj0 = 0 ;
10025 PyObject * obj1 = 0 ;
10026 char * kwnames[] = {
10027 (char *) "self",(char *) "size", NULL
10028 };
10029
10030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10032 if (!SWIG_IsOK(res1)) {
10033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10034 }
10035 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10036 {
10037 arg2 = &temp2;
10038 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10039 }
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10042 {
554f62e9
RD
10043 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10044 result = (wxIcon *) &_result_ref;
d55e5bfc 10045 }
554f62e9
RD
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 {
10050 wxIcon* resultptr = new wxIcon(*result);
10051 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10052 }
10053 return resultobj;
10054fail:
10055 return NULL;
10056}
10057
10058
10059SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10060 PyObject *obj;
10061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10062 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10063 return SWIG_Py_Void();
10064}
10065
10066SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10067 return SWIG_Python_InitShadowInstance(args);
10068}
10069
10070SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10071 PyObject *resultobj = 0;
10072 wxString *arg1 = 0 ;
10073 long arg2 ;
10074 int arg3 = (int) 0 ;
10075 int arg4 = (int) 0 ;
10076 wxCursor *result = 0 ;
10077 bool temp1 = false ;
10078 long val2 ;
10079 int ecode2 = 0 ;
10080 int val3 ;
10081 int ecode3 = 0 ;
10082 int val4 ;
10083 int ecode4 = 0 ;
10084 PyObject * obj0 = 0 ;
10085 PyObject * obj1 = 0 ;
10086 PyObject * obj2 = 0 ;
10087 PyObject * obj3 = 0 ;
10088 char * kwnames[] = {
10089 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10090 };
10091
10092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10093 {
10094 arg1 = wxString_in_helper(obj0);
10095 if (arg1 == NULL) SWIG_fail;
10096 temp1 = true;
10097 }
10098 ecode2 = SWIG_AsVal_long(obj1, &val2);
10099 if (!SWIG_IsOK(ecode2)) {
10100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10101 }
10102 arg2 = static_cast< long >(val2);
10103 if (obj2) {
10104 ecode3 = SWIG_AsVal_int(obj2, &val3);
10105 if (!SWIG_IsOK(ecode3)) {
10106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10107 }
10108 arg3 = static_cast< int >(val3);
10109 }
10110 if (obj3) {
10111 ecode4 = SWIG_AsVal_int(obj3, &val4);
10112 if (!SWIG_IsOK(ecode4)) {
10113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10114 }
10115 arg4 = static_cast< int >(val4);
10116 }
10117 {
10118 if (!wxPyCheckForApp()) SWIG_fail;
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10125 {
10126 if (temp1)
10127 delete arg1;
10128 }
10129 return resultobj;
10130fail:
10131 {
10132 if (temp1)
10133 delete arg1;
10134 }
10135 return NULL;
d55e5bfc
RD
10136}
10137
10138
554f62e9
RD
10139SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10140 PyObject *resultobj = 0;
10141 wxCursor *arg1 = (wxCursor *) 0 ;
10142 void *argp1 = 0 ;
10143 int res1 = 0 ;
10144 PyObject *swig_obj[1] ;
10145
10146 if (!args) SWIG_fail;
10147 swig_obj[0] = args;
10148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10149 if (!SWIG_IsOK(res1)) {
10150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10151 }
10152 arg1 = reinterpret_cast< wxCursor * >(argp1);
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 delete arg1;
d55e5bfc 10156
554f62e9
RD
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 resultobj = SWIG_Py_Void();
10161 return resultobj;
10162fail:
10163 return NULL;
10164}
10165
10166
10167SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj = 0;
10169 int arg1 ;
10170 wxCursor *result = 0 ;
10171 int val1 ;
10172 int ecode1 = 0 ;
10173 PyObject * obj0 = 0 ;
10174 char * kwnames[] = {
10175 (char *) "id", NULL
10176 };
10177
10178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10179 ecode1 = SWIG_AsVal_int(obj0, &val1);
10180 if (!SWIG_IsOK(ecode1)) {
10181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10182 }
10183 arg1 = static_cast< int >(val1);
10184 {
10185 if (!wxPyCheckForApp()) SWIG_fail;
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 result = (wxCursor *)new wxCursor(arg1);
10188 wxPyEndAllowThreads(__tstate);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10192 return resultobj;
10193fail:
10194 return NULL;
10195}
10196
10197
10198SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10199 PyObject *resultobj = 0;
10200 wxImage *arg1 = 0 ;
10201 wxCursor *result = 0 ;
10202 void *argp1 = 0 ;
10203 int res1 = 0 ;
10204 PyObject * obj0 = 0 ;
10205 char * kwnames[] = {
10206 (char *) "image", NULL
10207 };
10208
10209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10210 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10211 if (!SWIG_IsOK(res1)) {
10212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10213 }
10214 if (!argp1) {
10215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10216 }
10217 arg1 = reinterpret_cast< wxImage * >(argp1);
10218 {
10219 if (!wxPyCheckForApp()) SWIG_fail;
10220 PyThreadState* __tstate = wxPyBeginAllowThreads();
10221 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10226 return resultobj;
10227fail:
10228 return NULL;
d55e5bfc
RD
10229}
10230
10231
554f62e9
RD
10232SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10233 PyObject *resultobj = 0;
10234 wxCursor *arg1 = (wxCursor *) 0 ;
10235 long result;
10236 void *argp1 = 0 ;
10237 int res1 = 0 ;
10238 PyObject *swig_obj[1] ;
10239
10240 if (!args) SWIG_fail;
10241 swig_obj[0] = args;
10242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10243 if (!SWIG_IsOK(res1)) {
10244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10245 }
10246 arg1 = reinterpret_cast< wxCursor * >(argp1);
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (long)(arg1)->GetHandle();
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = SWIG_From_long(static_cast< long >(result));
10254 return resultobj;
10255fail:
10256 return NULL;
10257}
10258
10259
10260SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj = 0;
10262 wxCursor *arg1 = (wxCursor *) 0 ;
10263 long arg2 ;
10264 void *argp1 = 0 ;
10265 int res1 = 0 ;
10266 long val2 ;
10267 int ecode2 = 0 ;
10268 PyObject * obj0 = 0 ;
10269 PyObject * obj1 = 0 ;
10270 char * kwnames[] = {
10271 (char *) "self",(char *) "handle", NULL
10272 };
10273
10274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10276 if (!SWIG_IsOK(res1)) {
10277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10278 }
10279 arg1 = reinterpret_cast< wxCursor * >(argp1);
10280 ecode2 = SWIG_AsVal_long(obj1, &val2);
10281 if (!SWIG_IsOK(ecode2)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10283 }
10284 arg2 = static_cast< long >(val2);
10285 {
10286 PyThreadState* __tstate = wxPyBeginAllowThreads();
10287 wxCursor_SetHandle(arg1,arg2);
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 resultobj = SWIG_Py_Void();
10292 return resultobj;
10293fail:
10294 return NULL;
d55e5bfc
RD
10295}
10296
10297
b39fe951 10298SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10299 PyObject *resultobj = 0;
10300 wxCursor *arg1 = (wxCursor *) 0 ;
10301 bool result;
10302 void *argp1 = 0 ;
10303 int res1 = 0 ;
10304 PyObject *swig_obj[1] ;
10305
10306 if (!args) SWIG_fail;
10307 swig_obj[0] = args;
10308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10309 if (!SWIG_IsOK(res1)) {
b39fe951 10310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10311 }
10312 arg1 = reinterpret_cast< wxCursor * >(argp1);
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10315 result = (bool)(arg1)->IsOk();
554f62e9
RD
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 {
10320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10321 }
10322 return resultobj;
10323fail:
10324 return NULL;
d55e5bfc
RD
10325}
10326
10327
554f62e9
RD
10328SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10329 PyObject *resultobj = 0;
10330 wxCursor *arg1 = (wxCursor *) 0 ;
10331 int result;
10332 void *argp1 = 0 ;
10333 int res1 = 0 ;
10334 PyObject *swig_obj[1] ;
10335
10336 if (!args) SWIG_fail;
10337 swig_obj[0] = args;
10338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10341 }
10342 arg1 = reinterpret_cast< wxCursor * >(argp1);
10343 {
10344 PyThreadState* __tstate = wxPyBeginAllowThreads();
10345 result = (int)(arg1)->GetWidth();
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 resultobj = SWIG_From_int(static_cast< int >(result));
10350 return resultobj;
10351fail:
10352 return NULL;
d55e5bfc
RD
10353}
10354
10355
554f62e9
RD
10356SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10357 PyObject *resultobj = 0;
10358 wxCursor *arg1 = (wxCursor *) 0 ;
10359 int result;
10360 void *argp1 = 0 ;
10361 int res1 = 0 ;
10362 PyObject *swig_obj[1] ;
10363
10364 if (!args) SWIG_fail;
10365 swig_obj[0] = args;
10366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10367 if (!SWIG_IsOK(res1)) {
10368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10369 }
10370 arg1 = reinterpret_cast< wxCursor * >(argp1);
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (int)(arg1)->GetHeight();
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_From_int(static_cast< int >(result));
10378 return resultobj;
10379fail:
10380 return NULL;
d55e5bfc
RD
10381}
10382
10383
554f62e9
RD
10384SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10385 PyObject *resultobj = 0;
10386 wxCursor *arg1 = (wxCursor *) 0 ;
10387 int result;
10388 void *argp1 = 0 ;
10389 int res1 = 0 ;
10390 PyObject *swig_obj[1] ;
10391
10392 if (!args) SWIG_fail;
10393 swig_obj[0] = args;
10394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10397 }
10398 arg1 = reinterpret_cast< wxCursor * >(argp1);
10399 {
10400 PyThreadState* __tstate = wxPyBeginAllowThreads();
10401 result = (int)(arg1)->GetDepth();
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_From_int(static_cast< int >(result));
10406 return resultobj;
10407fail:
10408 return NULL;
10409}
10410
10411
10412SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj = 0;
10414 wxCursor *arg1 = (wxCursor *) 0 ;
10415 int arg2 ;
10416 void *argp1 = 0 ;
10417 int res1 = 0 ;
10418 int val2 ;
10419 int ecode2 = 0 ;
10420 PyObject * obj0 = 0 ;
10421 PyObject * obj1 = 0 ;
10422 char * kwnames[] = {
10423 (char *) "self",(char *) "w", NULL
10424 };
10425
10426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10428 if (!SWIG_IsOK(res1)) {
10429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10430 }
10431 arg1 = reinterpret_cast< wxCursor * >(argp1);
10432 ecode2 = SWIG_AsVal_int(obj1, &val2);
10433 if (!SWIG_IsOK(ecode2)) {
10434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10435 }
10436 arg2 = static_cast< int >(val2);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 (arg1)->SetWidth(arg2);
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_Py_Void();
10444 return resultobj;
10445fail:
10446 return NULL;
10447}
10448
10449
10450SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10451 PyObject *resultobj = 0;
10452 wxCursor *arg1 = (wxCursor *) 0 ;
10453 int arg2 ;
10454 void *argp1 = 0 ;
10455 int res1 = 0 ;
10456 int val2 ;
10457 int ecode2 = 0 ;
10458 PyObject * obj0 = 0 ;
10459 PyObject * obj1 = 0 ;
10460 char * kwnames[] = {
10461 (char *) "self",(char *) "h", NULL
10462 };
10463
10464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10466 if (!SWIG_IsOK(res1)) {
10467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10468 }
10469 arg1 = reinterpret_cast< wxCursor * >(argp1);
10470 ecode2 = SWIG_AsVal_int(obj1, &val2);
10471 if (!SWIG_IsOK(ecode2)) {
10472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10473 }
10474 arg2 = static_cast< int >(val2);
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 (arg1)->SetHeight(arg2);
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_Py_Void();
10482 return resultobj;
10483fail:
10484 return NULL;
10485}
10486
10487
10488SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj = 0;
10490 wxCursor *arg1 = (wxCursor *) 0 ;
10491 int arg2 ;
10492 void *argp1 = 0 ;
10493 int res1 = 0 ;
10494 int val2 ;
10495 int ecode2 = 0 ;
10496 PyObject * obj0 = 0 ;
10497 PyObject * obj1 = 0 ;
10498 char * kwnames[] = {
10499 (char *) "self",(char *) "d", NULL
10500 };
10501
10502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10504 if (!SWIG_IsOK(res1)) {
10505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10506 }
10507 arg1 = reinterpret_cast< wxCursor * >(argp1);
10508 ecode2 = SWIG_AsVal_int(obj1, &val2);
10509 if (!SWIG_IsOK(ecode2)) {
10510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10511 }
10512 arg2 = static_cast< int >(val2);
10513 {
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 (arg1)->SetDepth(arg2);
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_Py_Void();
10520 return resultobj;
10521fail:
10522 return NULL;
10523}
10524
10525
10526SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10527 PyObject *resultobj = 0;
10528 wxCursor *arg1 = (wxCursor *) 0 ;
10529 wxSize *arg2 = 0 ;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 wxSize temp2 ;
10533 PyObject * obj0 = 0 ;
10534 PyObject * obj1 = 0 ;
10535 char * kwnames[] = {
10536 (char *) "self",(char *) "size", NULL
10537 };
10538
10539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10541 if (!SWIG_IsOK(res1)) {
10542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10543 }
10544 arg1 = reinterpret_cast< wxCursor * >(argp1);
10545 {
10546 arg2 = &temp2;
10547 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10548 }
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 (arg1)->SetSize((wxSize const &)*arg2);
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 resultobj = SWIG_Py_Void();
10556 return resultobj;
10557fail:
10558 return NULL;
10559}
10560
10561
10562SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10563 PyObject *obj;
10564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10565 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10566 return SWIG_Py_Void();
10567}
10568
10569SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10570 return SWIG_Python_InitShadowInstance(args);
10571}
10572
10573SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 int arg1 = (int) 0 ;
10576 int arg2 = (int) 0 ;
10577 int arg3 = (int) 0 ;
10578 int arg4 = (int) 0 ;
10579 wxRegion *result = 0 ;
10580 int val1 ;
10581 int ecode1 = 0 ;
10582 int val2 ;
10583 int ecode2 = 0 ;
10584 int val3 ;
10585 int ecode3 = 0 ;
10586 int val4 ;
10587 int ecode4 = 0 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 PyObject * obj2 = 0 ;
10591 PyObject * obj3 = 0 ;
10592 char * kwnames[] = {
10593 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10594 };
10595
10596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10597 if (obj0) {
10598 ecode1 = SWIG_AsVal_int(obj0, &val1);
10599 if (!SWIG_IsOK(ecode1)) {
10600 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10601 }
10602 arg1 = static_cast< int >(val1);
10603 }
10604 if (obj1) {
10605 ecode2 = SWIG_AsVal_int(obj1, &val2);
10606 if (!SWIG_IsOK(ecode2)) {
10607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10608 }
10609 arg2 = static_cast< int >(val2);
10610 }
10611 if (obj2) {
10612 ecode3 = SWIG_AsVal_int(obj2, &val3);
10613 if (!SWIG_IsOK(ecode3)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10615 }
10616 arg3 = static_cast< int >(val3);
10617 }
10618 if (obj3) {
10619 ecode4 = SWIG_AsVal_int(obj3, &val4);
10620 if (!SWIG_IsOK(ecode4)) {
10621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10622 }
10623 arg4 = static_cast< int >(val4);
10624 }
10625 {
10626 if (!wxPyCheckForApp()) SWIG_fail;
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10633 return resultobj;
10634fail:
10635 return NULL;
10636}
10637
10638
10639SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10640 PyObject *resultobj = 0;
10641 wxBitmap *arg1 = 0 ;
10642 wxRegion *result = 0 ;
10643 void *argp1 = 0 ;
10644 int res1 = 0 ;
10645 PyObject * obj0 = 0 ;
10646 char * kwnames[] = {
10647 (char *) "bmp", NULL
10648 };
10649
10650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10651 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10652 if (!SWIG_IsOK(res1)) {
10653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10654 }
10655 if (!argp1) {
10656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10657 }
10658 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10659 {
10660 if (!wxPyCheckForApp()) SWIG_fail;
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10667 return resultobj;
10668fail:
10669 return NULL;
10670}
10671
10672
10673SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj = 0;
10675 wxBitmap *arg1 = 0 ;
10676 wxColour *arg2 = 0 ;
10677 int arg3 = (int) 0 ;
10678 wxRegion *result = 0 ;
10679 void *argp1 = 0 ;
10680 int res1 = 0 ;
10681 wxColour temp2 ;
10682 int val3 ;
10683 int ecode3 = 0 ;
10684 PyObject * obj0 = 0 ;
10685 PyObject * obj1 = 0 ;
10686 PyObject * obj2 = 0 ;
10687 char * kwnames[] = {
10688 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10689 };
10690
10691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10692 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10693 if (!SWIG_IsOK(res1)) {
10694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10695 }
10696 if (!argp1) {
10697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10698 }
10699 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10700 {
10701 arg2 = &temp2;
10702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10703 }
10704 if (obj2) {
10705 ecode3 = SWIG_AsVal_int(obj2, &val3);
10706 if (!SWIG_IsOK(ecode3)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10708 }
10709 arg3 = static_cast< int >(val3);
10710 }
10711 {
10712 if (!wxPyCheckForApp()) SWIG_fail;
10713 PyThreadState* __tstate = wxPyBeginAllowThreads();
10714 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10719 return resultobj;
10720fail:
10721 return NULL;
10722}
10723
10724
10725SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj = 0;
10727 int arg1 ;
10728 wxPoint *arg2 = (wxPoint *) 0 ;
10729 int arg3 = (int) wxWINDING_RULE ;
10730 wxRegion *result = 0 ;
10731 int val3 ;
10732 int ecode3 = 0 ;
10733 PyObject * obj0 = 0 ;
10734 PyObject * obj1 = 0 ;
10735 char * kwnames[] = {
10736 (char *) "points",(char *) "fillStyle", NULL
10737 };
10738
10739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10740 {
10741 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10742 if (arg2 == NULL) SWIG_fail;
10743 }
10744 if (obj1) {
10745 ecode3 = SWIG_AsVal_int(obj1, &val3);
10746 if (!SWIG_IsOK(ecode3)) {
10747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10748 }
10749 arg3 = static_cast< int >(val3);
10750 }
10751 {
10752 if (!wxPyCheckForApp()) SWIG_fail;
10753 PyThreadState* __tstate = wxPyBeginAllowThreads();
10754 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10755 wxPyEndAllowThreads(__tstate);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10759 {
10760 if (arg2) delete [] arg2;
10761 }
10762 return resultobj;
10763fail:
10764 {
10765 if (arg2) delete [] arg2;
10766 }
10767 return NULL;
d55e5bfc
RD
10768}
10769
10770
554f62e9
RD
10771SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10772 PyObject *resultobj = 0;
10773 wxRegion *arg1 = (wxRegion *) 0 ;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 PyObject *swig_obj[1] ;
10777
10778 if (!args) SWIG_fail;
10779 swig_obj[0] = args;
10780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRegion * >(argp1);
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 delete arg1;
d55e5bfc 10788
554f62e9
RD
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 resultobj = SWIG_Py_Void();
10793 return resultobj;
10794fail:
10795 return NULL;
d55e5bfc
RD
10796}
10797
10798
554f62e9
RD
10799SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10800 PyObject *resultobj = 0;
10801 wxRegion *arg1 = (wxRegion *) 0 ;
10802 void *argp1 = 0 ;
10803 int res1 = 0 ;
10804 PyObject *swig_obj[1] ;
10805
10806 if (!args) SWIG_fail;
10807 swig_obj[0] = args;
10808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10809 if (!SWIG_IsOK(res1)) {
10810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10811 }
10812 arg1 = reinterpret_cast< wxRegion * >(argp1);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->Clear();
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_Py_Void();
10820 return resultobj;
10821fail:
10822 return NULL;
10823}
10824
10825
10826SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj = 0;
10828 wxRegion *arg1 = (wxRegion *) 0 ;
10829 int arg2 ;
10830 int arg3 ;
10831 bool result;
10832 void *argp1 = 0 ;
10833 int res1 = 0 ;
10834 int val2 ;
10835 int ecode2 = 0 ;
10836 int val3 ;
10837 int ecode3 = 0 ;
10838 PyObject * obj0 = 0 ;
10839 PyObject * obj1 = 0 ;
10840 PyObject * obj2 = 0 ;
10841 char * kwnames[] = {
10842 (char *) "self",(char *) "x",(char *) "y", NULL
10843 };
10844
10845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10847 if (!SWIG_IsOK(res1)) {
10848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10849 }
10850 arg1 = reinterpret_cast< wxRegion * >(argp1);
10851 ecode2 = SWIG_AsVal_int(obj1, &val2);
10852 if (!SWIG_IsOK(ecode2)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10854 }
10855 arg2 = static_cast< int >(val2);
10856 ecode3 = SWIG_AsVal_int(obj2, &val3);
10857 if (!SWIG_IsOK(ecode3)) {
10858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10859 }
10860 arg3 = static_cast< int >(val3);
10861 {
10862 PyThreadState* __tstate = wxPyBeginAllowThreads();
10863 result = (bool)(arg1)->Offset(arg2,arg3);
10864 wxPyEndAllowThreads(__tstate);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 }
10867 {
10868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10869 }
10870 return resultobj;
10871fail:
10872 return NULL;
10873}
10874
10875
10876SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10877 PyObject *resultobj = 0;
10878 wxRegion *arg1 = (wxRegion *) 0 ;
10879 int arg2 ;
10880 int arg3 ;
10881 wxRegionContain result;
10882 void *argp1 = 0 ;
10883 int res1 = 0 ;
10884 int val2 ;
10885 int ecode2 = 0 ;
10886 int val3 ;
10887 int ecode3 = 0 ;
10888 PyObject * obj0 = 0 ;
10889 PyObject * obj1 = 0 ;
10890 PyObject * obj2 = 0 ;
10891 char * kwnames[] = {
10892 (char *) "self",(char *) "x",(char *) "y", NULL
10893 };
10894
10895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10897 if (!SWIG_IsOK(res1)) {
10898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10899 }
10900 arg1 = reinterpret_cast< wxRegion * >(argp1);
10901 ecode2 = SWIG_AsVal_int(obj1, &val2);
10902 if (!SWIG_IsOK(ecode2)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10904 }
10905 arg2 = static_cast< int >(val2);
10906 ecode3 = SWIG_AsVal_int(obj2, &val3);
10907 if (!SWIG_IsOK(ecode3)) {
10908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10909 }
10910 arg3 = static_cast< int >(val3);
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10914 wxPyEndAllowThreads(__tstate);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
10917 resultobj = SWIG_From_int(static_cast< int >(result));
10918 return resultobj;
10919fail:
10920 return NULL;
10921}
10922
10923
10924SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj = 0;
10926 wxRegion *arg1 = (wxRegion *) 0 ;
10927 wxPoint *arg2 = 0 ;
10928 wxRegionContain result;
10929 void *argp1 = 0 ;
10930 int res1 = 0 ;
10931 wxPoint temp2 ;
10932 PyObject * obj0 = 0 ;
10933 PyObject * obj1 = 0 ;
10934 char * kwnames[] = {
10935 (char *) "self",(char *) "pt", NULL
10936 };
10937
10938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10940 if (!SWIG_IsOK(res1)) {
10941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10942 }
10943 arg1 = reinterpret_cast< wxRegion * >(argp1);
10944 {
10945 arg2 = &temp2;
10946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 resultobj = SWIG_From_int(static_cast< int >(result));
10955 return resultobj;
10956fail:
10957 return NULL;
10958}
10959
10960
10961SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj = 0;
10963 wxRegion *arg1 = (wxRegion *) 0 ;
10964 wxRect *arg2 = 0 ;
10965 wxRegionContain result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 wxRect temp2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char * kwnames[] = {
10972 (char *) "self",(char *) "rect", NULL
10973 };
10974
10975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10979 }
10980 arg1 = reinterpret_cast< wxRegion * >(argp1);
10981 {
10982 arg2 = &temp2;
10983 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10984 }
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 resultobj = SWIG_From_int(static_cast< int >(result));
10992 return resultobj;
10993fail:
10994 return NULL;
10995}
10996
10997
10998SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj = 0;
11000 wxRegion *arg1 = (wxRegion *) 0 ;
11001 int arg2 ;
11002 int arg3 ;
11003 int arg4 ;
11004 int arg5 ;
11005 wxRegionContain result;
11006 void *argp1 = 0 ;
11007 int res1 = 0 ;
11008 int val2 ;
11009 int ecode2 = 0 ;
11010 int val3 ;
11011 int ecode3 = 0 ;
11012 int val4 ;
11013 int ecode4 = 0 ;
11014 int val5 ;
11015 int ecode5 = 0 ;
11016 PyObject * obj0 = 0 ;
11017 PyObject * obj1 = 0 ;
11018 PyObject * obj2 = 0 ;
11019 PyObject * obj3 = 0 ;
11020 PyObject * obj4 = 0 ;
11021 char * kwnames[] = {
11022 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11023 };
11024
11025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11027 if (!SWIG_IsOK(res1)) {
11028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11029 }
11030 arg1 = reinterpret_cast< wxRegion * >(argp1);
11031 ecode2 = SWIG_AsVal_int(obj1, &val2);
11032 if (!SWIG_IsOK(ecode2)) {
11033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11034 }
11035 arg2 = static_cast< int >(val2);
11036 ecode3 = SWIG_AsVal_int(obj2, &val3);
11037 if (!SWIG_IsOK(ecode3)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11039 }
11040 arg3 = static_cast< int >(val3);
11041 ecode4 = SWIG_AsVal_int(obj3, &val4);
11042 if (!SWIG_IsOK(ecode4)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11044 }
11045 arg4 = static_cast< int >(val4);
11046 ecode5 = SWIG_AsVal_int(obj4, &val5);
11047 if (!SWIG_IsOK(ecode5)) {
11048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11049 }
11050 arg5 = static_cast< int >(val5);
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 resultobj = SWIG_From_int(static_cast< int >(result));
11058 return resultobj;
11059fail:
11060 return NULL;
d55e5bfc
RD
11061}
11062
11063
554f62e9
RD
11064SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11065 PyObject *resultobj = 0;
11066 wxRegion *arg1 = (wxRegion *) 0 ;
11067 wxRect result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 PyObject *swig_obj[1] ;
11071
11072 if (!args) SWIG_fail;
11073 swig_obj[0] = args;
11074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11075 if (!SWIG_IsOK(res1)) {
11076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11077 }
11078 arg1 = reinterpret_cast< wxRegion * >(argp1);
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (arg1)->GetBox();
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11086 return resultobj;
11087fail:
11088 return NULL;
11089}
11090
11091
11092SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11093 PyObject *resultobj = 0;
11094 wxRegion *arg1 = (wxRegion *) 0 ;
11095 int arg2 ;
11096 int arg3 ;
11097 int arg4 ;
11098 int arg5 ;
11099 bool result;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 int val2 ;
11103 int ecode2 = 0 ;
11104 int val3 ;
11105 int ecode3 = 0 ;
11106 int val4 ;
11107 int ecode4 = 0 ;
11108 int val5 ;
11109 int ecode5 = 0 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 PyObject * obj2 = 0 ;
11113 PyObject * obj3 = 0 ;
11114 PyObject * obj4 = 0 ;
11115 char * kwnames[] = {
11116 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11117 };
11118
11119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11121 if (!SWIG_IsOK(res1)) {
11122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11123 }
11124 arg1 = reinterpret_cast< wxRegion * >(argp1);
11125 ecode2 = SWIG_AsVal_int(obj1, &val2);
11126 if (!SWIG_IsOK(ecode2)) {
11127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11128 }
11129 arg2 = static_cast< int >(val2);
11130 ecode3 = SWIG_AsVal_int(obj2, &val3);
11131 if (!SWIG_IsOK(ecode3)) {
11132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11133 }
11134 arg3 = static_cast< int >(val3);
11135 ecode4 = SWIG_AsVal_int(obj3, &val4);
11136 if (!SWIG_IsOK(ecode4)) {
11137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11138 }
11139 arg4 = static_cast< int >(val4);
11140 ecode5 = SWIG_AsVal_int(obj4, &val5);
11141 if (!SWIG_IsOK(ecode5)) {
11142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11143 }
11144 arg5 = static_cast< int >(val5);
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11148 wxPyEndAllowThreads(__tstate);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 }
11151 {
11152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11153 }
11154 return resultobj;
11155fail:
11156 return NULL;
11157}
11158
11159
11160SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj = 0;
11162 wxRegion *arg1 = (wxRegion *) 0 ;
11163 wxRect *arg2 = 0 ;
11164 bool result;
11165 void *argp1 = 0 ;
11166 int res1 = 0 ;
11167 wxRect temp2 ;
11168 PyObject * obj0 = 0 ;
11169 PyObject * obj1 = 0 ;
11170 char * kwnames[] = {
11171 (char *) "self",(char *) "rect", NULL
11172 };
11173
11174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11176 if (!SWIG_IsOK(res1)) {
11177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11178 }
11179 arg1 = reinterpret_cast< wxRegion * >(argp1);
11180 {
11181 arg2 = &temp2;
11182 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11183 }
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 {
11191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11192 }
11193 return resultobj;
11194fail:
11195 return NULL;
11196}
11197
11198
11199SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj = 0;
11201 wxRegion *arg1 = (wxRegion *) 0 ;
11202 wxRegion *arg2 = 0 ;
11203 bool result;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 void *argp2 = 0 ;
11207 int res2 = 0 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 char * kwnames[] = {
11211 (char *) "self",(char *) "region", NULL
11212 };
11213
11214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11216 if (!SWIG_IsOK(res1)) {
11217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11218 }
11219 arg1 = reinterpret_cast< wxRegion * >(argp1);
11220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11221 if (!SWIG_IsOK(res2)) {
11222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11223 }
11224 if (!argp2) {
11225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11226 }
11227 arg2 = reinterpret_cast< wxRegion * >(argp2);
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 {
11235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11236 }
11237 return resultobj;
11238fail:
11239 return NULL;
d55e5bfc
RD
11240}
11241
11242
554f62e9
RD
11243SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11244 PyObject *resultobj = 0;
11245 wxRegion *arg1 = (wxRegion *) 0 ;
11246 bool result;
11247 void *argp1 = 0 ;
11248 int res1 = 0 ;
11249 PyObject *swig_obj[1] ;
11250
11251 if (!args) SWIG_fail;
11252 swig_obj[0] = args;
11253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11254 if (!SWIG_IsOK(res1)) {
11255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11256 }
11257 arg1 = reinterpret_cast< wxRegion * >(argp1);
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 result = (bool)(arg1)->IsEmpty();
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 {
11265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11266 }
11267 return resultobj;
11268fail:
11269 return NULL;
11270}
11271
11272
f5263701
RD
11273SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj = 0;
11275 wxRegion *arg1 = (wxRegion *) 0 ;
11276 wxRegion *arg2 = 0 ;
11277 bool result;
11278 void *argp1 = 0 ;
11279 int res1 = 0 ;
11280 void *argp2 = 0 ;
11281 int res2 = 0 ;
11282 PyObject * obj0 = 0 ;
11283 PyObject * obj1 = 0 ;
11284 char * kwnames[] = {
11285 (char *) "self",(char *) "region", NULL
11286 };
11287
11288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11292 }
11293 arg1 = reinterpret_cast< wxRegion * >(argp1);
11294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11295 if (!SWIG_IsOK(res2)) {
11296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11297 }
11298 if (!argp2) {
11299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11300 }
11301 arg2 = reinterpret_cast< wxRegion * >(argp2);
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 {
11309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11310 }
11311 return resultobj;
11312fail:
11313 return NULL;
11314}
11315
11316
554f62e9
RD
11317SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj = 0;
11319 wxRegion *arg1 = (wxRegion *) 0 ;
11320 int arg2 ;
11321 int arg3 ;
11322 int arg4 ;
11323 int arg5 ;
11324 bool result;
11325 void *argp1 = 0 ;
11326 int res1 = 0 ;
11327 int val2 ;
11328 int ecode2 = 0 ;
11329 int val3 ;
11330 int ecode3 = 0 ;
11331 int val4 ;
11332 int ecode4 = 0 ;
11333 int val5 ;
11334 int ecode5 = 0 ;
11335 PyObject * obj0 = 0 ;
11336 PyObject * obj1 = 0 ;
11337 PyObject * obj2 = 0 ;
11338 PyObject * obj3 = 0 ;
11339 PyObject * obj4 = 0 ;
11340 char * kwnames[] = {
11341 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11342 };
11343
11344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11346 if (!SWIG_IsOK(res1)) {
11347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11348 }
11349 arg1 = reinterpret_cast< wxRegion * >(argp1);
11350 ecode2 = SWIG_AsVal_int(obj1, &val2);
11351 if (!SWIG_IsOK(ecode2)) {
11352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11353 }
11354 arg2 = static_cast< int >(val2);
11355 ecode3 = SWIG_AsVal_int(obj2, &val3);
11356 if (!SWIG_IsOK(ecode3)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11358 }
11359 arg3 = static_cast< int >(val3);
11360 ecode4 = SWIG_AsVal_int(obj3, &val4);
11361 if (!SWIG_IsOK(ecode4)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11363 }
11364 arg4 = static_cast< int >(val4);
11365 ecode5 = SWIG_AsVal_int(obj4, &val5);
11366 if (!SWIG_IsOK(ecode5)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11368 }
11369 arg5 = static_cast< int >(val5);
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11378 }
11379 return resultobj;
11380fail:
11381 return NULL;
11382}
11383
11384
11385SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj = 0;
11387 wxRegion *arg1 = (wxRegion *) 0 ;
11388 wxRect *arg2 = 0 ;
11389 bool result;
11390 void *argp1 = 0 ;
11391 int res1 = 0 ;
11392 wxRect temp2 ;
11393 PyObject * obj0 = 0 ;
11394 PyObject * obj1 = 0 ;
11395 char * kwnames[] = {
11396 (char *) "self",(char *) "rect", NULL
11397 };
11398
11399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11401 if (!SWIG_IsOK(res1)) {
11402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11403 }
11404 arg1 = reinterpret_cast< wxRegion * >(argp1);
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 {
11416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11417 }
11418 return resultobj;
11419fail:
11420 return NULL;
11421}
11422
11423
11424SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11425 PyObject *resultobj = 0;
11426 wxRegion *arg1 = (wxRegion *) 0 ;
11427 wxRegion *arg2 = 0 ;
11428 bool result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 void *argp2 = 0 ;
11432 int res2 = 0 ;
11433 PyObject * obj0 = 0 ;
11434 PyObject * obj1 = 0 ;
11435 char * kwnames[] = {
11436 (char *) "self",(char *) "region", NULL
11437 };
11438
11439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11443 }
11444 arg1 = reinterpret_cast< wxRegion * >(argp1);
11445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11446 if (!SWIG_IsOK(res2)) {
11447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11448 }
11449 if (!argp2) {
11450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11451 }
11452 arg2 = reinterpret_cast< wxRegion * >(argp2);
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11456 wxPyEndAllowThreads(__tstate);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 }
11459 {
11460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11461 }
11462 return resultobj;
11463fail:
11464 return NULL;
11465}
11466
11467
11468SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11469 PyObject *resultobj = 0;
11470 wxRegion *arg1 = (wxRegion *) 0 ;
11471 int arg2 ;
11472 int arg3 ;
11473 int arg4 ;
11474 int arg5 ;
11475 bool result;
11476 void *argp1 = 0 ;
11477 int res1 = 0 ;
11478 int val2 ;
11479 int ecode2 = 0 ;
11480 int val3 ;
11481 int ecode3 = 0 ;
11482 int val4 ;
11483 int ecode4 = 0 ;
11484 int val5 ;
11485 int ecode5 = 0 ;
11486 PyObject * obj0 = 0 ;
11487 PyObject * obj1 = 0 ;
11488 PyObject * obj2 = 0 ;
11489 PyObject * obj3 = 0 ;
11490 PyObject * obj4 = 0 ;
11491 char * kwnames[] = {
11492 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11493 };
11494
11495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11497 if (!SWIG_IsOK(res1)) {
11498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11499 }
11500 arg1 = reinterpret_cast< wxRegion * >(argp1);
11501 ecode2 = SWIG_AsVal_int(obj1, &val2);
11502 if (!SWIG_IsOK(ecode2)) {
11503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11504 }
11505 arg2 = static_cast< int >(val2);
11506 ecode3 = SWIG_AsVal_int(obj2, &val3);
11507 if (!SWIG_IsOK(ecode3)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11509 }
11510 arg3 = static_cast< int >(val3);
11511 ecode4 = SWIG_AsVal_int(obj3, &val4);
11512 if (!SWIG_IsOK(ecode4)) {
11513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11514 }
11515 arg4 = static_cast< int >(val4);
11516 ecode5 = SWIG_AsVal_int(obj4, &val5);
11517 if (!SWIG_IsOK(ecode5)) {
11518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11519 }
11520 arg5 = static_cast< int >(val5);
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 {
11528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11529 }
11530 return resultobj;
11531fail:
11532 return NULL;
11533}
11534
11535
11536SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11537 PyObject *resultobj = 0;
11538 wxRegion *arg1 = (wxRegion *) 0 ;
11539 wxRect *arg2 = 0 ;
11540 bool result;
11541 void *argp1 = 0 ;
11542 int res1 = 0 ;
11543 wxRect temp2 ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 char * kwnames[] = {
11547 (char *) "self",(char *) "rect", NULL
11548 };
11549
11550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11552 if (!SWIG_IsOK(res1)) {
11553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11554 }
11555 arg1 = reinterpret_cast< wxRegion * >(argp1);
11556 {
11557 arg2 = &temp2;
11558 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11559 }
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 {
11567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11568 }
11569 return resultobj;
11570fail:
11571 return NULL;
11572}
11573
11574
11575SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11576 PyObject *resultobj = 0;
11577 wxRegion *arg1 = (wxRegion *) 0 ;
11578 wxRegion *arg2 = 0 ;
11579 bool result;
11580 void *argp1 = 0 ;
11581 int res1 = 0 ;
11582 void *argp2 = 0 ;
11583 int res2 = 0 ;
11584 PyObject * obj0 = 0 ;
11585 PyObject * obj1 = 0 ;
11586 char * kwnames[] = {
11587 (char *) "self",(char *) "region", NULL
11588 };
11589
11590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11592 if (!SWIG_IsOK(res1)) {
11593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11594 }
11595 arg1 = reinterpret_cast< wxRegion * >(argp1);
11596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11597 if (!SWIG_IsOK(res2)) {
11598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11599 }
11600 if (!argp2) {
11601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11602 }
11603 arg2 = reinterpret_cast< wxRegion * >(argp2);
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 {
11611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11612 }
11613 return resultobj;
11614fail:
11615 return NULL;
11616}
11617
11618
11619SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj = 0;
11621 wxRegion *arg1 = (wxRegion *) 0 ;
11622 int arg2 ;
11623 int arg3 ;
11624 int arg4 ;
11625 int arg5 ;
11626 bool result;
11627 void *argp1 = 0 ;
11628 int res1 = 0 ;
11629 int val2 ;
11630 int ecode2 = 0 ;
11631 int val3 ;
11632 int ecode3 = 0 ;
11633 int val4 ;
11634 int ecode4 = 0 ;
11635 int val5 ;
11636 int ecode5 = 0 ;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 PyObject * obj2 = 0 ;
11640 PyObject * obj3 = 0 ;
11641 PyObject * obj4 = 0 ;
11642 char * kwnames[] = {
11643 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11644 };
11645
11646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11648 if (!SWIG_IsOK(res1)) {
11649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11650 }
11651 arg1 = reinterpret_cast< wxRegion * >(argp1);
11652 ecode2 = SWIG_AsVal_int(obj1, &val2);
11653 if (!SWIG_IsOK(ecode2)) {
11654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11655 }
11656 arg2 = static_cast< int >(val2);
11657 ecode3 = SWIG_AsVal_int(obj2, &val3);
11658 if (!SWIG_IsOK(ecode3)) {
11659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11660 }
11661 arg3 = static_cast< int >(val3);
11662 ecode4 = SWIG_AsVal_int(obj3, &val4);
11663 if (!SWIG_IsOK(ecode4)) {
11664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11665 }
11666 arg4 = static_cast< int >(val4);
11667 ecode5 = SWIG_AsVal_int(obj4, &val5);
11668 if (!SWIG_IsOK(ecode5)) {
11669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11670 }
11671 arg5 = static_cast< int >(val5);
11672 {
11673 PyThreadState* __tstate = wxPyBeginAllowThreads();
11674 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 {
11679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11680 }
11681 return resultobj;
11682fail:
11683 return NULL;
11684}
11685
11686
11687SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11688 PyObject *resultobj = 0;
11689 wxRegion *arg1 = (wxRegion *) 0 ;
11690 wxRect *arg2 = 0 ;
11691 bool result;
11692 void *argp1 = 0 ;
11693 int res1 = 0 ;
11694 wxRect temp2 ;
11695 PyObject * obj0 = 0 ;
11696 PyObject * obj1 = 0 ;
11697 char * kwnames[] = {
11698 (char *) "self",(char *) "rect", NULL
11699 };
11700
11701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11703 if (!SWIG_IsOK(res1)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11705 }
11706 arg1 = reinterpret_cast< wxRegion * >(argp1);
11707 {
11708 arg2 = &temp2;
11709 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11710 }
11711 {
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
11713 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 {
11718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11719 }
11720 return resultobj;
11721fail:
11722 return NULL;
11723}
11724
11725
11726SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11727 PyObject *resultobj = 0;
11728 wxRegion *arg1 = (wxRegion *) 0 ;
11729 wxRegion *arg2 = 0 ;
11730 bool result;
11731 void *argp1 = 0 ;
11732 int res1 = 0 ;
11733 void *argp2 = 0 ;
11734 int res2 = 0 ;
11735 PyObject * obj0 = 0 ;
11736 PyObject * obj1 = 0 ;
11737 char * kwnames[] = {
11738 (char *) "self",(char *) "region", NULL
11739 };
11740
11741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11743 if (!SWIG_IsOK(res1)) {
11744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11745 }
11746 arg1 = reinterpret_cast< wxRegion * >(argp1);
11747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11748 if (!SWIG_IsOK(res2)) {
11749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11750 }
11751 if (!argp2) {
11752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11753 }
11754 arg2 = reinterpret_cast< wxRegion * >(argp2);
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 {
11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11763 }
11764 return resultobj;
11765fail:
11766 return NULL;
d55e5bfc
RD
11767}
11768
11769
554f62e9
RD
11770SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11771 PyObject *resultobj = 0;
11772 wxRegion *arg1 = (wxRegion *) 0 ;
11773 SwigValueWrapper<wxBitmap > result;
11774 void *argp1 = 0 ;
11775 int res1 = 0 ;
11776 PyObject *swig_obj[1] ;
11777
11778 if (!args) SWIG_fail;
11779 swig_obj[0] = args;
11780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11781 if (!SWIG_IsOK(res1)) {
11782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11783 }
11784 arg1 = reinterpret_cast< wxRegion * >(argp1);
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (arg1)->ConvertToBitmap();
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11792 return resultobj;
11793fail:
11794 return NULL;
11795}
11796
11797
11798SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11799 PyObject *resultobj = 0;
11800 wxRegion *arg1 = (wxRegion *) 0 ;
11801 wxBitmap *arg2 = 0 ;
11802 bool result;
11803 void *argp1 = 0 ;
11804 int res1 = 0 ;
11805 void *argp2 = 0 ;
11806 int res2 = 0 ;
11807 PyObject * obj0 = 0 ;
11808 PyObject * obj1 = 0 ;
11809 char * kwnames[] = {
11810 (char *) "self",(char *) "bmp", NULL
11811 };
11812
11813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11817 }
11818 arg1 = reinterpret_cast< wxRegion * >(argp1);
11819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11820 if (!SWIG_IsOK(res2)) {
11821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11822 }
11823 if (!argp2) {
11824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11825 }
11826 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11827 {
11828 PyThreadState* __tstate = wxPyBeginAllowThreads();
11829 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11830 wxPyEndAllowThreads(__tstate);
11831 if (PyErr_Occurred()) SWIG_fail;
11832 }
11833 {
11834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11835 }
11836 return resultobj;
11837fail:
11838 return NULL;
11839}
11840
11841
11842SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11843 PyObject *resultobj = 0;
11844 wxRegion *arg1 = (wxRegion *) 0 ;
11845 wxBitmap *arg2 = 0 ;
11846 wxColour *arg3 = 0 ;
11847 int arg4 = (int) 0 ;
11848 bool result;
11849 void *argp1 = 0 ;
11850 int res1 = 0 ;
11851 void *argp2 = 0 ;
11852 int res2 = 0 ;
11853 wxColour temp3 ;
11854 int val4 ;
11855 int ecode4 = 0 ;
11856 PyObject * obj0 = 0 ;
11857 PyObject * obj1 = 0 ;
11858 PyObject * obj2 = 0 ;
11859 PyObject * obj3 = 0 ;
11860 char * kwnames[] = {
11861 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11862 };
11863
11864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11868 }
11869 arg1 = reinterpret_cast< wxRegion * >(argp1);
11870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11871 if (!SWIG_IsOK(res2)) {
11872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11873 }
11874 if (!argp2) {
11875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11876 }
11877 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11878 {
11879 arg3 = &temp3;
11880 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11881 }
11882 if (obj3) {
11883 ecode4 = SWIG_AsVal_int(obj3, &val4);
11884 if (!SWIG_IsOK(ecode4)) {
11885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11886 }
11887 arg4 = static_cast< int >(val4);
11888 }
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 {
11896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11897 }
11898 return resultobj;
11899fail:
11900 return NULL;
d55e5bfc
RD
11901}
11902
11903
554f62e9
RD
11904SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11905 PyObject *obj;
11906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11907 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11908 return SWIG_Py_Void();
d55e5bfc
RD
11909}
11910
554f62e9
RD
11911SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11912 return SWIG_Python_InitShadowInstance(args);
11913}
d55e5bfc 11914
554f62e9
RD
11915SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj = 0;
11917 wxRegion *arg1 = 0 ;
11918 wxRegionIterator *result = 0 ;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject * obj0 = 0 ;
11922 char * kwnames[] = {
11923 (char *) "region", NULL
11924 };
11925
11926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11927 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11928 if (!SWIG_IsOK(res1)) {
11929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11930 }
11931 if (!argp1) {
11932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11933 }
11934 arg1 = reinterpret_cast< wxRegion * >(argp1);
11935 {
11936 if (!wxPyCheckForApp()) SWIG_fail;
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11939 wxPyEndAllowThreads(__tstate);
11940 if (PyErr_Occurred()) SWIG_fail;
11941 }
11942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11943 return resultobj;
11944fail:
11945 return NULL;
d55e5bfc
RD
11946}
11947
11948
554f62e9
RD
11949SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11950 PyObject *resultobj = 0;
11951 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11952 void *argp1 = 0 ;
11953 int res1 = 0 ;
11954 PyObject *swig_obj[1] ;
11955
11956 if (!args) SWIG_fail;
11957 swig_obj[0] = args;
11958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11961 }
11962 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 delete arg1;
d55e5bfc 11966
554f62e9
RD
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_Py_Void();
11971 return resultobj;
11972fail:
11973 return NULL;
d55e5bfc
RD
11974}
11975
11976
554f62e9
RD
11977SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11978 PyObject *resultobj = 0;
11979 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11980 int result;
11981 void *argp1 = 0 ;
11982 int res1 = 0 ;
11983 PyObject *swig_obj[1] ;
11984
11985 if (!args) SWIG_fail;
11986 swig_obj[0] = args;
11987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11990 }
11991 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 result = (int)(arg1)->GetX();
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 resultobj = SWIG_From_int(static_cast< int >(result));
11999 return resultobj;
12000fail:
12001 return NULL;
d55e5bfc
RD
12002}
12003
12004
554f62e9
RD
12005SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12006 PyObject *resultobj = 0;
12007 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12008 int result;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 PyObject *swig_obj[1] ;
12012
12013 if (!args) SWIG_fail;
12014 swig_obj[0] = args;
12015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12018 }
12019 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (int)(arg1)->GetY();
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_From_int(static_cast< int >(result));
12027 return resultobj;
12028fail:
12029 return NULL;
d55e5bfc
RD
12030}
12031
12032
554f62e9
RD
12033SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12034 PyObject *resultobj = 0;
12035 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12036 int result;
12037 void *argp1 = 0 ;
12038 int res1 = 0 ;
12039 PyObject *swig_obj[1] ;
12040
12041 if (!args) SWIG_fail;
12042 swig_obj[0] = args;
12043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12044 if (!SWIG_IsOK(res1)) {
12045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12046 }
12047 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 result = (int)(arg1)->GetW();
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 resultobj = SWIG_From_int(static_cast< int >(result));
12055 return resultobj;
12056fail:
12057 return NULL;
d55e5bfc
RD
12058}
12059
12060
554f62e9
RD
12061SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12062 PyObject *resultobj = 0;
12063 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12064 int result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 PyObject *swig_obj[1] ;
12068
12069 if (!args) SWIG_fail;
12070 swig_obj[0] = args;
12071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12072 if (!SWIG_IsOK(res1)) {
12073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12074 }
12075 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 result = (int)(arg1)->GetWidth();
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = SWIG_From_int(static_cast< int >(result));
12083 return resultobj;
12084fail:
12085 return NULL;
d55e5bfc
RD
12086}
12087
12088
554f62e9
RD
12089SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12090 PyObject *resultobj = 0;
12091 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12092 int result;
12093 void *argp1 = 0 ;
12094 int res1 = 0 ;
12095 PyObject *swig_obj[1] ;
12096
12097 if (!args) SWIG_fail;
12098 swig_obj[0] = args;
12099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12100 if (!SWIG_IsOK(res1)) {
12101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12102 }
12103 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 result = (int)(arg1)->GetH();
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_From_int(static_cast< int >(result));
12111 return resultobj;
12112fail:
12113 return NULL;
d55e5bfc
RD
12114}
12115
12116
554f62e9
RD
12117SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12118 PyObject *resultobj = 0;
12119 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12120 int result;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 PyObject *swig_obj[1] ;
12124
12125 if (!args) SWIG_fail;
12126 swig_obj[0] = args;
12127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12128 if (!SWIG_IsOK(res1)) {
12129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12130 }
12131 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 result = (int)(arg1)->GetHeight();
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = SWIG_From_int(static_cast< int >(result));
12139 return resultobj;
12140fail:
12141 return NULL;
d55e5bfc
RD
12142}
12143
12144
554f62e9
RD
12145SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12148 wxRect result;
12149 void *argp1 = 0 ;
12150 int res1 = 0 ;
12151 PyObject *swig_obj[1] ;
12152
12153 if (!args) SWIG_fail;
12154 swig_obj[0] = args;
12155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12156 if (!SWIG_IsOK(res1)) {
12157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12158 }
12159 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 result = (arg1)->GetRect();
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12167 return resultobj;
12168fail:
12169 return NULL;
d55e5bfc
RD
12170}
12171
12172
554f62e9
RD
12173SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12174 PyObject *resultobj = 0;
12175 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12176 bool result;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 PyObject *swig_obj[1] ;
12180
12181 if (!args) SWIG_fail;
12182 swig_obj[0] = args;
12183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12186 }
12187 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 result = (bool)(arg1)->HaveRects();
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 {
12195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12196 }
12197 return resultobj;
12198fail:
12199 return NULL;
d55e5bfc
RD
12200}
12201
12202
554f62e9
RD
12203SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12204 PyObject *resultobj = 0;
12205 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12206 void *argp1 = 0 ;
12207 int res1 = 0 ;
12208 PyObject *swig_obj[1] ;
12209
12210 if (!args) SWIG_fail;
12211 swig_obj[0] = args;
12212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12215 }
12216 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 (arg1)->Reset();
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_Py_Void();
12224 return resultobj;
12225fail:
12226 return NULL;
d55e5bfc
RD
12227}
12228
12229
554f62e9
RD
12230SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12231 PyObject *resultobj = 0;
12232 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 PyObject *swig_obj[1] ;
12236
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12242 }
12243 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 wxRegionIterator_Next(arg1);
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 resultobj = SWIG_Py_Void();
12251 return resultobj;
12252fail:
12253 return NULL;
d55e5bfc
RD
12254}
12255
12256
554f62e9
RD
12257SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12258 PyObject *resultobj = 0;
12259 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12260 bool result;
12261 void *argp1 = 0 ;
12262 int res1 = 0 ;
12263 PyObject *swig_obj[1] ;
12264
12265 if (!args) SWIG_fail;
12266 swig_obj[0] = args;
12267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12268 if (!SWIG_IsOK(res1)) {
12269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12270 }
12271 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 result = (bool)wxRegionIterator___nonzero__(arg1);
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 {
12279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12280 }
12281 return resultobj;
12282fail:
12283 return NULL;
d55e5bfc
RD
12284}
12285
12286
554f62e9
RD
12287SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12288 PyObject *obj;
12289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12290 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12291 return SWIG_Py_Void();
d55e5bfc
RD
12292}
12293
554f62e9
RD
12294SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12296}
12297
554f62e9
RD
12298SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12299 PyObject *resultobj = 0;
12300 wxNativeFontInfo *result = 0 ;
12301
12302 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12310 return resultobj;
12311fail:
12312 return NULL;
d55e5bfc
RD
12313}
12314
12315
554f62e9
RD
12316SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12319 void *argp1 = 0 ;
12320 int res1 = 0 ;
12321 PyObject *swig_obj[1] ;
12322
12323 if (!args) SWIG_fail;
12324 swig_obj[0] = args;
12325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12326 if (!SWIG_IsOK(res1)) {
12327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12328 }
12329 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 delete arg1;
d55e5bfc 12333
554f62e9
RD
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 resultobj = SWIG_Py_Void();
12338 return resultobj;
12339fail:
12340 return NULL;
d55e5bfc
RD
12341}
12342
12343
554f62e9
RD
12344SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12345 PyObject *resultobj = 0;
12346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12347 void *argp1 = 0 ;
12348 int res1 = 0 ;
12349 PyObject *swig_obj[1] ;
12350
12351 if (!args) SWIG_fail;
12352 swig_obj[0] = args;
12353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12354 if (!SWIG_IsOK(res1)) {
12355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12356 }
12357 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12358 {
12359 PyThreadState* __tstate = wxPyBeginAllowThreads();
12360 (arg1)->Init();
12361 wxPyEndAllowThreads(__tstate);
12362 if (PyErr_Occurred()) SWIG_fail;
12363 }
12364 resultobj = SWIG_Py_Void();
12365 return resultobj;
12366fail:
12367 return NULL;
12368}
12369
12370
12371SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj = 0;
12373 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12374 wxFont *arg2 = 0 ;
12375 void *argp1 = 0 ;
12376 int res1 = 0 ;
12377 void *argp2 = 0 ;
12378 int res2 = 0 ;
12379 PyObject * obj0 = 0 ;
12380 PyObject * obj1 = 0 ;
12381 char * kwnames[] = {
12382 (char *) "self",(char *) "font", NULL
12383 };
12384
12385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12387 if (!SWIG_IsOK(res1)) {
12388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12389 }
12390 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12392 if (!SWIG_IsOK(res2)) {
12393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12394 }
12395 if (!argp2) {
12396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12397 }
12398 arg2 = reinterpret_cast< wxFont * >(argp2);
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 (arg1)->InitFromFont((wxFont const &)*arg2);
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 resultobj = SWIG_Py_Void();
12406 return resultobj;
12407fail:
12408 return NULL;
d55e5bfc
RD
12409}
12410
12411
554f62e9
RD
12412SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12413 PyObject *resultobj = 0;
12414 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12415 int result;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 PyObject *swig_obj[1] ;
12419
12420 if (!args) SWIG_fail;
12421 swig_obj[0] = args;
12422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12425 }
12426 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_From_int(static_cast< int >(result));
12434 return resultobj;
12435fail:
12436 return NULL;
d55e5bfc
RD
12437}
12438
12439
554f62e9
RD
12440SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12441 PyObject *resultobj = 0;
12442 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12443 wxSize result;
12444 void *argp1 = 0 ;
12445 int res1 = 0 ;
12446 PyObject *swig_obj[1] ;
12447
12448 if (!args) SWIG_fail;
12449 swig_obj[0] = args;
12450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12451 if (!SWIG_IsOK(res1)) {
12452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12453 }
12454 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12458 wxPyEndAllowThreads(__tstate);
12459 if (PyErr_Occurred()) SWIG_fail;
12460 }
12461 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12462 return resultobj;
12463fail:
12464 return NULL;
d55e5bfc
RD
12465}
12466
12467
554f62e9
RD
12468SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12469 PyObject *resultobj = 0;
12470 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12471 wxFontStyle result;
12472 void *argp1 = 0 ;
12473 int res1 = 0 ;
12474 PyObject *swig_obj[1] ;
12475
12476 if (!args) SWIG_fail;
12477 swig_obj[0] = args;
12478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12479 if (!SWIG_IsOK(res1)) {
12480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12481 }
12482 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12483 {
12484 PyThreadState* __tstate = wxPyBeginAllowThreads();
12485 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 resultobj = SWIG_From_int(static_cast< int >(result));
12490 return resultobj;
12491fail:
12492 return NULL;
d55e5bfc
RD
12493}
12494
12495
554f62e9
RD
12496SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12497 PyObject *resultobj = 0;
12498 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12499 wxFontWeight result;
12500 void *argp1 = 0 ;
12501 int res1 = 0 ;
12502 PyObject *swig_obj[1] ;
12503
12504 if (!args) SWIG_fail;
12505 swig_obj[0] = args;
12506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12509 }
12510 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12511 {
12512 PyThreadState* __tstate = wxPyBeginAllowThreads();
12513 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) SWIG_fail;
12516 }
12517 resultobj = SWIG_From_int(static_cast< int >(result));
12518 return resultobj;
12519fail:
12520 return NULL;
d55e5bfc
RD
12521}
12522
12523
554f62e9
RD
12524SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12525 PyObject *resultobj = 0;
12526 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12527 bool result;
12528 void *argp1 = 0 ;
12529 int res1 = 0 ;
12530 PyObject *swig_obj[1] ;
12531
12532 if (!args) SWIG_fail;
12533 swig_obj[0] = args;
12534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12535 if (!SWIG_IsOK(res1)) {
12536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12537 }
12538 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 {
12546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12547 }
12548 return resultobj;
12549fail:
12550 return NULL;
d55e5bfc
RD
12551}
12552
12553
554f62e9
RD
12554SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12555 PyObject *resultobj = 0;
12556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12557 wxString result;
12558 void *argp1 = 0 ;
12559 int res1 = 0 ;
12560 PyObject *swig_obj[1] ;
12561
12562 if (!args) SWIG_fail;
12563 swig_obj[0] = args;
12564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12567 }
12568 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12572 wxPyEndAllowThreads(__tstate);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 {
093d3ff1 12576#if wxUSE_UNICODE
554f62e9 12577 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12578#else
554f62e9 12579 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12580#endif
554f62e9
RD
12581 }
12582 return resultobj;
12583fail:
12584 return NULL;
d55e5bfc
RD
12585}
12586
12587
554f62e9
RD
12588SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12589 PyObject *resultobj = 0;
12590 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12591 wxFontFamily result;
12592 void *argp1 = 0 ;
12593 int res1 = 0 ;
12594 PyObject *swig_obj[1] ;
12595
12596 if (!args) SWIG_fail;
12597 swig_obj[0] = args;
12598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12601 }
12602 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12603 {
12604 PyThreadState* __tstate = wxPyBeginAllowThreads();
12605 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 resultobj = SWIG_From_int(static_cast< int >(result));
12610 return resultobj;
12611fail:
12612 return NULL;
d55e5bfc
RD
12613}
12614
12615
554f62e9
RD
12616SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12617 PyObject *resultobj = 0;
12618 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12619 wxFontEncoding result;
12620 void *argp1 = 0 ;
12621 int res1 = 0 ;
12622 PyObject *swig_obj[1] ;
12623
12624 if (!args) SWIG_fail;
12625 swig_obj[0] = args;
12626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12629 }
12630 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 resultobj = SWIG_From_int(static_cast< int >(result));
12638 return resultobj;
12639fail:
12640 return NULL;
12641}
12642
12643
12644SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj = 0;
12646 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12647 int arg2 ;
12648 void *argp1 = 0 ;
12649 int res1 = 0 ;
12650 int val2 ;
12651 int ecode2 = 0 ;
12652 PyObject * obj0 = 0 ;
12653 PyObject * obj1 = 0 ;
12654 char * kwnames[] = {
12655 (char *) "self",(char *) "pointsize", NULL
12656 };
12657
12658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12660 if (!SWIG_IsOK(res1)) {
12661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12662 }
12663 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12664 ecode2 = SWIG_AsVal_int(obj1, &val2);
12665 if (!SWIG_IsOK(ecode2)) {
12666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12667 }
12668 arg2 = static_cast< int >(val2);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 (arg1)->SetPointSize(arg2);
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 resultobj = SWIG_Py_Void();
12676 return resultobj;
12677fail:
12678 return NULL;
12679}
12680
12681
12682SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12683 PyObject *resultobj = 0;
12684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12685 wxSize *arg2 = 0 ;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 wxSize temp2 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 char * kwnames[] = {
12692 (char *) "self",(char *) "pixelSize", NULL
12693 };
12694
12695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12697 if (!SWIG_IsOK(res1)) {
12698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12699 }
12700 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12701 {
12702 arg2 = &temp2;
12703 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12704 }
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 (arg1)->SetPixelSize((wxSize const &)*arg2);
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 resultobj = SWIG_Py_Void();
12712 return resultobj;
12713fail:
12714 return NULL;
12715}
12716
12717
12718SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj = 0;
12720 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12721 wxFontStyle arg2 ;
12722 void *argp1 = 0 ;
12723 int res1 = 0 ;
12724 int val2 ;
12725 int ecode2 = 0 ;
12726 PyObject * obj0 = 0 ;
12727 PyObject * obj1 = 0 ;
12728 char * kwnames[] = {
12729 (char *) "self",(char *) "style", NULL
12730 };
12731
12732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12734 if (!SWIG_IsOK(res1)) {
12735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12736 }
12737 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12738 ecode2 = SWIG_AsVal_int(obj1, &val2);
12739 if (!SWIG_IsOK(ecode2)) {
12740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12741 }
12742 arg2 = static_cast< wxFontStyle >(val2);
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 (arg1)->SetStyle(arg2);
12746 wxPyEndAllowThreads(__tstate);
12747 if (PyErr_Occurred()) SWIG_fail;
12748 }
12749 resultobj = SWIG_Py_Void();
12750 return resultobj;
12751fail:
12752 return NULL;
12753}
12754
12755
12756SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12757 PyObject *resultobj = 0;
12758 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12759 wxFontWeight arg2 ;
12760 void *argp1 = 0 ;
12761 int res1 = 0 ;
12762 int val2 ;
12763 int ecode2 = 0 ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 char * kwnames[] = {
12767 (char *) "self",(char *) "weight", NULL
12768 };
12769
12770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12772 if (!SWIG_IsOK(res1)) {
12773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12774 }
12775 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12776 ecode2 = SWIG_AsVal_int(obj1, &val2);
12777 if (!SWIG_IsOK(ecode2)) {
12778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12779 }
12780 arg2 = static_cast< wxFontWeight >(val2);
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 (arg1)->SetWeight(arg2);
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 resultobj = SWIG_Py_Void();
12788 return resultobj;
12789fail:
12790 return NULL;
12791}
12792
12793
12794SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj = 0;
12796 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12797 bool arg2 ;
12798 void *argp1 = 0 ;
12799 int res1 = 0 ;
12800 bool val2 ;
12801 int ecode2 = 0 ;
12802 PyObject * obj0 = 0 ;
12803 PyObject * obj1 = 0 ;
12804 char * kwnames[] = {
12805 (char *) "self",(char *) "underlined", NULL
12806 };
12807
12808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12810 if (!SWIG_IsOK(res1)) {
12811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12812 }
12813 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12814 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12815 if (!SWIG_IsOK(ecode2)) {
12816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12817 }
12818 arg2 = static_cast< bool >(val2);
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 (arg1)->SetUnderlined(arg2);
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 resultobj = SWIG_Py_Void();
12826 return resultobj;
12827fail:
12828 return NULL;
12829}
12830
12831
12832SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12833 PyObject *resultobj = 0;
12834 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12835 wxString arg2 ;
704eda0c 12836 bool result;
554f62e9
RD
12837 void *argp1 = 0 ;
12838 int res1 = 0 ;
12839 PyObject * obj0 = 0 ;
12840 PyObject * obj1 = 0 ;
12841 char * kwnames[] = {
12842 (char *) "self",(char *) "facename", NULL
12843 };
12844
12845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12851 {
12852 wxString* sptr = wxString_in_helper(obj1);
12853 if (sptr == NULL) SWIG_fail;
12854 arg2 = *sptr;
12855 delete sptr;
12856 }
12857 {
12858 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12859 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
12860 wxPyEndAllowThreads(__tstate);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
704eda0c
RD
12863 {
12864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12865 }
554f62e9
RD
12866 return resultobj;
12867fail:
12868 return NULL;
12869}
12870
12871
12872SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12873 PyObject *resultobj = 0;
12874 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12875 wxFontFamily arg2 ;
12876 void *argp1 = 0 ;
12877 int res1 = 0 ;
12878 int val2 ;
12879 int ecode2 = 0 ;
12880 PyObject * obj0 = 0 ;
12881 PyObject * obj1 = 0 ;
12882 char * kwnames[] = {
12883 (char *) "self",(char *) "family", NULL
12884 };
12885
12886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12888 if (!SWIG_IsOK(res1)) {
12889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12890 }
12891 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12892 ecode2 = SWIG_AsVal_int(obj1, &val2);
12893 if (!SWIG_IsOK(ecode2)) {
12894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12895 }
12896 arg2 = static_cast< wxFontFamily >(val2);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 (arg1)->SetFamily(arg2);
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 resultobj = SWIG_Py_Void();
12904 return resultobj;
12905fail:
12906 return NULL;
12907}
12908
12909
12910SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12911 PyObject *resultobj = 0;
12912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12913 wxFontEncoding arg2 ;
12914 void *argp1 = 0 ;
12915 int res1 = 0 ;
12916 int val2 ;
12917 int ecode2 = 0 ;
12918 PyObject * obj0 = 0 ;
12919 PyObject * obj1 = 0 ;
12920 char * kwnames[] = {
12921 (char *) "self",(char *) "encoding", NULL
12922 };
12923
12924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12926 if (!SWIG_IsOK(res1)) {
12927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12928 }
12929 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12930 ecode2 = SWIG_AsVal_int(obj1, &val2);
12931 if (!SWIG_IsOK(ecode2)) {
12932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12933 }
12934 arg2 = static_cast< wxFontEncoding >(val2);
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 (arg1)->SetEncoding(arg2);
12938 wxPyEndAllowThreads(__tstate);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 resultobj = SWIG_Py_Void();
12942 return resultobj;
12943fail:
12944 return NULL;
12945}
12946
12947
12948SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj = 0;
12950 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12951 wxString *arg2 = 0 ;
12952 bool result;
12953 void *argp1 = 0 ;
12954 int res1 = 0 ;
12955 bool temp2 = false ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 char * kwnames[] = {
12959 (char *) "self",(char *) "s", NULL
12960 };
12961
12962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12964 if (!SWIG_IsOK(res1)) {
12965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12966 }
12967 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12968 {
12969 arg2 = wxString_in_helper(obj1);
12970 if (arg2 == NULL) SWIG_fail;
12971 temp2 = true;
12972 }
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12981 }
12982 {
12983 if (temp2)
12984 delete arg2;
12985 }
12986 return resultobj;
12987fail:
12988 {
12989 if (temp2)
12990 delete arg2;
12991 }
12992 return NULL;
d55e5bfc
RD
12993}
12994
12995
554f62e9
RD
12996SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12997 PyObject *resultobj = 0;
12998 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12999 wxString result;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 PyObject *swig_obj[1] ;
13003
13004 if (!args) SWIG_fail;
13005 swig_obj[0] = args;
13006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13007 if (!SWIG_IsOK(res1)) {
13008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13009 }
13010 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13011 {
13012 PyThreadState* __tstate = wxPyBeginAllowThreads();
13013 result = ((wxNativeFontInfo const *)arg1)->ToString();
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 {
13018#if wxUSE_UNICODE
13019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13020#else
13021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13022#endif
13023 }
13024 return resultobj;
13025fail:
13026 return NULL;
d55e5bfc
RD
13027}
13028
13029
554f62e9
RD
13030SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13031 PyObject *resultobj = 0;
13032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13033 wxString result;
13034 void *argp1 = 0 ;
13035 int res1 = 0 ;
13036 PyObject *swig_obj[1] ;
13037
13038 if (!args) SWIG_fail;
13039 swig_obj[0] = args;
13040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13041 if (!SWIG_IsOK(res1)) {
13042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13043 }
13044 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = wxNativeFontInfo___str__(arg1);
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 {
13052#if wxUSE_UNICODE
13053 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13054#else
13055 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13056#endif
13057 }
13058 return resultobj;
13059fail:
13060 return NULL;
13061}
13062
13063
13064SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj = 0;
13066 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13067 wxString *arg2 = 0 ;
13068 bool result;
13069 void *argp1 = 0 ;
13070 int res1 = 0 ;
13071 bool temp2 = false ;
13072 PyObject * obj0 = 0 ;
13073 PyObject * obj1 = 0 ;
13074 char * kwnames[] = {
13075 (char *) "self",(char *) "s", NULL
13076 };
13077
13078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13080 if (!SWIG_IsOK(res1)) {
13081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13082 }
13083 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13084 {
13085 arg2 = wxString_in_helper(obj1);
13086 if (arg2 == NULL) SWIG_fail;
13087 temp2 = true;
13088 }
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 {
13096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13097 }
13098 {
13099 if (temp2)
13100 delete arg2;
13101 }
13102 return resultobj;
13103fail:
13104 {
13105 if (temp2)
13106 delete arg2;
13107 }
13108 return NULL;
a2569024
RD
13109}
13110
13111
554f62e9
RD
13112SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13113 PyObject *resultobj = 0;
13114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13115 wxString result;
13116 void *argp1 = 0 ;
13117 int res1 = 0 ;
13118 PyObject *swig_obj[1] ;
13119
13120 if (!args) SWIG_fail;
13121 swig_obj[0] = args;
13122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13123 if (!SWIG_IsOK(res1)) {
13124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13125 }
13126 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 {
13134#if wxUSE_UNICODE
13135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13136#else
13137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13138#endif
13139 }
13140 return resultobj;
13141fail:
13142 return NULL;
d55e5bfc
RD
13143}
13144
13145
554f62e9
RD
13146SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13147 PyObject *obj;
13148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13149 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13150 return SWIG_Py_Void();
d55e5bfc
RD
13151}
13152
554f62e9
RD
13153SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13154 return SWIG_Python_InitShadowInstance(args);
13155}
d55e5bfc 13156
554f62e9
RD
13157SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13158 PyObject *resultobj = 0;
13159 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13160 wxString *arg2 = (wxString *) 0 ;
13161 void *argp1 = 0 ;
13162 int res1 = 0 ;
13163 bool temp2 = false ;
13164 PyObject *swig_obj[2] ;
13165
13166 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13170 }
13171 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13172 {
13173 arg2 = wxString_in_helper(swig_obj[1]);
13174 if (arg2 == NULL) SWIG_fail;
13175 temp2 = true;
13176 }
13177 if (arg1) (arg1)->facename = *arg2;
13178
13179 resultobj = SWIG_Py_Void();
13180 {
13181 if (temp2)
13182 delete arg2;
13183 }
13184 return resultobj;
13185fail:
13186 {
13187 if (temp2)
13188 delete arg2;
13189 }
13190 return NULL;
d55e5bfc
RD
13191}
13192
13193
554f62e9
RD
13194SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13195 PyObject *resultobj = 0;
13196 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13197 wxString *result = 0 ;
13198 void *argp1 = 0 ;
13199 int res1 = 0 ;
13200 PyObject *swig_obj[1] ;
13201
13202 if (!args) SWIG_fail;
13203 swig_obj[0] = args;
13204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13207 }
13208 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13209 result = (wxString *)& ((arg1)->facename);
13210 {
13211#if wxUSE_UNICODE
13212 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13213#else
13214 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13215#endif
13216 }
13217 return resultobj;
13218fail:
13219 return NULL;
d55e5bfc
RD
13220}
13221
13222
554f62e9
RD
13223SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13224 PyObject *resultobj = 0;
13225 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13226 wxFontEncoding arg2 ;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 int val2 ;
13230 int ecode2 = 0 ;
13231 PyObject *swig_obj[2] ;
13232
13233 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13235 if (!SWIG_IsOK(res1)) {
13236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13237 }
13238 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13239 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13240 if (!SWIG_IsOK(ecode2)) {
13241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13242 }
13243 arg2 = static_cast< wxFontEncoding >(val2);
13244 if (arg1) (arg1)->encoding = arg2;
13245
13246 resultobj = SWIG_Py_Void();
13247 return resultobj;
13248fail:
13249 return NULL;
d55e5bfc
RD
13250}
13251
13252
554f62e9
RD
13253SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13254 PyObject *resultobj = 0;
13255 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13256 wxFontEncoding result;
13257 void *argp1 = 0 ;
13258 int res1 = 0 ;
13259 PyObject *swig_obj[1] ;
13260
13261 if (!args) SWIG_fail;
13262 swig_obj[0] = args;
13263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13264 if (!SWIG_IsOK(res1)) {
13265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13266 }
13267 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13268 result = (wxFontEncoding) ((arg1)->encoding);
13269 resultobj = SWIG_From_int(static_cast< int >(result));
13270 return resultobj;
13271fail:
13272 return NULL;
d55e5bfc
RD
13273}
13274
13275
554f62e9
RD
13276SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13277 PyObject *resultobj = 0;
13278 wxNativeEncodingInfo *result = 0 ;
13279
13280 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13281 {
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13288 return resultobj;
13289fail:
13290 return NULL;
d55e5bfc
RD
13291}
13292
13293
554f62e9
RD
13294SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13295 PyObject *resultobj = 0;
13296 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13297 void *argp1 = 0 ;
13298 int res1 = 0 ;
13299 PyObject *swig_obj[1] ;
13300
13301 if (!args) SWIG_fail;
13302 swig_obj[0] = args;
13303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13304 if (!SWIG_IsOK(res1)) {
13305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13306 }
13307 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 delete arg1;
d55e5bfc 13311
554f62e9
RD
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_Py_Void();
13316 return resultobj;
13317fail:
13318 return NULL;
13319}
13320
13321
13322SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj = 0;
13324 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13325 wxString *arg2 = 0 ;
13326 bool result;
13327 void *argp1 = 0 ;
13328 int res1 = 0 ;
13329 bool temp2 = false ;
13330 PyObject * obj0 = 0 ;
13331 PyObject * obj1 = 0 ;
13332 char * kwnames[] = {
13333 (char *) "self",(char *) "s", NULL
13334 };
13335
13336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13338 if (!SWIG_IsOK(res1)) {
13339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13340 }
13341 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13342 {
13343 arg2 = wxString_in_helper(obj1);
13344 if (arg2 == NULL) SWIG_fail;
13345 temp2 = true;
13346 }
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 {
13354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13355 }
13356 {
13357 if (temp2)
13358 delete arg2;
13359 }
13360 return resultobj;
13361fail:
13362 {
13363 if (temp2)
13364 delete arg2;
13365 }
13366 return NULL;
d55e5bfc
RD
13367}
13368
13369
554f62e9
RD
13370SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *resultobj = 0;
13372 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13373 wxString result;
13374 void *argp1 = 0 ;
13375 int res1 = 0 ;
13376 PyObject *swig_obj[1] ;
13377
13378 if (!args) SWIG_fail;
13379 swig_obj[0] = args;
13380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13381 if (!SWIG_IsOK(res1)) {
13382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13383 }
13384 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13388 wxPyEndAllowThreads(__tstate);
13389 if (PyErr_Occurred()) SWIG_fail;
13390 }
13391 {
13392#if wxUSE_UNICODE
13393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13394#else
13395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13396#endif
13397 }
13398 return resultobj;
13399fail:
13400 return NULL;
d55e5bfc
RD
13401}
13402
13403
554f62e9
RD
13404SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13405 PyObject *obj;
13406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13407 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13408 return SWIG_Py_Void();
d55e5bfc
RD
13409}
13410
554f62e9
RD
13411SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 return SWIG_Python_InitShadowInstance(args);
13413}
d55e5bfc 13414
554f62e9
RD
13415SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj = 0;
13417 wxFontEncoding arg1 ;
13418 wxNativeEncodingInfo *result = 0 ;
13419 int val1 ;
13420 int ecode1 = 0 ;
13421 PyObject * obj0 = 0 ;
13422 char * kwnames[] = {
13423 (char *) "encoding", NULL
13424 };
13425
13426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13427 ecode1 = SWIG_AsVal_int(obj0, &val1);
13428 if (!SWIG_IsOK(ecode1)) {
13429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13430 }
13431 arg1 = static_cast< wxFontEncoding >(val1);
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
13438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13439 return resultobj;
13440fail:
13441 return NULL;
13442}
13443
13444
13445SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj = 0;
13447 wxNativeEncodingInfo *arg1 = 0 ;
13448 bool result;
13449 void *argp1 = 0 ;
13450 int res1 = 0 ;
13451 PyObject * obj0 = 0 ;
13452 char * kwnames[] = {
13453 (char *) "info", NULL
13454 };
13455
13456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13458 if (!SWIG_IsOK(res1)) {
13459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13460 }
13461 if (!argp1) {
13462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13463 }
13464 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13465 {
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 {
13472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13473 }
13474 return resultobj;
13475fail:
13476 return NULL;
d55e5bfc
RD
13477}
13478
13479
554f62e9
RD
13480SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13481 PyObject *resultobj = 0;
13482 wxFontMapper *result = 0 ;
13483
13484 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = (wxFontMapper *)new wxFontMapper();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13492 return resultobj;
13493fail:
13494 return NULL;
d55e5bfc
RD
13495}
13496
13497
554f62e9
RD
13498SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13499 PyObject *resultobj = 0;
13500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13501 void *argp1 = 0 ;
13502 int res1 = 0 ;
13503 PyObject *swig_obj[1] ;
13504
13505 if (!args) SWIG_fail;
13506 swig_obj[0] = args;
13507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13508 if (!SWIG_IsOK(res1)) {
13509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13510 }
13511 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 delete arg1;
d55e5bfc 13515
554f62e9
RD
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 resultobj = SWIG_Py_Void();
13520 return resultobj;
13521fail:
13522 return NULL;
d55e5bfc
RD
13523}
13524
13525
554f62e9
RD
13526SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13527 PyObject *resultobj = 0;
13528 wxFontMapper *result = 0 ;
13529
13530 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13531 {
13532 PyThreadState* __tstate = wxPyBeginAllowThreads();
13533 result = (wxFontMapper *)wxFontMapper::Get();
13534 wxPyEndAllowThreads(__tstate);
13535 if (PyErr_Occurred()) SWIG_fail;
13536 }
13537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13538 return resultobj;
13539fail:
13540 return NULL;
13541}
13542
13543
13544SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13545 PyObject *resultobj = 0;
13546 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13547 wxFontMapper *result = 0 ;
13548 void *argp1 = 0 ;
13549 int res1 = 0 ;
13550 PyObject * obj0 = 0 ;
13551 char * kwnames[] = {
13552 (char *) "mapper", NULL
13553 };
13554
13555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13557 if (!SWIG_IsOK(res1)) {
13558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13559 }
13560 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13564 wxPyEndAllowThreads(__tstate);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13568 return resultobj;
13569fail:
13570 return NULL;
13571}
13572
13573
13574SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13575 PyObject *resultobj = 0;
13576 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13577 wxString *arg2 = 0 ;
13578 bool arg3 = (bool) true ;
13579 wxFontEncoding result;
13580 void *argp1 = 0 ;
13581 int res1 = 0 ;
13582 bool temp2 = false ;
13583 bool val3 ;
13584 int ecode3 = 0 ;
13585 PyObject * obj0 = 0 ;
13586 PyObject * obj1 = 0 ;
13587 PyObject * obj2 = 0 ;
13588 char * kwnames[] = {
13589 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13590 };
13591
13592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13594 if (!SWIG_IsOK(res1)) {
13595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13596 }
13597 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13598 {
13599 arg2 = wxString_in_helper(obj1);
13600 if (arg2 == NULL) SWIG_fail;
13601 temp2 = true;
13602 }
13603 if (obj2) {
13604 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13605 if (!SWIG_IsOK(ecode3)) {
13606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13607 }
13608 arg3 = static_cast< bool >(val3);
13609 }
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_From_int(static_cast< int >(result));
13617 {
13618 if (temp2)
13619 delete arg2;
13620 }
13621 return resultobj;
13622fail:
13623 {
13624 if (temp2)
13625 delete arg2;
13626 }
13627 return NULL;
d55e5bfc
RD
13628}
13629
13630
554f62e9
RD
13631SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13632 PyObject *resultobj = 0;
13633 size_t result;
13634
13635 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13643 return resultobj;
13644fail:
13645 return NULL;
13646}
13647
13648
13649SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj = 0;
13651 size_t arg1 ;
13652 wxFontEncoding result;
13653 size_t val1 ;
13654 int ecode1 = 0 ;
13655 PyObject * obj0 = 0 ;
13656 char * kwnames[] = {
13657 (char *) "n", NULL
13658 };
13659
13660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13661 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13662 if (!SWIG_IsOK(ecode1)) {
13663 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13664 }
13665 arg1 = static_cast< size_t >(val1);
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 resultobj = SWIG_From_int(static_cast< int >(result));
13673 return resultobj;
13674fail:
13675 return NULL;
13676}
13677
13678
13679SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13680 PyObject *resultobj = 0;
13681 wxFontEncoding arg1 ;
13682 wxString result;
13683 int val1 ;
13684 int ecode1 = 0 ;
13685 PyObject * obj0 = 0 ;
13686 char * kwnames[] = {
13687 (char *) "encoding", NULL
13688 };
13689
13690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13691 ecode1 = SWIG_AsVal_int(obj0, &val1);
13692 if (!SWIG_IsOK(ecode1)) {
13693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13694 }
13695 arg1 = static_cast< wxFontEncoding >(val1);
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 result = wxFontMapper::GetEncodingName(arg1);
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 {
13703#if wxUSE_UNICODE
13704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13705#else
13706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13707#endif
13708 }
13709 return resultobj;
13710fail:
13711 return NULL;
d55e5bfc
RD
13712}
13713
13714
554f62e9
RD
13715SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxFontEncoding arg1 ;
13718 wxString result;
13719 int val1 ;
13720 int ecode1 = 0 ;
13721 PyObject * obj0 = 0 ;
13722 char * kwnames[] = {
13723 (char *) "encoding", NULL
13724 };
13725
13726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13727 ecode1 = SWIG_AsVal_int(obj0, &val1);
13728 if (!SWIG_IsOK(ecode1)) {
13729 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13730 }
13731 arg1 = static_cast< wxFontEncoding >(val1);
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 result = wxFontMapper::GetEncodingDescription(arg1);
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 {
13739#if wxUSE_UNICODE
13740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13741#else
13742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13743#endif
13744 }
13745 return resultobj;
13746fail:
13747 return NULL;
d55e5bfc
RD
13748}
13749
13750
554f62e9
RD
13751SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj = 0;
13753 wxString *arg1 = 0 ;
13754 wxFontEncoding result;
13755 bool temp1 = false ;
13756 PyObject * obj0 = 0 ;
13757 char * kwnames[] = {
13758 (char *) "name", NULL
13759 };
13760
13761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13762 {
13763 arg1 = wxString_in_helper(obj0);
13764 if (arg1 == NULL) SWIG_fail;
13765 temp1 = true;
13766 }
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = SWIG_From_int(static_cast< int >(result));
13774 {
13775 if (temp1)
13776 delete arg1;
13777 }
13778 return resultobj;
13779fail:
13780 {
13781 if (temp1)
13782 delete arg1;
13783 }
13784 return NULL;
d55e5bfc
RD
13785}
13786
13787
554f62e9
RD
13788SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj = 0;
13790 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13791 wxString *arg2 = 0 ;
13792 void *argp1 = 0 ;
13793 int res1 = 0 ;
13794 bool temp2 = false ;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 char * kwnames[] = {
13798 (char *) "self",(char *) "prefix", NULL
13799 };
13800
13801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13803 if (!SWIG_IsOK(res1)) {
13804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13805 }
13806 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13807 {
13808 arg2 = wxString_in_helper(obj1);
13809 if (arg2 == NULL) SWIG_fail;
13810 temp2 = true;
13811 }
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 (arg1)->SetConfigPath((wxString const &)*arg2);
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 resultobj = SWIG_Py_Void();
13819 {
13820 if (temp2)
13821 delete arg2;
13822 }
13823 return resultobj;
13824fail:
13825 {
13826 if (temp2)
13827 delete arg2;
13828 }
13829 return NULL;
d55e5bfc
RD
13830}
13831
13832
554f62e9
RD
13833SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13834 PyObject *resultobj = 0;
13835 wxString result;
13836
13837 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13838 {
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 result = wxFontMapper::GetDefaultConfigPath();
13841 wxPyEndAllowThreads(__tstate);
13842 if (PyErr_Occurred()) SWIG_fail;
13843 }
13844 {
13845#if wxUSE_UNICODE
13846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13847#else
13848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13849#endif
13850 }
13851 return resultobj;
13852fail:
13853 return NULL;
13854}
13855
13856
13857SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13858 PyObject *resultobj = 0;
13859 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13860 wxFontEncoding arg2 ;
13861 wxString const &arg3_defvalue = wxPyEmptyString ;
13862 wxString *arg3 = (wxString *) &arg3_defvalue ;
13863 bool arg4 = (bool) true ;
13864 PyObject *result = 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 int val2 ;
13868 int ecode2 = 0 ;
13869 bool temp3 = false ;
13870 bool val4 ;
13871 int ecode4 = 0 ;
13872 PyObject * obj0 = 0 ;
13873 PyObject * obj1 = 0 ;
13874 PyObject * obj2 = 0 ;
13875 PyObject * obj3 = 0 ;
13876 char * kwnames[] = {
13877 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13878 };
13879
13880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13882 if (!SWIG_IsOK(res1)) {
13883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13884 }
13885 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13886 ecode2 = SWIG_AsVal_int(obj1, &val2);
13887 if (!SWIG_IsOK(ecode2)) {
13888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13889 }
13890 arg2 = static_cast< wxFontEncoding >(val2);
13891 if (obj2) {
d55e5bfc 13892 {
554f62e9
RD
13893 arg3 = wxString_in_helper(obj2);
13894 if (arg3 == NULL) SWIG_fail;
13895 temp3 = true;
d55e5bfc 13896 }
554f62e9
RD
13897 }
13898 if (obj3) {
13899 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13900 if (!SWIG_IsOK(ecode4)) {
13901 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13902 }
13903 arg4 = static_cast< bool >(val4);
13904 }
13905 {
13906 PyThreadState* __tstate = wxPyBeginAllowThreads();
13907 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 resultobj = result;
13912 {
13913 if (temp3)
13914 delete arg3;
13915 }
13916 return resultobj;
13917fail:
13918 {
13919 if (temp3)
13920 delete arg3;
13921 }
13922 return NULL;
13923}
13924
13925
13926SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj = 0;
13928 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13929 wxFontEncoding arg2 ;
13930 wxString const &arg3_defvalue = wxPyEmptyString ;
13931 wxString *arg3 = (wxString *) &arg3_defvalue ;
13932 bool result;
13933 void *argp1 = 0 ;
13934 int res1 = 0 ;
13935 int val2 ;
13936 int ecode2 = 0 ;
13937 bool temp3 = false ;
13938 PyObject * obj0 = 0 ;
13939 PyObject * obj1 = 0 ;
13940 PyObject * obj2 = 0 ;
13941 char * kwnames[] = {
13942 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13943 };
13944
13945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13947 if (!SWIG_IsOK(res1)) {
13948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13949 }
13950 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13951 ecode2 = SWIG_AsVal_int(obj1, &val2);
13952 if (!SWIG_IsOK(ecode2)) {
13953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13954 }
13955 arg2 = static_cast< wxFontEncoding >(val2);
13956 if (obj2) {
093d3ff1 13957 {
554f62e9
RD
13958 arg3 = wxString_in_helper(obj2);
13959 if (arg3 == NULL) SWIG_fail;
13960 temp3 = true;
d55e5bfc 13961 }
554f62e9
RD
13962 }
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13966 wxPyEndAllowThreads(__tstate);
13967 if (PyErr_Occurred()) SWIG_fail;
13968 }
13969 {
13970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13971 }
13972 {
13973 if (temp3)
13974 delete arg3;
13975 }
13976 return resultobj;
13977fail:
13978 {
13979 if (temp3)
13980 delete arg3;
13981 }
13982 return NULL;
13983}
13984
13985
13986SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13987 PyObject *resultobj = 0;
13988 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13989 wxWindow *arg2 = (wxWindow *) 0 ;
13990 void *argp1 = 0 ;
13991 int res1 = 0 ;
13992 void *argp2 = 0 ;
13993 int res2 = 0 ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 char * kwnames[] = {
13997 (char *) "self",(char *) "parent", NULL
13998 };
13999
14000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14002 if (!SWIG_IsOK(res1)) {
14003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14004 }
14005 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14007 if (!SWIG_IsOK(res2)) {
14008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14009 }
14010 arg2 = reinterpret_cast< wxWindow * >(argp2);
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 (arg1)->SetDialogParent(arg2);
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_Py_Void();
14018 return resultobj;
14019fail:
14020 return NULL;
14021}
14022
14023
14024SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj = 0;
14026 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14027 wxString *arg2 = 0 ;
14028 void *argp1 = 0 ;
14029 int res1 = 0 ;
14030 bool temp2 = false ;
14031 PyObject * obj0 = 0 ;
14032 PyObject * obj1 = 0 ;
14033 char * kwnames[] = {
14034 (char *) "self",(char *) "title", NULL
14035 };
14036
14037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14039 if (!SWIG_IsOK(res1)) {
14040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14041 }
14042 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14043 {
14044 arg2 = wxString_in_helper(obj1);
14045 if (arg2 == NULL) SWIG_fail;
14046 temp2 = true;
14047 }
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 (arg1)->SetDialogTitle((wxString const &)*arg2);
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 resultobj = SWIG_Py_Void();
14055 {
14056 if (temp2)
14057 delete arg2;
14058 }
14059 return resultobj;
14060fail:
14061 {
14062 if (temp2)
14063 delete arg2;
14064 }
14065 return NULL;
14066}
14067
14068
14069SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14070 PyObject *obj;
14071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14072 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14073 return SWIG_Py_Void();
14074}
14075
14076SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14077 return SWIG_Python_InitShadowInstance(args);
14078}
14079
14080SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj = 0;
14082 int arg1 ;
14083 int arg2 ;
14084 int arg3 ;
14085 int arg4 ;
14086 bool arg5 = (bool) false ;
14087 wxString const &arg6_defvalue = wxPyEmptyString ;
14088 wxString *arg6 = (wxString *) &arg6_defvalue ;
14089 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14090 wxFont *result = 0 ;
14091 int val1 ;
14092 int ecode1 = 0 ;
14093 int val2 ;
14094 int ecode2 = 0 ;
14095 int val3 ;
14096 int ecode3 = 0 ;
14097 int val4 ;
14098 int ecode4 = 0 ;
14099 bool val5 ;
14100 int ecode5 = 0 ;
14101 bool temp6 = false ;
14102 int val7 ;
14103 int ecode7 = 0 ;
14104 PyObject * obj0 = 0 ;
14105 PyObject * obj1 = 0 ;
14106 PyObject * obj2 = 0 ;
14107 PyObject * obj3 = 0 ;
14108 PyObject * obj4 = 0 ;
14109 PyObject * obj5 = 0 ;
14110 PyObject * obj6 = 0 ;
14111 char * kwnames[] = {
14112 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14113 };
14114
14115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14116 ecode1 = SWIG_AsVal_int(obj0, &val1);
14117 if (!SWIG_IsOK(ecode1)) {
14118 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14119 }
14120 arg1 = static_cast< int >(val1);
14121 ecode2 = SWIG_AsVal_int(obj1, &val2);
14122 if (!SWIG_IsOK(ecode2)) {
14123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14124 }
14125 arg2 = static_cast< int >(val2);
14126 ecode3 = SWIG_AsVal_int(obj2, &val3);
14127 if (!SWIG_IsOK(ecode3)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14129 }
14130 arg3 = static_cast< int >(val3);
14131 ecode4 = SWIG_AsVal_int(obj3, &val4);
14132 if (!SWIG_IsOK(ecode4)) {
14133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14134 }
14135 arg4 = static_cast< int >(val4);
14136 if (obj4) {
14137 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14138 if (!SWIG_IsOK(ecode5)) {
14139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14140 }
14141 arg5 = static_cast< bool >(val5);
14142 }
14143 if (obj5) {
d55e5bfc 14144 {
554f62e9
RD
14145 arg6 = wxString_in_helper(obj5);
14146 if (arg6 == NULL) SWIG_fail;
14147 temp6 = true;
d55e5bfc 14148 }
554f62e9
RD
14149 }
14150 if (obj6) {
14151 ecode7 = SWIG_AsVal_int(obj6, &val7);
14152 if (!SWIG_IsOK(ecode7)) {
14153 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14154 }
14155 arg7 = static_cast< wxFontEncoding >(val7);
14156 }
14157 {
14158 if (!wxPyCheckForApp()) SWIG_fail;
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14165 {
14166 if (temp6)
14167 delete arg6;
14168 }
14169 return resultobj;
14170fail:
14171 {
14172 if (temp6)
14173 delete arg6;
14174 }
14175 return NULL;
d55e5bfc
RD
14176}
14177
14178
554f62e9
RD
14179SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14180 PyObject *resultobj = 0;
14181 wxFont *arg1 = (wxFont *) 0 ;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 PyObject *swig_obj[1] ;
14185
14186 if (!args) SWIG_fail;
14187 swig_obj[0] = args;
14188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14189 if (!SWIG_IsOK(res1)) {
14190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14191 }
14192 arg1 = reinterpret_cast< wxFont * >(argp1);
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 delete arg1;
d55e5bfc 14196
554f62e9
RD
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 resultobj = SWIG_Py_Void();
14201 return resultobj;
14202fail:
14203 return NULL;
14204}
14205
14206
14207SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14208 PyObject *resultobj = 0;
14209 wxNativeFontInfo *arg1 = 0 ;
14210 wxFont *result = 0 ;
14211 void *argp1 = 0 ;
14212 int res1 = 0 ;
14213 PyObject * obj0 = 0 ;
14214 char * kwnames[] = {
14215 (char *) "info", NULL
14216 };
14217
14218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14219 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14220 if (!SWIG_IsOK(res1)) {
14221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14222 }
14223 if (!argp1) {
14224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14225 }
14226 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14227 {
14228 if (!wxPyCheckForApp()) SWIG_fail;
14229 PyThreadState* __tstate = wxPyBeginAllowThreads();
14230 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14235 return resultobj;
14236fail:
14237 return NULL;
d55e5bfc
RD
14238}
14239
14240
554f62e9
RD
14241SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14242 PyObject *resultobj = 0;
14243 wxString *arg1 = 0 ;
14244 wxFont *result = 0 ;
14245 bool temp1 = false ;
14246 PyObject * obj0 = 0 ;
14247 char * kwnames[] = {
14248 (char *) "info", NULL
14249 };
14250
14251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14252 {
14253 arg1 = wxString_in_helper(obj0);
14254 if (arg1 == NULL) SWIG_fail;
14255 temp1 = true;
14256 }
14257 {
14258 if (!wxPyCheckForApp()) SWIG_fail;
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14265 {
14266 if (temp1)
14267 delete arg1;
14268 }
14269 return resultobj;
14270fail:
14271 {
14272 if (temp1)
14273 delete arg1;
14274 }
14275 return NULL;
14276}
14277
14278
14279SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj = 0;
14281 int arg1 ;
14282 wxFontFamily arg2 ;
14283 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14284 wxString const &arg4_defvalue = wxPyEmptyString ;
14285 wxString *arg4 = (wxString *) &arg4_defvalue ;
14286 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14287 wxFont *result = 0 ;
14288 int val1 ;
14289 int ecode1 = 0 ;
14290 int val2 ;
14291 int ecode2 = 0 ;
14292 int val3 ;
14293 int ecode3 = 0 ;
14294 bool temp4 = false ;
14295 int val5 ;
14296 int ecode5 = 0 ;
14297 PyObject * obj0 = 0 ;
14298 PyObject * obj1 = 0 ;
14299 PyObject * obj2 = 0 ;
14300 PyObject * obj3 = 0 ;
14301 PyObject * obj4 = 0 ;
14302 char * kwnames[] = {
14303 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14304 };
14305
14306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14307 ecode1 = SWIG_AsVal_int(obj0, &val1);
14308 if (!SWIG_IsOK(ecode1)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14310 }
14311 arg1 = static_cast< int >(val1);
14312 ecode2 = SWIG_AsVal_int(obj1, &val2);
14313 if (!SWIG_IsOK(ecode2)) {
14314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14315 }
14316 arg2 = static_cast< wxFontFamily >(val2);
14317 if (obj2) {
14318 ecode3 = SWIG_AsVal_int(obj2, &val3);
14319 if (!SWIG_IsOK(ecode3)) {
14320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14321 }
14322 arg3 = static_cast< int >(val3);
14323 }
14324 if (obj3) {
d55e5bfc 14325 {
554f62e9
RD
14326 arg4 = wxString_in_helper(obj3);
14327 if (arg4 == NULL) SWIG_fail;
14328 temp4 = true;
d55e5bfc 14329 }
554f62e9
RD
14330 }
14331 if (obj4) {
14332 ecode5 = SWIG_AsVal_int(obj4, &val5);
14333 if (!SWIG_IsOK(ecode5)) {
14334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14335 }
14336 arg5 = static_cast< wxFontEncoding >(val5);
14337 }
14338 {
14339 if (!wxPyCheckForApp()) SWIG_fail;
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14342 wxPyEndAllowThreads(__tstate);
14343 if (PyErr_Occurred()) SWIG_fail;
14344 }
14345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14346 {
14347 if (temp4)
14348 delete arg4;
14349 }
14350 return resultobj;
14351fail:
14352 {
14353 if (temp4)
14354 delete arg4;
14355 }
14356 return NULL;
14357}
14358
14359
14360SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14361 PyObject *resultobj = 0;
14362 wxSize *arg1 = 0 ;
14363 int arg2 ;
14364 int arg3 ;
14365 int arg4 ;
14366 bool arg5 = (bool) false ;
14367 wxString const &arg6_defvalue = wxEmptyString ;
14368 wxString *arg6 = (wxString *) &arg6_defvalue ;
14369 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14370 wxFont *result = 0 ;
14371 wxSize temp1 ;
14372 int val2 ;
14373 int ecode2 = 0 ;
14374 int val3 ;
14375 int ecode3 = 0 ;
14376 int val4 ;
14377 int ecode4 = 0 ;
14378 bool val5 ;
14379 int ecode5 = 0 ;
14380 bool temp6 = false ;
14381 int val7 ;
14382 int ecode7 = 0 ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 PyObject * obj2 = 0 ;
14386 PyObject * obj3 = 0 ;
14387 PyObject * obj4 = 0 ;
14388 PyObject * obj5 = 0 ;
14389 PyObject * obj6 = 0 ;
14390 char * kwnames[] = {
14391 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14392 };
14393
14394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14395 {
14396 arg1 = &temp1;
14397 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14398 }
14399 ecode2 = SWIG_AsVal_int(obj1, &val2);
14400 if (!SWIG_IsOK(ecode2)) {
14401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14402 }
14403 arg2 = static_cast< int >(val2);
14404 ecode3 = SWIG_AsVal_int(obj2, &val3);
14405 if (!SWIG_IsOK(ecode3)) {
14406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14407 }
14408 arg3 = static_cast< int >(val3);
14409 ecode4 = SWIG_AsVal_int(obj3, &val4);
14410 if (!SWIG_IsOK(ecode4)) {
14411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14412 }
14413 arg4 = static_cast< int >(val4);
14414 if (obj4) {
14415 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14416 if (!SWIG_IsOK(ecode5)) {
14417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14418 }
14419 arg5 = static_cast< bool >(val5);
14420 }
14421 if (obj5) {
d55e5bfc 14422 {
554f62e9
RD
14423 arg6 = wxString_in_helper(obj5);
14424 if (arg6 == NULL) SWIG_fail;
14425 temp6 = true;
d55e5bfc 14426 }
554f62e9
RD
14427 }
14428 if (obj6) {
14429 ecode7 = SWIG_AsVal_int(obj6, &val7);
14430 if (!SWIG_IsOK(ecode7)) {
14431 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14432 }
14433 arg7 = static_cast< wxFontEncoding >(val7);
14434 }
14435 {
14436 if (!wxPyCheckForApp()) SWIG_fail;
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14443 {
14444 if (temp6)
14445 delete arg6;
14446 }
14447 return resultobj;
14448fail:
14449 {
14450 if (temp6)
14451 delete arg6;
14452 }
14453 return NULL;
14454}
14455
14456
14457SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14458 PyObject *resultobj = 0;
14459 wxSize *arg1 = 0 ;
14460 wxFontFamily arg2 ;
14461 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14462 wxString const &arg4_defvalue = wxEmptyString ;
14463 wxString *arg4 = (wxString *) &arg4_defvalue ;
14464 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14465 wxFont *result = 0 ;
14466 wxSize temp1 ;
14467 int val2 ;
14468 int ecode2 = 0 ;
14469 int val3 ;
14470 int ecode3 = 0 ;
14471 bool temp4 = false ;
14472 int val5 ;
14473 int ecode5 = 0 ;
14474 PyObject * obj0 = 0 ;
14475 PyObject * obj1 = 0 ;
14476 PyObject * obj2 = 0 ;
14477 PyObject * obj3 = 0 ;
14478 PyObject * obj4 = 0 ;
14479 char * kwnames[] = {
14480 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14481 };
14482
14483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14484 {
14485 arg1 = &temp1;
14486 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14487 }
14488 ecode2 = SWIG_AsVal_int(obj1, &val2);
14489 if (!SWIG_IsOK(ecode2)) {
14490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14491 }
14492 arg2 = static_cast< wxFontFamily >(val2);
14493 if (obj2) {
14494 ecode3 = SWIG_AsVal_int(obj2, &val3);
14495 if (!SWIG_IsOK(ecode3)) {
14496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14497 }
14498 arg3 = static_cast< int >(val3);
14499 }
14500 if (obj3) {
d55e5bfc 14501 {
554f62e9
RD
14502 arg4 = wxString_in_helper(obj3);
14503 if (arg4 == NULL) SWIG_fail;
14504 temp4 = true;
d55e5bfc 14505 }
554f62e9
RD
14506 }
14507 if (obj4) {
14508 ecode5 = SWIG_AsVal_int(obj4, &val5);
14509 if (!SWIG_IsOK(ecode5)) {
14510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14511 }
14512 arg5 = static_cast< wxFontEncoding >(val5);
14513 }
14514 {
14515 if (!wxPyCheckForApp()) SWIG_fail;
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14522 {
14523 if (temp4)
14524 delete arg4;
14525 }
14526 return resultobj;
14527fail:
14528 {
14529 if (temp4)
14530 delete arg4;
14531 }
14532 return NULL;
d55e5bfc
RD
14533}
14534
14535
b39fe951 14536SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14537 PyObject *resultobj = 0;
14538 wxFont *arg1 = (wxFont *) 0 ;
14539 bool result;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 PyObject *swig_obj[1] ;
14543
14544 if (!args) SWIG_fail;
14545 swig_obj[0] = args;
14546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14547 if (!SWIG_IsOK(res1)) {
b39fe951 14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14549 }
14550 arg1 = reinterpret_cast< wxFont * >(argp1);
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14553 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 {
14558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14559 }
14560 return resultobj;
14561fail:
14562 return NULL;
14563}
14564
14565
14566SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14567 PyObject *resultobj = 0;
14568 wxFont *arg1 = (wxFont *) 0 ;
14569 wxFont *arg2 = (wxFont *) 0 ;
14570 bool result;
14571 void *argp1 = 0 ;
14572 int res1 = 0 ;
14573 void *argp2 = 0 ;
14574 int res2 = 0 ;
14575 PyObject * obj0 = 0 ;
14576 PyObject * obj1 = 0 ;
14577 char * kwnames[] = {
14578 (char *) "self",(char *) "other", NULL
14579 };
14580
14581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14583 if (!SWIG_IsOK(res1)) {
14584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14585 }
14586 arg1 = reinterpret_cast< wxFont * >(argp1);
14587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14588 if (!SWIG_IsOK(res2)) {
14589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14590 }
14591 arg2 = reinterpret_cast< wxFont * >(argp2);
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 {
14599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14600 }
14601 return resultobj;
14602fail:
14603 return NULL;
14604}
14605
14606
14607SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj = 0;
14609 wxFont *arg1 = (wxFont *) 0 ;
14610 wxFont *arg2 = (wxFont *) 0 ;
14611 bool result;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 void *argp2 = 0 ;
14615 int res2 = 0 ;
14616 PyObject * obj0 = 0 ;
14617 PyObject * obj1 = 0 ;
14618 char * kwnames[] = {
14619 (char *) "self",(char *) "other", NULL
14620 };
14621
14622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14624 if (!SWIG_IsOK(res1)) {
14625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14626 }
14627 arg1 = reinterpret_cast< wxFont * >(argp1);
14628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14629 if (!SWIG_IsOK(res2)) {
14630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14631 }
14632 arg2 = reinterpret_cast< wxFont * >(argp2);
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 {
14640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14641 }
14642 return resultobj;
14643fail:
14644 return NULL;
a2569024
RD
14645}
14646
14647
554f62e9
RD
14648SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14649 PyObject *resultobj = 0;
14650 wxFont *arg1 = (wxFont *) 0 ;
14651 int result;
14652 void *argp1 = 0 ;
14653 int res1 = 0 ;
14654 PyObject *swig_obj[1] ;
14655
14656 if (!args) SWIG_fail;
14657 swig_obj[0] = args;
14658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14659 if (!SWIG_IsOK(res1)) {
14660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14661 }
14662 arg1 = reinterpret_cast< wxFont * >(argp1);
14663 {
14664 PyThreadState* __tstate = wxPyBeginAllowThreads();
14665 result = (int)((wxFont const *)arg1)->GetPointSize();
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 resultobj = SWIG_From_int(static_cast< int >(result));
14670 return resultobj;
14671fail:
14672 return NULL;
d55e5bfc
RD
14673}
14674
14675
554f62e9
RD
14676SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14677 PyObject *resultobj = 0;
14678 wxFont *arg1 = (wxFont *) 0 ;
14679 wxSize result;
14680 void *argp1 = 0 ;
14681 int res1 = 0 ;
14682 PyObject *swig_obj[1] ;
14683
14684 if (!args) SWIG_fail;
14685 swig_obj[0] = args;
14686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14687 if (!SWIG_IsOK(res1)) {
14688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14689 }
14690 arg1 = reinterpret_cast< wxFont * >(argp1);
14691 {
14692 PyThreadState* __tstate = wxPyBeginAllowThreads();
14693 result = ((wxFont const *)arg1)->GetPixelSize();
14694 wxPyEndAllowThreads(__tstate);
14695 if (PyErr_Occurred()) SWIG_fail;
14696 }
14697 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14698 return resultobj;
14699fail:
14700 return NULL;
d55e5bfc
RD
14701}
14702
14703
554f62e9
RD
14704SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14705 PyObject *resultobj = 0;
14706 wxFont *arg1 = (wxFont *) 0 ;
14707 bool result;
14708 void *argp1 = 0 ;
14709 int res1 = 0 ;
14710 PyObject *swig_obj[1] ;
14711
14712 if (!args) SWIG_fail;
14713 swig_obj[0] = args;
14714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14715 if (!SWIG_IsOK(res1)) {
14716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14717 }
14718 arg1 = reinterpret_cast< wxFont * >(argp1);
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 {
14726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14727 }
14728 return resultobj;
14729fail:
14730 return NULL;
d55e5bfc
RD
14731}
14732
14733
554f62e9
RD
14734SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14735 PyObject *resultobj = 0;
14736 wxFont *arg1 = (wxFont *) 0 ;
14737 int result;
14738 void *argp1 = 0 ;
14739 int res1 = 0 ;
14740 PyObject *swig_obj[1] ;
14741
14742 if (!args) SWIG_fail;
14743 swig_obj[0] = args;
14744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14745 if (!SWIG_IsOK(res1)) {
14746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14747 }
14748 arg1 = reinterpret_cast< wxFont * >(argp1);
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 result = (int)((wxFont const *)arg1)->GetFamily();
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 resultobj = SWIG_From_int(static_cast< int >(result));
14756 return resultobj;
14757fail:
14758 return NULL;
d55e5bfc
RD
14759}
14760
14761
554f62e9
RD
14762SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14763 PyObject *resultobj = 0;
14764 wxFont *arg1 = (wxFont *) 0 ;
14765 int result;
14766 void *argp1 = 0 ;
14767 int res1 = 0 ;
14768 PyObject *swig_obj[1] ;
14769
14770 if (!args) SWIG_fail;
14771 swig_obj[0] = args;
14772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14773 if (!SWIG_IsOK(res1)) {
14774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14775 }
14776 arg1 = reinterpret_cast< wxFont * >(argp1);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (int)((wxFont const *)arg1)->GetStyle();
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_From_int(static_cast< int >(result));
14784 return resultobj;
14785fail:
14786 return NULL;
d55e5bfc
RD
14787}
14788
14789
554f62e9
RD
14790SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14791 PyObject *resultobj = 0;
14792 wxFont *arg1 = (wxFont *) 0 ;
14793 int result;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 PyObject *swig_obj[1] ;
14797
14798 if (!args) SWIG_fail;
14799 swig_obj[0] = args;
14800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14801 if (!SWIG_IsOK(res1)) {
14802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14803 }
14804 arg1 = reinterpret_cast< wxFont * >(argp1);
14805 {
14806 PyThreadState* __tstate = wxPyBeginAllowThreads();
14807 result = (int)((wxFont const *)arg1)->GetWeight();
14808 wxPyEndAllowThreads(__tstate);
14809 if (PyErr_Occurred()) SWIG_fail;
14810 }
14811 resultobj = SWIG_From_int(static_cast< int >(result));
14812 return resultobj;
14813fail:
14814 return NULL;
d55e5bfc
RD
14815}
14816
14817
554f62e9
RD
14818SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14819 PyObject *resultobj = 0;
14820 wxFont *arg1 = (wxFont *) 0 ;
14821 bool result;
14822 void *argp1 = 0 ;
14823 int res1 = 0 ;
14824 PyObject *swig_obj[1] ;
14825
14826 if (!args) SWIG_fail;
14827 swig_obj[0] = args;
14828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14829 if (!SWIG_IsOK(res1)) {
14830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14831 }
14832 arg1 = reinterpret_cast< wxFont * >(argp1);
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14836 wxPyEndAllowThreads(__tstate);
14837 if (PyErr_Occurred()) SWIG_fail;
14838 }
14839 {
14840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14841 }
14842 return resultobj;
14843fail:
14844 return NULL;
d55e5bfc
RD
14845}
14846
14847
554f62e9
RD
14848SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14849 PyObject *resultobj = 0;
14850 wxFont *arg1 = (wxFont *) 0 ;
14851 wxString result;
14852 void *argp1 = 0 ;
14853 int res1 = 0 ;
14854 PyObject *swig_obj[1] ;
14855
14856 if (!args) SWIG_fail;
14857 swig_obj[0] = args;
14858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14859 if (!SWIG_IsOK(res1)) {
14860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14861 }
14862 arg1 = reinterpret_cast< wxFont * >(argp1);
14863 {
14864 PyThreadState* __tstate = wxPyBeginAllowThreads();
14865 result = ((wxFont const *)arg1)->GetFaceName();
14866 wxPyEndAllowThreads(__tstate);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 }
14869 {
14870#if wxUSE_UNICODE
14871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14872#else
14873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14874#endif
14875 }
14876 return resultobj;
14877fail:
14878 return NULL;
d55e5bfc
RD
14879}
14880
14881
554f62e9
RD
14882SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14883 PyObject *resultobj = 0;
14884 wxFont *arg1 = (wxFont *) 0 ;
14885 wxFontEncoding result;
14886 void *argp1 = 0 ;
14887 int res1 = 0 ;
14888 PyObject *swig_obj[1] ;
14889
14890 if (!args) SWIG_fail;
14891 swig_obj[0] = args;
14892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14893 if (!SWIG_IsOK(res1)) {
14894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14895 }
14896 arg1 = reinterpret_cast< wxFont * >(argp1);
14897 {
14898 PyThreadState* __tstate = wxPyBeginAllowThreads();
14899 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14900 wxPyEndAllowThreads(__tstate);
14901 if (PyErr_Occurred()) SWIG_fail;
14902 }
14903 resultobj = SWIG_From_int(static_cast< int >(result));
14904 return resultobj;
14905fail:
14906 return NULL;
d55e5bfc
RD
14907}
14908
14909
554f62e9
RD
14910SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14911 PyObject *resultobj = 0;
14912 wxFont *arg1 = (wxFont *) 0 ;
14913 wxNativeFontInfo *result = 0 ;
14914 void *argp1 = 0 ;
14915 int res1 = 0 ;
14916 PyObject *swig_obj[1] ;
14917
14918 if (!args) SWIG_fail;
14919 swig_obj[0] = args;
14920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14921 if (!SWIG_IsOK(res1)) {
14922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14923 }
14924 arg1 = reinterpret_cast< wxFont * >(argp1);
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14932 return resultobj;
14933fail:
14934 return NULL;
d55e5bfc
RD
14935}
14936
14937
554f62e9
RD
14938SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14939 PyObject *resultobj = 0;
14940 wxFont *arg1 = (wxFont *) 0 ;
14941 bool result;
14942 void *argp1 = 0 ;
14943 int res1 = 0 ;
14944 PyObject *swig_obj[1] ;
14945
14946 if (!args) SWIG_fail;
14947 swig_obj[0] = args;
14948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14949 if (!SWIG_IsOK(res1)) {
14950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14951 }
14952 arg1 = reinterpret_cast< wxFont * >(argp1);
14953 {
14954 PyThreadState* __tstate = wxPyBeginAllowThreads();
14955 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14956 wxPyEndAllowThreads(__tstate);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 {
14960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14961 }
14962 return resultobj;
14963fail:
14964 return NULL;
d55e5bfc
RD
14965}
14966
14967
554f62e9
RD
14968SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14969 PyObject *resultobj = 0;
14970 wxFont *arg1 = (wxFont *) 0 ;
14971 wxString result;
14972 void *argp1 = 0 ;
14973 int res1 = 0 ;
14974 PyObject *swig_obj[1] ;
14975
14976 if (!args) SWIG_fail;
14977 swig_obj[0] = args;
14978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14979 if (!SWIG_IsOK(res1)) {
14980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14981 }
14982 arg1 = reinterpret_cast< wxFont * >(argp1);
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 {
14990#if wxUSE_UNICODE
14991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14992#else
14993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14994#endif
14995 }
14996 return resultobj;
14997fail:
14998 return NULL;
d55e5bfc
RD
14999}
15000
15001
554f62e9
RD
15002SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15003 PyObject *resultobj = 0;
15004 wxFont *arg1 = (wxFont *) 0 ;
15005 wxString result;
15006 void *argp1 = 0 ;
15007 int res1 = 0 ;
15008 PyObject *swig_obj[1] ;
15009
15010 if (!args) SWIG_fail;
15011 swig_obj[0] = args;
15012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15013 if (!SWIG_IsOK(res1)) {
15014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15015 }
15016 arg1 = reinterpret_cast< wxFont * >(argp1);
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 {
15024#if wxUSE_UNICODE
15025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15026#else
15027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15028#endif
15029 }
15030 return resultobj;
15031fail:
15032 return NULL;
15033}
15034
15035
15036SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15037 PyObject *resultobj = 0;
15038 wxFont *arg1 = (wxFont *) 0 ;
15039 int arg2 ;
15040 void *argp1 = 0 ;
15041 int res1 = 0 ;
15042 int val2 ;
15043 int ecode2 = 0 ;
15044 PyObject * obj0 = 0 ;
15045 PyObject * obj1 = 0 ;
15046 char * kwnames[] = {
15047 (char *) "self",(char *) "pointSize", NULL
15048 };
15049
15050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15052 if (!SWIG_IsOK(res1)) {
15053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15054 }
15055 arg1 = reinterpret_cast< wxFont * >(argp1);
15056 ecode2 = SWIG_AsVal_int(obj1, &val2);
15057 if (!SWIG_IsOK(ecode2)) {
15058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15059 }
15060 arg2 = static_cast< int >(val2);
15061 {
15062 PyThreadState* __tstate = wxPyBeginAllowThreads();
15063 (arg1)->SetPointSize(arg2);
15064 wxPyEndAllowThreads(__tstate);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 resultobj = SWIG_Py_Void();
15068 return resultobj;
15069fail:
15070 return NULL;
15071}
15072
15073
15074SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15075 PyObject *resultobj = 0;
15076 wxFont *arg1 = (wxFont *) 0 ;
15077 wxSize *arg2 = 0 ;
15078 void *argp1 = 0 ;
15079 int res1 = 0 ;
15080 wxSize temp2 ;
15081 PyObject * obj0 = 0 ;
15082 PyObject * obj1 = 0 ;
15083 char * kwnames[] = {
15084 (char *) "self",(char *) "pixelSize", NULL
15085 };
15086
15087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15089 if (!SWIG_IsOK(res1)) {
15090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15091 }
15092 arg1 = reinterpret_cast< wxFont * >(argp1);
15093 {
15094 arg2 = &temp2;
15095 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15096 }
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 (arg1)->SetPixelSize((wxSize const &)*arg2);
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 resultobj = SWIG_Py_Void();
15104 return resultobj;
15105fail:
15106 return NULL;
15107}
15108
15109
15110SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15111 PyObject *resultobj = 0;
15112 wxFont *arg1 = (wxFont *) 0 ;
15113 int arg2 ;
15114 void *argp1 = 0 ;
15115 int res1 = 0 ;
15116 int val2 ;
15117 int ecode2 = 0 ;
15118 PyObject * obj0 = 0 ;
15119 PyObject * obj1 = 0 ;
15120 char * kwnames[] = {
15121 (char *) "self",(char *) "family", NULL
15122 };
15123
15124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15126 if (!SWIG_IsOK(res1)) {
15127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15128 }
15129 arg1 = reinterpret_cast< wxFont * >(argp1);
15130 ecode2 = SWIG_AsVal_int(obj1, &val2);
15131 if (!SWIG_IsOK(ecode2)) {
15132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15133 }
15134 arg2 = static_cast< int >(val2);
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 (arg1)->SetFamily(arg2);
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_Py_Void();
15142 return resultobj;
15143fail:
15144 return NULL;
15145}
15146
15147
15148SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj = 0;
15150 wxFont *arg1 = (wxFont *) 0 ;
15151 int arg2 ;
15152 void *argp1 = 0 ;
15153 int res1 = 0 ;
15154 int val2 ;
15155 int ecode2 = 0 ;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 char * kwnames[] = {
15159 (char *) "self",(char *) "style", NULL
15160 };
15161
15162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15164 if (!SWIG_IsOK(res1)) {
15165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15166 }
15167 arg1 = reinterpret_cast< wxFont * >(argp1);
15168 ecode2 = SWIG_AsVal_int(obj1, &val2);
15169 if (!SWIG_IsOK(ecode2)) {
15170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15171 }
15172 arg2 = static_cast< int >(val2);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 (arg1)->SetStyle(arg2);
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_Py_Void();
15180 return resultobj;
15181fail:
15182 return NULL;
15183}
15184
15185
15186SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj = 0;
15188 wxFont *arg1 = (wxFont *) 0 ;
15189 int arg2 ;
15190 void *argp1 = 0 ;
15191 int res1 = 0 ;
15192 int val2 ;
15193 int ecode2 = 0 ;
15194 PyObject * obj0 = 0 ;
15195 PyObject * obj1 = 0 ;
15196 char * kwnames[] = {
15197 (char *) "self",(char *) "weight", NULL
15198 };
15199
15200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15202 if (!SWIG_IsOK(res1)) {
15203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15204 }
15205 arg1 = reinterpret_cast< wxFont * >(argp1);
15206 ecode2 = SWIG_AsVal_int(obj1, &val2);
15207 if (!SWIG_IsOK(ecode2)) {
15208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15209 }
15210 arg2 = static_cast< int >(val2);
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 (arg1)->SetWeight(arg2);
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 resultobj = SWIG_Py_Void();
15218 return resultobj;
15219fail:
15220 return NULL;
15221}
15222
15223
15224SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15225 PyObject *resultobj = 0;
15226 wxFont *arg1 = (wxFont *) 0 ;
15227 wxString *arg2 = 0 ;
704eda0c 15228 bool result;
554f62e9
RD
15229 void *argp1 = 0 ;
15230 int res1 = 0 ;
15231 bool temp2 = false ;
15232 PyObject * obj0 = 0 ;
15233 PyObject * obj1 = 0 ;
15234 char * kwnames[] = {
15235 (char *) "self",(char *) "faceName", NULL
15236 };
15237
15238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15240 if (!SWIG_IsOK(res1)) {
15241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15242 }
15243 arg1 = reinterpret_cast< wxFont * >(argp1);
15244 {
15245 arg2 = wxString_in_helper(obj1);
15246 if (arg2 == NULL) SWIG_fail;
15247 temp2 = true;
15248 }
15249 {
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15251 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
704eda0c
RD
15255 {
15256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15257 }
554f62e9
RD
15258 {
15259 if (temp2)
15260 delete arg2;
15261 }
15262 return resultobj;
15263fail:
15264 {
15265 if (temp2)
15266 delete arg2;
15267 }
15268 return NULL;
15269}
15270
15271
15272SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15273 PyObject *resultobj = 0;
15274 wxFont *arg1 = (wxFont *) 0 ;
15275 bool arg2 ;
15276 void *argp1 = 0 ;
15277 int res1 = 0 ;
15278 bool val2 ;
15279 int ecode2 = 0 ;
15280 PyObject * obj0 = 0 ;
15281 PyObject * obj1 = 0 ;
15282 char * kwnames[] = {
15283 (char *) "self",(char *) "underlined", NULL
15284 };
15285
15286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15288 if (!SWIG_IsOK(res1)) {
15289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15290 }
15291 arg1 = reinterpret_cast< wxFont * >(argp1);
15292 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15293 if (!SWIG_IsOK(ecode2)) {
15294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15295 }
15296 arg2 = static_cast< bool >(val2);
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 (arg1)->SetUnderlined(arg2);
15300 wxPyEndAllowThreads(__tstate);
15301 if (PyErr_Occurred()) SWIG_fail;
15302 }
15303 resultobj = SWIG_Py_Void();
15304 return resultobj;
15305fail:
15306 return NULL;
15307}
15308
15309
15310SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15311 PyObject *resultobj = 0;
15312 wxFont *arg1 = (wxFont *) 0 ;
15313 wxFontEncoding arg2 ;
15314 void *argp1 = 0 ;
15315 int res1 = 0 ;
15316 int val2 ;
15317 int ecode2 = 0 ;
15318 PyObject * obj0 = 0 ;
15319 PyObject * obj1 = 0 ;
15320 char * kwnames[] = {
15321 (char *) "self",(char *) "encoding", NULL
15322 };
15323
15324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15326 if (!SWIG_IsOK(res1)) {
15327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15328 }
15329 arg1 = reinterpret_cast< wxFont * >(argp1);
15330 ecode2 = SWIG_AsVal_int(obj1, &val2);
15331 if (!SWIG_IsOK(ecode2)) {
15332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15333 }
15334 arg2 = static_cast< wxFontEncoding >(val2);
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 (arg1)->SetEncoding(arg2);
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 resultobj = SWIG_Py_Void();
15342 return resultobj;
15343fail:
15344 return NULL;
15345}
15346
15347
15348SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj = 0;
15350 wxFont *arg1 = (wxFont *) 0 ;
15351 wxNativeFontInfo *arg2 = 0 ;
15352 void *argp1 = 0 ;
15353 int res1 = 0 ;
15354 void *argp2 = 0 ;
15355 int res2 = 0 ;
15356 PyObject * obj0 = 0 ;
15357 PyObject * obj1 = 0 ;
15358 char * kwnames[] = {
15359 (char *) "self",(char *) "info", NULL
15360 };
15361
15362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15364 if (!SWIG_IsOK(res1)) {
15365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15366 }
15367 arg1 = reinterpret_cast< wxFont * >(argp1);
15368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15369 if (!SWIG_IsOK(res2)) {
15370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15371 }
15372 if (!argp2) {
15373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15374 }
15375 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = SWIG_Py_Void();
15383 return resultobj;
15384fail:
15385 return NULL;
15386}
15387
15388
15389SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15390 PyObject *resultobj = 0;
15391 wxFont *arg1 = (wxFont *) 0 ;
15392 wxString *arg2 = 0 ;
704eda0c 15393 bool result;
554f62e9
RD
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 bool temp2 = false ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 char * kwnames[] = {
15400 (char *) "self",(char *) "info", NULL
15401 };
15402
15403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15405 if (!SWIG_IsOK(res1)) {
15406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15407 }
15408 arg1 = reinterpret_cast< wxFont * >(argp1);
15409 {
15410 arg2 = wxString_in_helper(obj1);
15411 if (arg2 == NULL) SWIG_fail;
15412 temp2 = true;
15413 }
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15416 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
704eda0c
RD
15420 {
15421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15422 }
554f62e9
RD
15423 {
15424 if (temp2)
15425 delete arg2;
15426 }
15427 return resultobj;
15428fail:
15429 {
15430 if (temp2)
15431 delete arg2;
15432 }
15433 return NULL;
d55e5bfc
RD
15434}
15435
15436
554f62e9
RD
15437SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj = 0;
15439 wxFont *arg1 = (wxFont *) 0 ;
15440 wxString *arg2 = 0 ;
704eda0c 15441 bool result;
554f62e9
RD
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 bool temp2 = false ;
15445 PyObject * obj0 = 0 ;
15446 PyObject * obj1 = 0 ;
15447 char * kwnames[] = {
15448 (char *) "self",(char *) "info", NULL
15449 };
15450
15451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15453 if (!SWIG_IsOK(res1)) {
15454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15455 }
15456 arg1 = reinterpret_cast< wxFont * >(argp1);
15457 {
15458 arg2 = wxString_in_helper(obj1);
15459 if (arg2 == NULL) SWIG_fail;
15460 temp2 = true;
15461 }
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15464 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15465 wxPyEndAllowThreads(__tstate);
15466 if (PyErr_Occurred()) SWIG_fail;
15467 }
704eda0c
RD
15468 {
15469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15470 }
554f62e9
RD
15471 {
15472 if (temp2)
15473 delete arg2;
15474 }
15475 return resultobj;
15476fail:
15477 {
15478 if (temp2)
15479 delete arg2;
15480 }
15481 return NULL;
d55e5bfc
RD
15482}
15483
15484
554f62e9
RD
15485SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15486 PyObject *resultobj = 0;
15487 wxFont *arg1 = (wxFont *) 0 ;
15488 wxString result;
15489 void *argp1 = 0 ;
15490 int res1 = 0 ;
15491 PyObject *swig_obj[1] ;
15492
15493 if (!args) SWIG_fail;
15494 swig_obj[0] = args;
15495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15496 if (!SWIG_IsOK(res1)) {
15497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15498 }
15499 arg1 = reinterpret_cast< wxFont * >(argp1);
15500 {
15501 PyThreadState* __tstate = wxPyBeginAllowThreads();
15502 result = ((wxFont const *)arg1)->GetFamilyString();
15503 wxPyEndAllowThreads(__tstate);
15504 if (PyErr_Occurred()) SWIG_fail;
15505 }
15506 {
15507#if wxUSE_UNICODE
15508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15509#else
15510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15511#endif
15512 }
15513 return resultobj;
15514fail:
15515 return NULL;
d55e5bfc
RD
15516}
15517
15518
554f62e9
RD
15519SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15520 PyObject *resultobj = 0;
15521 wxFont *arg1 = (wxFont *) 0 ;
15522 wxString result;
15523 void *argp1 = 0 ;
15524 int res1 = 0 ;
15525 PyObject *swig_obj[1] ;
15526
15527 if (!args) SWIG_fail;
15528 swig_obj[0] = args;
15529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15530 if (!SWIG_IsOK(res1)) {
15531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15532 }
15533 arg1 = reinterpret_cast< wxFont * >(argp1);
15534 {
15535 PyThreadState* __tstate = wxPyBeginAllowThreads();
15536 result = ((wxFont const *)arg1)->GetStyleString();
15537 wxPyEndAllowThreads(__tstate);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
15540 {
15541#if wxUSE_UNICODE
15542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15543#else
15544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15545#endif
15546 }
15547 return resultobj;
15548fail:
15549 return NULL;
d55e5bfc
RD
15550}
15551
15552
554f62e9
RD
15553SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15554 PyObject *resultobj = 0;
15555 wxFont *arg1 = (wxFont *) 0 ;
15556 wxString result;
15557 void *argp1 = 0 ;
15558 int res1 = 0 ;
15559 PyObject *swig_obj[1] ;
15560
15561 if (!args) SWIG_fail;
15562 swig_obj[0] = args;
15563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15566 }
15567 arg1 = reinterpret_cast< wxFont * >(argp1);
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 result = ((wxFont const *)arg1)->GetWeightString();
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 {
15575#if wxUSE_UNICODE
15576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15577#else
15578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15579#endif
15580 }
15581 return resultobj;
15582fail:
15583 return NULL;
15584}
15585
15586
15587SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj = 0;
15589 wxFont *arg1 = (wxFont *) 0 ;
15590 bool arg2 = (bool) true ;
15591 void *argp1 = 0 ;
15592 int res1 = 0 ;
15593 bool val2 ;
15594 int ecode2 = 0 ;
15595 PyObject * obj0 = 0 ;
15596 PyObject * obj1 = 0 ;
15597 char * kwnames[] = {
15598 (char *) "self",(char *) "no", NULL
15599 };
15600
15601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15603 if (!SWIG_IsOK(res1)) {
15604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15605 }
15606 arg1 = reinterpret_cast< wxFont * >(argp1);
15607 if (obj1) {
15608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15609 if (!SWIG_IsOK(ecode2)) {
15610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15611 }
15612 arg2 = static_cast< bool >(val2);
15613 }
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 (arg1)->SetNoAntiAliasing(arg2);
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 resultobj = SWIG_Py_Void();
15621 return resultobj;
15622fail:
15623 return NULL;
d55e5bfc
RD
15624}
15625
15626
554f62e9
RD
15627SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15628 PyObject *resultobj = 0;
15629 wxFont *arg1 = (wxFont *) 0 ;
15630 bool result;
15631 void *argp1 = 0 ;
15632 int res1 = 0 ;
15633 PyObject *swig_obj[1] ;
15634
15635 if (!args) SWIG_fail;
15636 swig_obj[0] = args;
15637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15638 if (!SWIG_IsOK(res1)) {
15639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15640 }
15641 arg1 = reinterpret_cast< wxFont * >(argp1);
15642 {
15643 PyThreadState* __tstate = wxPyBeginAllowThreads();
15644 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 {
15649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15650 }
15651 return resultobj;
15652fail:
15653 return NULL;
d55e5bfc
RD
15654}
15655
15656
554f62e9
RD
15657SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15658 PyObject *resultobj = 0;
15659 wxFontEncoding result;
15660
15661 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15662 {
15663 if (!wxPyCheckForApp()) SWIG_fail;
15664 PyThreadState* __tstate = wxPyBeginAllowThreads();
15665 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 resultobj = SWIG_From_int(static_cast< int >(result));
15670 return resultobj;
15671fail:
15672 return NULL;
d55e5bfc
RD
15673}
15674
15675
554f62e9
RD
15676SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj = 0;
15678 wxFontEncoding arg1 ;
15679 int val1 ;
15680 int ecode1 = 0 ;
15681 PyObject * obj0 = 0 ;
15682 char * kwnames[] = {
15683 (char *) "encoding", NULL
15684 };
15685
15686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15687 ecode1 = SWIG_AsVal_int(obj0, &val1);
15688 if (!SWIG_IsOK(ecode1)) {
15689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15690 }
15691 arg1 = static_cast< wxFontEncoding >(val1);
15692 {
15693 if (!wxPyCheckForApp()) SWIG_fail;
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 wxFont::SetDefaultEncoding(arg1);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 return resultobj;
15701fail:
15702 return NULL;
5e483524
RD
15703}
15704
15705
554f62e9
RD
15706SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15707 PyObject *obj;
15708 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15709 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15710 return SWIG_Py_Void();
d55e5bfc
RD
15711}
15712
554f62e9
RD
15713SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15715}
15716
554f62e9
RD
15717SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15718 PyObject *resultobj = 0;
15719 wxPyFontEnumerator *result = 0 ;
15720
15721 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15722 {
15723 if (!wxPyCheckForApp()) SWIG_fail;
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15726 wxPyEndAllowThreads(__tstate);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15730 return resultobj;
15731fail:
15732 return NULL;
d55e5bfc
RD
15733}
15734
15735
554f62e9
RD
15736SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15737 PyObject *resultobj = 0;
15738 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15739 void *argp1 = 0 ;
15740 int res1 = 0 ;
15741 PyObject *swig_obj[1] ;
15742
15743 if (!args) SWIG_fail;
15744 swig_obj[0] = args;
15745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15748 }
15749 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 delete arg1;
d55e5bfc 15753
554f62e9
RD
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_Py_Void();
15758 return resultobj;
15759fail:
15760 return NULL;
15761}
15762
15763
15764SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj = 0;
15766 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15767 PyObject *arg2 = (PyObject *) 0 ;
15768 PyObject *arg3 = (PyObject *) 0 ;
15769 bool arg4 ;
15770 void *argp1 = 0 ;
15771 int res1 = 0 ;
15772 bool val4 ;
15773 int ecode4 = 0 ;
15774 PyObject * obj0 = 0 ;
15775 PyObject * obj1 = 0 ;
15776 PyObject * obj2 = 0 ;
15777 PyObject * obj3 = 0 ;
15778 char * kwnames[] = {
15779 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15780 };
15781
15782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15784 if (!SWIG_IsOK(res1)) {
15785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15786 }
15787 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15788 arg2 = obj1;
15789 arg3 = obj2;
15790 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15791 if (!SWIG_IsOK(ecode4)) {
15792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15793 }
15794 arg4 = static_cast< bool >(val4);
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 resultobj = SWIG_Py_Void();
15802 return resultobj;
15803fail:
15804 return NULL;
15805}
15806
15807
15808SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15809 PyObject *resultobj = 0;
15810 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15811 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15812 bool arg3 = (bool) false ;
15813 bool result;
15814 void *argp1 = 0 ;
15815 int res1 = 0 ;
15816 int val2 ;
15817 int ecode2 = 0 ;
15818 bool val3 ;
15819 int ecode3 = 0 ;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 PyObject * obj2 = 0 ;
15823 char * kwnames[] = {
15824 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15825 };
15826
15827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15829 if (!SWIG_IsOK(res1)) {
15830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15831 }
15832 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15833 if (obj1) {
15834 ecode2 = SWIG_AsVal_int(obj1, &val2);
15835 if (!SWIG_IsOK(ecode2)) {
15836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15837 }
15838 arg2 = static_cast< wxFontEncoding >(val2);
15839 }
15840 if (obj2) {
15841 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15842 if (!SWIG_IsOK(ecode3)) {
15843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15844 }
15845 arg3 = static_cast< bool >(val3);
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15850 wxPyEndAllowThreads(__tstate);
15851 if (PyErr_Occurred()) SWIG_fail;
15852 }
15853 {
15854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15855 }
15856 return resultobj;
15857fail:
15858 return NULL;
15859}
15860
15861
15862SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15863 PyObject *resultobj = 0;
15864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15865 wxString const &arg2_defvalue = wxPyEmptyString ;
15866 wxString *arg2 = (wxString *) &arg2_defvalue ;
15867 bool result;
15868 void *argp1 = 0 ;
15869 int res1 = 0 ;
15870 bool temp2 = false ;
15871 PyObject * obj0 = 0 ;
15872 PyObject * obj1 = 0 ;
15873 char * kwnames[] = {
15874 (char *) "self",(char *) "facename", NULL
15875 };
15876
15877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15879 if (!SWIG_IsOK(res1)) {
15880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15881 }
15882 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15883 if (obj1) {
093d3ff1 15884 {
554f62e9
RD
15885 arg2 = wxString_in_helper(obj1);
15886 if (arg2 == NULL) SWIG_fail;
15887 temp2 = true;
093d3ff1 15888 }
554f62e9
RD
15889 }
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 {
15897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15898 }
15899 {
15900 if (temp2)
15901 delete arg2;
15902 }
15903 return resultobj;
15904fail:
15905 {
15906 if (temp2)
15907 delete arg2;
15908 }
15909 return NULL;
d55e5bfc
RD
15910}
15911
15912
554f62e9
RD
15913SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15914 PyObject *resultobj = 0;
554f62e9 15915 PyObject *result = 0 ;
554f62e9 15916
704eda0c 15917 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
15918 {
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15920 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
15921 wxPyEndAllowThreads(__tstate);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 resultobj = result;
15925 return resultobj;
15926fail:
15927 return NULL;
d55e5bfc
RD
15928}
15929
15930
554f62e9
RD
15931SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15932 PyObject *resultobj = 0;
554f62e9 15933 PyObject *result = 0 ;
554f62e9 15934
704eda0c 15935 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15938 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
15939 wxPyEndAllowThreads(__tstate);
15940 if (PyErr_Occurred()) SWIG_fail;
15941 }
15942 resultobj = result;
15943 return resultobj;
15944fail:
15945 return NULL;
d55e5bfc
RD
15946}
15947
15948
704eda0c
RD
15949SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15950 PyObject *resultobj = 0;
15951 wxString *arg1 = 0 ;
15952 bool result;
15953 bool temp1 = false ;
15954 PyObject * obj0 = 0 ;
15955 char * kwnames[] = {
15956 (char *) "str", NULL
15957 };
15958
15959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15960 {
15961 arg1 = wxString_in_helper(obj0);
15962 if (arg1 == NULL) SWIG_fail;
15963 temp1 = true;
15964 }
15965 {
15966 PyThreadState* __tstate = wxPyBeginAllowThreads();
15967 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 {
15972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15973 }
15974 {
15975 if (temp1)
15976 delete arg1;
15977 }
15978 return resultobj;
15979fail:
15980 {
15981 if (temp1)
15982 delete arg1;
15983 }
15984 return NULL;
15985}
15986
15987
554f62e9
RD
15988SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15989 PyObject *obj;
15990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15991 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15992 return SWIG_Py_Void();
5e483524
RD
15993}
15994
554f62e9
RD
15995SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15996 return SWIG_Python_InitShadowInstance(args);
15997}
5e483524 15998
554f62e9
RD
15999SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16000 PyObject *resultobj = 0;
16001 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16002 int arg2 ;
16003 void *argp1 = 0 ;
16004 int res1 = 0 ;
16005 int val2 ;
16006 int ecode2 = 0 ;
16007 PyObject *swig_obj[2] ;
16008
16009 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16011 if (!SWIG_IsOK(res1)) {
16012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16013 }
16014 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16015 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16016 if (!SWIG_IsOK(ecode2)) {
16017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16018 }
16019 arg2 = static_cast< int >(val2);
16020 if (arg1) (arg1)->Language = arg2;
16021
16022 resultobj = SWIG_Py_Void();
16023 return resultobj;
16024fail:
16025 return NULL;
d55e5bfc
RD
16026}
16027
16028
554f62e9
RD
16029SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16030 PyObject *resultobj = 0;
16031 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16032 int result;
16033 void *argp1 = 0 ;
16034 int res1 = 0 ;
16035 PyObject *swig_obj[1] ;
16036
16037 if (!args) SWIG_fail;
16038 swig_obj[0] = args;
16039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16040 if (!SWIG_IsOK(res1)) {
16041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16042 }
16043 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16044 result = (int) ((arg1)->Language);
16045 resultobj = SWIG_From_int(static_cast< int >(result));
16046 return resultobj;
16047fail:
16048 return NULL;
16049}
16050
16051
16052SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16053 PyObject *resultobj = 0;
16054 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16055 wxString *arg2 = (wxString *) 0 ;
16056 void *argp1 = 0 ;
16057 int res1 = 0 ;
16058 bool temp2 = false ;
16059 PyObject *swig_obj[2] ;
16060
16061 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16063 if (!SWIG_IsOK(res1)) {
16064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16065 }
16066 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16067 {
16068 arg2 = wxString_in_helper(swig_obj[1]);
16069 if (arg2 == NULL) SWIG_fail;
16070 temp2 = true;
16071 }
16072 if (arg1) (arg1)->CanonicalName = *arg2;
16073
16074 resultobj = SWIG_Py_Void();
16075 {
16076 if (temp2)
16077 delete arg2;
16078 }
16079 return resultobj;
16080fail:
16081 {
16082 if (temp2)
16083 delete arg2;
16084 }
16085 return NULL;
d55e5bfc
RD
16086}
16087
16088
554f62e9
RD
16089SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16090 PyObject *resultobj = 0;
16091 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16092 wxString *result = 0 ;
16093 void *argp1 = 0 ;
16094 int res1 = 0 ;
16095 PyObject *swig_obj[1] ;
16096
16097 if (!args) SWIG_fail;
16098 swig_obj[0] = args;
16099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16100 if (!SWIG_IsOK(res1)) {
16101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16102 }
16103 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16104 result = (wxString *)& ((arg1)->CanonicalName);
16105 {
16106#if wxUSE_UNICODE
16107 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16108#else
16109 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16110#endif
16111 }
16112 return resultobj;
16113fail:
16114 return NULL;
d55e5bfc
RD
16115}
16116
16117
554f62e9
RD
16118SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16119 PyObject *resultobj = 0;
16120 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16121 wxString *arg2 = (wxString *) 0 ;
16122 void *argp1 = 0 ;
16123 int res1 = 0 ;
16124 bool temp2 = false ;
16125 PyObject *swig_obj[2] ;
16126
16127 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16129 if (!SWIG_IsOK(res1)) {
16130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16131 }
16132 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16133 {
16134 arg2 = wxString_in_helper(swig_obj[1]);
16135 if (arg2 == NULL) SWIG_fail;
16136 temp2 = true;
16137 }
16138 if (arg1) (arg1)->Description = *arg2;
16139
16140 resultobj = SWIG_Py_Void();
16141 {
16142 if (temp2)
16143 delete arg2;
16144 }
16145 return resultobj;
16146fail:
16147 {
16148 if (temp2)
16149 delete arg2;
16150 }
16151 return NULL;
d55e5bfc
RD
16152}
16153
16154
554f62e9
RD
16155SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16156 PyObject *resultobj = 0;
16157 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16158 wxString *result = 0 ;
16159 void *argp1 = 0 ;
16160 int res1 = 0 ;
16161 PyObject *swig_obj[1] ;
16162
16163 if (!args) SWIG_fail;
16164 swig_obj[0] = args;
16165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16166 if (!SWIG_IsOK(res1)) {
16167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16168 }
16169 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16170 result = (wxString *)& ((arg1)->Description);
16171 {
16172#if wxUSE_UNICODE
16173 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16174#else
16175 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16176#endif
16177 }
16178 return resultobj;
16179fail:
16180 return NULL;
16181}
16182
16183
16184SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16185 PyObject *obj;
16186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16187 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16188 return SWIG_Py_Void();
16189}
16190
16191SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj = 0;
16193 int arg1 = (int) -1 ;
16194 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16195 wxLocale *result = 0 ;
16196 int val1 ;
16197 int ecode1 = 0 ;
16198 int val2 ;
16199 int ecode2 = 0 ;
16200 PyObject * obj0 = 0 ;
16201 PyObject * obj1 = 0 ;
16202 char * kwnames[] = {
16203 (char *) "language",(char *) "flags", NULL
16204 };
16205
16206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16207 if (obj0) {
16208 ecode1 = SWIG_AsVal_int(obj0, &val1);
16209 if (!SWIG_IsOK(ecode1)) {
16210 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16211 }
16212 arg1 = static_cast< int >(val1);
16213 }
16214 if (obj1) {
16215 ecode2 = SWIG_AsVal_int(obj1, &val2);
16216 if (!SWIG_IsOK(ecode2)) {
16217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16218 }
16219 arg2 = static_cast< int >(val2);
16220 }
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = (wxLocale *)new_wxLocale(arg1,arg2);
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16228 return resultobj;
16229fail:
16230 return NULL;
d55e5bfc
RD
16231}
16232
16233
554f62e9
RD
16234SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16235 PyObject *resultobj = 0;
16236 wxLocale *arg1 = (wxLocale *) 0 ;
16237 void *argp1 = 0 ;
16238 int res1 = 0 ;
16239 PyObject *swig_obj[1] ;
16240
16241 if (!args) SWIG_fail;
16242 swig_obj[0] = args;
16243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 delete arg1;
d55e5bfc 16251
554f62e9
RD
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 resultobj = SWIG_Py_Void();
16256 return resultobj;
16257fail:
16258 return NULL;
16259}
16260
16261
16262SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj = 0;
16264 wxLocale *arg1 = (wxLocale *) 0 ;
16265 wxString *arg2 = 0 ;
16266 wxString const &arg3_defvalue = wxPyEmptyString ;
16267 wxString *arg3 = (wxString *) &arg3_defvalue ;
16268 wxString const &arg4_defvalue = wxPyEmptyString ;
16269 wxString *arg4 = (wxString *) &arg4_defvalue ;
16270 bool arg5 = (bool) true ;
16271 bool arg6 = (bool) false ;
16272 bool result;
16273 void *argp1 = 0 ;
16274 int res1 = 0 ;
16275 bool temp2 = false ;
16276 bool temp3 = false ;
16277 bool temp4 = false ;
16278 bool val5 ;
16279 int ecode5 = 0 ;
16280 bool val6 ;
16281 int ecode6 = 0 ;
16282 PyObject * obj0 = 0 ;
16283 PyObject * obj1 = 0 ;
16284 PyObject * obj2 = 0 ;
16285 PyObject * obj3 = 0 ;
16286 PyObject * obj4 = 0 ;
16287 PyObject * obj5 = 0 ;
16288 char * kwnames[] = {
16289 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16290 };
16291
16292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16296 }
16297 arg1 = reinterpret_cast< wxLocale * >(argp1);
16298 {
16299 arg2 = wxString_in_helper(obj1);
16300 if (arg2 == NULL) SWIG_fail;
16301 temp2 = true;
16302 }
16303 if (obj2) {
093d3ff1 16304 {
554f62e9
RD
16305 arg3 = wxString_in_helper(obj2);
16306 if (arg3 == NULL) SWIG_fail;
16307 temp3 = true;
093d3ff1 16308 }
554f62e9
RD
16309 }
16310 if (obj3) {
d55e5bfc 16311 {
554f62e9
RD
16312 arg4 = wxString_in_helper(obj3);
16313 if (arg4 == NULL) SWIG_fail;
16314 temp4 = true;
d55e5bfc 16315 }
554f62e9
RD
16316 }
16317 if (obj4) {
16318 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16319 if (!SWIG_IsOK(ecode5)) {
16320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16321 }
16322 arg5 = static_cast< bool >(val5);
16323 }
16324 if (obj5) {
16325 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16326 if (!SWIG_IsOK(ecode6)) {
16327 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16328 }
16329 arg6 = static_cast< bool >(val6);
16330 }
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 {
16338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16339 }
16340 {
16341 if (temp2)
16342 delete arg2;
16343 }
16344 {
16345 if (temp3)
16346 delete arg3;
16347 }
16348 {
16349 if (temp4)
16350 delete arg4;
16351 }
16352 return resultobj;
16353fail:
16354 {
16355 if (temp2)
16356 delete arg2;
16357 }
16358 {
16359 if (temp3)
16360 delete arg3;
16361 }
16362 {
16363 if (temp4)
16364 delete arg4;
16365 }
16366 return NULL;
16367}
16368
16369
16370SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj = 0;
16372 wxLocale *arg1 = (wxLocale *) 0 ;
16373 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16374 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16375 bool result;
16376 void *argp1 = 0 ;
16377 int res1 = 0 ;
16378 int val2 ;
16379 int ecode2 = 0 ;
16380 int val3 ;
16381 int ecode3 = 0 ;
16382 PyObject * obj0 = 0 ;
16383 PyObject * obj1 = 0 ;
16384 PyObject * obj2 = 0 ;
16385 char * kwnames[] = {
16386 (char *) "self",(char *) "language",(char *) "flags", NULL
16387 };
16388
16389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16391 if (!SWIG_IsOK(res1)) {
16392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16393 }
16394 arg1 = reinterpret_cast< wxLocale * >(argp1);
16395 if (obj1) {
16396 ecode2 = SWIG_AsVal_int(obj1, &val2);
16397 if (!SWIG_IsOK(ecode2)) {
16398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16399 }
16400 arg2 = static_cast< int >(val2);
16401 }
16402 if (obj2) {
16403 ecode3 = SWIG_AsVal_int(obj2, &val3);
16404 if (!SWIG_IsOK(ecode3)) {
16405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16406 }
16407 arg3 = static_cast< int >(val3);
16408 }
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 {
16416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16417 }
16418 return resultobj;
16419fail:
16420 return NULL;
d55e5bfc
RD
16421}
16422
16423
554f62e9
RD
16424SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16425 PyObject *resultobj = 0;
16426 int result;
16427
16428 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
16431 result = (int)wxLocale::GetSystemLanguage();
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 resultobj = SWIG_From_int(static_cast< int >(result));
16436 return resultobj;
16437fail:
16438 return NULL;
d55e5bfc
RD
16439}
16440
16441
554f62e9
RD
16442SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16443 PyObject *resultobj = 0;
16444 wxFontEncoding result;
16445
16446 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 resultobj = SWIG_From_int(static_cast< int >(result));
16454 return resultobj;
16455fail:
16456 return NULL;
d55e5bfc
RD
16457}
16458
16459
554f62e9
RD
16460SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16461 PyObject *resultobj = 0;
16462 wxString result;
16463
16464 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16465 {
16466 PyThreadState* __tstate = wxPyBeginAllowThreads();
16467 result = wxLocale::GetSystemEncodingName();
16468 wxPyEndAllowThreads(__tstate);
16469 if (PyErr_Occurred()) SWIG_fail;
16470 }
16471 {
16472#if wxUSE_UNICODE
16473 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16474#else
16475 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16476#endif
16477 }
16478 return resultobj;
16479fail:
16480 return NULL;
d55e5bfc
RD
16481}
16482
16483
554f62e9
RD
16484SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16485 PyObject *resultobj = 0;
16486 wxLocale *arg1 = (wxLocale *) 0 ;
16487 bool result;
16488 void *argp1 = 0 ;
16489 int res1 = 0 ;
16490 PyObject *swig_obj[1] ;
16491
16492 if (!args) SWIG_fail;
16493 swig_obj[0] = args;
16494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16495 if (!SWIG_IsOK(res1)) {
16496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16497 }
16498 arg1 = reinterpret_cast< wxLocale * >(argp1);
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
16501 result = (bool)((wxLocale const *)arg1)->IsOk();
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 {
16506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16507 }
16508 return resultobj;
16509fail:
16510 return NULL;
d55e5bfc
RD
16511}
16512
16513
554f62e9
RD
16514SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16515 PyObject *resultobj = 0;
16516 wxLocale *arg1 = (wxLocale *) 0 ;
16517 wxString result;
16518 void *argp1 = 0 ;
16519 int res1 = 0 ;
16520 PyObject *swig_obj[1] ;
16521
16522 if (!args) SWIG_fail;
16523 swig_obj[0] = args;
16524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16525 if (!SWIG_IsOK(res1)) {
16526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16527 }
16528 arg1 = reinterpret_cast< wxLocale * >(argp1);
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 result = ((wxLocale const *)arg1)->GetLocale();
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 {
16536#if wxUSE_UNICODE
16537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16538#else
16539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16540#endif
16541 }
16542 return resultobj;
16543fail:
16544 return NULL;
d55e5bfc
RD
16545}
16546
16547
554f62e9
RD
16548SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16549 PyObject *resultobj = 0;
16550 wxLocale *arg1 = (wxLocale *) 0 ;
16551 int result;
16552 void *argp1 = 0 ;
16553 int res1 = 0 ;
16554 PyObject *swig_obj[1] ;
16555
16556 if (!args) SWIG_fail;
16557 swig_obj[0] = args;
16558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16559 if (!SWIG_IsOK(res1)) {
16560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16561 }
16562 arg1 = reinterpret_cast< wxLocale * >(argp1);
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 result = (int)((wxLocale const *)arg1)->GetLanguage();
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 resultobj = SWIG_From_int(static_cast< int >(result));
16570 return resultobj;
16571fail:
16572 return NULL;
d55e5bfc
RD
16573}
16574
16575
554f62e9
RD
16576SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16577 PyObject *resultobj = 0;
16578 wxLocale *arg1 = (wxLocale *) 0 ;
16579 wxString result;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 PyObject *swig_obj[1] ;
16583
16584 if (!args) SWIG_fail;
16585 swig_obj[0] = args;
16586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16587 if (!SWIG_IsOK(res1)) {
16588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16589 }
16590 arg1 = reinterpret_cast< wxLocale * >(argp1);
16591 {
16592 PyThreadState* __tstate = wxPyBeginAllowThreads();
16593 result = ((wxLocale const *)arg1)->GetSysName();
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 {
16598#if wxUSE_UNICODE
16599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16600#else
16601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16602#endif
16603 }
16604 return resultobj;
16605fail:
16606 return NULL;
d55e5bfc
RD
16607}
16608
16609
554f62e9
RD
16610SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16611 PyObject *resultobj = 0;
16612 wxLocale *arg1 = (wxLocale *) 0 ;
16613 wxString result;
16614 void *argp1 = 0 ;
16615 int res1 = 0 ;
16616 PyObject *swig_obj[1] ;
16617
16618 if (!args) SWIG_fail;
16619 swig_obj[0] = args;
16620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16623 }
16624 arg1 = reinterpret_cast< wxLocale * >(argp1);
16625 {
16626 PyThreadState* __tstate = wxPyBeginAllowThreads();
16627 result = ((wxLocale const *)arg1)->GetCanonicalName();
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
16631 {
093d3ff1 16632#if wxUSE_UNICODE
554f62e9 16633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16634#else
554f62e9 16635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16636#endif
554f62e9
RD
16637 }
16638 return resultobj;
16639fail:
16640 return NULL;
d55e5bfc
RD
16641}
16642
16643
554f62e9
RD
16644SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj = 0;
16646 wxString *arg1 = 0 ;
16647 bool temp1 = false ;
16648 PyObject * obj0 = 0 ;
16649 char * kwnames[] = {
16650 (char *) "prefix", NULL
16651 };
16652
16653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16654 {
16655 arg1 = wxString_in_helper(obj0);
16656 if (arg1 == NULL) SWIG_fail;
16657 temp1 = true;
16658 }
16659 {
16660 PyThreadState* __tstate = wxPyBeginAllowThreads();
16661 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 resultobj = SWIG_Py_Void();
16666 {
16667 if (temp1)
16668 delete arg1;
16669 }
16670 return resultobj;
16671fail:
16672 {
16673 if (temp1)
16674 delete arg1;
16675 }
16676 return NULL;
16677}
16678
16679
16680SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16681 PyObject *resultobj = 0;
16682 wxLocale *arg1 = (wxLocale *) 0 ;
16683 wxString *arg2 = 0 ;
16684 bool result;
16685 void *argp1 = 0 ;
16686 int res1 = 0 ;
16687 bool temp2 = false ;
16688 PyObject * obj0 = 0 ;
16689 PyObject * obj1 = 0 ;
16690 char * kwnames[] = {
16691 (char *) "self",(char *) "szDomain", NULL
16692 };
16693
16694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16696 if (!SWIG_IsOK(res1)) {
16697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16698 }
16699 arg1 = reinterpret_cast< wxLocale * >(argp1);
16700 {
16701 arg2 = wxString_in_helper(obj1);
16702 if (arg2 == NULL) SWIG_fail;
16703 temp2 = true;
16704 }
16705 {
16706 PyThreadState* __tstate = wxPyBeginAllowThreads();
16707 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 {
16712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16713 }
16714 {
16715 if (temp2)
16716 delete arg2;
16717 }
16718 return resultobj;
16719fail:
16720 {
16721 if (temp2)
16722 delete arg2;
16723 }
16724 return NULL;
16725}
16726
16727
33d6fd3b
RD
16728SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj = 0;
16730 int arg1 ;
16731 bool result;
16732 int val1 ;
16733 int ecode1 = 0 ;
16734 PyObject * obj0 = 0 ;
16735 char * kwnames[] = {
16736 (char *) "lang", NULL
16737 };
16738
16739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16740 ecode1 = SWIG_AsVal_int(obj0, &val1);
16741 if (!SWIG_IsOK(ecode1)) {
16742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16743 }
16744 arg1 = static_cast< int >(val1);
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 result = (bool)wxLocale::IsAvailable(arg1);
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 {
16752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16753 }
16754 return resultobj;
16755fail:
16756 return NULL;
16757}
16758
16759
554f62e9
RD
16760SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16761 PyObject *resultobj = 0;
16762 wxLocale *arg1 = (wxLocale *) 0 ;
16763 wxString *arg2 = 0 ;
16764 bool result;
16765 void *argp1 = 0 ;
16766 int res1 = 0 ;
16767 bool temp2 = false ;
16768 PyObject * obj0 = 0 ;
16769 PyObject * obj1 = 0 ;
16770 char * kwnames[] = {
16771 (char *) "self",(char *) "szDomain", NULL
16772 };
16773
16774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16776 if (!SWIG_IsOK(res1)) {
16777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16778 }
16779 arg1 = reinterpret_cast< wxLocale * >(argp1);
16780 {
16781 arg2 = wxString_in_helper(obj1);
16782 if (arg2 == NULL) SWIG_fail;
16783 temp2 = true;
16784 }
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
16787 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16788 wxPyEndAllowThreads(__tstate);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
16791 {
16792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16793 }
16794 {
16795 if (temp2)
16796 delete arg2;
16797 }
16798 return resultobj;
16799fail:
16800 {
16801 if (temp2)
16802 delete arg2;
16803 }
16804 return NULL;
d55e5bfc
RD
16805}
16806
16807
554f62e9
RD
16808SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16809 PyObject *resultobj = 0;
16810 int arg1 ;
16811 wxLanguageInfo *result = 0 ;
16812 int val1 ;
16813 int ecode1 = 0 ;
16814 PyObject * obj0 = 0 ;
16815 char * kwnames[] = {
16816 (char *) "lang", NULL
16817 };
16818
16819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16820 ecode1 = SWIG_AsVal_int(obj0, &val1);
16821 if (!SWIG_IsOK(ecode1)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16823 }
16824 arg1 = static_cast< int >(val1);
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16832 return resultobj;
16833fail:
16834 return NULL;
16835}
16836
16837
16838SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj = 0;
16840 int arg1 ;
16841 wxString result;
16842 int val1 ;
16843 int ecode1 = 0 ;
16844 PyObject * obj0 = 0 ;
16845 char * kwnames[] = {
16846 (char *) "lang", NULL
16847 };
16848
16849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16850 ecode1 = SWIG_AsVal_int(obj0, &val1);
16851 if (!SWIG_IsOK(ecode1)) {
16852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16853 }
16854 arg1 = static_cast< int >(val1);
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 result = wxLocale::GetLanguageName(arg1);
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 {
16862#if wxUSE_UNICODE
16863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16864#else
16865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16866#endif
16867 }
16868 return resultobj;
16869fail:
16870 return NULL;
093d3ff1
RD
16871}
16872
16873
554f62e9
RD
16874SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16875 PyObject *resultobj = 0;
16876 wxString *arg1 = 0 ;
16877 wxLanguageInfo *result = 0 ;
16878 bool temp1 = false ;
16879 PyObject * obj0 = 0 ;
16880 char * kwnames[] = {
16881 (char *) "locale", NULL
16882 };
16883
16884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16885 {
16886 arg1 = wxString_in_helper(obj0);
16887 if (arg1 == NULL) SWIG_fail;
16888 temp1 = true;
16889 }
16890 {
16891 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16892 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16893 wxPyEndAllowThreads(__tstate);
16894 if (PyErr_Occurred()) SWIG_fail;
16895 }
16896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16897 {
16898 if (temp1)
16899 delete arg1;
16900 }
16901 return resultobj;
16902fail:
16903 {
16904 if (temp1)
16905 delete arg1;
16906 }
16907 return NULL;
16908}
16909
16910
16911SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj = 0;
16913 wxLanguageInfo *arg1 = 0 ;
16914 void *argp1 = 0 ;
16915 int res1 = 0 ;
16916 PyObject * obj0 = 0 ;
16917 char * kwnames[] = {
16918 (char *) "info", NULL
16919 };
16920
16921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16922 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16923 if (!SWIG_IsOK(res1)) {
16924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16925 }
16926 if (!argp1) {
16927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16928 }
16929 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16930 {
16931 PyThreadState* __tstate = wxPyBeginAllowThreads();
16932 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
16936 resultobj = SWIG_Py_Void();
16937 return resultobj;
16938fail:
16939 return NULL;
16940}
16941
16942
16943SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16944 PyObject *resultobj = 0;
16945 wxLocale *arg1 = (wxLocale *) 0 ;
16946 wxString *arg2 = 0 ;
16947 wxString const &arg3_defvalue = wxPyEmptyString ;
16948 wxString *arg3 = (wxString *) &arg3_defvalue ;
16949 wxString result;
16950 void *argp1 = 0 ;
16951 int res1 = 0 ;
16952 bool temp2 = false ;
16953 bool temp3 = false ;
16954 PyObject * obj0 = 0 ;
16955 PyObject * obj1 = 0 ;
16956 PyObject * obj2 = 0 ;
16957 char * kwnames[] = {
16958 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16959 };
16960
16961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16963 if (!SWIG_IsOK(res1)) {
16964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16965 }
16966 arg1 = reinterpret_cast< wxLocale * >(argp1);
16967 {
16968 arg2 = wxString_in_helper(obj1);
16969 if (arg2 == NULL) SWIG_fail;
16970 temp2 = true;
16971 }
16972 if (obj2) {
16973 {
16974 arg3 = wxString_in_helper(obj2);
16975 if (arg3 == NULL) SWIG_fail;
16976 temp3 = true;
16977 }
16978 }
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16982 wxPyEndAllowThreads(__tstate);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 {
16986#if wxUSE_UNICODE
16987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16988#else
16989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16990#endif
16991 }
16992 {
16993 if (temp2)
16994 delete arg2;
16995 }
16996 {
16997 if (temp3)
16998 delete arg3;
16999 }
17000 return resultobj;
17001fail:
17002 {
17003 if (temp2)
17004 delete arg2;
17005 }
17006 {
17007 if (temp3)
17008 delete arg3;
17009 }
17010 return NULL;
17011}
17012
17013
17014SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17015 PyObject *resultobj = 0;
17016 wxLocale *arg1 = (wxLocale *) 0 ;
17017 wxString *result = 0 ;
17018 void *argp1 = 0 ;
17019 int res1 = 0 ;
17020 PyObject *swig_obj[1] ;
17021
17022 if (!args) SWIG_fail;
17023 swig_obj[0] = args;
17024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17025 if (!SWIG_IsOK(res1)) {
17026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17027 }
17028 arg1 = reinterpret_cast< wxLocale * >(argp1);
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 {
17032 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17033 result = (wxString *) &_result_ref;
17034 }
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 {
17039#if wxUSE_UNICODE
17040 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17041#else
17042 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17043#endif
17044 }
17045 return resultobj;
17046fail:
17047 return NULL;
17048}
17049
17050
17051SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17052 PyObject *obj;
17053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17054 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17055 return SWIG_Py_Void();
17056}
17057
17058SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17059 return SWIG_Python_InitShadowInstance(args);
17060}
17061
17062SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17063 PyObject *resultobj = 0;
17064 int arg1 = (int) -1 ;
17065 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17066 wxPyLocale *result = 0 ;
17067 int val1 ;
17068 int ecode1 = 0 ;
17069 int val2 ;
17070 int ecode2 = 0 ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 char * kwnames[] = {
17074 (char *) "language",(char *) "flags", NULL
17075 };
17076
17077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17078 if (obj0) {
17079 ecode1 = SWIG_AsVal_int(obj0, &val1);
17080 if (!SWIG_IsOK(ecode1)) {
17081 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17082 }
17083 arg1 = static_cast< int >(val1);
17084 }
17085 if (obj1) {
17086 ecode2 = SWIG_AsVal_int(obj1, &val2);
17087 if (!SWIG_IsOK(ecode2)) {
17088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17089 }
17090 arg2 = static_cast< int >(val2);
17091 }
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17099 return resultobj;
17100fail:
17101 return NULL;
17102}
17103
17104
17105SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17106 PyObject *resultobj = 0;
17107 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17108 void *argp1 = 0 ;
17109 int res1 = 0 ;
17110 PyObject *swig_obj[1] ;
17111
17112 if (!args) SWIG_fail;
17113 swig_obj[0] = args;
17114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17115 if (!SWIG_IsOK(res1)) {
17116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17117 }
17118 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 delete arg1;
17122
554f62e9
RD
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
fc46b7f3 17126 resultobj = SWIG_Py_Void();
554f62e9
RD
17127 return resultobj;
17128fail:
554f62e9 17129 return NULL;
d55e5bfc
RD
17130}
17131
17132
fc46b7f3 17133SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17134 PyObject *resultobj = 0;
fc46b7f3
RD
17135 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17136 PyObject *arg2 = (PyObject *) 0 ;
17137 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17138 void *argp1 = 0 ;
17139 int res1 = 0 ;
17140 PyObject * obj0 = 0 ;
fc46b7f3
RD
17141 PyObject * obj1 = 0 ;
17142 PyObject * obj2 = 0 ;
554f62e9 17143 char * kwnames[] = {
fc46b7f3 17144 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17145 };
17146
fc46b7f3
RD
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17149 if (!SWIG_IsOK(res1)) {
fc46b7f3 17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17151 }
fc46b7f3
RD
17152 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17153 arg2 = obj1;
17154 arg3 = obj2;
554f62e9
RD
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17157 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17158 wxPyEndAllowThreads(__tstate);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 resultobj = SWIG_Py_Void();
17162 return resultobj;
17163fail:
17164 return NULL;
17165}
17166
17167
fc46b7f3 17168SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17169 PyObject *resultobj = 0;
fc46b7f3
RD
17170 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17171 wxChar *arg2 = (wxChar *) 0 ;
17172 wxChar *arg3 = (wxChar *) NULL ;
17173 wxChar *result = 0 ;
554f62e9
RD
17174 void *argp1 = 0 ;
17175 int res1 = 0 ;
fc46b7f3
RD
17176 void *argp2 = 0 ;
17177 int res2 = 0 ;
17178 void *argp3 = 0 ;
17179 int res3 = 0 ;
554f62e9
RD
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 PyObject * obj2 = 0 ;
17183 char * kwnames[] = {
17184 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17185 };
17186
fc46b7f3
RD
17187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17189 if (!SWIG_IsOK(res1)) {
fc46b7f3 17190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17191 }
fc46b7f3
RD
17192 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17194 if (!SWIG_IsOK(res2)) {
17195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17196 }
fc46b7f3 17197 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17198 if (obj2) {
fc46b7f3
RD
17199 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17200 if (!SWIG_IsOK(res3)) {
17201 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17202 }
fc46b7f3 17203 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17204 }
17205 {
17206 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17207 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17208 wxPyEndAllowThreads(__tstate);
17209 if (PyErr_Occurred()) SWIG_fail;
17210 }
fc46b7f3 17211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17212 return resultobj;
17213fail:
554f62e9 17214 return NULL;
d55e5bfc
RD
17215}
17216
17217
fc46b7f3 17218SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17219 PyObject *resultobj = 0;
fc46b7f3
RD
17220 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17221 wxChar *arg2 = (wxChar *) 0 ;
17222 wxChar *arg3 = (wxChar *) 0 ;
17223 size_t arg4 ;
17224 wxChar *arg5 = (wxChar *) NULL ;
17225 wxChar *result = 0 ;
554f62e9
RD
17226 void *argp1 = 0 ;
17227 int res1 = 0 ;
fc46b7f3
RD
17228 void *argp2 = 0 ;
17229 int res2 = 0 ;
17230 void *argp3 = 0 ;
17231 int res3 = 0 ;
17232 size_t val4 ;
17233 int ecode4 = 0 ;
17234 void *argp5 = 0 ;
17235 int res5 = 0 ;
17236 PyObject * obj0 = 0 ;
17237 PyObject * obj1 = 0 ;
17238 PyObject * obj2 = 0 ;
17239 PyObject * obj3 = 0 ;
17240 PyObject * obj4 = 0 ;
17241 char * kwnames[] = {
17242 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17243 };
554f62e9 17244
fc46b7f3
RD
17245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17247 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17249 }
17250 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17252 if (!SWIG_IsOK(res2)) {
17253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17254 }
17255 arg2 = reinterpret_cast< wxChar * >(argp2);
17256 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17257 if (!SWIG_IsOK(res3)) {
17258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17259 }
17260 arg3 = reinterpret_cast< wxChar * >(argp3);
17261 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17262 if (!SWIG_IsOK(ecode4)) {
17263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17264 }
17265 arg4 = static_cast< size_t >(val4);
17266 if (obj4) {
17267 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17268 if (!SWIG_IsOK(res5)) {
17269 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17270 }
17271 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17272 }
554f62e9
RD
17273 {
17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17275 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
fc46b7f3 17279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17280 return resultobj;
17281fail:
17282 return NULL;
d55e5bfc
RD
17283}
17284
17285
fc46b7f3 17286SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17287 PyObject *obj;
17288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17289 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17290 return SWIG_Py_Void();
d55e5bfc
RD
17291}
17292
fc46b7f3 17293SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17294 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17295}
17296
554f62e9
RD
17297SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17298 PyObject *resultobj = 0;
17299 wxLocale *result = 0 ;
17300
17301 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17302 {
17303 PyThreadState* __tstate = wxPyBeginAllowThreads();
17304 result = (wxLocale *)wxGetLocale();
17305 wxPyEndAllowThreads(__tstate);
17306 if (PyErr_Occurred()) SWIG_fail;
17307 }
17308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17309 return resultobj;
17310fail:
17311 return NULL;
d55e5bfc
RD
17312}
17313
17314
554f62e9
RD
17315SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17316 PyObject *resultobj = 0;
17317 wxString *arg1 = 0 ;
17318 wxString result;
17319 bool temp1 = false ;
17320
17321 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17322 {
17323 arg1 = wxString_in_helper(swig_obj[0]);
17324 if (arg1 == NULL) SWIG_fail;
17325 temp1 = true;
17326 }
17327 {
17328 PyThreadState* __tstate = wxPyBeginAllowThreads();
17329 result = wxGetTranslation((wxString const &)*arg1);
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
093d3ff1 17334#if wxUSE_UNICODE
554f62e9 17335 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17336#else
554f62e9 17337 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17338#endif
554f62e9
RD
17339 }
17340 {
17341 if (temp1)
17342 delete arg1;
17343 }
17344 return resultobj;
17345fail:
17346 {
17347 if (temp1)
17348 delete arg1;
17349 }
17350 return NULL;
d55e5bfc
RD
17351}
17352
17353
554f62e9 17354SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17355 PyObject *resultobj = 0;
17356 wxString *arg1 = 0 ;
17357 wxString *arg2 = 0 ;
17358 wxString result;
17359 bool temp1 = false ;
17360 bool temp2 = false ;
17361
17362 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17363 {
17364 arg1 = wxString_in_helper(swig_obj[0]);
17365 if (arg1 == NULL) SWIG_fail;
17366 temp1 = true;
17367 }
17368 {
17369 arg2 = wxString_in_helper(swig_obj[1]);
17370 if (arg2 == NULL) SWIG_fail;
17371 temp2 = true;
17372 }
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17376 wxPyEndAllowThreads(__tstate);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 {
17380#if wxUSE_UNICODE
17381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17382#else
17383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17384#endif
17385 }
17386 {
17387 if (temp1)
17388 delete arg1;
17389 }
17390 {
17391 if (temp2)
17392 delete arg2;
17393 }
17394 return resultobj;
17395fail:
17396 {
17397 if (temp1)
17398 delete arg1;
17399 }
17400 {
17401 if (temp2)
17402 delete arg2;
17403 }
17404 return NULL;
17405}
17406
17407
17408SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17409 PyObject *resultobj = 0;
17410 wxString *arg1 = 0 ;
17411 wxString *arg2 = 0 ;
17412 size_t arg3 ;
17413 wxString result;
17414 bool temp1 = false ;
17415 bool temp2 = false ;
17416 size_t val3 ;
17417 int ecode3 = 0 ;
17418
17419 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17420 {
17421 arg1 = wxString_in_helper(swig_obj[0]);
17422 if (arg1 == NULL) SWIG_fail;
17423 temp1 = true;
17424 }
17425 {
17426 arg2 = wxString_in_helper(swig_obj[1]);
17427 if (arg2 == NULL) SWIG_fail;
17428 temp2 = true;
17429 }
17430 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17431 if (!SWIG_IsOK(ecode3)) {
17432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17433 }
17434 arg3 = static_cast< size_t >(val3);
17435 {
17436 PyThreadState* __tstate = wxPyBeginAllowThreads();
17437 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 {
093d3ff1 17442#if wxUSE_UNICODE
554f62e9 17443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17444#else
554f62e9 17445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17446#endif
554f62e9
RD
17447 }
17448 {
17449 if (temp1)
17450 delete arg1;
17451 }
17452 {
17453 if (temp2)
17454 delete arg2;
17455 }
17456 return resultobj;
17457fail:
17458 {
17459 if (temp1)
17460 delete arg1;
17461 }
17462 {
17463 if (temp2)
17464 delete arg2;
17465 }
17466 return NULL;
d55e5bfc
RD
17467}
17468
17469
fc46b7f3
RD
17470SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17471 PyObject *resultobj = 0;
17472 wxString *arg1 = 0 ;
17473 wxString *arg2 = 0 ;
17474 size_t arg3 ;
17475 wxString *arg4 = 0 ;
17476 wxString result;
17477 bool temp1 = false ;
17478 bool temp2 = false ;
17479 size_t val3 ;
17480 int ecode3 = 0 ;
17481 bool temp4 = false ;
17482
17483 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17484 {
17485 arg1 = wxString_in_helper(swig_obj[0]);
17486 if (arg1 == NULL) SWIG_fail;
17487 temp1 = true;
17488 }
17489 {
17490 arg2 = wxString_in_helper(swig_obj[1]);
17491 if (arg2 == NULL) SWIG_fail;
17492 temp2 = true;
17493 }
17494 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17495 if (!SWIG_IsOK(ecode3)) {
17496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17497 }
17498 arg3 = static_cast< size_t >(val3);
17499 {
17500 arg4 = wxString_in_helper(swig_obj[3]);
17501 if (arg4 == NULL) SWIG_fail;
17502 temp4 = true;
17503 }
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 {
17511#if wxUSE_UNICODE
17512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17513#else
17514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17515#endif
17516 }
17517 {
17518 if (temp1)
17519 delete arg1;
17520 }
17521 {
17522 if (temp2)
17523 delete arg2;
17524 }
17525 {
17526 if (temp4)
17527 delete arg4;
17528 }
17529 return resultobj;
17530fail:
17531 {
17532 if (temp1)
17533 delete arg1;
17534 }
17535 {
17536 if (temp2)
17537 delete arg2;
17538 }
17539 {
17540 if (temp4)
17541 delete arg4;
17542 }
17543 return NULL;
17544}
17545
17546
554f62e9
RD
17547SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17548 int argc;
fc46b7f3 17549 PyObject *argv[5];
554f62e9 17550
fc46b7f3 17551 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17552 --argc;
17553 if (argc == 1) {
17554 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17555 }
fc46b7f3 17556 if (argc == 2) {
554f62e9
RD
17557 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17558 }
fc46b7f3
RD
17559 if (argc == 3) {
17560 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17561 }
17562 if (argc == 4) {
17563 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17564 }
554f62e9
RD
17565
17566fail:
17567 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17568 return NULL;
d55e5bfc
RD
17569}
17570
17571
554f62e9
RD
17572SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17573 PyObject *resultobj = 0;
17574 wxEncodingConverter *result = 0 ;
17575
17576 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 result = (wxEncodingConverter *)new wxEncodingConverter();
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17584 return resultobj;
17585fail:
17586 return NULL;
d55e5bfc
RD
17587}
17588
17589
554f62e9
RD
17590SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17591 PyObject *resultobj = 0;
17592 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17593 void *argp1 = 0 ;
17594 int res1 = 0 ;
17595 PyObject *swig_obj[1] ;
17596
17597 if (!args) SWIG_fail;
17598 swig_obj[0] = args;
17599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17600 if (!SWIG_IsOK(res1)) {
17601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17602 }
17603 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17604 {
17605 PyThreadState* __tstate = wxPyBeginAllowThreads();
17606 delete arg1;
d55e5bfc 17607
554f62e9
RD
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 resultobj = SWIG_Py_Void();
17612 return resultobj;
17613fail:
17614 return NULL;
17615}
17616
17617
17618SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj = 0;
17620 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17621 wxFontEncoding arg2 ;
17622 wxFontEncoding arg3 ;
17623 int arg4 = (int) wxCONVERT_STRICT ;
17624 bool result;
17625 void *argp1 = 0 ;
17626 int res1 = 0 ;
17627 int val2 ;
17628 int ecode2 = 0 ;
17629 int val3 ;
17630 int ecode3 = 0 ;
17631 int val4 ;
17632 int ecode4 = 0 ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 PyObject * obj3 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17645 }
17646 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17647 ecode2 = SWIG_AsVal_int(obj1, &val2);
17648 if (!SWIG_IsOK(ecode2)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17650 }
17651 arg2 = static_cast< wxFontEncoding >(val2);
17652 ecode3 = SWIG_AsVal_int(obj2, &val3);
17653 if (!SWIG_IsOK(ecode3)) {
17654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17655 }
17656 arg3 = static_cast< wxFontEncoding >(val3);
17657 if (obj3) {
17658 ecode4 = SWIG_AsVal_int(obj3, &val4);
17659 if (!SWIG_IsOK(ecode4)) {
17660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17661 }
17662 arg4 = static_cast< int >(val4);
17663 }
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 {
17671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17672 }
17673 return resultobj;
17674fail:
17675 return NULL;
17676}
17677
17678
17679SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17680 PyObject *resultobj = 0;
17681 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17682 wxString *arg2 = 0 ;
17683 wxString result;
17684 void *argp1 = 0 ;
17685 int res1 = 0 ;
17686 bool temp2 = false ;
17687 PyObject * obj0 = 0 ;
17688 PyObject * obj1 = 0 ;
17689 char * kwnames[] = {
17690 (char *) "self",(char *) "input", NULL
17691 };
17692
17693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17695 if (!SWIG_IsOK(res1)) {
17696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17697 }
17698 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17699 {
17700 arg2 = wxString_in_helper(obj1);
17701 if (arg2 == NULL) SWIG_fail;
17702 temp2 = true;
17703 }
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 result = (arg1)->Convert((wxString const &)*arg2);
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 {
d55e5bfc 17711#if wxUSE_UNICODE
554f62e9 17712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17713#else
554f62e9 17714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17715#endif
554f62e9
RD
17716 }
17717 {
17718 if (temp2)
17719 delete arg2;
17720 }
17721 return resultobj;
17722fail:
17723 {
17724 if (temp2)
17725 delete arg2;
17726 }
17727 return NULL;
17728}
17729
17730
17731SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17732 PyObject *resultobj = 0;
17733 wxFontEncoding arg1 ;
17734 int arg2 = (int) wxPLATFORM_CURRENT ;
17735 wxFontEncodingArray result;
17736 int val1 ;
17737 int ecode1 = 0 ;
17738 int val2 ;
17739 int ecode2 = 0 ;
17740 PyObject * obj0 = 0 ;
17741 PyObject * obj1 = 0 ;
17742 char * kwnames[] = {
17743 (char *) "enc",(char *) "platform", NULL
17744 };
17745
17746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17747 ecode1 = SWIG_AsVal_int(obj0, &val1);
17748 if (!SWIG_IsOK(ecode1)) {
17749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17750 }
17751 arg1 = static_cast< wxFontEncoding >(val1);
17752 if (obj1) {
17753 ecode2 = SWIG_AsVal_int(obj1, &val2);
17754 if (!SWIG_IsOK(ecode2)) {
17755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17756 }
17757 arg2 = static_cast< int >(val2);
17758 }
17759 {
17760 PyThreadState* __tstate = wxPyBeginAllowThreads();
17761 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 {
17766 resultobj = PyList_New(0);
17767 for (size_t i=0; i < (&result)->GetCount(); i++) {
17768 PyObject* number = PyInt_FromLong((&result)->Item(i));
17769 PyList_Append(resultobj, number);
17770 Py_DECREF(number);
d55e5bfc 17771 }
554f62e9
RD
17772 }
17773 return resultobj;
17774fail:
17775 return NULL;
d55e5bfc
RD
17776}
17777
17778
554f62e9
RD
17779SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17780 PyObject *resultobj = 0;
17781 wxFontEncoding arg1 ;
17782 wxFontEncodingArray result;
17783 int val1 ;
17784 int ecode1 = 0 ;
17785 PyObject * obj0 = 0 ;
17786 char * kwnames[] = {
17787 (char *) "enc", NULL
17788 };
17789
17790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17791 ecode1 = SWIG_AsVal_int(obj0, &val1);
17792 if (!SWIG_IsOK(ecode1)) {
17793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17794 }
17795 arg1 = static_cast< wxFontEncoding >(val1);
17796 {
17797 PyThreadState* __tstate = wxPyBeginAllowThreads();
17798 result = wxEncodingConverter::GetAllEquivalents(arg1);
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 {
17803 resultobj = PyList_New(0);
17804 for (size_t i=0; i < (&result)->GetCount(); i++) {
17805 PyObject* number = PyInt_FromLong((&result)->Item(i));
17806 PyList_Append(resultobj, number);
17807 Py_DECREF(number);
d55e5bfc 17808 }
554f62e9
RD
17809 }
17810 return resultobj;
17811fail:
17812 return NULL;
17813}
17814
17815
17816SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17817 PyObject *resultobj = 0;
17818 wxFontEncoding arg1 ;
17819 wxFontEncoding arg2 ;
17820 bool result;
17821 int val1 ;
17822 int ecode1 = 0 ;
17823 int val2 ;
17824 int ecode2 = 0 ;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 char * kwnames[] = {
17828 (char *) "encIn",(char *) "encOut", NULL
17829 };
17830
17831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17832 ecode1 = SWIG_AsVal_int(obj0, &val1);
17833 if (!SWIG_IsOK(ecode1)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17835 }
17836 arg1 = static_cast< wxFontEncoding >(val1);
17837 ecode2 = SWIG_AsVal_int(obj1, &val2);
17838 if (!SWIG_IsOK(ecode2)) {
17839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17840 }
17841 arg2 = static_cast< wxFontEncoding >(val2);
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 {
17849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17850 }
17851 return resultobj;
17852fail:
17853 return NULL;
d55e5bfc
RD
17854}
17855
17856
554f62e9
RD
17857SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17858 PyObject *obj;
17859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17860 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17861 return SWIG_Py_Void();
d55e5bfc
RD
17862}
17863
554f62e9
RD
17864SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17865 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
17866}
17867
554f62e9
RD
17868SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17869 PyObject *resultobj = 0;
17870 wxDC *arg1 = (wxDC *) 0 ;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 PyObject *swig_obj[1] ;
17874
17875 if (!args) SWIG_fail;
17876 swig_obj[0] = args;
17877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17878 if (!SWIG_IsOK(res1)) {
17879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17880 }
17881 arg1 = reinterpret_cast< wxDC * >(argp1);
17882 {
17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
17884 delete arg1;
d55e5bfc 17885
554f62e9
RD
17886 wxPyEndAllowThreads(__tstate);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 }
17889 resultobj = SWIG_Py_Void();
17890 return resultobj;
17891fail:
17892 return NULL;
17893}
17894
17895
17896SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17897 PyObject *resultobj = 0;
17898 wxDC *arg1 = (wxDC *) 0 ;
17899 int arg2 ;
17900 int arg3 ;
17901 wxColour *arg4 = 0 ;
17902 int arg5 = (int) wxFLOOD_SURFACE ;
17903 bool result;
17904 void *argp1 = 0 ;
17905 int res1 = 0 ;
17906 int val2 ;
17907 int ecode2 = 0 ;
17908 int val3 ;
17909 int ecode3 = 0 ;
17910 wxColour temp4 ;
17911 int val5 ;
17912 int ecode5 = 0 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 PyObject * obj2 = 0 ;
17916 PyObject * obj3 = 0 ;
17917 PyObject * obj4 = 0 ;
17918 char * kwnames[] = {
17919 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17920 };
17921
17922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17924 if (!SWIG_IsOK(res1)) {
17925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17926 }
17927 arg1 = reinterpret_cast< wxDC * >(argp1);
17928 ecode2 = SWIG_AsVal_int(obj1, &val2);
17929 if (!SWIG_IsOK(ecode2)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17931 }
17932 arg2 = static_cast< int >(val2);
17933 ecode3 = SWIG_AsVal_int(obj2, &val3);
17934 if (!SWIG_IsOK(ecode3)) {
17935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17936 }
17937 arg3 = static_cast< int >(val3);
17938 {
17939 arg4 = &temp4;
17940 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17941 }
17942 if (obj4) {
17943 ecode5 = SWIG_AsVal_int(obj4, &val5);
17944 if (!SWIG_IsOK(ecode5)) {
17945 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17946 }
17947 arg5 = static_cast< int >(val5);
17948 }
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 {
17956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17957 }
17958 return resultobj;
17959fail:
17960 return NULL;
17961}
17962
17963
17964SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj = 0;
17966 wxDC *arg1 = (wxDC *) 0 ;
17967 wxPoint *arg2 = 0 ;
17968 wxColour *arg3 = 0 ;
17969 int arg4 = (int) wxFLOOD_SURFACE ;
17970 bool result;
17971 void *argp1 = 0 ;
17972 int res1 = 0 ;
17973 wxPoint temp2 ;
17974 wxColour temp3 ;
17975 int val4 ;
17976 int ecode4 = 0 ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 PyObject * obj2 = 0 ;
17980 PyObject * obj3 = 0 ;
17981 char * kwnames[] = {
17982 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17983 };
17984
17985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17987 if (!SWIG_IsOK(res1)) {
17988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17989 }
17990 arg1 = reinterpret_cast< wxDC * >(argp1);
17991 {
17992 arg2 = &temp2;
17993 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17994 }
17995 {
17996 arg3 = &temp3;
17997 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17998 }
17999 if (obj3) {
18000 ecode4 = SWIG_AsVal_int(obj3, &val4);
18001 if (!SWIG_IsOK(ecode4)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18003 }
18004 arg4 = static_cast< int >(val4);
18005 }
18006 {
18007 PyThreadState* __tstate = wxPyBeginAllowThreads();
18008 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18009 wxPyEndAllowThreads(__tstate);
18010 if (PyErr_Occurred()) SWIG_fail;
18011 }
18012 {
18013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18014 }
18015 return resultobj;
18016fail:
18017 return NULL;
18018}
18019
18020
18021SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj = 0;
18023 wxDC *arg1 = (wxDC *) 0 ;
18024 wxRect *arg2 = 0 ;
18025 wxColour *arg3 = 0 ;
18026 wxColour *arg4 = 0 ;
18027 wxPoint *arg5 = 0 ;
18028 void *argp1 = 0 ;
18029 int res1 = 0 ;
18030 wxRect temp2 ;
18031 wxColour temp3 ;
18032 wxColour temp4 ;
18033 wxPoint temp5 ;
18034 PyObject * obj0 = 0 ;
18035 PyObject * obj1 = 0 ;
18036 PyObject * obj2 = 0 ;
18037 PyObject * obj3 = 0 ;
18038 PyObject * obj4 = 0 ;
18039 char * kwnames[] = {
18040 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18041 };
18042
18043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18045 if (!SWIG_IsOK(res1)) {
18046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18047 }
18048 arg1 = reinterpret_cast< wxDC * >(argp1);
18049 {
18050 arg2 = &temp2;
18051 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18052 }
18053 {
18054 arg3 = &temp3;
18055 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18056 }
18057 {
18058 arg4 = &temp4;
18059 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18060 }
18061 {
18062 arg5 = &temp5;
18063 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18064 }
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_Py_Void();
18072 return resultobj;
18073fail:
18074 return NULL;
18075}
18076
18077
18078SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxDC *arg1 = (wxDC *) 0 ;
18081 wxRect *arg2 = 0 ;
18082 wxColour *arg3 = 0 ;
18083 wxColour *arg4 = 0 ;
18084 wxDirection arg5 = (wxDirection) wxEAST ;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 wxRect temp2 ;
18088 wxColour temp3 ;
18089 wxColour temp4 ;
18090 int val5 ;
18091 int ecode5 = 0 ;
18092 PyObject * obj0 = 0 ;
18093 PyObject * obj1 = 0 ;
18094 PyObject * obj2 = 0 ;
18095 PyObject * obj3 = 0 ;
18096 PyObject * obj4 = 0 ;
18097 char * kwnames[] = {
18098 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18099 };
18100
18101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18103 if (!SWIG_IsOK(res1)) {
18104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18105 }
18106 arg1 = reinterpret_cast< wxDC * >(argp1);
18107 {
18108 arg2 = &temp2;
18109 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18110 }
18111 {
18112 arg3 = &temp3;
18113 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18114 }
18115 {
18116 arg4 = &temp4;
18117 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18118 }
18119 if (obj4) {
18120 ecode5 = SWIG_AsVal_int(obj4, &val5);
18121 if (!SWIG_IsOK(ecode5)) {
18122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18123 }
18124 arg5 = static_cast< wxDirection >(val5);
18125 }
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_Py_Void();
18133 return resultobj;
18134fail:
18135 return NULL;
18136}
18137
18138
18139SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxDC *arg1 = (wxDC *) 0 ;
18142 int arg2 ;
18143 int arg3 ;
18144 wxColour result;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 int val2 ;
18148 int ecode2 = 0 ;
18149 int val3 ;
18150 int ecode3 = 0 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 PyObject * obj2 = 0 ;
18154 char * kwnames[] = {
18155 (char *) "self",(char *) "x",(char *) "y", NULL
18156 };
18157
18158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18160 if (!SWIG_IsOK(res1)) {
18161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18162 }
18163 arg1 = reinterpret_cast< wxDC * >(argp1);
18164 ecode2 = SWIG_AsVal_int(obj1, &val2);
18165 if (!SWIG_IsOK(ecode2)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18167 }
18168 arg2 = static_cast< int >(val2);
18169 ecode3 = SWIG_AsVal_int(obj2, &val3);
18170 if (!SWIG_IsOK(ecode3)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18172 }
18173 arg3 = static_cast< int >(val3);
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 result = wxDC_GetPixel(arg1,arg2,arg3);
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18181 return resultobj;
18182fail:
18183 return NULL;
18184}
18185
18186
18187SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj = 0;
18189 wxDC *arg1 = (wxDC *) 0 ;
18190 wxPoint *arg2 = 0 ;
18191 wxColour result;
18192 void *argp1 = 0 ;
18193 int res1 = 0 ;
18194 wxPoint temp2 ;
18195 PyObject * obj0 = 0 ;
18196 PyObject * obj1 = 0 ;
18197 char * kwnames[] = {
18198 (char *) "self",(char *) "pt", NULL
18199 };
18200
18201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18203 if (!SWIG_IsOK(res1)) {
18204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18205 }
18206 arg1 = reinterpret_cast< wxDC * >(argp1);
18207 {
18208 arg2 = &temp2;
18209 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18210 }
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18214 wxPyEndAllowThreads(__tstate);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 }
18217 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18218 return resultobj;
18219fail:
18220 return NULL;
18221}
18222
18223
18224SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18225 PyObject *resultobj = 0;
18226 wxDC *arg1 = (wxDC *) 0 ;
18227 int arg2 ;
18228 int arg3 ;
18229 int arg4 ;
18230 int arg5 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 int val2 ;
18234 int ecode2 = 0 ;
18235 int val3 ;
18236 int ecode3 = 0 ;
18237 int val4 ;
18238 int ecode4 = 0 ;
18239 int val5 ;
18240 int ecode5 = 0 ;
18241 PyObject * obj0 = 0 ;
18242 PyObject * obj1 = 0 ;
18243 PyObject * obj2 = 0 ;
18244 PyObject * obj3 = 0 ;
18245 PyObject * obj4 = 0 ;
18246 char * kwnames[] = {
18247 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18248 };
18249
18250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18252 if (!SWIG_IsOK(res1)) {
18253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18254 }
18255 arg1 = reinterpret_cast< wxDC * >(argp1);
18256 ecode2 = SWIG_AsVal_int(obj1, &val2);
18257 if (!SWIG_IsOK(ecode2)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18259 }
18260 arg2 = static_cast< int >(val2);
18261 ecode3 = SWIG_AsVal_int(obj2, &val3);
18262 if (!SWIG_IsOK(ecode3)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18264 }
18265 arg3 = static_cast< int >(val3);
18266 ecode4 = SWIG_AsVal_int(obj3, &val4);
18267 if (!SWIG_IsOK(ecode4)) {
18268 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18269 }
18270 arg4 = static_cast< int >(val4);
18271 ecode5 = SWIG_AsVal_int(obj4, &val5);
18272 if (!SWIG_IsOK(ecode5)) {
18273 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18274 }
18275 arg5 = static_cast< int >(val5);
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_Py_Void();
18283 return resultobj;
18284fail:
18285 return NULL;
18286}
18287
18288
18289SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj = 0;
18291 wxDC *arg1 = (wxDC *) 0 ;
18292 wxPoint *arg2 = 0 ;
18293 wxPoint *arg3 = 0 ;
18294 void *argp1 = 0 ;
18295 int res1 = 0 ;
18296 wxPoint temp2 ;
18297 wxPoint temp3 ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 PyObject * obj2 = 0 ;
18301 char * kwnames[] = {
18302 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18303 };
18304
18305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18307 if (!SWIG_IsOK(res1)) {
18308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18309 }
18310 arg1 = reinterpret_cast< wxDC * >(argp1);
18311 {
18312 arg2 = &temp2;
18313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18314 }
18315 {
18316 arg3 = &temp3;
18317 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_Py_Void();
18326 return resultobj;
18327fail:
18328 return NULL;
18329}
18330
18331
18332SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj = 0;
18334 wxDC *arg1 = (wxDC *) 0 ;
18335 int arg2 ;
18336 int arg3 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 int val2 ;
18340 int ecode2 = 0 ;
18341 int val3 ;
18342 int ecode3 = 0 ;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 PyObject * obj2 = 0 ;
18346 char * kwnames[] = {
18347 (char *) "self",(char *) "x",(char *) "y", NULL
18348 };
18349
18350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18352 if (!SWIG_IsOK(res1)) {
18353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18354 }
18355 arg1 = reinterpret_cast< wxDC * >(argp1);
18356 ecode2 = SWIG_AsVal_int(obj1, &val2);
18357 if (!SWIG_IsOK(ecode2)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18359 }
18360 arg2 = static_cast< int >(val2);
18361 ecode3 = SWIG_AsVal_int(obj2, &val3);
18362 if (!SWIG_IsOK(ecode3)) {
18363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18364 }
18365 arg3 = static_cast< int >(val3);
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 (arg1)->CrossHair(arg2,arg3);
18369 wxPyEndAllowThreads(__tstate);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 resultobj = SWIG_Py_Void();
18373 return resultobj;
18374fail:
18375 return NULL;
18376}
18377
18378
18379SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj = 0;
18381 wxDC *arg1 = (wxDC *) 0 ;
18382 wxPoint *arg2 = 0 ;
18383 void *argp1 = 0 ;
18384 int res1 = 0 ;
18385 wxPoint temp2 ;
18386 PyObject * obj0 = 0 ;
18387 PyObject * obj1 = 0 ;
18388 char * kwnames[] = {
18389 (char *) "self",(char *) "pt", NULL
18390 };
18391
18392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18394 if (!SWIG_IsOK(res1)) {
18395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18396 }
18397 arg1 = reinterpret_cast< wxDC * >(argp1);
18398 {
18399 arg2 = &temp2;
18400 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18401 }
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 (arg1)->CrossHair((wxPoint const &)*arg2);
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 resultobj = SWIG_Py_Void();
18409 return resultobj;
18410fail:
18411 return NULL;
18412}
18413
18414
18415SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18416 PyObject *resultobj = 0;
18417 wxDC *arg1 = (wxDC *) 0 ;
18418 int arg2 ;
18419 int arg3 ;
18420 int arg4 ;
18421 int arg5 ;
18422 int arg6 ;
18423 int arg7 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 int val2 ;
18427 int ecode2 = 0 ;
18428 int val3 ;
18429 int ecode3 = 0 ;
18430 int val4 ;
18431 int ecode4 = 0 ;
18432 int val5 ;
18433 int ecode5 = 0 ;
18434 int val6 ;
18435 int ecode6 = 0 ;
18436 int val7 ;
18437 int ecode7 = 0 ;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 PyObject * obj2 = 0 ;
18441 PyObject * obj3 = 0 ;
18442 PyObject * obj4 = 0 ;
18443 PyObject * obj5 = 0 ;
18444 PyObject * obj6 = 0 ;
18445 char * kwnames[] = {
18446 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18447 };
18448
18449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18451 if (!SWIG_IsOK(res1)) {
18452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18453 }
18454 arg1 = reinterpret_cast< wxDC * >(argp1);
18455 ecode2 = SWIG_AsVal_int(obj1, &val2);
18456 if (!SWIG_IsOK(ecode2)) {
18457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18458 }
18459 arg2 = static_cast< int >(val2);
18460 ecode3 = SWIG_AsVal_int(obj2, &val3);
18461 if (!SWIG_IsOK(ecode3)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18463 }
18464 arg3 = static_cast< int >(val3);
18465 ecode4 = SWIG_AsVal_int(obj3, &val4);
18466 if (!SWIG_IsOK(ecode4)) {
18467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18468 }
18469 arg4 = static_cast< int >(val4);
18470 ecode5 = SWIG_AsVal_int(obj4, &val5);
18471 if (!SWIG_IsOK(ecode5)) {
18472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18473 }
18474 arg5 = static_cast< int >(val5);
18475 ecode6 = SWIG_AsVal_int(obj5, &val6);
18476 if (!SWIG_IsOK(ecode6)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18478 }
18479 arg6 = static_cast< int >(val6);
18480 ecode7 = SWIG_AsVal_int(obj6, &val7);
18481 if (!SWIG_IsOK(ecode7)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18483 }
18484 arg7 = static_cast< int >(val7);
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 resultobj = SWIG_Py_Void();
18492 return resultobj;
18493fail:
18494 return NULL;
18495}
18496
18497
18498SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18499 PyObject *resultobj = 0;
18500 wxDC *arg1 = (wxDC *) 0 ;
18501 wxPoint *arg2 = 0 ;
18502 wxPoint *arg3 = 0 ;
18503 wxPoint *arg4 = 0 ;
18504 void *argp1 = 0 ;
18505 int res1 = 0 ;
18506 wxPoint temp2 ;
18507 wxPoint temp3 ;
18508 wxPoint temp4 ;
18509 PyObject * obj0 = 0 ;
18510 PyObject * obj1 = 0 ;
18511 PyObject * obj2 = 0 ;
18512 PyObject * obj3 = 0 ;
18513 char * kwnames[] = {
18514 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18515 };
18516
18517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18519 if (!SWIG_IsOK(res1)) {
18520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18521 }
18522 arg1 = reinterpret_cast< wxDC * >(argp1);
18523 {
18524 arg2 = &temp2;
18525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18526 }
18527 {
18528 arg3 = &temp3;
18529 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18530 }
18531 {
18532 arg4 = &temp4;
18533 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18534 }
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 resultobj = SWIG_Py_Void();
18542 return resultobj;
18543fail:
18544 return NULL;
18545}
18546
18547
18548SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj = 0;
18550 wxDC *arg1 = (wxDC *) 0 ;
18551 int arg2 ;
18552 int arg3 ;
18553 int arg4 ;
18554 int arg5 ;
18555 void *argp1 = 0 ;
18556 int res1 = 0 ;
18557 int val2 ;
18558 int ecode2 = 0 ;
18559 int val3 ;
18560 int ecode3 = 0 ;
18561 int val4 ;
18562 int ecode4 = 0 ;
18563 int val5 ;
18564 int ecode5 = 0 ;
18565 PyObject * obj0 = 0 ;
18566 PyObject * obj1 = 0 ;
18567 PyObject * obj2 = 0 ;
18568 PyObject * obj3 = 0 ;
18569 PyObject * obj4 = 0 ;
18570 char * kwnames[] = {
18571 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18572 };
18573
18574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18576 if (!SWIG_IsOK(res1)) {
18577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18578 }
18579 arg1 = reinterpret_cast< wxDC * >(argp1);
18580 ecode2 = SWIG_AsVal_int(obj1, &val2);
18581 if (!SWIG_IsOK(ecode2)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18583 }
18584 arg2 = static_cast< int >(val2);
18585 ecode3 = SWIG_AsVal_int(obj2, &val3);
18586 if (!SWIG_IsOK(ecode3)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18588 }
18589 arg3 = static_cast< int >(val3);
18590 ecode4 = SWIG_AsVal_int(obj3, &val4);
18591 if (!SWIG_IsOK(ecode4)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18593 }
18594 arg4 = static_cast< int >(val4);
18595 ecode5 = SWIG_AsVal_int(obj4, &val5);
18596 if (!SWIG_IsOK(ecode5)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18598 }
18599 arg5 = static_cast< int >(val5);
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18603 wxPyEndAllowThreads(__tstate);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 resultobj = SWIG_Py_Void();
18607 return resultobj;
18608fail:
18609 return NULL;
18610}
18611
18612
18613SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj = 0;
18615 wxDC *arg1 = (wxDC *) 0 ;
18616 wxRect *arg2 = 0 ;
18617 void *argp1 = 0 ;
18618 int res1 = 0 ;
18619 wxRect temp2 ;
18620 PyObject * obj0 = 0 ;
18621 PyObject * obj1 = 0 ;
18622 char * kwnames[] = {
18623 (char *) "self",(char *) "rect", NULL
18624 };
18625
18626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18628 if (!SWIG_IsOK(res1)) {
18629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18630 }
18631 arg1 = reinterpret_cast< wxDC * >(argp1);
18632 {
18633 arg2 = &temp2;
18634 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18635 }
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_Py_Void();
18643 return resultobj;
18644fail:
18645 return NULL;
18646}
18647
18648
18649SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj = 0;
18651 wxDC *arg1 = (wxDC *) 0 ;
18652 int arg2 ;
18653 int arg3 ;
18654 int arg4 ;
18655 int arg5 ;
18656 double arg6 ;
18657 double arg7 ;
18658 void *argp1 = 0 ;
18659 int res1 = 0 ;
18660 int val2 ;
18661 int ecode2 = 0 ;
18662 int val3 ;
18663 int ecode3 = 0 ;
18664 int val4 ;
18665 int ecode4 = 0 ;
18666 int val5 ;
18667 int ecode5 = 0 ;
18668 double val6 ;
18669 int ecode6 = 0 ;
18670 double val7 ;
18671 int ecode7 = 0 ;
18672 PyObject * obj0 = 0 ;
18673 PyObject * obj1 = 0 ;
18674 PyObject * obj2 = 0 ;
18675 PyObject * obj3 = 0 ;
18676 PyObject * obj4 = 0 ;
18677 PyObject * obj5 = 0 ;
18678 PyObject * obj6 = 0 ;
18679 char * kwnames[] = {
18680 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18681 };
18682
18683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18685 if (!SWIG_IsOK(res1)) {
18686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18687 }
18688 arg1 = reinterpret_cast< wxDC * >(argp1);
18689 ecode2 = SWIG_AsVal_int(obj1, &val2);
18690 if (!SWIG_IsOK(ecode2)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18692 }
18693 arg2 = static_cast< int >(val2);
18694 ecode3 = SWIG_AsVal_int(obj2, &val3);
18695 if (!SWIG_IsOK(ecode3)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18697 }
18698 arg3 = static_cast< int >(val3);
18699 ecode4 = SWIG_AsVal_int(obj3, &val4);
18700 if (!SWIG_IsOK(ecode4)) {
18701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18702 }
18703 arg4 = static_cast< int >(val4);
18704 ecode5 = SWIG_AsVal_int(obj4, &val5);
18705 if (!SWIG_IsOK(ecode5)) {
18706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18707 }
18708 arg5 = static_cast< int >(val5);
18709 ecode6 = SWIG_AsVal_double(obj5, &val6);
18710 if (!SWIG_IsOK(ecode6)) {
18711 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18712 }
18713 arg6 = static_cast< double >(val6);
18714 ecode7 = SWIG_AsVal_double(obj6, &val7);
18715 if (!SWIG_IsOK(ecode7)) {
18716 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18717 }
18718 arg7 = static_cast< double >(val7);
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_Py_Void();
18726 return resultobj;
18727fail:
18728 return NULL;
18729}
18730
18731
18732SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj = 0;
18734 wxDC *arg1 = (wxDC *) 0 ;
18735 wxPoint *arg2 = 0 ;
18736 wxSize *arg3 = 0 ;
18737 double arg4 ;
18738 double arg5 ;
18739 void *argp1 = 0 ;
18740 int res1 = 0 ;
18741 wxPoint temp2 ;
18742 wxSize temp3 ;
18743 double val4 ;
18744 int ecode4 = 0 ;
18745 double val5 ;
18746 int ecode5 = 0 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 PyObject * obj3 = 0 ;
18751 PyObject * obj4 = 0 ;
18752 char * kwnames[] = {
18753 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18754 };
18755
18756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18758 if (!SWIG_IsOK(res1)) {
18759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18760 }
18761 arg1 = reinterpret_cast< wxDC * >(argp1);
18762 {
18763 arg2 = &temp2;
18764 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18765 }
18766 {
18767 arg3 = &temp3;
18768 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18769 }
18770 ecode4 = SWIG_AsVal_double(obj3, &val4);
18771 if (!SWIG_IsOK(ecode4)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18773 }
18774 arg4 = static_cast< double >(val4);
18775 ecode5 = SWIG_AsVal_double(obj4, &val5);
18776 if (!SWIG_IsOK(ecode5)) {
18777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18778 }
18779 arg5 = static_cast< double >(val5);
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = SWIG_Py_Void();
18787 return resultobj;
18788fail:
18789 return NULL;
18790}
18791
18792
18793SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18794 PyObject *resultobj = 0;
18795 wxDC *arg1 = (wxDC *) 0 ;
18796 int arg2 ;
18797 int arg3 ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 int val2 ;
18801 int ecode2 = 0 ;
18802 int val3 ;
18803 int ecode3 = 0 ;
18804 PyObject * obj0 = 0 ;
18805 PyObject * obj1 = 0 ;
18806 PyObject * obj2 = 0 ;
18807 char * kwnames[] = {
18808 (char *) "self",(char *) "x",(char *) "y", NULL
18809 };
18810
18811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18813 if (!SWIG_IsOK(res1)) {
18814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18815 }
18816 arg1 = reinterpret_cast< wxDC * >(argp1);
18817 ecode2 = SWIG_AsVal_int(obj1, &val2);
18818 if (!SWIG_IsOK(ecode2)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18820 }
18821 arg2 = static_cast< int >(val2);
18822 ecode3 = SWIG_AsVal_int(obj2, &val3);
18823 if (!SWIG_IsOK(ecode3)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18825 }
18826 arg3 = static_cast< int >(val3);
18827 {
18828 PyThreadState* __tstate = wxPyBeginAllowThreads();
18829 (arg1)->DrawPoint(arg2,arg3);
18830 wxPyEndAllowThreads(__tstate);
18831 if (PyErr_Occurred()) SWIG_fail;
18832 }
18833 resultobj = SWIG_Py_Void();
18834 return resultobj;
18835fail:
18836 return NULL;
18837}
18838
18839
18840SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18841 PyObject *resultobj = 0;
18842 wxDC *arg1 = (wxDC *) 0 ;
18843 wxPoint *arg2 = 0 ;
18844 void *argp1 = 0 ;
18845 int res1 = 0 ;
18846 wxPoint temp2 ;
18847 PyObject * obj0 = 0 ;
18848 PyObject * obj1 = 0 ;
18849 char * kwnames[] = {
18850 (char *) "self",(char *) "pt", NULL
18851 };
18852
18853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18855 if (!SWIG_IsOK(res1)) {
18856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18857 }
18858 arg1 = reinterpret_cast< wxDC * >(argp1);
18859 {
18860 arg2 = &temp2;
18861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18862 }
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 (arg1)->DrawPoint((wxPoint const &)*arg2);
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 resultobj = SWIG_Py_Void();
18870 return resultobj;
18871fail:
18872 return NULL;
18873}
18874
18875
18876SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18877 PyObject *resultobj = 0;
18878 wxDC *arg1 = (wxDC *) 0 ;
18879 int arg2 ;
18880 int arg3 ;
18881 int arg4 ;
18882 int arg5 ;
18883 void *argp1 = 0 ;
18884 int res1 = 0 ;
18885 int val2 ;
18886 int ecode2 = 0 ;
18887 int val3 ;
18888 int ecode3 = 0 ;
18889 int val4 ;
18890 int ecode4 = 0 ;
18891 int val5 ;
18892 int ecode5 = 0 ;
18893 PyObject * obj0 = 0 ;
18894 PyObject * obj1 = 0 ;
18895 PyObject * obj2 = 0 ;
18896 PyObject * obj3 = 0 ;
18897 PyObject * obj4 = 0 ;
18898 char * kwnames[] = {
18899 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18900 };
18901
18902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18904 if (!SWIG_IsOK(res1)) {
18905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18906 }
18907 arg1 = reinterpret_cast< wxDC * >(argp1);
18908 ecode2 = SWIG_AsVal_int(obj1, &val2);
18909 if (!SWIG_IsOK(ecode2)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18911 }
18912 arg2 = static_cast< int >(val2);
18913 ecode3 = SWIG_AsVal_int(obj2, &val3);
18914 if (!SWIG_IsOK(ecode3)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18916 }
18917 arg3 = static_cast< int >(val3);
18918 ecode4 = SWIG_AsVal_int(obj3, &val4);
18919 if (!SWIG_IsOK(ecode4)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18921 }
18922 arg4 = static_cast< int >(val4);
18923 ecode5 = SWIG_AsVal_int(obj4, &val5);
18924 if (!SWIG_IsOK(ecode5)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18926 }
18927 arg5 = static_cast< int >(val5);
18928 {
18929 PyThreadState* __tstate = wxPyBeginAllowThreads();
18930 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18931 wxPyEndAllowThreads(__tstate);
18932 if (PyErr_Occurred()) SWIG_fail;
18933 }
18934 resultobj = SWIG_Py_Void();
18935 return resultobj;
18936fail:
18937 return NULL;
18938}
18939
18940
18941SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18942 PyObject *resultobj = 0;
18943 wxDC *arg1 = (wxDC *) 0 ;
18944 wxRect *arg2 = 0 ;
18945 void *argp1 = 0 ;
18946 int res1 = 0 ;
18947 wxRect temp2 ;
18948 PyObject * obj0 = 0 ;
18949 PyObject * obj1 = 0 ;
18950 char * kwnames[] = {
18951 (char *) "self",(char *) "rect", NULL
18952 };
18953
18954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) 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_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18958 }
18959 arg1 = reinterpret_cast< wxDC * >(argp1);
18960 {
18961 arg2 = &temp2;
18962 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18963 }
18964 {
18965 PyThreadState* __tstate = wxPyBeginAllowThreads();
18966 (arg1)->DrawRectangle((wxRect const &)*arg2);
18967 wxPyEndAllowThreads(__tstate);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 resultobj = SWIG_Py_Void();
18971 return resultobj;
18972fail:
18973 return NULL;
18974}
18975
18976
18977SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18978 PyObject *resultobj = 0;
18979 wxDC *arg1 = (wxDC *) 0 ;
18980 wxPoint *arg2 = 0 ;
18981 wxSize *arg3 = 0 ;
18982 void *argp1 = 0 ;
18983 int res1 = 0 ;
18984 wxPoint temp2 ;
18985 wxSize temp3 ;
18986 PyObject * obj0 = 0 ;
18987 PyObject * obj1 = 0 ;
18988 PyObject * obj2 = 0 ;
18989 char * kwnames[] = {
18990 (char *) "self",(char *) "pt",(char *) "sz", NULL
18991 };
18992
18993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18995 if (!SWIG_IsOK(res1)) {
18996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18997 }
18998 arg1 = reinterpret_cast< wxDC * >(argp1);
18999 {
19000 arg2 = &temp2;
19001 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19002 }
19003 {
19004 arg3 = &temp3;
19005 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19006 }
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 resultobj = SWIG_Py_Void();
19014 return resultobj;
19015fail:
19016 return NULL;
19017}
19018
19019
19020SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19021 PyObject *resultobj = 0;
19022 wxDC *arg1 = (wxDC *) 0 ;
19023 int arg2 ;
19024 int arg3 ;
19025 int arg4 ;
19026 int arg5 ;
19027 double arg6 ;
19028 void *argp1 = 0 ;
19029 int res1 = 0 ;
19030 int val2 ;
19031 int ecode2 = 0 ;
19032 int val3 ;
19033 int ecode3 = 0 ;
19034 int val4 ;
19035 int ecode4 = 0 ;
19036 int val5 ;
19037 int ecode5 = 0 ;
19038 double val6 ;
19039 int ecode6 = 0 ;
19040 PyObject * obj0 = 0 ;
19041 PyObject * obj1 = 0 ;
19042 PyObject * obj2 = 0 ;
19043 PyObject * obj3 = 0 ;
19044 PyObject * obj4 = 0 ;
19045 PyObject * obj5 = 0 ;
19046 char * kwnames[] = {
19047 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19048 };
19049
19050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19052 if (!SWIG_IsOK(res1)) {
19053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19054 }
19055 arg1 = reinterpret_cast< wxDC * >(argp1);
19056 ecode2 = SWIG_AsVal_int(obj1, &val2);
19057 if (!SWIG_IsOK(ecode2)) {
19058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19059 }
19060 arg2 = static_cast< int >(val2);
19061 ecode3 = SWIG_AsVal_int(obj2, &val3);
19062 if (!SWIG_IsOK(ecode3)) {
19063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19064 }
19065 arg3 = static_cast< int >(val3);
19066 ecode4 = SWIG_AsVal_int(obj3, &val4);
19067 if (!SWIG_IsOK(ecode4)) {
19068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19069 }
19070 arg4 = static_cast< int >(val4);
19071 ecode5 = SWIG_AsVal_int(obj4, &val5);
19072 if (!SWIG_IsOK(ecode5)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19074 }
19075 arg5 = static_cast< int >(val5);
19076 ecode6 = SWIG_AsVal_double(obj5, &val6);
19077 if (!SWIG_IsOK(ecode6)) {
19078 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19079 }
19080 arg6 = static_cast< double >(val6);
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
19083 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 resultobj = SWIG_Py_Void();
19088 return resultobj;
19089fail:
19090 return NULL;
19091}
19092
19093
19094SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19095 PyObject *resultobj = 0;
19096 wxDC *arg1 = (wxDC *) 0 ;
19097 wxRect *arg2 = 0 ;
19098 double arg3 ;
19099 void *argp1 = 0 ;
19100 int res1 = 0 ;
19101 wxRect temp2 ;
19102 double val3 ;
19103 int ecode3 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 PyObject * obj2 = 0 ;
19107 char * kwnames[] = {
19108 (char *) "self",(char *) "r",(char *) "radius", NULL
19109 };
19110
19111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19113 if (!SWIG_IsOK(res1)) {
19114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19115 }
19116 arg1 = reinterpret_cast< wxDC * >(argp1);
19117 {
19118 arg2 = &temp2;
19119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19120 }
19121 ecode3 = SWIG_AsVal_double(obj2, &val3);
19122 if (!SWIG_IsOK(ecode3)) {
19123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19124 }
19125 arg3 = static_cast< double >(val3);
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19129 wxPyEndAllowThreads(__tstate);
19130 if (PyErr_Occurred()) SWIG_fail;
19131 }
19132 resultobj = SWIG_Py_Void();
19133 return resultobj;
19134fail:
19135 return NULL;
19136}
19137
19138
19139SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj = 0;
19141 wxDC *arg1 = (wxDC *) 0 ;
19142 wxPoint *arg2 = 0 ;
19143 wxSize *arg3 = 0 ;
19144 double arg4 ;
19145 void *argp1 = 0 ;
19146 int res1 = 0 ;
19147 wxPoint temp2 ;
19148 wxSize temp3 ;
19149 double val4 ;
19150 int ecode4 = 0 ;
19151 PyObject * obj0 = 0 ;
19152 PyObject * obj1 = 0 ;
19153 PyObject * obj2 = 0 ;
19154 PyObject * obj3 = 0 ;
19155 char * kwnames[] = {
19156 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19157 };
19158
19159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19161 if (!SWIG_IsOK(res1)) {
19162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19163 }
19164 arg1 = reinterpret_cast< wxDC * >(argp1);
19165 {
19166 arg2 = &temp2;
19167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19168 }
19169 {
19170 arg3 = &temp3;
19171 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19172 }
19173 ecode4 = SWIG_AsVal_double(obj3, &val4);
19174 if (!SWIG_IsOK(ecode4)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19176 }
19177 arg4 = static_cast< double >(val4);
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19181 wxPyEndAllowThreads(__tstate);
19182 if (PyErr_Occurred()) SWIG_fail;
19183 }
19184 resultobj = SWIG_Py_Void();
19185 return resultobj;
19186fail:
19187 return NULL;
19188}
19189
19190
19191SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj = 0;
19193 wxDC *arg1 = (wxDC *) 0 ;
19194 int arg2 ;
19195 int arg3 ;
19196 int arg4 ;
19197 void *argp1 = 0 ;
19198 int res1 = 0 ;
19199 int val2 ;
19200 int ecode2 = 0 ;
19201 int val3 ;
19202 int ecode3 = 0 ;
19203 int val4 ;
19204 int ecode4 = 0 ;
19205 PyObject * obj0 = 0 ;
19206 PyObject * obj1 = 0 ;
19207 PyObject * obj2 = 0 ;
19208 PyObject * obj3 = 0 ;
19209 char * kwnames[] = {
19210 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19211 };
19212
19213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19215 if (!SWIG_IsOK(res1)) {
19216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19217 }
19218 arg1 = reinterpret_cast< wxDC * >(argp1);
19219 ecode2 = SWIG_AsVal_int(obj1, &val2);
19220 if (!SWIG_IsOK(ecode2)) {
19221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19222 }
19223 arg2 = static_cast< int >(val2);
19224 ecode3 = SWIG_AsVal_int(obj2, &val3);
19225 if (!SWIG_IsOK(ecode3)) {
19226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19227 }
19228 arg3 = static_cast< int >(val3);
19229 ecode4 = SWIG_AsVal_int(obj3, &val4);
19230 if (!SWIG_IsOK(ecode4)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19232 }
19233 arg4 = static_cast< int >(val4);
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 (arg1)->DrawCircle(arg2,arg3,arg4);
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
19240 resultobj = SWIG_Py_Void();
19241 return resultobj;
19242fail:
19243 return NULL;
19244}
19245
19246
19247SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxDC *arg1 = (wxDC *) 0 ;
19250 wxPoint *arg2 = 0 ;
19251 int arg3 ;
19252 void *argp1 = 0 ;
19253 int res1 = 0 ;
19254 wxPoint temp2 ;
19255 int val3 ;
19256 int ecode3 = 0 ;
19257 PyObject * obj0 = 0 ;
19258 PyObject * obj1 = 0 ;
19259 PyObject * obj2 = 0 ;
19260 char * kwnames[] = {
19261 (char *) "self",(char *) "pt",(char *) "radius", NULL
19262 };
19263
19264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19266 if (!SWIG_IsOK(res1)) {
19267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19268 }
19269 arg1 = reinterpret_cast< wxDC * >(argp1);
19270 {
19271 arg2 = &temp2;
19272 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19273 }
19274 ecode3 = SWIG_AsVal_int(obj2, &val3);
19275 if (!SWIG_IsOK(ecode3)) {
19276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19277 }
19278 arg3 = static_cast< int >(val3);
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 resultobj = SWIG_Py_Void();
19286 return resultobj;
19287fail:
19288 return NULL;
19289}
19290
19291
19292SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19293 PyObject *resultobj = 0;
19294 wxDC *arg1 = (wxDC *) 0 ;
19295 int arg2 ;
19296 int arg3 ;
19297 int arg4 ;
19298 int arg5 ;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 int val2 ;
19302 int ecode2 = 0 ;
19303 int val3 ;
19304 int ecode3 = 0 ;
19305 int val4 ;
19306 int ecode4 = 0 ;
19307 int val5 ;
19308 int ecode5 = 0 ;
19309 PyObject * obj0 = 0 ;
19310 PyObject * obj1 = 0 ;
19311 PyObject * obj2 = 0 ;
19312 PyObject * obj3 = 0 ;
19313 PyObject * obj4 = 0 ;
19314 char * kwnames[] = {
19315 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19316 };
19317
19318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19320 if (!SWIG_IsOK(res1)) {
19321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19322 }
19323 arg1 = reinterpret_cast< wxDC * >(argp1);
19324 ecode2 = SWIG_AsVal_int(obj1, &val2);
19325 if (!SWIG_IsOK(ecode2)) {
19326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19327 }
19328 arg2 = static_cast< int >(val2);
19329 ecode3 = SWIG_AsVal_int(obj2, &val3);
19330 if (!SWIG_IsOK(ecode3)) {
19331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19332 }
19333 arg3 = static_cast< int >(val3);
19334 ecode4 = SWIG_AsVal_int(obj3, &val4);
19335 if (!SWIG_IsOK(ecode4)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19337 }
19338 arg4 = static_cast< int >(val4);
19339 ecode5 = SWIG_AsVal_int(obj4, &val5);
19340 if (!SWIG_IsOK(ecode5)) {
19341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19342 }
19343 arg5 = static_cast< int >(val5);
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 resultobj = SWIG_Py_Void();
19351 return resultobj;
19352fail:
19353 return NULL;
19354}
19355
19356
19357SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19358 PyObject *resultobj = 0;
19359 wxDC *arg1 = (wxDC *) 0 ;
19360 wxRect *arg2 = 0 ;
19361 void *argp1 = 0 ;
19362 int res1 = 0 ;
19363 wxRect temp2 ;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 char * kwnames[] = {
19367 (char *) "self",(char *) "rect", NULL
19368 };
19369
19370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19372 if (!SWIG_IsOK(res1)) {
19373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19374 }
19375 arg1 = reinterpret_cast< wxDC * >(argp1);
19376 {
19377 arg2 = &temp2;
19378 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19379 }
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 (arg1)->DrawEllipse((wxRect const &)*arg2);
19383 wxPyEndAllowThreads(__tstate);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 resultobj = SWIG_Py_Void();
19387 return resultobj;
19388fail:
19389 return NULL;
19390}
19391
19392
19393SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19394 PyObject *resultobj = 0;
19395 wxDC *arg1 = (wxDC *) 0 ;
19396 wxPoint *arg2 = 0 ;
19397 wxSize *arg3 = 0 ;
19398 void *argp1 = 0 ;
19399 int res1 = 0 ;
19400 wxPoint temp2 ;
19401 wxSize temp3 ;
19402 PyObject * obj0 = 0 ;
19403 PyObject * obj1 = 0 ;
19404 PyObject * obj2 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "self",(char *) "pt",(char *) "sz", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19411 if (!SWIG_IsOK(res1)) {
19412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19413 }
19414 arg1 = reinterpret_cast< wxDC * >(argp1);
19415 {
19416 arg2 = &temp2;
19417 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19418 }
19419 {
19420 arg3 = &temp3;
19421 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 return resultobj;
19431fail:
19432 return NULL;
19433}
19434
19435
19436SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19437 PyObject *resultobj = 0;
19438 wxDC *arg1 = (wxDC *) 0 ;
19439 wxIcon *arg2 = 0 ;
19440 int arg3 ;
19441 int arg4 ;
19442 void *argp1 = 0 ;
19443 int res1 = 0 ;
19444 void *argp2 = 0 ;
19445 int res2 = 0 ;
19446 int val3 ;
19447 int ecode3 = 0 ;
19448 int val4 ;
19449 int ecode4 = 0 ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 PyObject * obj2 = 0 ;
19453 PyObject * obj3 = 0 ;
19454 char * kwnames[] = {
19455 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19456 };
19457
19458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19460 if (!SWIG_IsOK(res1)) {
19461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19462 }
19463 arg1 = reinterpret_cast< wxDC * >(argp1);
19464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19465 if (!SWIG_IsOK(res2)) {
19466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19467 }
19468 if (!argp2) {
19469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19470 }
19471 arg2 = reinterpret_cast< wxIcon * >(argp2);
19472 ecode3 = SWIG_AsVal_int(obj2, &val3);
19473 if (!SWIG_IsOK(ecode3)) {
19474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19475 }
19476 arg3 = static_cast< int >(val3);
19477 ecode4 = SWIG_AsVal_int(obj3, &val4);
19478 if (!SWIG_IsOK(ecode4)) {
19479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19480 }
19481 arg4 = static_cast< int >(val4);
19482 {
19483 PyThreadState* __tstate = wxPyBeginAllowThreads();
19484 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 resultobj = SWIG_Py_Void();
19489 return resultobj;
19490fail:
19491 return NULL;
19492}
19493
19494
19495SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj = 0;
19497 wxDC *arg1 = (wxDC *) 0 ;
19498 wxIcon *arg2 = 0 ;
19499 wxPoint *arg3 = 0 ;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 void *argp2 = 0 ;
19503 int res2 = 0 ;
19504 wxPoint temp3 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 PyObject * obj2 = 0 ;
19508 char * kwnames[] = {
19509 (char *) "self",(char *) "icon",(char *) "pt", NULL
19510 };
19511
19512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19514 if (!SWIG_IsOK(res1)) {
19515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19516 }
19517 arg1 = reinterpret_cast< wxDC * >(argp1);
19518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19519 if (!SWIG_IsOK(res2)) {
19520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19521 }
19522 if (!argp2) {
19523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19524 }
19525 arg2 = reinterpret_cast< wxIcon * >(argp2);
19526 {
19527 arg3 = &temp3;
19528 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19529 }
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19533 wxPyEndAllowThreads(__tstate);
19534 if (PyErr_Occurred()) SWIG_fail;
19535 }
19536 resultobj = SWIG_Py_Void();
19537 return resultobj;
19538fail:
19539 return NULL;
19540}
19541
19542
19543SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19544 PyObject *resultobj = 0;
19545 wxDC *arg1 = (wxDC *) 0 ;
19546 wxBitmap *arg2 = 0 ;
19547 int arg3 ;
19548 int arg4 ;
19549 bool arg5 = (bool) false ;
19550 void *argp1 = 0 ;
19551 int res1 = 0 ;
19552 void *argp2 = 0 ;
19553 int res2 = 0 ;
19554 int val3 ;
19555 int ecode3 = 0 ;
19556 int val4 ;
19557 int ecode4 = 0 ;
19558 bool val5 ;
19559 int ecode5 = 0 ;
19560 PyObject * obj0 = 0 ;
19561 PyObject * obj1 = 0 ;
19562 PyObject * obj2 = 0 ;
19563 PyObject * obj3 = 0 ;
19564 PyObject * obj4 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19573 }
19574 arg1 = reinterpret_cast< wxDC * >(argp1);
19575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19576 if (!SWIG_IsOK(res2)) {
19577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19578 }
19579 if (!argp2) {
19580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19581 }
19582 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19583 ecode3 = SWIG_AsVal_int(obj2, &val3);
19584 if (!SWIG_IsOK(ecode3)) {
19585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19586 }
19587 arg3 = static_cast< int >(val3);
19588 ecode4 = SWIG_AsVal_int(obj3, &val4);
19589 if (!SWIG_IsOK(ecode4)) {
19590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19591 }
19592 arg4 = static_cast< int >(val4);
19593 if (obj4) {
19594 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19595 if (!SWIG_IsOK(ecode5)) {
19596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19597 }
19598 arg5 = static_cast< bool >(val5);
19599 }
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19603 wxPyEndAllowThreads(__tstate);
19604 if (PyErr_Occurred()) SWIG_fail;
19605 }
19606 resultobj = SWIG_Py_Void();
19607 return resultobj;
19608fail:
19609 return NULL;
19610}
19611
19612
19613SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19614 PyObject *resultobj = 0;
19615 wxDC *arg1 = (wxDC *) 0 ;
19616 wxBitmap *arg2 = 0 ;
19617 wxPoint *arg3 = 0 ;
19618 bool arg4 = (bool) false ;
19619 void *argp1 = 0 ;
19620 int res1 = 0 ;
19621 void *argp2 = 0 ;
19622 int res2 = 0 ;
19623 wxPoint temp3 ;
19624 bool val4 ;
19625 int ecode4 = 0 ;
19626 PyObject * obj0 = 0 ;
19627 PyObject * obj1 = 0 ;
19628 PyObject * obj2 = 0 ;
19629 PyObject * obj3 = 0 ;
19630 char * kwnames[] = {
19631 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19632 };
19633
19634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19638 }
19639 arg1 = reinterpret_cast< wxDC * >(argp1);
19640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19641 if (!SWIG_IsOK(res2)) {
19642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19643 }
19644 if (!argp2) {
19645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19646 }
19647 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19648 {
19649 arg3 = &temp3;
19650 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19651 }
19652 if (obj3) {
19653 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19654 if (!SWIG_IsOK(ecode4)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19656 }
19657 arg4 = static_cast< bool >(val4);
19658 }
19659 {
19660 PyThreadState* __tstate = wxPyBeginAllowThreads();
19661 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19662 wxPyEndAllowThreads(__tstate);
19663 if (PyErr_Occurred()) SWIG_fail;
19664 }
19665 resultobj = SWIG_Py_Void();
19666 return resultobj;
19667fail:
19668 return NULL;
19669}
19670
19671
19672SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19673 PyObject *resultobj = 0;
19674 wxDC *arg1 = (wxDC *) 0 ;
19675 wxString *arg2 = 0 ;
19676 int arg3 ;
19677 int arg4 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 bool temp2 = false ;
19681 int val3 ;
19682 int ecode3 = 0 ;
19683 int val4 ;
19684 int ecode4 = 0 ;
19685 PyObject * obj0 = 0 ;
19686 PyObject * obj1 = 0 ;
19687 PyObject * obj2 = 0 ;
19688 PyObject * obj3 = 0 ;
19689 char * kwnames[] = {
19690 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19691 };
19692
19693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19695 if (!SWIG_IsOK(res1)) {
19696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19697 }
19698 arg1 = reinterpret_cast< wxDC * >(argp1);
19699 {
19700 arg2 = wxString_in_helper(obj1);
19701 if (arg2 == NULL) SWIG_fail;
19702 temp2 = true;
19703 }
19704 ecode3 = SWIG_AsVal_int(obj2, &val3);
19705 if (!SWIG_IsOK(ecode3)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19707 }
19708 arg3 = static_cast< int >(val3);
19709 ecode4 = SWIG_AsVal_int(obj3, &val4);
19710 if (!SWIG_IsOK(ecode4)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19712 }
19713 arg4 = static_cast< int >(val4);
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 resultobj = SWIG_Py_Void();
19721 {
19722 if (temp2)
19723 delete arg2;
19724 }
19725 return resultobj;
19726fail:
19727 {
19728 if (temp2)
19729 delete arg2;
19730 }
19731 return NULL;
19732}
19733
19734
19735SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj = 0;
19737 wxDC *arg1 = (wxDC *) 0 ;
19738 wxString *arg2 = 0 ;
19739 wxPoint *arg3 = 0 ;
19740 void *argp1 = 0 ;
19741 int res1 = 0 ;
19742 bool temp2 = false ;
19743 wxPoint temp3 ;
19744 PyObject * obj0 = 0 ;
19745 PyObject * obj1 = 0 ;
19746 PyObject * obj2 = 0 ;
19747 char * kwnames[] = {
19748 (char *) "self",(char *) "text",(char *) "pt", NULL
19749 };
19750
19751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19753 if (!SWIG_IsOK(res1)) {
19754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19755 }
19756 arg1 = reinterpret_cast< wxDC * >(argp1);
19757 {
19758 arg2 = wxString_in_helper(obj1);
19759 if (arg2 == NULL) SWIG_fail;
19760 temp2 = true;
19761 }
19762 {
19763 arg3 = &temp3;
19764 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19765 }
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19769 wxPyEndAllowThreads(__tstate);
19770 if (PyErr_Occurred()) SWIG_fail;
19771 }
19772 resultobj = SWIG_Py_Void();
19773 {
19774 if (temp2)
19775 delete arg2;
19776 }
19777 return resultobj;
19778fail:
19779 {
19780 if (temp2)
19781 delete arg2;
19782 }
19783 return NULL;
19784}
19785
19786
19787SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = 0;
19789 wxDC *arg1 = (wxDC *) 0 ;
19790 wxString *arg2 = 0 ;
19791 int arg3 ;
19792 int arg4 ;
19793 double arg5 ;
19794 void *argp1 = 0 ;
19795 int res1 = 0 ;
19796 bool temp2 = false ;
19797 int val3 ;
19798 int ecode3 = 0 ;
19799 int val4 ;
19800 int ecode4 = 0 ;
19801 double val5 ;
19802 int ecode5 = 0 ;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 PyObject * obj2 = 0 ;
19806 PyObject * obj3 = 0 ;
19807 PyObject * obj4 = 0 ;
19808 char * kwnames[] = {
19809 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19810 };
19811
19812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19814 if (!SWIG_IsOK(res1)) {
19815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19816 }
19817 arg1 = reinterpret_cast< wxDC * >(argp1);
19818 {
19819 arg2 = wxString_in_helper(obj1);
19820 if (arg2 == NULL) SWIG_fail;
19821 temp2 = true;
19822 }
19823 ecode3 = SWIG_AsVal_int(obj2, &val3);
19824 if (!SWIG_IsOK(ecode3)) {
19825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19826 }
19827 arg3 = static_cast< int >(val3);
19828 ecode4 = SWIG_AsVal_int(obj3, &val4);
19829 if (!SWIG_IsOK(ecode4)) {
19830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19831 }
19832 arg4 = static_cast< int >(val4);
19833 ecode5 = SWIG_AsVal_double(obj4, &val5);
19834 if (!SWIG_IsOK(ecode5)) {
19835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19836 }
19837 arg5 = static_cast< double >(val5);
19838 {
19839 PyThreadState* __tstate = wxPyBeginAllowThreads();
19840 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 resultobj = SWIG_Py_Void();
19845 {
19846 if (temp2)
19847 delete arg2;
19848 }
19849 return resultobj;
19850fail:
19851 {
19852 if (temp2)
19853 delete arg2;
19854 }
19855 return NULL;
19856}
19857
19858
19859SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 wxString *arg2 = 0 ;
19863 wxPoint *arg3 = 0 ;
19864 double arg4 ;
19865 void *argp1 = 0 ;
19866 int res1 = 0 ;
19867 bool temp2 = false ;
19868 wxPoint temp3 ;
19869 double val4 ;
19870 int ecode4 = 0 ;
19871 PyObject * obj0 = 0 ;
19872 PyObject * obj1 = 0 ;
19873 PyObject * obj2 = 0 ;
19874 PyObject * obj3 = 0 ;
19875 char * kwnames[] = {
19876 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19877 };
19878
19879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19883 }
19884 arg1 = reinterpret_cast< wxDC * >(argp1);
19885 {
19886 arg2 = wxString_in_helper(obj1);
19887 if (arg2 == NULL) SWIG_fail;
19888 temp2 = true;
19889 }
19890 {
19891 arg3 = &temp3;
19892 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19893 }
19894 ecode4 = SWIG_AsVal_double(obj3, &val4);
19895 if (!SWIG_IsOK(ecode4)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19897 }
19898 arg4 = static_cast< double >(val4);
19899 {
19900 PyThreadState* __tstate = wxPyBeginAllowThreads();
19901 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19902 wxPyEndAllowThreads(__tstate);
19903 if (PyErr_Occurred()) SWIG_fail;
19904 }
19905 resultobj = SWIG_Py_Void();
19906 {
19907 if (temp2)
19908 delete arg2;
19909 }
19910 return resultobj;
19911fail:
19912 {
19913 if (temp2)
19914 delete arg2;
19915 }
19916 return NULL;
19917}
19918
19919
19920SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19921 PyObject *resultobj = 0;
19922 wxDC *arg1 = (wxDC *) 0 ;
19923 int arg2 ;
19924 int arg3 ;
19925 int arg4 ;
19926 int arg5 ;
19927 wxDC *arg6 = (wxDC *) 0 ;
19928 int arg7 ;
19929 int arg8 ;
19930 int arg9 = (int) wxCOPY ;
19931 bool arg10 = (bool) false ;
19932 int arg11 = (int) -1 ;
19933 int arg12 = (int) -1 ;
19934 bool result;
19935 void *argp1 = 0 ;
19936 int res1 = 0 ;
19937 int val2 ;
19938 int ecode2 = 0 ;
19939 int val3 ;
19940 int ecode3 = 0 ;
19941 int val4 ;
19942 int ecode4 = 0 ;
19943 int val5 ;
19944 int ecode5 = 0 ;
19945 void *argp6 = 0 ;
19946 int res6 = 0 ;
19947 int val7 ;
19948 int ecode7 = 0 ;
19949 int val8 ;
19950 int ecode8 = 0 ;
19951 int val9 ;
19952 int ecode9 = 0 ;
19953 bool val10 ;
19954 int ecode10 = 0 ;
19955 int val11 ;
19956 int ecode11 = 0 ;
19957 int val12 ;
19958 int ecode12 = 0 ;
19959 PyObject * obj0 = 0 ;
19960 PyObject * obj1 = 0 ;
19961 PyObject * obj2 = 0 ;
19962 PyObject * obj3 = 0 ;
19963 PyObject * obj4 = 0 ;
19964 PyObject * obj5 = 0 ;
19965 PyObject * obj6 = 0 ;
19966 PyObject * obj7 = 0 ;
19967 PyObject * obj8 = 0 ;
19968 PyObject * obj9 = 0 ;
19969 PyObject * obj10 = 0 ;
19970 PyObject * obj11 = 0 ;
19971 char * kwnames[] = {
19972 (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
19973 };
19974
19975 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;
19976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19977 if (!SWIG_IsOK(res1)) {
19978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19979 }
19980 arg1 = reinterpret_cast< wxDC * >(argp1);
19981 ecode2 = SWIG_AsVal_int(obj1, &val2);
19982 if (!SWIG_IsOK(ecode2)) {
19983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19984 }
19985 arg2 = static_cast< int >(val2);
19986 ecode3 = SWIG_AsVal_int(obj2, &val3);
19987 if (!SWIG_IsOK(ecode3)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19989 }
19990 arg3 = static_cast< int >(val3);
19991 ecode4 = SWIG_AsVal_int(obj3, &val4);
19992 if (!SWIG_IsOK(ecode4)) {
19993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19994 }
19995 arg4 = static_cast< int >(val4);
19996 ecode5 = SWIG_AsVal_int(obj4, &val5);
19997 if (!SWIG_IsOK(ecode5)) {
19998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19999 }
20000 arg5 = static_cast< int >(val5);
20001 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20002 if (!SWIG_IsOK(res6)) {
20003 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20004 }
20005 arg6 = reinterpret_cast< wxDC * >(argp6);
20006 ecode7 = SWIG_AsVal_int(obj6, &val7);
20007 if (!SWIG_IsOK(ecode7)) {
20008 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20009 }
20010 arg7 = static_cast< int >(val7);
20011 ecode8 = SWIG_AsVal_int(obj7, &val8);
20012 if (!SWIG_IsOK(ecode8)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20014 }
20015 arg8 = static_cast< int >(val8);
20016 if (obj8) {
20017 ecode9 = SWIG_AsVal_int(obj8, &val9);
20018 if (!SWIG_IsOK(ecode9)) {
20019 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20020 }
20021 arg9 = static_cast< int >(val9);
20022 }
20023 if (obj9) {
20024 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20025 if (!SWIG_IsOK(ecode10)) {
20026 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20027 }
20028 arg10 = static_cast< bool >(val10);
20029 }
20030 if (obj10) {
20031 ecode11 = SWIG_AsVal_int(obj10, &val11);
20032 if (!SWIG_IsOK(ecode11)) {
20033 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20034 }
20035 arg11 = static_cast< int >(val11);
20036 }
20037 if (obj11) {
20038 ecode12 = SWIG_AsVal_int(obj11, &val12);
20039 if (!SWIG_IsOK(ecode12)) {
20040 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20041 }
20042 arg12 = static_cast< int >(val12);
20043 }
20044 {
20045 PyThreadState* __tstate = wxPyBeginAllowThreads();
20046 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 {
20051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20052 }
20053 return resultobj;
20054fail:
20055 return NULL;
20056}
20057
20058
20059SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj = 0;
20061 wxDC *arg1 = (wxDC *) 0 ;
20062 wxPoint *arg2 = 0 ;
20063 wxSize *arg3 = 0 ;
20064 wxDC *arg4 = (wxDC *) 0 ;
20065 wxPoint *arg5 = 0 ;
20066 int arg6 = (int) wxCOPY ;
20067 bool arg7 = (bool) false ;
20068 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20069 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20070 bool result;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 wxPoint temp2 ;
20074 wxSize temp3 ;
20075 void *argp4 = 0 ;
20076 int res4 = 0 ;
20077 wxPoint temp5 ;
20078 int val6 ;
20079 int ecode6 = 0 ;
20080 bool val7 ;
20081 int ecode7 = 0 ;
20082 wxPoint temp8 ;
20083 PyObject * obj0 = 0 ;
20084 PyObject * obj1 = 0 ;
20085 PyObject * obj2 = 0 ;
20086 PyObject * obj3 = 0 ;
20087 PyObject * obj4 = 0 ;
20088 PyObject * obj5 = 0 ;
20089 PyObject * obj6 = 0 ;
20090 PyObject * obj7 = 0 ;
20091 char * kwnames[] = {
20092 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20093 };
20094
20095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20097 if (!SWIG_IsOK(res1)) {
20098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20099 }
20100 arg1 = reinterpret_cast< wxDC * >(argp1);
20101 {
20102 arg2 = &temp2;
20103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20104 }
20105 {
20106 arg3 = &temp3;
20107 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20108 }
20109 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res4)) {
20111 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20112 }
20113 arg4 = reinterpret_cast< wxDC * >(argp4);
20114 {
20115 arg5 = &temp5;
20116 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20117 }
20118 if (obj5) {
20119 ecode6 = SWIG_AsVal_int(obj5, &val6);
20120 if (!SWIG_IsOK(ecode6)) {
20121 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20122 }
20123 arg6 = static_cast< int >(val6);
20124 }
20125 if (obj6) {
20126 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20127 if (!SWIG_IsOK(ecode7)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20129 }
20130 arg7 = static_cast< bool >(val7);
20131 }
20132 if (obj7) {
093d3ff1 20133 {
554f62e9
RD
20134 arg8 = &temp8;
20135 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20136 }
554f62e9
RD
20137 }
20138 {
20139 PyThreadState* __tstate = wxPyBeginAllowThreads();
20140 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 {
20145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20146 }
20147 return resultobj;
20148fail:
20149 return NULL;
20150}
20151
20152
20153SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj = 0;
20155 wxDC *arg1 = (wxDC *) 0 ;
20156 int arg2 ;
20157 int arg3 ;
20158 int arg4 ;
20159 int arg5 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 int val2 ;
20163 int ecode2 = 0 ;
20164 int val3 ;
20165 int ecode3 = 0 ;
20166 int val4 ;
20167 int ecode4 = 0 ;
20168 int val5 ;
20169 int ecode5 = 0 ;
20170 PyObject * obj0 = 0 ;
20171 PyObject * obj1 = 0 ;
20172 PyObject * obj2 = 0 ;
20173 PyObject * obj3 = 0 ;
20174 PyObject * obj4 = 0 ;
20175 char * kwnames[] = {
20176 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20177 };
20178
20179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20181 if (!SWIG_IsOK(res1)) {
20182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20183 }
20184 arg1 = reinterpret_cast< wxDC * >(argp1);
20185 ecode2 = SWIG_AsVal_int(obj1, &val2);
20186 if (!SWIG_IsOK(ecode2)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20188 }
20189 arg2 = static_cast< int >(val2);
20190 ecode3 = SWIG_AsVal_int(obj2, &val3);
20191 if (!SWIG_IsOK(ecode3)) {
20192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20193 }
20194 arg3 = static_cast< int >(val3);
20195 ecode4 = SWIG_AsVal_int(obj3, &val4);
20196 if (!SWIG_IsOK(ecode4)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20198 }
20199 arg4 = static_cast< int >(val4);
20200 ecode5 = SWIG_AsVal_int(obj4, &val5);
20201 if (!SWIG_IsOK(ecode5)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20203 }
20204 arg5 = static_cast< int >(val5);
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_Py_Void();
20212 return resultobj;
20213fail:
20214 return NULL;
20215}
20216
20217
20218SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxDC *arg1 = (wxDC *) 0 ;
20221 wxPoint *arg2 = 0 ;
20222 wxSize *arg3 = 0 ;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 wxPoint temp2 ;
20226 wxSize temp3 ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 PyObject * obj2 = 0 ;
20230 char * kwnames[] = {
20231 (char *) "self",(char *) "pt",(char *) "sz", NULL
20232 };
20233
20234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20236 if (!SWIG_IsOK(res1)) {
20237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20238 }
20239 arg1 = reinterpret_cast< wxDC * >(argp1);
20240 {
20241 arg2 = &temp2;
20242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20243 }
20244 {
20245 arg3 = &temp3;
20246 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20247 }
20248 {
20249 PyThreadState* __tstate = wxPyBeginAllowThreads();
20250 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20251 wxPyEndAllowThreads(__tstate);
20252 if (PyErr_Occurred()) SWIG_fail;
20253 }
20254 resultobj = SWIG_Py_Void();
20255 return resultobj;
20256fail:
20257 return NULL;
20258}
20259
20260
20261SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20262 PyObject *resultobj = 0;
20263 wxDC *arg1 = (wxDC *) 0 ;
20264 wxRegion *arg2 = 0 ;
20265 void *argp1 = 0 ;
20266 int res1 = 0 ;
20267 void *argp2 = 0 ;
20268 int res2 = 0 ;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271 char * kwnames[] = {
20272 (char *) "self",(char *) "region", NULL
20273 };
20274
20275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20277 if (!SWIG_IsOK(res1)) {
20278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20279 }
20280 arg1 = reinterpret_cast< wxDC * >(argp1);
20281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20282 if (!SWIG_IsOK(res2)) {
20283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20284 }
20285 if (!argp2) {
20286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20287 }
20288 arg2 = reinterpret_cast< wxRegion * >(argp2);
20289 {
20290 PyThreadState* __tstate = wxPyBeginAllowThreads();
20291 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20292 wxPyEndAllowThreads(__tstate);
20293 if (PyErr_Occurred()) SWIG_fail;
20294 }
20295 resultobj = SWIG_Py_Void();
20296 return resultobj;
20297fail:
20298 return NULL;
20299}
20300
20301
20302SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20303 PyObject *resultobj = 0;
20304 wxDC *arg1 = (wxDC *) 0 ;
20305 wxRect *arg2 = 0 ;
20306 void *argp1 = 0 ;
20307 int res1 = 0 ;
20308 wxRect temp2 ;
20309 PyObject * obj0 = 0 ;
20310 PyObject * obj1 = 0 ;
20311 char * kwnames[] = {
20312 (char *) "self",(char *) "rect", NULL
20313 };
20314
20315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20317 if (!SWIG_IsOK(res1)) {
20318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20319 }
20320 arg1 = reinterpret_cast< wxDC * >(argp1);
20321 {
20322 arg2 = &temp2;
20323 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20324 }
20325 {
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20328 wxPyEndAllowThreads(__tstate);
20329 if (PyErr_Occurred()) SWIG_fail;
20330 }
20331 resultobj = SWIG_Py_Void();
20332 return resultobj;
20333fail:
20334 return NULL;
20335}
20336
20337
20338SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20339 PyObject *resultobj = 0;
20340 wxDC *arg1 = (wxDC *) 0 ;
20341 int arg2 ;
20342 wxPoint *arg3 = (wxPoint *) 0 ;
20343 int arg4 = (int) 0 ;
20344 int arg5 = (int) 0 ;
20345 void *argp1 = 0 ;
20346 int res1 = 0 ;
20347 int val4 ;
20348 int ecode4 = 0 ;
20349 int val5 ;
20350 int ecode5 = 0 ;
20351 PyObject * obj0 = 0 ;
20352 PyObject * obj1 = 0 ;
20353 PyObject * obj2 = 0 ;
20354 PyObject * obj3 = 0 ;
20355 char * kwnames[] = {
20356 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20357 };
20358
20359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20361 if (!SWIG_IsOK(res1)) {
20362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20363 }
20364 arg1 = reinterpret_cast< wxDC * >(argp1);
20365 {
20366 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20367 if (arg3 == NULL) SWIG_fail;
20368 }
20369 if (obj2) {
20370 ecode4 = SWIG_AsVal_int(obj2, &val4);
20371 if (!SWIG_IsOK(ecode4)) {
20372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20373 }
20374 arg4 = static_cast< int >(val4);
20375 }
20376 if (obj3) {
20377 ecode5 = SWIG_AsVal_int(obj3, &val5);
20378 if (!SWIG_IsOK(ecode5)) {
20379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20380 }
20381 arg5 = static_cast< int >(val5);
20382 }
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 resultobj = SWIG_Py_Void();
20390 {
20391 if (arg3) delete [] arg3;
20392 }
20393 return resultobj;
20394fail:
20395 {
20396 if (arg3) delete [] arg3;
20397 }
20398 return NULL;
20399}
20400
20401
20402SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20403 PyObject *resultobj = 0;
20404 wxDC *arg1 = (wxDC *) 0 ;
20405 int arg2 ;
20406 wxPoint *arg3 = (wxPoint *) 0 ;
20407 int arg4 = (int) 0 ;
20408 int arg5 = (int) 0 ;
20409 int arg6 = (int) wxODDEVEN_RULE ;
20410 void *argp1 = 0 ;
20411 int res1 = 0 ;
20412 int val4 ;
20413 int ecode4 = 0 ;
20414 int val5 ;
20415 int ecode5 = 0 ;
20416 int val6 ;
20417 int ecode6 = 0 ;
20418 PyObject * obj0 = 0 ;
20419 PyObject * obj1 = 0 ;
20420 PyObject * obj2 = 0 ;
20421 PyObject * obj3 = 0 ;
20422 PyObject * obj4 = 0 ;
20423 char * kwnames[] = {
20424 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20425 };
20426
20427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20431 }
20432 arg1 = reinterpret_cast< wxDC * >(argp1);
20433 {
20434 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20435 if (arg3 == NULL) SWIG_fail;
20436 }
20437 if (obj2) {
20438 ecode4 = SWIG_AsVal_int(obj2, &val4);
20439 if (!SWIG_IsOK(ecode4)) {
20440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20441 }
20442 arg4 = static_cast< int >(val4);
20443 }
20444 if (obj3) {
20445 ecode5 = SWIG_AsVal_int(obj3, &val5);
20446 if (!SWIG_IsOK(ecode5)) {
20447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20448 }
20449 arg5 = static_cast< int >(val5);
20450 }
20451 if (obj4) {
20452 ecode6 = SWIG_AsVal_int(obj4, &val6);
20453 if (!SWIG_IsOK(ecode6)) {
20454 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20455 }
20456 arg6 = static_cast< int >(val6);
20457 }
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = SWIG_Py_Void();
20465 {
20466 if (arg3) delete [] arg3;
20467 }
20468 return resultobj;
20469fail:
20470 {
20471 if (arg3) delete [] arg3;
20472 }
20473 return NULL;
20474}
20475
20476
20477SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20478 PyObject *resultobj = 0;
20479 wxDC *arg1 = (wxDC *) 0 ;
20480 wxString *arg2 = 0 ;
20481 wxRect *arg3 = 0 ;
20482 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20483 int arg5 = (int) -1 ;
20484 void *argp1 = 0 ;
20485 int res1 = 0 ;
20486 bool temp2 = false ;
20487 wxRect temp3 ;
20488 int val4 ;
20489 int ecode4 = 0 ;
20490 int val5 ;
20491 int ecode5 = 0 ;
20492 PyObject * obj0 = 0 ;
20493 PyObject * obj1 = 0 ;
20494 PyObject * obj2 = 0 ;
20495 PyObject * obj3 = 0 ;
20496 PyObject * obj4 = 0 ;
20497 char * kwnames[] = {
20498 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20499 };
20500
20501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20503 if (!SWIG_IsOK(res1)) {
20504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20505 }
20506 arg1 = reinterpret_cast< wxDC * >(argp1);
20507 {
20508 arg2 = wxString_in_helper(obj1);
20509 if (arg2 == NULL) SWIG_fail;
20510 temp2 = true;
20511 }
20512 {
20513 arg3 = &temp3;
20514 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20515 }
20516 if (obj3) {
20517 ecode4 = SWIG_AsVal_int(obj3, &val4);
20518 if (!SWIG_IsOK(ecode4)) {
20519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20520 }
20521 arg4 = static_cast< int >(val4);
20522 }
20523 if (obj4) {
20524 ecode5 = SWIG_AsVal_int(obj4, &val5);
20525 if (!SWIG_IsOK(ecode5)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20527 }
20528 arg5 = static_cast< int >(val5);
20529 }
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_Py_Void();
20537 {
20538 if (temp2)
20539 delete arg2;
20540 }
20541 return resultobj;
20542fail:
20543 {
20544 if (temp2)
20545 delete arg2;
20546 }
20547 return NULL;
20548}
20549
20550
20551SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj = 0;
20553 wxDC *arg1 = (wxDC *) 0 ;
20554 wxString *arg2 = 0 ;
20555 wxBitmap *arg3 = 0 ;
20556 wxRect *arg4 = 0 ;
20557 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20558 int arg6 = (int) -1 ;
20559 wxRect result;
20560 void *argp1 = 0 ;
20561 int res1 = 0 ;
20562 bool temp2 = false ;
20563 void *argp3 = 0 ;
20564 int res3 = 0 ;
20565 wxRect temp4 ;
20566 int val5 ;
20567 int ecode5 = 0 ;
20568 int val6 ;
20569 int ecode6 = 0 ;
20570 PyObject * obj0 = 0 ;
20571 PyObject * obj1 = 0 ;
20572 PyObject * obj2 = 0 ;
20573 PyObject * obj3 = 0 ;
20574 PyObject * obj4 = 0 ;
20575 PyObject * obj5 = 0 ;
20576 char * kwnames[] = {
20577 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20578 };
20579
20580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20582 if (!SWIG_IsOK(res1)) {
20583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20584 }
20585 arg1 = reinterpret_cast< wxDC * >(argp1);
20586 {
20587 arg2 = wxString_in_helper(obj1);
20588 if (arg2 == NULL) SWIG_fail;
20589 temp2 = true;
20590 }
20591 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20592 if (!SWIG_IsOK(res3)) {
20593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20594 }
20595 if (!argp3) {
20596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20597 }
20598 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20599 {
20600 arg4 = &temp4;
20601 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20602 }
20603 if (obj4) {
20604 ecode5 = SWIG_AsVal_int(obj4, &val5);
20605 if (!SWIG_IsOK(ecode5)) {
20606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20607 }
20608 arg5 = static_cast< int >(val5);
20609 }
20610 if (obj5) {
20611 ecode6 = SWIG_AsVal_int(obj5, &val6);
20612 if (!SWIG_IsOK(ecode6)) {
20613 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20614 }
20615 arg6 = static_cast< int >(val6);
20616 }
20617 {
20618 PyThreadState* __tstate = wxPyBeginAllowThreads();
20619 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20624 {
20625 if (temp2)
20626 delete arg2;
20627 }
20628 return resultobj;
20629fail:
20630 {
20631 if (temp2)
20632 delete arg2;
20633 }
20634 return NULL;
20635}
20636
20637
20638SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxDC *arg1 = (wxDC *) 0 ;
20641 int arg2 ;
20642 wxPoint *arg3 = (wxPoint *) 0 ;
20643 void *argp1 = 0 ;
20644 int res1 = 0 ;
20645 PyObject * obj0 = 0 ;
20646 PyObject * obj1 = 0 ;
20647 char * kwnames[] = {
20648 (char *) "self",(char *) "points", NULL
20649 };
20650
20651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20653 if (!SWIG_IsOK(res1)) {
20654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20655 }
20656 arg1 = reinterpret_cast< wxDC * >(argp1);
20657 {
20658 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20659 if (arg3 == NULL) SWIG_fail;
20660 }
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 (arg1)->DrawSpline(arg2,arg3);
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_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20681 PyObject *resultobj = 0;
20682 wxDC *arg1 = (wxDC *) 0 ;
20683 void *argp1 = 0 ;
20684 int res1 = 0 ;
20685 PyObject *swig_obj[1] ;
20686
20687 if (!args) SWIG_fail;
20688 swig_obj[0] = args;
20689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20690 if (!SWIG_IsOK(res1)) {
20691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20692 }
20693 arg1 = reinterpret_cast< wxDC * >(argp1);
20694 {
20695 PyThreadState* __tstate = wxPyBeginAllowThreads();
20696 (arg1)->Clear();
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_Py_Void();
20701 return resultobj;
20702fail:
20703 return NULL;
20704}
20705
20706
20707SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20708 PyObject *resultobj = 0;
20709 wxDC *arg1 = (wxDC *) 0 ;
20710 wxString *arg2 = 0 ;
20711 bool result;
20712 void *argp1 = 0 ;
20713 int res1 = 0 ;
20714 bool temp2 = false ;
20715 PyObject * obj0 = 0 ;
20716 PyObject * obj1 = 0 ;
20717 char * kwnames[] = {
20718 (char *) "self",(char *) "message", NULL
20719 };
20720
20721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20723 if (!SWIG_IsOK(res1)) {
20724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20725 }
20726 arg1 = reinterpret_cast< wxDC * >(argp1);
20727 {
20728 arg2 = wxString_in_helper(obj1);
20729 if (arg2 == NULL) SWIG_fail;
20730 temp2 = true;
20731 }
20732 {
20733 PyThreadState* __tstate = wxPyBeginAllowThreads();
20734 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20735 wxPyEndAllowThreads(__tstate);
20736 if (PyErr_Occurred()) SWIG_fail;
20737 }
20738 {
20739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20740 }
20741 {
20742 if (temp2)
20743 delete arg2;
20744 }
20745 return resultobj;
20746fail:
20747 {
20748 if (temp2)
20749 delete arg2;
20750 }
20751 return NULL;
20752}
20753
20754
20755SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 PyObject *resultobj = 0;
20757 wxDC *arg1 = (wxDC *) 0 ;
20758 void *argp1 = 0 ;
20759 int res1 = 0 ;
20760 PyObject *swig_obj[1] ;
20761
20762 if (!args) SWIG_fail;
20763 swig_obj[0] = args;
20764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20765 if (!SWIG_IsOK(res1)) {
20766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20767 }
20768 arg1 = reinterpret_cast< wxDC * >(argp1);
20769 {
20770 PyThreadState* __tstate = wxPyBeginAllowThreads();
20771 (arg1)->EndDoc();
20772 wxPyEndAllowThreads(__tstate);
20773 if (PyErr_Occurred()) SWIG_fail;
20774 }
20775 resultobj = SWIG_Py_Void();
20776 return resultobj;
20777fail:
20778 return NULL;
20779}
20780
20781
20782SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20783 PyObject *resultobj = 0;
20784 wxDC *arg1 = (wxDC *) 0 ;
20785 void *argp1 = 0 ;
20786 int res1 = 0 ;
20787 PyObject *swig_obj[1] ;
20788
20789 if (!args) SWIG_fail;
20790 swig_obj[0] = args;
20791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20794 }
20795 arg1 = reinterpret_cast< wxDC * >(argp1);
20796 {
20797 PyThreadState* __tstate = wxPyBeginAllowThreads();
20798 (arg1)->StartPage();
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 resultobj = SWIG_Py_Void();
20803 return resultobj;
20804fail:
20805 return NULL;
20806}
20807
20808
20809SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20810 PyObject *resultobj = 0;
20811 wxDC *arg1 = (wxDC *) 0 ;
20812 void *argp1 = 0 ;
20813 int res1 = 0 ;
20814 PyObject *swig_obj[1] ;
20815
20816 if (!args) SWIG_fail;
20817 swig_obj[0] = args;
20818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20819 if (!SWIG_IsOK(res1)) {
20820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20821 }
20822 arg1 = reinterpret_cast< wxDC * >(argp1);
20823 {
20824 PyThreadState* __tstate = wxPyBeginAllowThreads();
20825 (arg1)->EndPage();
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 resultobj = SWIG_Py_Void();
20830 return resultobj;
20831fail:
20832 return NULL;
20833}
20834
20835
20836SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20837 PyObject *resultobj = 0;
20838 wxDC *arg1 = (wxDC *) 0 ;
20839 wxFont *arg2 = 0 ;
20840 void *argp1 = 0 ;
20841 int res1 = 0 ;
20842 void *argp2 = 0 ;
20843 int res2 = 0 ;
20844 PyObject * obj0 = 0 ;
20845 PyObject * obj1 = 0 ;
20846 char * kwnames[] = {
20847 (char *) "self",(char *) "font", NULL
20848 };
20849
20850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20852 if (!SWIG_IsOK(res1)) {
20853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20854 }
20855 arg1 = reinterpret_cast< wxDC * >(argp1);
20856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20857 if (!SWIG_IsOK(res2)) {
20858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20859 }
20860 if (!argp2) {
20861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20862 }
20863 arg2 = reinterpret_cast< wxFont * >(argp2);
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 (arg1)->SetFont((wxFont const &)*arg2);
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 resultobj = SWIG_Py_Void();
20871 return resultobj;
20872fail:
20873 return NULL;
20874}
20875
20876
20877SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20878 PyObject *resultobj = 0;
20879 wxDC *arg1 = (wxDC *) 0 ;
20880 wxPen *arg2 = 0 ;
20881 void *argp1 = 0 ;
20882 int res1 = 0 ;
20883 void *argp2 = 0 ;
20884 int res2 = 0 ;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 char * kwnames[] = {
20888 (char *) "self",(char *) "pen", NULL
20889 };
20890
20891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20893 if (!SWIG_IsOK(res1)) {
20894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20895 }
20896 arg1 = reinterpret_cast< wxDC * >(argp1);
20897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20898 if (!SWIG_IsOK(res2)) {
20899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20900 }
20901 if (!argp2) {
20902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20903 }
20904 arg2 = reinterpret_cast< wxPen * >(argp2);
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 (arg1)->SetPen((wxPen const &)*arg2);
20908 wxPyEndAllowThreads(__tstate);
20909 if (PyErr_Occurred()) SWIG_fail;
20910 }
20911 resultobj = SWIG_Py_Void();
20912 return resultobj;
20913fail:
20914 return NULL;
20915}
20916
20917
20918SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20919 PyObject *resultobj = 0;
20920 wxDC *arg1 = (wxDC *) 0 ;
20921 wxBrush *arg2 = 0 ;
20922 void *argp1 = 0 ;
20923 int res1 = 0 ;
20924 void *argp2 = 0 ;
20925 int res2 = 0 ;
20926 PyObject * obj0 = 0 ;
20927 PyObject * obj1 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "self",(char *) "brush", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20936 }
20937 arg1 = reinterpret_cast< wxDC * >(argp1);
20938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20939 if (!SWIG_IsOK(res2)) {
20940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20941 }
20942 if (!argp2) {
20943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20944 }
20945 arg2 = reinterpret_cast< wxBrush * >(argp2);
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 (arg1)->SetBrush((wxBrush const &)*arg2);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_Py_Void();
20953 return resultobj;
20954fail:
20955 return NULL;
20956}
20957
20958
20959SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20960 PyObject *resultobj = 0;
20961 wxDC *arg1 = (wxDC *) 0 ;
20962 wxBrush *arg2 = 0 ;
20963 void *argp1 = 0 ;
20964 int res1 = 0 ;
20965 void *argp2 = 0 ;
20966 int res2 = 0 ;
20967 PyObject * obj0 = 0 ;
20968 PyObject * obj1 = 0 ;
20969 char * kwnames[] = {
20970 (char *) "self",(char *) "brush", NULL
20971 };
20972
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20980 if (!SWIG_IsOK(res2)) {
20981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20982 }
20983 if (!argp2) {
20984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20985 }
20986 arg2 = reinterpret_cast< wxBrush * >(argp2);
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 (arg1)->SetBackground((wxBrush const &)*arg2);
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = SWIG_Py_Void();
20994 return resultobj;
20995fail:
20996 return NULL;
20997}
20998
20999
21000SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21001 PyObject *resultobj = 0;
21002 wxDC *arg1 = (wxDC *) 0 ;
21003 int arg2 ;
21004 void *argp1 = 0 ;
21005 int res1 = 0 ;
21006 int val2 ;
21007 int ecode2 = 0 ;
21008 PyObject * obj0 = 0 ;
21009 PyObject * obj1 = 0 ;
21010 char * kwnames[] = {
21011 (char *) "self",(char *) "mode", NULL
21012 };
21013
21014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21016 if (!SWIG_IsOK(res1)) {
21017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21018 }
21019 arg1 = reinterpret_cast< wxDC * >(argp1);
21020 ecode2 = SWIG_AsVal_int(obj1, &val2);
21021 if (!SWIG_IsOK(ecode2)) {
21022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21023 }
21024 arg2 = static_cast< int >(val2);
21025 {
21026 PyThreadState* __tstate = wxPyBeginAllowThreads();
21027 (arg1)->SetBackgroundMode(arg2);
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_Py_Void();
21032 return resultobj;
21033fail:
21034 return NULL;
21035}
21036
21037
21038SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21039 PyObject *resultobj = 0;
21040 wxDC *arg1 = (wxDC *) 0 ;
21041 wxPalette *arg2 = 0 ;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 void *argp2 = 0 ;
21045 int res2 = 0 ;
21046 PyObject * obj0 = 0 ;
21047 PyObject * obj1 = 0 ;
21048 char * kwnames[] = {
21049 (char *) "self",(char *) "palette", NULL
21050 };
21051
21052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21054 if (!SWIG_IsOK(res1)) {
21055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21056 }
21057 arg1 = reinterpret_cast< wxDC * >(argp1);
21058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21059 if (!SWIG_IsOK(res2)) {
21060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21061 }
21062 if (!argp2) {
21063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21064 }
21065 arg2 = reinterpret_cast< wxPalette * >(argp2);
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 (arg1)->SetPalette((wxPalette const &)*arg2);
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 resultobj = SWIG_Py_Void();
21073 return resultobj;
21074fail:
21075 return NULL;
21076}
21077
21078
21079SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21080 PyObject *resultobj = 0;
21081 wxDC *arg1 = (wxDC *) 0 ;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 PyObject *swig_obj[1] ;
21085
21086 if (!args) SWIG_fail;
21087 swig_obj[0] = args;
21088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21089 if (!SWIG_IsOK(res1)) {
21090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21091 }
21092 arg1 = reinterpret_cast< wxDC * >(argp1);
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 (arg1)->DestroyClippingRegion();
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_Py_Void();
21100 return resultobj;
21101fail:
21102 return NULL;
21103}
21104
21105
21106SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21107 PyObject *resultobj = 0;
21108 wxDC *arg1 = (wxDC *) 0 ;
21109 int *arg2 = (int *) 0 ;
21110 int *arg3 = (int *) 0 ;
21111 int *arg4 = (int *) 0 ;
21112 int *arg5 = (int *) 0 ;
21113 void *argp1 = 0 ;
21114 int res1 = 0 ;
21115 int temp2 ;
21116 int res2 = SWIG_TMPOBJ ;
21117 int temp3 ;
21118 int res3 = SWIG_TMPOBJ ;
21119 int temp4 ;
21120 int res4 = SWIG_TMPOBJ ;
21121 int temp5 ;
21122 int res5 = SWIG_TMPOBJ ;
21123 PyObject *swig_obj[1] ;
21124
21125 arg2 = &temp2;
21126 arg3 = &temp3;
21127 arg4 = &temp4;
21128 arg5 = &temp5;
21129 if (!args) SWIG_fail;
21130 swig_obj[0] = args;
21131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21132 if (!SWIG_IsOK(res1)) {
21133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21134 }
21135 arg1 = reinterpret_cast< wxDC * >(argp1);
21136 {
21137 PyThreadState* __tstate = wxPyBeginAllowThreads();
21138 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21139 wxPyEndAllowThreads(__tstate);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 }
21142 resultobj = SWIG_Py_Void();
21143 if (SWIG_IsTmpObj(res2)) {
21144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21145 } else {
21146 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21148 }
21149 if (SWIG_IsTmpObj(res3)) {
21150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21151 } else {
21152 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21154 }
21155 if (SWIG_IsTmpObj(res4)) {
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21157 } else {
21158 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21160 }
21161 if (SWIG_IsTmpObj(res5)) {
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21163 } else {
21164 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21166 }
21167 return resultobj;
21168fail:
21169 return NULL;
21170}
21171
21172
21173SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21174 PyObject *resultobj = 0;
21175 wxDC *arg1 = (wxDC *) 0 ;
21176 wxRect result;
21177 void *argp1 = 0 ;
21178 int res1 = 0 ;
21179 PyObject *swig_obj[1] ;
21180
21181 if (!args) SWIG_fail;
21182 swig_obj[0] = args;
21183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21184 if (!SWIG_IsOK(res1)) {
21185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21186 }
21187 arg1 = reinterpret_cast< wxDC * >(argp1);
21188 {
21189 PyThreadState* __tstate = wxPyBeginAllowThreads();
21190 result = wxDC_GetClippingRect(arg1);
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21195 return resultobj;
21196fail:
21197 return NULL;
21198}
21199
21200
21201SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21202 PyObject *resultobj = 0;
21203 wxDC *arg1 = (wxDC *) 0 ;
21204 int result;
21205 void *argp1 = 0 ;
21206 int res1 = 0 ;
21207 PyObject *swig_obj[1] ;
21208
21209 if (!args) SWIG_fail;
21210 swig_obj[0] = args;
21211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21212 if (!SWIG_IsOK(res1)) {
21213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21214 }
21215 arg1 = reinterpret_cast< wxDC * >(argp1);
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 result = (int)((wxDC const *)arg1)->GetCharHeight();
21219 wxPyEndAllowThreads(__tstate);
21220 if (PyErr_Occurred()) SWIG_fail;
21221 }
21222 resultobj = SWIG_From_int(static_cast< int >(result));
21223 return resultobj;
21224fail:
21225 return NULL;
21226}
21227
21228
21229SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230 PyObject *resultobj = 0;
21231 wxDC *arg1 = (wxDC *) 0 ;
21232 int result;
21233 void *argp1 = 0 ;
21234 int res1 = 0 ;
21235 PyObject *swig_obj[1] ;
21236
21237 if (!args) SWIG_fail;
21238 swig_obj[0] = args;
21239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21242 }
21243 arg1 = reinterpret_cast< wxDC * >(argp1);
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 result = (int)((wxDC const *)arg1)->GetCharWidth();
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 resultobj = SWIG_From_int(static_cast< int >(result));
21251 return resultobj;
21252fail:
21253 return NULL;
21254}
21255
21256
21257SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21258 PyObject *resultobj = 0;
21259 wxDC *arg1 = (wxDC *) 0 ;
21260 wxString *arg2 = 0 ;
21261 int *arg3 = (int *) 0 ;
21262 int *arg4 = (int *) 0 ;
21263 void *argp1 = 0 ;
21264 int res1 = 0 ;
21265 bool temp2 = false ;
21266 int temp3 ;
21267 int res3 = SWIG_TMPOBJ ;
21268 int temp4 ;
21269 int res4 = SWIG_TMPOBJ ;
21270 PyObject * obj0 = 0 ;
21271 PyObject * obj1 = 0 ;
21272 char * kwnames[] = {
21273 (char *) "self",(char *) "string", NULL
21274 };
21275
21276 arg3 = &temp3;
21277 arg4 = &temp4;
21278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21280 if (!SWIG_IsOK(res1)) {
21281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21282 }
21283 arg1 = reinterpret_cast< wxDC * >(argp1);
21284 {
21285 arg2 = wxString_in_helper(obj1);
21286 if (arg2 == NULL) SWIG_fail;
21287 temp2 = true;
21288 }
21289 {
21290 PyThreadState* __tstate = wxPyBeginAllowThreads();
21291 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21292 wxPyEndAllowThreads(__tstate);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 }
21295 resultobj = SWIG_Py_Void();
21296 if (SWIG_IsTmpObj(res3)) {
21297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21298 } else {
21299 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21301 }
21302 if (SWIG_IsTmpObj(res4)) {
21303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21304 } else {
21305 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21307 }
21308 {
21309 if (temp2)
21310 delete arg2;
21311 }
21312 return resultobj;
21313fail:
21314 {
21315 if (temp2)
21316 delete arg2;
21317 }
21318 return NULL;
21319}
21320
21321
21322SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21323 PyObject *resultobj = 0;
21324 wxDC *arg1 = (wxDC *) 0 ;
21325 wxString *arg2 = 0 ;
21326 int *arg3 = (int *) 0 ;
21327 int *arg4 = (int *) 0 ;
21328 int *arg5 = (int *) 0 ;
21329 int *arg6 = (int *) 0 ;
21330 wxFont *arg7 = (wxFont *) NULL ;
21331 void *argp1 = 0 ;
21332 int res1 = 0 ;
21333 bool temp2 = false ;
21334 int temp3 ;
21335 int res3 = SWIG_TMPOBJ ;
21336 int temp4 ;
21337 int res4 = SWIG_TMPOBJ ;
21338 int temp5 ;
21339 int res5 = SWIG_TMPOBJ ;
21340 int temp6 ;
21341 int res6 = SWIG_TMPOBJ ;
21342 void *argp7 = 0 ;
21343 int res7 = 0 ;
21344 PyObject * obj0 = 0 ;
21345 PyObject * obj1 = 0 ;
21346 PyObject * obj2 = 0 ;
21347 char * kwnames[] = {
21348 (char *) "self",(char *) "string",(char *) "font", NULL
21349 };
21350
21351 arg3 = &temp3;
21352 arg4 = &temp4;
21353 arg5 = &temp5;
21354 arg6 = &temp6;
21355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21357 if (!SWIG_IsOK(res1)) {
21358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21359 }
21360 arg1 = reinterpret_cast< wxDC * >(argp1);
21361 {
21362 arg2 = wxString_in_helper(obj1);
21363 if (arg2 == NULL) SWIG_fail;
21364 temp2 = true;
21365 }
21366 if (obj2) {
21367 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21368 if (!SWIG_IsOK(res7)) {
21369 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21370 }
554f62e9
RD
21371 arg7 = reinterpret_cast< wxFont * >(argp7);
21372 }
21373 {
21374 PyThreadState* __tstate = wxPyBeginAllowThreads();
21375 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21376 wxPyEndAllowThreads(__tstate);
21377 if (PyErr_Occurred()) SWIG_fail;
21378 }
21379 resultobj = SWIG_Py_Void();
21380 if (SWIG_IsTmpObj(res3)) {
21381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21382 } else {
21383 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21385 }
21386 if (SWIG_IsTmpObj(res4)) {
21387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21388 } else {
21389 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21391 }
21392 if (SWIG_IsTmpObj(res5)) {
21393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21394 } else {
21395 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21397 }
21398 if (SWIG_IsTmpObj(res6)) {
21399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21400 } else {
21401 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21403 }
21404 {
21405 if (temp2)
21406 delete arg2;
21407 }
21408 return resultobj;
21409fail:
21410 {
21411 if (temp2)
21412 delete arg2;
21413 }
21414 return NULL;
21415}
21416
21417
21418SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21419 PyObject *resultobj = 0;
21420 wxDC *arg1 = (wxDC *) 0 ;
21421 wxString *arg2 = 0 ;
21422 int *arg3 = (int *) 0 ;
21423 int *arg4 = (int *) 0 ;
21424 int *arg5 = (int *) 0 ;
21425 wxFont *arg6 = (wxFont *) NULL ;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 bool temp2 = false ;
21429 int temp3 ;
21430 int res3 = SWIG_TMPOBJ ;
21431 int temp4 ;
21432 int res4 = SWIG_TMPOBJ ;
21433 int temp5 ;
21434 int res5 = SWIG_TMPOBJ ;
21435 void *argp6 = 0 ;
21436 int res6 = 0 ;
21437 PyObject * obj0 = 0 ;
21438 PyObject * obj1 = 0 ;
21439 PyObject * obj2 = 0 ;
21440 char * kwnames[] = {
21441 (char *) "self",(char *) "text",(char *) "font", NULL
21442 };
21443
21444 arg3 = &temp3;
21445 arg4 = &temp4;
21446 arg5 = &temp5;
21447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21449 if (!SWIG_IsOK(res1)) {
21450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21451 }
21452 arg1 = reinterpret_cast< wxDC * >(argp1);
21453 {
21454 arg2 = wxString_in_helper(obj1);
21455 if (arg2 == NULL) SWIG_fail;
21456 temp2 = true;
21457 }
21458 if (obj2) {
21459 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21460 if (!SWIG_IsOK(res6)) {
21461 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21462 }
554f62e9
RD
21463 arg6 = reinterpret_cast< wxFont * >(argp6);
21464 }
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_Py_Void();
21472 if (SWIG_IsTmpObj(res3)) {
21473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21474 } else {
21475 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21477 }
21478 if (SWIG_IsTmpObj(res4)) {
21479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21480 } else {
21481 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21483 }
21484 if (SWIG_IsTmpObj(res5)) {
21485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21486 } else {
21487 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21489 }
21490 {
21491 if (temp2)
21492 delete arg2;
21493 }
21494 return resultobj;
21495fail:
21496 {
21497 if (temp2)
21498 delete arg2;
21499 }
21500 return NULL;
21501}
21502
21503
21504SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj = 0;
21506 wxDC *arg1 = (wxDC *) 0 ;
21507 wxString *arg2 = 0 ;
21508 wxArrayInt result;
21509 void *argp1 = 0 ;
21510 int res1 = 0 ;
21511 bool temp2 = false ;
21512 PyObject * obj0 = 0 ;
21513 PyObject * obj1 = 0 ;
21514 char * kwnames[] = {
21515 (char *) "self",(char *) "text", NULL
21516 };
21517
21518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21520 if (!SWIG_IsOK(res1)) {
21521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21522 }
21523 arg1 = reinterpret_cast< wxDC * >(argp1);
21524 {
21525 arg2 = wxString_in_helper(obj1);
21526 if (arg2 == NULL) SWIG_fail;
21527 temp2 = true;
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 {
b39fe951 21536 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
21537 }
21538 {
21539 if (temp2)
21540 delete arg2;
21541 }
21542 return resultobj;
21543fail:
21544 {
21545 if (temp2)
21546 delete arg2;
21547 }
21548 return NULL;
21549}
21550
21551
21552SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21553 PyObject *resultobj = 0;
21554 wxDC *arg1 = (wxDC *) 0 ;
21555 wxSize result;
21556 void *argp1 = 0 ;
21557 int res1 = 0 ;
21558 PyObject *swig_obj[1] ;
21559
21560 if (!args) SWIG_fail;
21561 swig_obj[0] = args;
21562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21563 if (!SWIG_IsOK(res1)) {
21564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21565 }
21566 arg1 = reinterpret_cast< wxDC * >(argp1);
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = (arg1)->GetSize();
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21574 return resultobj;
21575fail:
21576 return NULL;
21577}
21578
21579
21580SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21581 PyObject *resultobj = 0;
21582 wxDC *arg1 = (wxDC *) 0 ;
21583 int *arg2 = (int *) 0 ;
21584 int *arg3 = (int *) 0 ;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 int temp2 ;
21588 int res2 = SWIG_TMPOBJ ;
21589 int temp3 ;
21590 int res3 = SWIG_TMPOBJ ;
21591 PyObject *swig_obj[1] ;
21592
21593 arg2 = &temp2;
21594 arg3 = &temp3;
21595 if (!args) SWIG_fail;
21596 swig_obj[0] = args;
21597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21598 if (!SWIG_IsOK(res1)) {
21599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21600 }
21601 arg1 = reinterpret_cast< wxDC * >(argp1);
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 (arg1)->GetSize(arg2,arg3);
21605 wxPyEndAllowThreads(__tstate);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 resultobj = SWIG_Py_Void();
21609 if (SWIG_IsTmpObj(res2)) {
21610 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21611 } else {
21612 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21614 }
21615 if (SWIG_IsTmpObj(res3)) {
21616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21617 } else {
21618 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21620 }
21621 return resultobj;
21622fail:
21623 return NULL;
21624}
21625
21626
21627SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21628 PyObject *resultobj = 0;
21629 wxDC *arg1 = (wxDC *) 0 ;
21630 wxSize result;
21631 void *argp1 = 0 ;
21632 int res1 = 0 ;
21633 PyObject *swig_obj[1] ;
21634
21635 if (!args) SWIG_fail;
21636 swig_obj[0] = args;
21637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 result = ((wxDC const *)arg1)->GetSizeMM();
21645 wxPyEndAllowThreads(__tstate);
21646 if (PyErr_Occurred()) SWIG_fail;
21647 }
21648 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21649 return resultobj;
21650fail:
21651 return NULL;
21652}
21653
21654
21655SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21656 PyObject *resultobj = 0;
21657 wxDC *arg1 = (wxDC *) 0 ;
21658 int *arg2 = (int *) 0 ;
21659 int *arg3 = (int *) 0 ;
21660 void *argp1 = 0 ;
21661 int res1 = 0 ;
21662 int temp2 ;
21663 int res2 = SWIG_TMPOBJ ;
21664 int temp3 ;
21665 int res3 = SWIG_TMPOBJ ;
21666 PyObject *swig_obj[1] ;
21667
21668 arg2 = &temp2;
21669 arg3 = &temp3;
21670 if (!args) SWIG_fail;
21671 swig_obj[0] = args;
21672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21675 }
21676 arg1 = reinterpret_cast< wxDC * >(argp1);
21677 {
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 resultobj = SWIG_Py_Void();
21684 if (SWIG_IsTmpObj(res2)) {
21685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21686 } else {
21687 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21689 }
21690 if (SWIG_IsTmpObj(res3)) {
21691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21692 } else {
21693 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21695 }
21696 return resultobj;
21697fail:
21698 return NULL;
21699}
21700
21701
21702SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21703 PyObject *resultobj = 0;
21704 wxDC *arg1 = (wxDC *) 0 ;
21705 int arg2 ;
21706 int result;
21707 void *argp1 = 0 ;
21708 int res1 = 0 ;
21709 int val2 ;
21710 int ecode2 = 0 ;
21711 PyObject * obj0 = 0 ;
21712 PyObject * obj1 = 0 ;
21713 char * kwnames[] = {
21714 (char *) "self",(char *) "x", NULL
21715 };
21716
21717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21719 if (!SWIG_IsOK(res1)) {
21720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21721 }
21722 arg1 = reinterpret_cast< wxDC * >(argp1);
21723 ecode2 = SWIG_AsVal_int(obj1, &val2);
21724 if (!SWIG_IsOK(ecode2)) {
21725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21726 }
21727 arg2 = static_cast< int >(val2);
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_From_int(static_cast< int >(result));
21735 return resultobj;
21736fail:
21737 return NULL;
21738}
21739
21740
21741SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21742 PyObject *resultobj = 0;
21743 wxDC *arg1 = (wxDC *) 0 ;
21744 int arg2 ;
21745 int result;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 int val2 ;
21749 int ecode2 = 0 ;
21750 PyObject * obj0 = 0 ;
21751 PyObject * obj1 = 0 ;
21752 char * kwnames[] = {
21753 (char *) "self",(char *) "y", NULL
21754 };
21755
21756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21758 if (!SWIG_IsOK(res1)) {
21759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21760 }
21761 arg1 = reinterpret_cast< wxDC * >(argp1);
21762 ecode2 = SWIG_AsVal_int(obj1, &val2);
21763 if (!SWIG_IsOK(ecode2)) {
21764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21765 }
21766 arg2 = static_cast< int >(val2);
21767 {
21768 PyThreadState* __tstate = wxPyBeginAllowThreads();
21769 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21770 wxPyEndAllowThreads(__tstate);
21771 if (PyErr_Occurred()) SWIG_fail;
21772 }
21773 resultobj = SWIG_From_int(static_cast< int >(result));
21774 return resultobj;
21775fail:
21776 return NULL;
21777}
21778
21779
21780SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21781 PyObject *resultobj = 0;
21782 wxDC *arg1 = (wxDC *) 0 ;
21783 int arg2 ;
21784 int result;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 int val2 ;
21788 int ecode2 = 0 ;
21789 PyObject * obj0 = 0 ;
21790 PyObject * obj1 = 0 ;
21791 char * kwnames[] = {
21792 (char *) "self",(char *) "x", NULL
21793 };
21794
21795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21797 if (!SWIG_IsOK(res1)) {
21798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21799 }
21800 arg1 = reinterpret_cast< wxDC * >(argp1);
21801 ecode2 = SWIG_AsVal_int(obj1, &val2);
21802 if (!SWIG_IsOK(ecode2)) {
21803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21804 }
21805 arg2 = static_cast< int >(val2);
21806 {
21807 PyThreadState* __tstate = wxPyBeginAllowThreads();
21808 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21809 wxPyEndAllowThreads(__tstate);
21810 if (PyErr_Occurred()) SWIG_fail;
21811 }
21812 resultobj = SWIG_From_int(static_cast< int >(result));
21813 return resultobj;
21814fail:
21815 return NULL;
21816}
21817
21818
21819SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj = 0;
21821 wxDC *arg1 = (wxDC *) 0 ;
21822 int arg2 ;
21823 int result;
21824 void *argp1 = 0 ;
21825 int res1 = 0 ;
21826 int val2 ;
21827 int ecode2 = 0 ;
21828 PyObject * obj0 = 0 ;
21829 PyObject * obj1 = 0 ;
21830 char * kwnames[] = {
21831 (char *) "self",(char *) "y", NULL
21832 };
21833
21834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21836 if (!SWIG_IsOK(res1)) {
21837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21838 }
21839 arg1 = reinterpret_cast< wxDC * >(argp1);
21840 ecode2 = SWIG_AsVal_int(obj1, &val2);
21841 if (!SWIG_IsOK(ecode2)) {
21842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21843 }
21844 arg2 = static_cast< int >(val2);
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 resultobj = SWIG_From_int(static_cast< int >(result));
21852 return resultobj;
21853fail:
21854 return NULL;
21855}
21856
21857
21858SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21859 PyObject *resultobj = 0;
21860 wxDC *arg1 = (wxDC *) 0 ;
21861 int arg2 ;
21862 int result;
21863 void *argp1 = 0 ;
21864 int res1 = 0 ;
21865 int val2 ;
21866 int ecode2 = 0 ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 char * kwnames[] = {
21870 (char *) "self",(char *) "x", NULL
21871 };
21872
21873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21877 }
21878 arg1 = reinterpret_cast< wxDC * >(argp1);
21879 ecode2 = SWIG_AsVal_int(obj1, &val2);
21880 if (!SWIG_IsOK(ecode2)) {
21881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21882 }
21883 arg2 = static_cast< int >(val2);
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_From_int(static_cast< int >(result));
21891 return resultobj;
21892fail:
21893 return NULL;
21894}
21895
21896
21897SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj = 0;
21899 wxDC *arg1 = (wxDC *) 0 ;
21900 int arg2 ;
21901 int result;
21902 void *argp1 = 0 ;
21903 int res1 = 0 ;
21904 int val2 ;
21905 int ecode2 = 0 ;
21906 PyObject * obj0 = 0 ;
21907 PyObject * obj1 = 0 ;
21908 char * kwnames[] = {
21909 (char *) "self",(char *) "y", NULL
21910 };
21911
21912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21914 if (!SWIG_IsOK(res1)) {
21915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21916 }
21917 arg1 = reinterpret_cast< wxDC * >(argp1);
21918 ecode2 = SWIG_AsVal_int(obj1, &val2);
21919 if (!SWIG_IsOK(ecode2)) {
21920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21921 }
21922 arg2 = static_cast< int >(val2);
21923 {
21924 PyThreadState* __tstate = wxPyBeginAllowThreads();
21925 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 resultobj = SWIG_From_int(static_cast< int >(result));
21930 return resultobj;
21931fail:
21932 return NULL;
21933}
21934
21935
21936SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21937 PyObject *resultobj = 0;
21938 wxDC *arg1 = (wxDC *) 0 ;
21939 int arg2 ;
21940 int result;
21941 void *argp1 = 0 ;
21942 int res1 = 0 ;
21943 int val2 ;
21944 int ecode2 = 0 ;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 char * kwnames[] = {
21948 (char *) "self",(char *) "x", NULL
21949 };
21950
21951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21953 if (!SWIG_IsOK(res1)) {
21954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21955 }
21956 arg1 = reinterpret_cast< wxDC * >(argp1);
21957 ecode2 = SWIG_AsVal_int(obj1, &val2);
21958 if (!SWIG_IsOK(ecode2)) {
21959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21960 }
21961 arg2 = static_cast< int >(val2);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_From_int(static_cast< int >(result));
21969 return resultobj;
21970fail:
21971 return NULL;
21972}
21973
21974
21975SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21976 PyObject *resultobj = 0;
21977 wxDC *arg1 = (wxDC *) 0 ;
21978 int arg2 ;
21979 int result;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 int val2 ;
21983 int ecode2 = 0 ;
21984 PyObject * obj0 = 0 ;
21985 PyObject * obj1 = 0 ;
21986 char * kwnames[] = {
21987 (char *) "self",(char *) "y", NULL
21988 };
21989
21990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21992 if (!SWIG_IsOK(res1)) {
21993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21994 }
21995 arg1 = reinterpret_cast< wxDC * >(argp1);
21996 ecode2 = SWIG_AsVal_int(obj1, &val2);
21997 if (!SWIG_IsOK(ecode2)) {
21998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21999 }
22000 arg2 = static_cast< int >(val2);
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_From_int(static_cast< int >(result));
22008 return resultobj;
22009fail:
22010 return NULL;
22011}
22012
22013
22014SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22015 PyObject *resultobj = 0;
22016 wxDC *arg1 = (wxDC *) 0 ;
22017 bool result;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 PyObject *swig_obj[1] ;
22021
22022 if (!args) SWIG_fail;
22023 swig_obj[0] = args;
22024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22025 if (!SWIG_IsOK(res1)) {
22026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22027 }
22028 arg1 = reinterpret_cast< wxDC * >(argp1);
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22032 wxPyEndAllowThreads(__tstate);
22033 if (PyErr_Occurred()) SWIG_fail;
22034 }
22035 {
22036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22037 }
22038 return resultobj;
22039fail:
22040 return NULL;
22041}
22042
22043
22044SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22045 PyObject *resultobj = 0;
22046 wxDC *arg1 = (wxDC *) 0 ;
22047 bool result;
22048 void *argp1 = 0 ;
22049 int res1 = 0 ;
22050 PyObject *swig_obj[1] ;
22051
22052 if (!args) SWIG_fail;
22053 swig_obj[0] = args;
22054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22055 if (!SWIG_IsOK(res1)) {
22056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22057 }
22058 arg1 = reinterpret_cast< wxDC * >(argp1);
22059 {
22060 PyThreadState* __tstate = wxPyBeginAllowThreads();
22061 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22062 wxPyEndAllowThreads(__tstate);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 }
22065 {
22066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22067 }
22068 return resultobj;
22069fail:
22070 return NULL;
22071}
22072
22073
22074SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22075 PyObject *resultobj = 0;
22076 wxDC *arg1 = (wxDC *) 0 ;
22077 int result;
22078 void *argp1 = 0 ;
22079 int res1 = 0 ;
22080 PyObject *swig_obj[1] ;
22081
22082 if (!args) SWIG_fail;
22083 swig_obj[0] = args;
22084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22085 if (!SWIG_IsOK(res1)) {
22086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22087 }
22088 arg1 = reinterpret_cast< wxDC * >(argp1);
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 result = (int)((wxDC const *)arg1)->GetDepth();
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_From_int(static_cast< int >(result));
22096 return resultobj;
22097fail:
22098 return NULL;
22099}
22100
22101
22102SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22103 PyObject *resultobj = 0;
22104 wxDC *arg1 = (wxDC *) 0 ;
22105 wxSize result;
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 PyObject *swig_obj[1] ;
22109
22110 if (!args) SWIG_fail;
22111 swig_obj[0] = args;
22112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22115 }
22116 arg1 = reinterpret_cast< wxDC * >(argp1);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = ((wxDC const *)arg1)->GetPPI();
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22124 return resultobj;
22125fail:
22126 return NULL;
22127}
22128
22129
b39fe951 22130SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22131 PyObject *resultobj = 0;
22132 wxDC *arg1 = (wxDC *) 0 ;
22133 bool result;
22134 void *argp1 = 0 ;
22135 int res1 = 0 ;
22136 PyObject *swig_obj[1] ;
22137
22138 if (!args) SWIG_fail;
22139 swig_obj[0] = args;
22140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22141 if (!SWIG_IsOK(res1)) {
b39fe951 22142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22143 }
22144 arg1 = reinterpret_cast< wxDC * >(argp1);
22145 {
22146 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22147 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 {
22152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22153 }
22154 return resultobj;
22155fail:
22156 return NULL;
22157}
22158
22159
22160SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22161 PyObject *resultobj = 0;
22162 wxDC *arg1 = (wxDC *) 0 ;
22163 int result;
22164 void *argp1 = 0 ;
22165 int res1 = 0 ;
22166 PyObject *swig_obj[1] ;
22167
22168 if (!args) SWIG_fail;
22169 swig_obj[0] = args;
22170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22173 }
22174 arg1 = reinterpret_cast< wxDC * >(argp1);
22175 {
22176 PyThreadState* __tstate = wxPyBeginAllowThreads();
22177 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22178 wxPyEndAllowThreads(__tstate);
22179 if (PyErr_Occurred()) SWIG_fail;
22180 }
22181 resultobj = SWIG_From_int(static_cast< int >(result));
22182 return resultobj;
22183fail:
22184 return NULL;
22185}
22186
22187
22188SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22189 PyObject *resultobj = 0;
22190 wxDC *arg1 = (wxDC *) 0 ;
22191 wxBrush *result = 0 ;
22192 void *argp1 = 0 ;
22193 int res1 = 0 ;
22194 PyObject *swig_obj[1] ;
22195
22196 if (!args) SWIG_fail;
22197 swig_obj[0] = args;
22198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22199 if (!SWIG_IsOK(res1)) {
22200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22201 }
22202 arg1 = reinterpret_cast< wxDC * >(argp1);
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22205 {
554f62e9
RD
22206 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22207 result = (wxBrush *) &_result_ref;
093d3ff1 22208 }
554f62e9
RD
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 {
22213 wxBrush* resultptr = new wxBrush(*result);
22214 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22215 }
22216 return resultobj;
22217fail:
22218 return NULL;
22219}
22220
22221
22222SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxDC *arg1 = (wxDC *) 0 ;
22225 wxBrush *result = 0 ;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 PyObject *swig_obj[1] ;
22229
22230 if (!args) SWIG_fail;
22231 swig_obj[0] = args;
22232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22235 }
22236 arg1 = reinterpret_cast< wxDC * >(argp1);
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22239 {
554f62e9
RD
22240 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22241 result = (wxBrush *) &_result_ref;
093d3ff1 22242 }
554f62e9
RD
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 {
22247 wxBrush* resultptr = new wxBrush(*result);
22248 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22249 }
22250 return resultobj;
22251fail:
22252 return NULL;
22253}
22254
22255
22256SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22257 PyObject *resultobj = 0;
22258 wxDC *arg1 = (wxDC *) 0 ;
22259 wxFont *result = 0 ;
22260 void *argp1 = 0 ;
22261 int res1 = 0 ;
22262 PyObject *swig_obj[1] ;
22263
22264 if (!args) SWIG_fail;
22265 swig_obj[0] = args;
22266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22267 if (!SWIG_IsOK(res1)) {
22268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22269 }
22270 arg1 = reinterpret_cast< wxDC * >(argp1);
22271 {
22272 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22273 {
554f62e9
RD
22274 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22275 result = (wxFont *) &_result_ref;
093d3ff1 22276 }
554f62e9
RD
22277 wxPyEndAllowThreads(__tstate);
22278 if (PyErr_Occurred()) SWIG_fail;
22279 }
22280 {
22281 wxFont* resultptr = new wxFont(*result);
22282 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22283 }
22284 return resultobj;
22285fail:
22286 return NULL;
22287}
22288
22289
22290SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22291 PyObject *resultobj = 0;
22292 wxDC *arg1 = (wxDC *) 0 ;
22293 wxPen *result = 0 ;
22294 void *argp1 = 0 ;
22295 int res1 = 0 ;
22296 PyObject *swig_obj[1] ;
22297
22298 if (!args) SWIG_fail;
22299 swig_obj[0] = args;
22300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22301 if (!SWIG_IsOK(res1)) {
22302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22303 }
22304 arg1 = reinterpret_cast< wxDC * >(argp1);
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22307 {
554f62e9
RD
22308 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22309 result = (wxPen *) &_result_ref;
093d3ff1 22310 }
554f62e9
RD
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 {
22315 wxPen* resultptr = new wxPen(*result);
22316 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22317 }
22318 return resultobj;
22319fail:
22320 return NULL;
22321}
22322
22323
22324SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22325 PyObject *resultobj = 0;
22326 wxDC *arg1 = (wxDC *) 0 ;
22327 wxColour *result = 0 ;
22328 void *argp1 = 0 ;
22329 int res1 = 0 ;
22330 PyObject *swig_obj[1] ;
22331
22332 if (!args) SWIG_fail;
22333 swig_obj[0] = args;
22334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22335 if (!SWIG_IsOK(res1)) {
22336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22337 }
22338 arg1 = reinterpret_cast< wxDC * >(argp1);
22339 {
22340 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22341 {
554f62e9
RD
22342 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22343 result = (wxColour *) &_result_ref;
093d3ff1 22344 }
554f62e9
RD
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22349 return resultobj;
22350fail:
22351 return NULL;
22352}
22353
22354
22355SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22356 PyObject *resultobj = 0;
22357 wxDC *arg1 = (wxDC *) 0 ;
22358 wxColour *result = 0 ;
22359 void *argp1 = 0 ;
22360 int res1 = 0 ;
22361 PyObject *swig_obj[1] ;
22362
22363 if (!args) SWIG_fail;
22364 swig_obj[0] = args;
22365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22366 if (!SWIG_IsOK(res1)) {
22367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22368 }
22369 arg1 = reinterpret_cast< wxDC * >(argp1);
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22372 {
554f62e9
RD
22373 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22374 result = (wxColour *) &_result_ref;
093d3ff1 22375 }
554f62e9
RD
22376 wxPyEndAllowThreads(__tstate);
22377 if (PyErr_Occurred()) SWIG_fail;
22378 }
22379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22380 return resultobj;
22381fail:
22382 return NULL;
22383}
22384
22385
22386SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj = 0;
22388 wxDC *arg1 = (wxDC *) 0 ;
22389 wxColour *arg2 = 0 ;
22390 void *argp1 = 0 ;
22391 int res1 = 0 ;
22392 wxColour temp2 ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char * kwnames[] = {
22396 (char *) "self",(char *) "colour", NULL
22397 };
22398
22399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22401 if (!SWIG_IsOK(res1)) {
22402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22403 }
22404 arg1 = reinterpret_cast< wxDC * >(argp1);
22405 {
22406 arg2 = &temp2;
22407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22408 }
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 (arg1)->SetTextForeground((wxColour const &)*arg2);
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 resultobj = SWIG_Py_Void();
22416 return resultobj;
22417fail:
22418 return NULL;
22419}
22420
22421
22422SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22423 PyObject *resultobj = 0;
22424 wxDC *arg1 = (wxDC *) 0 ;
22425 wxColour *arg2 = 0 ;
22426 void *argp1 = 0 ;
22427 int res1 = 0 ;
22428 wxColour temp2 ;
22429 PyObject * obj0 = 0 ;
22430 PyObject * obj1 = 0 ;
22431 char * kwnames[] = {
22432 (char *) "self",(char *) "colour", NULL
22433 };
22434
22435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22437 if (!SWIG_IsOK(res1)) {
22438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22439 }
22440 arg1 = reinterpret_cast< wxDC * >(argp1);
22441 {
22442 arg2 = &temp2;
22443 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22444 }
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 (arg1)->SetTextBackground((wxColour const &)*arg2);
22448 wxPyEndAllowThreads(__tstate);
22449 if (PyErr_Occurred()) SWIG_fail;
22450 }
22451 resultobj = SWIG_Py_Void();
22452 return resultobj;
22453fail:
22454 return NULL;
22455}
22456
22457
22458SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22459 PyObject *resultobj = 0;
22460 wxDC *arg1 = (wxDC *) 0 ;
22461 int result;
22462 void *argp1 = 0 ;
22463 int res1 = 0 ;
22464 PyObject *swig_obj[1] ;
22465
22466 if (!args) SWIG_fail;
22467 swig_obj[0] = args;
22468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22469 if (!SWIG_IsOK(res1)) {
22470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22471 }
22472 arg1 = reinterpret_cast< wxDC * >(argp1);
22473 {
22474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22475 result = (int)((wxDC const *)arg1)->GetMapMode();
22476 wxPyEndAllowThreads(__tstate);
22477 if (PyErr_Occurred()) SWIG_fail;
22478 }
22479 resultobj = SWIG_From_int(static_cast< int >(result));
22480 return resultobj;
22481fail:
22482 return NULL;
22483}
22484
22485
22486SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22487 PyObject *resultobj = 0;
22488 wxDC *arg1 = (wxDC *) 0 ;
22489 int arg2 ;
22490 void *argp1 = 0 ;
22491 int res1 = 0 ;
22492 int val2 ;
22493 int ecode2 = 0 ;
22494 PyObject * obj0 = 0 ;
22495 PyObject * obj1 = 0 ;
22496 char * kwnames[] = {
22497 (char *) "self",(char *) "mode", NULL
22498 };
22499
22500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22502 if (!SWIG_IsOK(res1)) {
22503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22504 }
22505 arg1 = reinterpret_cast< wxDC * >(argp1);
22506 ecode2 = SWIG_AsVal_int(obj1, &val2);
22507 if (!SWIG_IsOK(ecode2)) {
22508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22509 }
22510 arg2 = static_cast< int >(val2);
22511 {
22512 PyThreadState* __tstate = wxPyBeginAllowThreads();
22513 (arg1)->SetMapMode(arg2);
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 resultobj = SWIG_Py_Void();
22518 return resultobj;
22519fail:
22520 return NULL;
22521}
22522
22523
22524SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22525 PyObject *resultobj = 0;
22526 wxDC *arg1 = (wxDC *) 0 ;
22527 double *arg2 = (double *) 0 ;
22528 double *arg3 = (double *) 0 ;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 double temp2 ;
22532 int res2 = SWIG_TMPOBJ ;
22533 double temp3 ;
22534 int res3 = SWIG_TMPOBJ ;
22535 PyObject *swig_obj[1] ;
22536
22537 arg2 = &temp2;
22538 arg3 = &temp3;
22539 if (!args) SWIG_fail;
22540 swig_obj[0] = args;
22541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22542 if (!SWIG_IsOK(res1)) {
22543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22544 }
22545 arg1 = reinterpret_cast< wxDC * >(argp1);
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_Py_Void();
22553 if (SWIG_IsTmpObj(res2)) {
22554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22555 } else {
22556 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22558 }
22559 if (SWIG_IsTmpObj(res3)) {
22560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22561 } else {
22562 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22564 }
22565 return resultobj;
22566fail:
22567 return NULL;
22568}
22569
22570
22571SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22572 PyObject *resultobj = 0;
22573 wxDC *arg1 = (wxDC *) 0 ;
22574 double arg2 ;
22575 double arg3 ;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 double val2 ;
22579 int ecode2 = 0 ;
22580 double val3 ;
22581 int ecode3 = 0 ;
22582 PyObject * obj0 = 0 ;
22583 PyObject * obj1 = 0 ;
22584 PyObject * obj2 = 0 ;
22585 char * kwnames[] = {
22586 (char *) "self",(char *) "x",(char *) "y", NULL
22587 };
22588
22589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22593 }
22594 arg1 = reinterpret_cast< wxDC * >(argp1);
22595 ecode2 = SWIG_AsVal_double(obj1, &val2);
22596 if (!SWIG_IsOK(ecode2)) {
22597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22598 }
22599 arg2 = static_cast< double >(val2);
22600 ecode3 = SWIG_AsVal_double(obj2, &val3);
22601 if (!SWIG_IsOK(ecode3)) {
22602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22603 }
22604 arg3 = static_cast< double >(val3);
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 (arg1)->SetUserScale(arg2,arg3);
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 resultobj = SWIG_Py_Void();
22612 return resultobj;
22613fail:
22614 return NULL;
22615}
22616
22617
22618SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22619 PyObject *resultobj = 0;
22620 wxDC *arg1 = (wxDC *) 0 ;
22621 double *arg2 = (double *) 0 ;
22622 double *arg3 = (double *) 0 ;
22623 void *argp1 = 0 ;
22624 int res1 = 0 ;
22625 double temp2 ;
22626 int res2 = SWIG_TMPOBJ ;
22627 double temp3 ;
22628 int res3 = SWIG_TMPOBJ ;
22629 PyObject *swig_obj[1] ;
22630
22631 arg2 = &temp2;
22632 arg3 = &temp3;
22633 if (!args) SWIG_fail;
22634 swig_obj[0] = args;
22635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22638 }
22639 arg1 = reinterpret_cast< wxDC * >(argp1);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 (arg1)->GetLogicalScale(arg2,arg3);
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 resultobj = SWIG_Py_Void();
22647 if (SWIG_IsTmpObj(res2)) {
22648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22649 } else {
22650 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22652 }
22653 if (SWIG_IsTmpObj(res3)) {
22654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22655 } else {
22656 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22658 }
22659 return resultobj;
22660fail:
22661 return NULL;
22662}
22663
22664
22665SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22666 PyObject *resultobj = 0;
22667 wxDC *arg1 = (wxDC *) 0 ;
22668 double arg2 ;
22669 double arg3 ;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 double val2 ;
22673 int ecode2 = 0 ;
22674 double val3 ;
22675 int ecode3 = 0 ;
22676 PyObject * obj0 = 0 ;
22677 PyObject * obj1 = 0 ;
22678 PyObject * obj2 = 0 ;
22679 char * kwnames[] = {
22680 (char *) "self",(char *) "x",(char *) "y", NULL
22681 };
22682
22683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22685 if (!SWIG_IsOK(res1)) {
22686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22687 }
22688 arg1 = reinterpret_cast< wxDC * >(argp1);
22689 ecode2 = SWIG_AsVal_double(obj1, &val2);
22690 if (!SWIG_IsOK(ecode2)) {
22691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22692 }
22693 arg2 = static_cast< double >(val2);
22694 ecode3 = SWIG_AsVal_double(obj2, &val3);
22695 if (!SWIG_IsOK(ecode3)) {
22696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22697 }
22698 arg3 = static_cast< double >(val3);
22699 {
22700 PyThreadState* __tstate = wxPyBeginAllowThreads();
22701 (arg1)->SetLogicalScale(arg2,arg3);
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_Py_Void();
22706 return resultobj;
22707fail:
22708 return NULL;
22709}
22710
22711
22712SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxDC *arg1 = (wxDC *) 0 ;
22715 wxPoint result;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 PyObject *swig_obj[1] ;
22719
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22725 }
22726 arg1 = reinterpret_cast< wxDC * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22734 return resultobj;
22735fail:
22736 return NULL;
22737}
22738
22739
22740SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22741 PyObject *resultobj = 0;
22742 wxDC *arg1 = (wxDC *) 0 ;
22743 int *arg2 = (int *) 0 ;
22744 int *arg3 = (int *) 0 ;
22745 void *argp1 = 0 ;
22746 int res1 = 0 ;
22747 int temp2 ;
22748 int res2 = SWIG_TMPOBJ ;
22749 int temp3 ;
22750 int res3 = SWIG_TMPOBJ ;
22751 PyObject *swig_obj[1] ;
22752
22753 arg2 = &temp2;
22754 arg3 = &temp3;
22755 if (!args) SWIG_fail;
22756 swig_obj[0] = args;
22757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22758 if (!SWIG_IsOK(res1)) {
22759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22760 }
22761 arg1 = reinterpret_cast< wxDC * >(argp1);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = SWIG_Py_Void();
22769 if (SWIG_IsTmpObj(res2)) {
22770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22771 } else {
22772 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22773 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22774 }
22775 if (SWIG_IsTmpObj(res3)) {
22776 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22777 } else {
22778 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22779 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22780 }
22781 return resultobj;
22782fail:
22783 return NULL;
22784}
22785
22786
22787SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22788 PyObject *resultobj = 0;
22789 wxDC *arg1 = (wxDC *) 0 ;
22790 int arg2 ;
22791 int arg3 ;
22792 void *argp1 = 0 ;
22793 int res1 = 0 ;
22794 int val2 ;
22795 int ecode2 = 0 ;
22796 int val3 ;
22797 int ecode3 = 0 ;
22798 PyObject * obj0 = 0 ;
22799 PyObject * obj1 = 0 ;
22800 PyObject * obj2 = 0 ;
22801 char * kwnames[] = {
22802 (char *) "self",(char *) "x",(char *) "y", NULL
22803 };
22804
22805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22807 if (!SWIG_IsOK(res1)) {
22808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22809 }
22810 arg1 = reinterpret_cast< wxDC * >(argp1);
22811 ecode2 = SWIG_AsVal_int(obj1, &val2);
22812 if (!SWIG_IsOK(ecode2)) {
22813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22814 }
22815 arg2 = static_cast< int >(val2);
22816 ecode3 = SWIG_AsVal_int(obj2, &val3);
22817 if (!SWIG_IsOK(ecode3)) {
22818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22819 }
22820 arg3 = static_cast< int >(val3);
22821 {
22822 PyThreadState* __tstate = wxPyBeginAllowThreads();
22823 (arg1)->SetLogicalOrigin(arg2,arg3);
22824 wxPyEndAllowThreads(__tstate);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 }
22827 resultobj = SWIG_Py_Void();
22828 return resultobj;
22829fail:
22830 return NULL;
22831}
22832
22833
22834SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22835 PyObject *resultobj = 0;
22836 wxDC *arg1 = (wxDC *) 0 ;
22837 wxPoint *arg2 = 0 ;
22838 void *argp1 = 0 ;
22839 int res1 = 0 ;
22840 wxPoint temp2 ;
22841 PyObject * obj0 = 0 ;
22842 PyObject * obj1 = 0 ;
22843 char * kwnames[] = {
22844 (char *) "self",(char *) "point", NULL
22845 };
22846
22847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22849 if (!SWIG_IsOK(res1)) {
22850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22851 }
22852 arg1 = reinterpret_cast< wxDC * >(argp1);
22853 {
22854 arg2 = &temp2;
22855 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22856 }
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_Py_Void();
22864 return resultobj;
22865fail:
22866 return NULL;
22867}
22868
22869
22870SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22871 PyObject *resultobj = 0;
22872 wxDC *arg1 = (wxDC *) 0 ;
22873 wxPoint result;
22874 void *argp1 = 0 ;
22875 int res1 = 0 ;
22876 PyObject *swig_obj[1] ;
22877
22878 if (!args) SWIG_fail;
22879 swig_obj[0] = args;
22880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22881 if (!SWIG_IsOK(res1)) {
22882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22883 }
22884 arg1 = reinterpret_cast< wxDC * >(argp1);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22892 return resultobj;
22893fail:
22894 return NULL;
22895}
22896
22897
22898SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 int *arg2 = (int *) 0 ;
22902 int *arg3 = (int *) 0 ;
22903 void *argp1 = 0 ;
22904 int res1 = 0 ;
22905 int temp2 ;
22906 int res2 = SWIG_TMPOBJ ;
22907 int temp3 ;
22908 int res3 = SWIG_TMPOBJ ;
22909 PyObject *swig_obj[1] ;
22910
22911 arg2 = &temp2;
22912 arg3 = &temp3;
22913 if (!args) SWIG_fail;
22914 swig_obj[0] = args;
22915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22918 }
22919 arg1 = reinterpret_cast< wxDC * >(argp1);
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_Py_Void();
22927 if (SWIG_IsTmpObj(res2)) {
22928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22929 } else {
22930 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22932 }
22933 if (SWIG_IsTmpObj(res3)) {
22934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22935 } else {
22936 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22938 }
22939 return resultobj;
22940fail:
22941 return NULL;
22942}
22943
22944
22945SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22946 PyObject *resultobj = 0;
22947 wxDC *arg1 = (wxDC *) 0 ;
22948 int arg2 ;
22949 int arg3 ;
22950 void *argp1 = 0 ;
22951 int res1 = 0 ;
22952 int val2 ;
22953 int ecode2 = 0 ;
22954 int val3 ;
22955 int ecode3 = 0 ;
22956 PyObject * obj0 = 0 ;
22957 PyObject * obj1 = 0 ;
22958 PyObject * obj2 = 0 ;
22959 char * kwnames[] = {
22960 (char *) "self",(char *) "x",(char *) "y", NULL
22961 };
22962
22963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22967 }
22968 arg1 = reinterpret_cast< wxDC * >(argp1);
22969 ecode2 = SWIG_AsVal_int(obj1, &val2);
22970 if (!SWIG_IsOK(ecode2)) {
22971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22972 }
22973 arg2 = static_cast< int >(val2);
22974 ecode3 = SWIG_AsVal_int(obj2, &val3);
22975 if (!SWIG_IsOK(ecode3)) {
22976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22977 }
22978 arg3 = static_cast< int >(val3);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->SetDeviceOrigin(arg2,arg3);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987fail:
22988 return NULL;
22989}
22990
22991
22992SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj = 0;
22994 wxDC *arg1 = (wxDC *) 0 ;
22995 wxPoint *arg2 = 0 ;
22996 void *argp1 = 0 ;
22997 int res1 = 0 ;
22998 wxPoint temp2 ;
22999 PyObject * obj0 = 0 ;
23000 PyObject * obj1 = 0 ;
23001 char * kwnames[] = {
23002 (char *) "self",(char *) "point", NULL
23003 };
23004
23005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23007 if (!SWIG_IsOK(res1)) {
23008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23009 }
23010 arg1 = reinterpret_cast< wxDC * >(argp1);
23011 {
23012 arg2 = &temp2;
23013 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23014 }
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23018 wxPyEndAllowThreads(__tstate);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 }
23021 resultobj = SWIG_Py_Void();
23022 return resultobj;
23023fail:
23024 return NULL;
23025}
23026
23027
23028SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23029 PyObject *resultobj = 0;
23030 wxDC *arg1 = (wxDC *) 0 ;
23031 bool arg2 ;
23032 bool arg3 ;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 bool val2 ;
23036 int ecode2 = 0 ;
23037 bool val3 ;
23038 int ecode3 = 0 ;
23039 PyObject * obj0 = 0 ;
23040 PyObject * obj1 = 0 ;
23041 PyObject * obj2 = 0 ;
23042 char * kwnames[] = {
23043 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23044 };
23045
23046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23050 }
23051 arg1 = reinterpret_cast< wxDC * >(argp1);
23052 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23053 if (!SWIG_IsOK(ecode2)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23055 }
23056 arg2 = static_cast< bool >(val2);
23057 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23058 if (!SWIG_IsOK(ecode3)) {
23059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23060 }
23061 arg3 = static_cast< bool >(val3);
23062 {
23063 PyThreadState* __tstate = wxPyBeginAllowThreads();
23064 (arg1)->SetAxisOrientation(arg2,arg3);
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 resultobj = SWIG_Py_Void();
23069 return resultobj;
23070fail:
23071 return NULL;
23072}
23073
23074
23075SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23076 PyObject *resultobj = 0;
23077 wxDC *arg1 = (wxDC *) 0 ;
23078 int result;
23079 void *argp1 = 0 ;
23080 int res1 = 0 ;
23081 PyObject *swig_obj[1] ;
23082
23083 if (!args) SWIG_fail;
23084 swig_obj[0] = args;
23085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23086 if (!SWIG_IsOK(res1)) {
23087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23088 }
23089 arg1 = reinterpret_cast< wxDC * >(argp1);
23090 {
23091 PyThreadState* __tstate = wxPyBeginAllowThreads();
23092 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23093 wxPyEndAllowThreads(__tstate);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 }
23096 resultobj = SWIG_From_int(static_cast< int >(result));
23097 return resultobj;
23098fail:
23099 return NULL;
23100}
23101
23102
23103SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23104 PyObject *resultobj = 0;
23105 wxDC *arg1 = (wxDC *) 0 ;
23106 int arg2 ;
23107 void *argp1 = 0 ;
23108 int res1 = 0 ;
23109 int val2 ;
23110 int ecode2 = 0 ;
23111 PyObject * obj0 = 0 ;
23112 PyObject * obj1 = 0 ;
23113 char * kwnames[] = {
23114 (char *) "self",(char *) "function", NULL
23115 };
23116
23117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23121 }
23122 arg1 = reinterpret_cast< wxDC * >(argp1);
23123 ecode2 = SWIG_AsVal_int(obj1, &val2);
23124 if (!SWIG_IsOK(ecode2)) {
23125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23126 }
23127 arg2 = static_cast< int >(val2);
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 (arg1)->SetLogicalFunction(arg2);
23131 wxPyEndAllowThreads(__tstate);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 }
23134 resultobj = SWIG_Py_Void();
23135 return resultobj;
23136fail:
23137 return NULL;
23138}
23139
23140
23141SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23142 PyObject *resultobj = 0;
23143 wxDC *arg1 = (wxDC *) 0 ;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 PyObject *swig_obj[1] ;
23147
23148 if (!args) SWIG_fail;
23149 swig_obj[0] = args;
23150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 (arg1)->ComputeScaleAndOrigin();
23158 wxPyEndAllowThreads(__tstate);
23159 if (PyErr_Occurred()) SWIG_fail;
23160 }
23161 resultobj = SWIG_Py_Void();
23162 return resultobj;
23163fail:
23164 return NULL;
23165}
23166
23167
23168SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23169 PyObject *resultobj = 0;
23170 wxDC *arg1 = (wxDC *) 0 ;
23171 int arg2 ;
23172 int arg3 ;
23173 void *argp1 = 0 ;
23174 int res1 = 0 ;
23175 int val2 ;
23176 int ecode2 = 0 ;
23177 int val3 ;
23178 int ecode3 = 0 ;
23179 PyObject * obj0 = 0 ;
23180 PyObject * obj1 = 0 ;
23181 PyObject * obj2 = 0 ;
23182 char * kwnames[] = {
23183 (char *) "self",(char *) "x",(char *) "y", NULL
23184 };
23185
23186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23188 if (!SWIG_IsOK(res1)) {
23189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23190 }
23191 arg1 = reinterpret_cast< wxDC * >(argp1);
23192 ecode2 = SWIG_AsVal_int(obj1, &val2);
23193 if (!SWIG_IsOK(ecode2)) {
23194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23195 }
23196 arg2 = static_cast< int >(val2);
23197 ecode3 = SWIG_AsVal_int(obj2, &val3);
23198 if (!SWIG_IsOK(ecode3)) {
23199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23200 }
23201 arg3 = static_cast< int >(val3);
23202 {
23203 PyThreadState* __tstate = wxPyBeginAllowThreads();
23204 (arg1)->CalcBoundingBox(arg2,arg3);
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 resultobj = SWIG_Py_Void();
23209 return resultobj;
23210fail:
23211 return NULL;
23212}
23213
23214
23215SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj = 0;
23217 wxDC *arg1 = (wxDC *) 0 ;
23218 wxPoint *arg2 = 0 ;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 wxPoint temp2 ;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char * kwnames[] = {
23225 (char *) "self",(char *) "point", NULL
23226 };
23227
23228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23230 if (!SWIG_IsOK(res1)) {
23231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23232 }
23233 arg1 = reinterpret_cast< wxDC * >(argp1);
23234 {
23235 arg2 = &temp2;
23236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23237 }
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 resultobj = SWIG_Py_Void();
23245 return resultobj;
23246fail:
23247 return NULL;
23248}
23249
23250
23251SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23252 PyObject *resultobj = 0;
23253 wxDC *arg1 = (wxDC *) 0 ;
23254 void *argp1 = 0 ;
23255 int res1 = 0 ;
23256 PyObject *swig_obj[1] ;
23257
23258 if (!args) SWIG_fail;
23259 swig_obj[0] = args;
23260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23261 if (!SWIG_IsOK(res1)) {
23262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23263 }
23264 arg1 = reinterpret_cast< wxDC * >(argp1);
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 (arg1)->ResetBoundingBox();
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_MinX(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_MinX" "', 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)->MinX();
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_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23307 PyObject *resultobj = 0;
23308 wxDC *arg1 = (wxDC *) 0 ;
23309 int result;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 PyObject *swig_obj[1] ;
23313
23314 if (!args) SWIG_fail;
23315 swig_obj[0] = args;
23316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23317 if (!SWIG_IsOK(res1)) {
23318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23319 }
23320 arg1 = reinterpret_cast< wxDC * >(argp1);
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 result = (int)((wxDC const *)arg1)->MaxX();
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_From_int(static_cast< int >(result));
23328 return resultobj;
23329fail:
23330 return NULL;
23331}
23332
23333
23334SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23335 PyObject *resultobj = 0;
23336 wxDC *arg1 = (wxDC *) 0 ;
23337 int result;
23338 void *argp1 = 0 ;
23339 int res1 = 0 ;
23340 PyObject *swig_obj[1] ;
23341
23342 if (!args) SWIG_fail;
23343 swig_obj[0] = args;
23344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23345 if (!SWIG_IsOK(res1)) {
23346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23347 }
23348 arg1 = reinterpret_cast< wxDC * >(argp1);
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 result = (int)((wxDC const *)arg1)->MinY();
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = SWIG_From_int(static_cast< int >(result));
23356 return resultobj;
23357fail:
23358 return NULL;
23359}
23360
23361
23362SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23363 PyObject *resultobj = 0;
23364 wxDC *arg1 = (wxDC *) 0 ;
23365 int result;
23366 void *argp1 = 0 ;
23367 int res1 = 0 ;
23368 PyObject *swig_obj[1] ;
23369
23370 if (!args) SWIG_fail;
23371 swig_obj[0] = args;
23372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23373 if (!SWIG_IsOK(res1)) {
23374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23375 }
23376 arg1 = reinterpret_cast< wxDC * >(argp1);
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 result = (int)((wxDC const *)arg1)->MaxY();
23380 wxPyEndAllowThreads(__tstate);
23381 if (PyErr_Occurred()) SWIG_fail;
23382 }
23383 resultobj = SWIG_From_int(static_cast< int >(result));
23384 return resultobj;
23385fail:
23386 return NULL;
23387}
23388
23389
23390SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23391 PyObject *resultobj = 0;
23392 wxDC *arg1 = (wxDC *) 0 ;
23393 int *arg2 = (int *) 0 ;
23394 int *arg3 = (int *) 0 ;
23395 int *arg4 = (int *) 0 ;
23396 int *arg5 = (int *) 0 ;
23397 void *argp1 = 0 ;
23398 int res1 = 0 ;
23399 int temp2 ;
23400 int res2 = SWIG_TMPOBJ ;
23401 int temp3 ;
23402 int res3 = SWIG_TMPOBJ ;
23403 int temp4 ;
23404 int res4 = SWIG_TMPOBJ ;
23405 int temp5 ;
23406 int res5 = SWIG_TMPOBJ ;
23407 PyObject *swig_obj[1] ;
23408
23409 arg2 = &temp2;
23410 arg3 = &temp3;
23411 arg4 = &temp4;
23412 arg5 = &temp5;
23413 if (!args) SWIG_fail;
23414 swig_obj[0] = args;
23415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23416 if (!SWIG_IsOK(res1)) {
23417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23418 }
23419 arg1 = reinterpret_cast< wxDC * >(argp1);
23420 {
23421 PyThreadState* __tstate = wxPyBeginAllowThreads();
23422 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_Py_Void();
23427 if (SWIG_IsTmpObj(res2)) {
23428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23429 } else {
23430 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23432 }
23433 if (SWIG_IsTmpObj(res3)) {
23434 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23435 } else {
23436 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23437 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23438 }
23439 if (SWIG_IsTmpObj(res4)) {
23440 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23441 } else {
23442 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23444 }
23445 if (SWIG_IsTmpObj(res5)) {
23446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23447 } else {
23448 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23450 }
23451 return resultobj;
23452fail:
23453 return NULL;
23454}
23455
23456
b39fe951
RD
23457SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23458 PyObject *resultobj = 0;
23459 wxDC *arg1 = (wxDC *) 0 ;
23460 wxLayoutDirection result;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject *swig_obj[1] ;
23464
23465 if (!args) SWIG_fail;
23466 swig_obj[0] = args;
23467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23470 }
23471 arg1 = reinterpret_cast< wxDC * >(argp1);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = SWIG_From_int(static_cast< int >(result));
23479 return resultobj;
23480fail:
23481 return NULL;
23482}
23483
23484
23485SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23486 PyObject *resultobj = 0;
23487 wxDC *arg1 = (wxDC *) 0 ;
23488 wxLayoutDirection arg2 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 int val2 ;
23492 int ecode2 = 0 ;
23493 PyObject * obj0 = 0 ;
23494 PyObject * obj1 = 0 ;
23495 char * kwnames[] = {
23496 (char *) "self",(char *) "dir", NULL
23497 };
23498
23499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23503 }
23504 arg1 = reinterpret_cast< wxDC * >(argp1);
23505 ecode2 = SWIG_AsVal_int(obj1, &val2);
23506 if (!SWIG_IsOK(ecode2)) {
23507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23508 }
23509 arg2 = static_cast< wxLayoutDirection >(val2);
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 (arg1)->SetLayoutDirection(arg2);
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 resultobj = SWIG_Py_Void();
23517 return resultobj;
23518fail:
23519 return NULL;
23520}
23521
23522
554f62e9
RD
23523SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23524 PyObject *resultobj = 0;
23525 wxDC *arg1 = (wxDC *) 0 ;
23526 long result;
23527 void *argp1 = 0 ;
23528 int res1 = 0 ;
23529 PyObject *swig_obj[1] ;
23530
23531 if (!args) SWIG_fail;
23532 swig_obj[0] = args;
23533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23534 if (!SWIG_IsOK(res1)) {
23535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23536 }
23537 arg1 = reinterpret_cast< wxDC * >(argp1);
23538 {
23539 PyThreadState* __tstate = wxPyBeginAllowThreads();
23540 result = (long)(arg1)->GetHDC();
23541 wxPyEndAllowThreads(__tstate);
23542 if (PyErr_Occurred()) SWIG_fail;
23543 }
23544 resultobj = SWIG_From_long(static_cast< long >(result));
23545 return resultobj;
23546fail:
23547 return NULL;
23548}
23549
23550
23551SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23552 PyObject *resultobj = 0;
23553 wxDC *arg1 = (wxDC *) 0 ;
23554 PyObject *arg2 = (PyObject *) 0 ;
23555 PyObject *arg3 = (PyObject *) 0 ;
23556 PyObject *arg4 = (PyObject *) 0 ;
23557 PyObject *result = 0 ;
23558 void *argp1 = 0 ;
23559 int res1 = 0 ;
23560 PyObject * obj0 = 0 ;
23561 PyObject * obj1 = 0 ;
23562 PyObject * obj2 = 0 ;
23563 PyObject * obj3 = 0 ;
23564 char * kwnames[] = {
23565 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23566 };
23567
23568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23572 }
23573 arg1 = reinterpret_cast< wxDC * >(argp1);
23574 arg2 = obj1;
23575 arg3 = obj2;
23576 arg4 = obj3;
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = result;
23584 return resultobj;
23585fail:
23586 return NULL;
23587}
23588
23589
23590SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj = 0;
23592 wxDC *arg1 = (wxDC *) 0 ;
23593 PyObject *arg2 = (PyObject *) 0 ;
23594 PyObject *arg3 = (PyObject *) 0 ;
23595 PyObject *arg4 = (PyObject *) 0 ;
23596 PyObject *result = 0 ;
23597 void *argp1 = 0 ;
23598 int res1 = 0 ;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 PyObject * obj2 = 0 ;
23602 PyObject * obj3 = 0 ;
23603 char * kwnames[] = {
23604 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23605 };
23606
23607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23609 if (!SWIG_IsOK(res1)) {
23610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23611 }
23612 arg1 = reinterpret_cast< wxDC * >(argp1);
23613 arg2 = obj1;
23614 arg3 = obj2;
23615 arg4 = obj3;
23616 {
23617 PyThreadState* __tstate = wxPyBeginAllowThreads();
23618 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23619 wxPyEndAllowThreads(__tstate);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 resultobj = result;
23623 return resultobj;
23624fail:
23625 return NULL;
23626}
23627
23628
23629SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23630 PyObject *resultobj = 0;
23631 wxDC *arg1 = (wxDC *) 0 ;
23632 PyObject *arg2 = (PyObject *) 0 ;
23633 PyObject *arg3 = (PyObject *) 0 ;
23634 PyObject *arg4 = (PyObject *) 0 ;
23635 PyObject *result = 0 ;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 PyObject * obj2 = 0 ;
23641 PyObject * obj3 = 0 ;
23642 char * kwnames[] = {
23643 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23644 };
23645
23646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23648 if (!SWIG_IsOK(res1)) {
23649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23650 }
23651 arg1 = reinterpret_cast< wxDC * >(argp1);
23652 arg2 = obj1;
23653 arg3 = obj2;
23654 arg4 = obj3;
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23658 wxPyEndAllowThreads(__tstate);
23659 if (PyErr_Occurred()) SWIG_fail;
23660 }
23661 resultobj = result;
23662 return resultobj;
23663fail:
23664 return NULL;
23665}
23666
23667
23668SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23669 PyObject *resultobj = 0;
23670 wxDC *arg1 = (wxDC *) 0 ;
23671 PyObject *arg2 = (PyObject *) 0 ;
23672 PyObject *arg3 = (PyObject *) 0 ;
23673 PyObject *arg4 = (PyObject *) 0 ;
23674 PyObject *result = 0 ;
23675 void *argp1 = 0 ;
23676 int res1 = 0 ;
23677 PyObject * obj0 = 0 ;
23678 PyObject * obj1 = 0 ;
23679 PyObject * obj2 = 0 ;
23680 PyObject * obj3 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23689 }
23690 arg1 = reinterpret_cast< wxDC * >(argp1);
23691 arg2 = obj1;
23692 arg3 = obj2;
23693 arg4 = obj3;
23694 {
23695 PyThreadState* __tstate = wxPyBeginAllowThreads();
23696 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23697 wxPyEndAllowThreads(__tstate);
23698 if (PyErr_Occurred()) SWIG_fail;
23699 }
23700 resultobj = result;
23701 return resultobj;
23702fail:
23703 return NULL;
23704}
23705
23706
23707SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23708 PyObject *resultobj = 0;
23709 wxDC *arg1 = (wxDC *) 0 ;
23710 PyObject *arg2 = (PyObject *) 0 ;
23711 PyObject *arg3 = (PyObject *) 0 ;
23712 PyObject *arg4 = (PyObject *) 0 ;
23713 PyObject *result = 0 ;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 PyObject * obj2 = 0 ;
23719 PyObject * obj3 = 0 ;
23720 char * kwnames[] = {
23721 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23722 };
23723
23724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23726 if (!SWIG_IsOK(res1)) {
23727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23728 }
23729 arg1 = reinterpret_cast< wxDC * >(argp1);
23730 arg2 = obj1;
23731 arg3 = obj2;
23732 arg4 = obj3;
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = result;
23740 return resultobj;
23741fail:
23742 return NULL;
23743}
23744
23745
23746SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23747 PyObject *resultobj = 0;
23748 wxDC *arg1 = (wxDC *) 0 ;
23749 PyObject *arg2 = (PyObject *) 0 ;
23750 PyObject *arg3 = (PyObject *) 0 ;
23751 PyObject *arg4 = (PyObject *) 0 ;
23752 PyObject *arg5 = (PyObject *) 0 ;
23753 PyObject *result = 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 PyObject * obj0 = 0 ;
23757 PyObject * obj1 = 0 ;
23758 PyObject * obj2 = 0 ;
23759 PyObject * obj3 = 0 ;
23760 PyObject * obj4 = 0 ;
23761 char * kwnames[] = {
23762 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23763 };
23764
23765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23767 if (!SWIG_IsOK(res1)) {
23768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23769 }
23770 arg1 = reinterpret_cast< wxDC * >(argp1);
23771 arg2 = obj1;
23772 arg3 = obj2;
23773 arg4 = obj3;
23774 arg5 = obj4;
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 resultobj = result;
23782 return resultobj;
23783fail:
23784 return NULL;
23785}
23786
23787
23788SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23789 PyObject *obj;
23790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23791 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23792 return SWIG_Py_Void();
23793}
23794
8e99bda9 23795SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 23796 PyObject *resultobj = 0;
8e99bda9
RD
23797 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23798 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
554f62e9 23799 wxMemoryDC *result = 0 ;
8e99bda9
RD
23800 void *argp1 = 0 ;
23801 int res1 = 0 ;
23802 PyObject * obj0 = 0 ;
23803 char * kwnames[] = {
23804 (char *) "bitmap", NULL
23805 };
554f62e9 23806
8e99bda9
RD
23807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23808 if (obj0) {
23809 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23810 if (!SWIG_IsOK(res1)) {
23811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23812 }
23813 if (!argp1) {
23814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23815 }
23816 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23817 }
554f62e9
RD
23818 {
23819 if (!wxPyCheckForApp()) SWIG_fail;
23820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23821 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
554f62e9
RD
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23826 return resultobj;
23827fail:
23828 return NULL;
23829}
23830
23831
23832SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23833 PyObject *resultobj = 0;
23834 wxDC *arg1 = (wxDC *) 0 ;
23835 wxMemoryDC *result = 0 ;
23836 void *argp1 = 0 ;
23837 int res1 = 0 ;
23838 PyObject * obj0 = 0 ;
23839 char * kwnames[] = {
23840 (char *) "oldDC", NULL
23841 };
23842
23843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23845 if (!SWIG_IsOK(res1)) {
23846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23847 }
23848 arg1 = reinterpret_cast< wxDC * >(argp1);
23849 {
23850 if (!wxPyCheckForApp()) SWIG_fail;
23851 PyThreadState* __tstate = wxPyBeginAllowThreads();
23852 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23857 return resultobj;
23858fail:
23859 return NULL;
23860}
23861
23862
23863SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23864 PyObject *resultobj = 0;
23865 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23866 wxBitmap *arg2 = 0 ;
23867 void *argp1 = 0 ;
23868 int res1 = 0 ;
23869 void *argp2 = 0 ;
23870 int res2 = 0 ;
23871 PyObject * obj0 = 0 ;
23872 PyObject * obj1 = 0 ;
23873 char * kwnames[] = {
23874 (char *) "self",(char *) "bitmap", NULL
23875 };
23876
23877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23879 if (!SWIG_IsOK(res1)) {
23880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23881 }
23882 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23884 if (!SWIG_IsOK(res2)) {
23885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23886 }
23887 if (!argp2) {
23888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23889 }
23890 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23891 {
23892 PyThreadState* __tstate = wxPyBeginAllowThreads();
23893 (arg1)->SelectObject((wxBitmap const &)*arg2);
23894 wxPyEndAllowThreads(__tstate);
23895 if (PyErr_Occurred()) SWIG_fail;
23896 }
23897 resultobj = SWIG_Py_Void();
23898 return resultobj;
23899fail:
23900 return NULL;
23901}
23902
23903
23904SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23905 PyObject *obj;
23906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23907 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23908 return SWIG_Py_Void();
23909}
23910
23911SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23912 return SWIG_Python_InitShadowInstance(args);
23913}
23914
24f6c4e8
RD
23915SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23916 PyObject *resultobj = 0;
23917 wxScreenDC *result = 0 ;
23918
23919 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23920 {
23921 if (!wxPyCheckForApp()) SWIG_fail;
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 result = (wxScreenDC *)new wxScreenDC();
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23928 return resultobj;
23929fail:
23930 return NULL;
23931}
23932
23933
23934SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23935 PyObject *resultobj = 0;
23936 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23937 wxWindow *arg2 = (wxWindow *) 0 ;
23938 bool result;
23939 void *argp1 = 0 ;
23940 int res1 = 0 ;
23941 void *argp2 = 0 ;
23942 int res2 = 0 ;
23943 PyObject * obj0 = 0 ;
23944 PyObject * obj1 = 0 ;
23945 char * kwnames[] = {
23946 (char *) "self",(char *) "window", NULL
23947 };
23948
23949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23951 if (!SWIG_IsOK(res1)) {
23952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23953 }
23954 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23956 if (!SWIG_IsOK(res2)) {
23957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23958 }
23959 arg2 = reinterpret_cast< wxWindow * >(argp2);
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 {
23967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23968 }
23969 return resultobj;
23970fail:
23971 return NULL;
23972}
23973
23974
23975SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23976 PyObject *resultobj = 0;
23977 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23978 wxRect *arg2 = (wxRect *) NULL ;
23979 bool result;
23980 void *argp1 = 0 ;
23981 int res1 = 0 ;
23982 void *argp2 = 0 ;
23983 int res2 = 0 ;
23984 PyObject * obj0 = 0 ;
23985 PyObject * obj1 = 0 ;
23986 char * kwnames[] = {
23987 (char *) "self",(char *) "rect", NULL
23988 };
23989
23990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23992 if (!SWIG_IsOK(res1)) {
23993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23994 }
23995 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23996 if (obj1) {
23997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23998 if (!SWIG_IsOK(res2)) {
23999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24000 }
24001 arg2 = reinterpret_cast< wxRect * >(argp2);
24002 }
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 {
24010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24011 }
24012 return resultobj;
24013fail:
24014 return NULL;
24015}
24016
24017
24018SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24019 PyObject *resultobj = 0;
24020 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24021 bool result;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 PyObject *swig_obj[1] ;
24025
24026 if (!args) SWIG_fail;
24027 swig_obj[0] = args;
24028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24031 }
24032 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (bool)(arg1)->EndDrawingOnTop();
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 {
24040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24041 }
24042 return resultobj;
24043fail:
24044 return NULL;
24045}
24046
24047
24048SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24049 PyObject *obj;
24050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24051 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24052 return SWIG_Py_Void();
24053}
24054
24055SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24056 return SWIG_Python_InitShadowInstance(args);
24057}
24058
24059SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24060 PyObject *resultobj = 0;
24061 wxWindow *arg1 = (wxWindow *) 0 ;
24062 wxWindowDC *result = 0 ;
24063 void *argp1 = 0 ;
24064 int res1 = 0 ;
24065 PyObject * obj0 = 0 ;
24066 char * kwnames[] = {
24067 (char *) "win", NULL
24068 };
24069
24070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24072 if (!SWIG_IsOK(res1)) {
24073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24074 }
24075 arg1 = reinterpret_cast< wxWindow * >(argp1);
24076 {
24077 if (!wxPyCheckForApp()) SWIG_fail;
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 result = (wxWindowDC *)new wxWindowDC(arg1);
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24084 return resultobj;
24085fail:
24086 return NULL;
24087}
24088
24089
24090SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24091 PyObject *obj;
24092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24093 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24094 return SWIG_Py_Void();
24095}
24096
24097SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24098 return SWIG_Python_InitShadowInstance(args);
24099}
24100
24101SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj = 0;
24103 wxWindow *arg1 = (wxWindow *) 0 ;
24104 wxClientDC *result = 0 ;
24105 void *argp1 = 0 ;
24106 int res1 = 0 ;
24107 PyObject * obj0 = 0 ;
24108 char * kwnames[] = {
24109 (char *) "win", NULL
24110 };
24111
24112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24114 if (!SWIG_IsOK(res1)) {
24115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24116 }
24117 arg1 = reinterpret_cast< wxWindow * >(argp1);
24118 {
24119 if (!wxPyCheckForApp()) SWIG_fail;
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 result = (wxClientDC *)new wxClientDC(arg1);
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24126 return resultobj;
24127fail:
24128 return NULL;
24129}
24130
24131
24132SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24133 PyObject *obj;
24134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24135 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24136 return SWIG_Py_Void();
24137}
24138
24139SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24140 return SWIG_Python_InitShadowInstance(args);
24141}
24142
24143SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24144 PyObject *resultobj = 0;
24145 wxWindow *arg1 = (wxWindow *) 0 ;
24146 wxPaintDC *result = 0 ;
24147 void *argp1 = 0 ;
24148 int res1 = 0 ;
24149 PyObject * obj0 = 0 ;
24150 char * kwnames[] = {
24151 (char *) "win", NULL
24152 };
24153
24154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24156 if (!SWIG_IsOK(res1)) {
24157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24158 }
24159 arg1 = reinterpret_cast< wxWindow * >(argp1);
24160 {
24161 if (!wxPyCheckForApp()) SWIG_fail;
24162 PyThreadState* __tstate = wxPyBeginAllowThreads();
24163 result = (wxPaintDC *)new wxPaintDC(arg1);
24164 wxPyEndAllowThreads(__tstate);
24165 if (PyErr_Occurred()) SWIG_fail;
24166 }
24167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24168 return resultobj;
24169fail:
24170 return NULL;
24171}
24172
24173
24174SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24175 PyObject *obj;
24176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24177 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24178 return SWIG_Py_Void();
24179}
24180
24181SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24182 return SWIG_Python_InitShadowInstance(args);
24183}
24184
554f62e9
RD
24185SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24186 PyObject *resultobj = 0;
24187 wxDC *arg1 = (wxDC *) 0 ;
24188 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24189 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24190 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24191 wxBufferedDC *result = 0 ;
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 void *argp2 = 0 ;
24195 int res2 = 0 ;
24196 int val3 ;
24197 int ecode3 = 0 ;
24198
24199 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24201 if (!SWIG_IsOK(res1)) {
24202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24203 }
24204 arg1 = reinterpret_cast< wxDC * >(argp1);
24205 if (swig_obj[1]) {
24206 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24207 if (!SWIG_IsOK(res2)) {
24208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24209 }
554f62e9
RD
24210 if (!argp2) {
24211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24212 }
554f62e9
RD
24213 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24214 }
24215 if (swig_obj[2]) {
24216 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24217 if (!SWIG_IsOK(ecode3)) {
24218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24219 }
24220 arg3 = static_cast< int >(val3);
24221 }
24222 {
24223 if (!wxPyCheckForApp()) SWIG_fail;
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24230 return resultobj;
24231fail:
24232 return NULL;
24233}
24234
24235
24236SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24237 PyObject *resultobj = 0;
24238 wxDC *arg1 = (wxDC *) 0 ;
24239 wxSize *arg2 = 0 ;
24240 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24241 wxBufferedDC *result = 0 ;
24242 void *argp1 = 0 ;
24243 int res1 = 0 ;
24244 wxSize temp2 ;
24245 int val3 ;
24246 int ecode3 = 0 ;
24247
24248 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24250 if (!SWIG_IsOK(res1)) {
24251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24252 }
24253 arg1 = reinterpret_cast< wxDC * >(argp1);
24254 {
24255 arg2 = &temp2;
24256 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24257 }
24258 if (swig_obj[2]) {
24259 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24260 if (!SWIG_IsOK(ecode3)) {
24261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24262 }
24263 arg3 = static_cast< int >(val3);
24264 }
24265 {
24266 if (!wxPyCheckForApp()) SWIG_fail;
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24273 return resultobj;
24274fail:
24275 return NULL;
24276}
24277
24278
24279SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24280 int argc;
8e99bda9 24281 PyObject *argv[4];
554f62e9 24282
8e99bda9 24283 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
24284 --argc;
24285 if ((argc >= 1) && (argc <= 3)) {
24286 int _v = 0;
24287 if (argc > 1) {
24288 {
24289 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24290 _v = SWIG_CheckState(res);
24291 }
24292 if (!_v) goto check_1;
093d3ff1 24293 }
554f62e9
RD
24294 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24295 }
24296check_1:
24297
24298 if ((argc >= 2) && (argc <= 3)) {
24299 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24300 }
24301
24302fail:
24303 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24304 return NULL;
24305}
24306
24307
24308SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24309 PyObject *resultobj = 0;
24310 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24311 void *argp1 = 0 ;
24312 int res1 = 0 ;
24313 PyObject *swig_obj[1] ;
24314
24315 if (!args) SWIG_fail;
24316 swig_obj[0] = args;
24317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24318 if (!SWIG_IsOK(res1)) {
24319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24320 }
24321 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 delete arg1;
24325
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 resultobj = SWIG_Py_Void();
24330 return resultobj;
24331fail:
24332 return NULL;
24333}
24334
24335
24336SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24337 PyObject *resultobj = 0;
24338 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 PyObject *swig_obj[1] ;
24342
24343 if (!args) SWIG_fail;
24344 swig_obj[0] = args;
24345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24348 }
24349 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24350 {
24351 PyThreadState* __tstate = wxPyBeginAllowThreads();
24352 (arg1)->UnMask();
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 resultobj = SWIG_Py_Void();
24357 return resultobj;
24358fail:
24359 return NULL;
24360}
24361
24362
24363SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24364 PyObject *obj;
24365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24366 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24367 return SWIG_Py_Void();
24368}
24369
24370SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24371 return SWIG_Python_InitShadowInstance(args);
24372}
24373
24374SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24375 PyObject *resultobj = 0;
24376 wxWindow *arg1 = (wxWindow *) 0 ;
24377 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24378 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24379 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24380 wxBufferedPaintDC *result = 0 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 void *argp2 = 0 ;
24384 int res2 = 0 ;
24385 int val3 ;
24386 int ecode3 = 0 ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 PyObject * obj2 = 0 ;
24390 char * kwnames[] = {
24391 (char *) "window",(char *) "buffer",(char *) "style", NULL
24392 };
24393
24394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24398 }
24399 arg1 = reinterpret_cast< wxWindow * >(argp1);
24400 if (obj1) {
24401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24402 if (!SWIG_IsOK(res2)) {
24403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24404 }
554f62e9
RD
24405 if (!argp2) {
24406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24407 }
554f62e9
RD
24408 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24409 }
24410 if (obj2) {
24411 ecode3 = SWIG_AsVal_int(obj2, &val3);
24412 if (!SWIG_IsOK(ecode3)) {
24413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24414 }
24415 arg3 = static_cast< int >(val3);
24416 }
24417 {
24418 if (!wxPyCheckForApp()) SWIG_fail;
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24421 wxPyEndAllowThreads(__tstate);
24422 if (PyErr_Occurred()) SWIG_fail;
24423 }
24424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24425 return resultobj;
24426fail:
24427 return NULL;
24428}
24429
24430
24431SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24432 PyObject *obj;
24433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24434 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24435 return SWIG_Py_Void();
24436}
24437
24438SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24439 return SWIG_Python_InitShadowInstance(args);
24440}
24441
24f6c4e8 24442SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
24443 PyObject *resultobj = 0;
24444 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24445 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 PyObject * obj0 = 0 ;
24449 char * kwnames[] = {
24450 (char *) "win", NULL
24451 };
24452
24f6c4e8 24453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
24454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24f6c4e8 24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
24457 }
24458 arg1 = reinterpret_cast< wxWindow * >(argp1);
24459 {
554f62e9 24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24461 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24f6c4e8 24465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
24466 return resultobj;
24467fail:
24468 return NULL;
24469}
24470
24471
24f6c4e8 24472SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
24473 PyObject *obj;
24474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24475 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
24476 return SWIG_Py_Void();
24477}
24478
24f6c4e8 24479SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
24480 return SWIG_Python_InitShadowInstance(args);
24481}
24482
8e99bda9
RD
24483SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxWindow *arg1 = (wxWindow *) 0 ;
24486 wxDC *result = 0 ;
24487 void *argp1 = 0 ;
24488 int res1 = 0 ;
24489 PyObject * obj0 = 0 ;
24490 char * kwnames[] = {
24491 (char *) "window", NULL
24492 };
24493
24494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24498 }
24499 arg1 = reinterpret_cast< wxWindow * >(argp1);
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24503 wxPyEndAllowThreads(__tstate);
24504 if (PyErr_Occurred()) SWIG_fail;
24505 }
24506 {
24507 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24508 }
24509 return resultobj;
24510fail:
24511 return NULL;
24512}
24513
24514
554f62e9
RD
24515SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj = 0;
24517 wxDC *arg1 = 0 ;
24518 bool arg2 ;
24519 wxMirrorDC *result = 0 ;
24520 void *argp1 = 0 ;
24521 int res1 = 0 ;
24522 bool val2 ;
24523 int ecode2 = 0 ;
24524 PyObject * obj0 = 0 ;
24525 PyObject * obj1 = 0 ;
24526 char * kwnames[] = {
24527 (char *) "dc",(char *) "mirror", NULL
24528 };
24529
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24534 }
24535 if (!argp1) {
24536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24537 }
24538 arg1 = reinterpret_cast< wxDC * >(argp1);
24539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24540 if (!SWIG_IsOK(ecode2)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24542 }
24543 arg2 = static_cast< bool >(val2);
24544 {
24545 if (!wxPyCheckForApp()) SWIG_fail;
24546 PyThreadState* __tstate = wxPyBeginAllowThreads();
24547 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24548 wxPyEndAllowThreads(__tstate);
24549 if (PyErr_Occurred()) SWIG_fail;
24550 }
24551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24552 return resultobj;
24553fail:
24554 return NULL;
24555}
24556
24557
24558SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24559 PyObject *obj;
24560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24561 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24562 return SWIG_Py_Void();
24563}
24564
24565SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24566 return SWIG_Python_InitShadowInstance(args);
24567}
24568
24569SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxPrintData *arg1 = 0 ;
24572 wxPostScriptDC *result = 0 ;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 PyObject * obj0 = 0 ;
24576 char * kwnames[] = {
24577 (char *) "printData", NULL
24578 };
24579
24580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24581 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24582 if (!SWIG_IsOK(res1)) {
24583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24584 }
24585 if (!argp1) {
24586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24587 }
24588 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24589 {
24590 if (!wxPyCheckForApp()) SWIG_fail;
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24597 return resultobj;
24598fail:
24599 return NULL;
24600}
24601
24602
24603SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24604 PyObject *resultobj = 0;
24605 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24606 wxPrintData *result = 0 ;
24607 void *argp1 = 0 ;
24608 int res1 = 0 ;
24609 PyObject *swig_obj[1] ;
24610
24611 if (!args) SWIG_fail;
24612 swig_obj[0] = args;
24613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24614 if (!SWIG_IsOK(res1)) {
24615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24616 }
24617 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24618 {
24619 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24620 {
554f62e9
RD
24621 wxPrintData &_result_ref = (arg1)->GetPrintData();
24622 result = (wxPrintData *) &_result_ref;
093d3ff1 24623 }
554f62e9
RD
24624 wxPyEndAllowThreads(__tstate);
24625 if (PyErr_Occurred()) SWIG_fail;
24626 }
24627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24628 return resultobj;
24629fail:
24630 return NULL;
24631}
24632
24633
24634SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24635 PyObject *resultobj = 0;
24636 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24637 wxPrintData *arg2 = 0 ;
24638 void *argp1 = 0 ;
24639 int res1 = 0 ;
24640 void *argp2 = 0 ;
24641 int res2 = 0 ;
24642 PyObject * obj0 = 0 ;
24643 PyObject * obj1 = 0 ;
24644 char * kwnames[] = {
24645 (char *) "self",(char *) "data", NULL
24646 };
24647
24648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24650 if (!SWIG_IsOK(res1)) {
24651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24652 }
24653 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24655 if (!SWIG_IsOK(res2)) {
24656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24657 }
24658 if (!argp2) {
24659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24660 }
24661 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24662 {
24663 PyThreadState* __tstate = wxPyBeginAllowThreads();
24664 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24665 wxPyEndAllowThreads(__tstate);
24666 if (PyErr_Occurred()) SWIG_fail;
24667 }
24668 resultobj = SWIG_Py_Void();
24669 return resultobj;
24670fail:
24671 return NULL;
24672}
24673
24674
24675SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24676 PyObject *resultobj = 0;
24677 int arg1 ;
24678 int val1 ;
24679 int ecode1 = 0 ;
24680 PyObject * obj0 = 0 ;
24681 char * kwnames[] = {
24682 (char *) "ppi", NULL
24683 };
24684
24685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24686 ecode1 = SWIG_AsVal_int(obj0, &val1);
24687 if (!SWIG_IsOK(ecode1)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24689 }
24690 arg1 = static_cast< int >(val1);
24691 {
24692 PyThreadState* __tstate = wxPyBeginAllowThreads();
24693 wxPostScriptDC::SetResolution(arg1);
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 resultobj = SWIG_Py_Void();
24698 return resultobj;
24699fail:
24700 return NULL;
24701}
24702
24703
24704SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24705 PyObject *resultobj = 0;
24706 int result;
24707
24708 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24709 {
24710 PyThreadState* __tstate = wxPyBeginAllowThreads();
24711 result = (int)wxPostScriptDC::GetResolution();
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 resultobj = SWIG_From_int(static_cast< int >(result));
24716 return resultobj;
24717fail:
24718 return NULL;
24719}
24720
24721
24722SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24723 PyObject *obj;
24724 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24725 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24726 return SWIG_Py_Void();
24727}
24728
24729SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24730 return SWIG_Python_InitShadowInstance(args);
24731}
24732
24733SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxString const &arg1_defvalue = wxPyEmptyString ;
24736 wxString *arg1 = (wxString *) &arg1_defvalue ;
24737 wxMetaFile *result = 0 ;
24738 bool temp1 = false ;
24739 PyObject * obj0 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "filename", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24745 if (obj0) {
093d3ff1 24746 {
554f62e9
RD
24747 arg1 = wxString_in_helper(obj0);
24748 if (arg1 == NULL) SWIG_fail;
24749 temp1 = true;
093d3ff1 24750 }
554f62e9
RD
24751 }
24752 {
24753 if (!wxPyCheckForApp()) SWIG_fail;
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24760 {
24761 if (temp1)
24762 delete arg1;
24763 }
24764 return resultobj;
24765fail:
24766 {
24767 if (temp1)
24768 delete arg1;
24769 }
24770 return NULL;
24771}
24772
24773
24774SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24775 PyObject *resultobj = 0;
24776 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 PyObject *swig_obj[1] ;
24780
24781 if (!args) SWIG_fail;
24782 swig_obj[0] = args;
24783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24784 if (!SWIG_IsOK(res1)) {
24785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24786 }
24787 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 delete arg1;
24791
24792 wxPyEndAllowThreads(__tstate);
24793 if (PyErr_Occurred()) SWIG_fail;
24794 }
24795 resultobj = SWIG_Py_Void();
24796 return resultobj;
24797fail:
24798 return NULL;
24799}
24800
24801
b39fe951 24802SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
24803 PyObject *resultobj = 0;
24804 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24805 bool result;
24806 void *argp1 = 0 ;
24807 int res1 = 0 ;
24808 PyObject *swig_obj[1] ;
24809
24810 if (!args) SWIG_fail;
24811 swig_obj[0] = args;
24812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24813 if (!SWIG_IsOK(res1)) {
b39fe951 24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
24815 }
24816 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24817 {
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24819 result = (bool)(arg1)->IsOk();
554f62e9
RD
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 {
24824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24825 }
24826 return resultobj;
24827fail:
24828 return NULL;
24829}
24830
24831
24832SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24833 PyObject *resultobj = 0;
24834 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24835 int arg2 = (int) 0 ;
24836 int arg3 = (int) 0 ;
24837 bool result;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 int val2 ;
24841 int ecode2 = 0 ;
24842 int val3 ;
24843 int ecode3 = 0 ;
24844 PyObject * obj0 = 0 ;
24845 PyObject * obj1 = 0 ;
24846 PyObject * obj2 = 0 ;
24847 char * kwnames[] = {
24848 (char *) "self",(char *) "width",(char *) "height", NULL
24849 };
24850
24851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24853 if (!SWIG_IsOK(res1)) {
24854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24855 }
24856 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24857 if (obj1) {
24858 ecode2 = SWIG_AsVal_int(obj1, &val2);
24859 if (!SWIG_IsOK(ecode2)) {
24860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24861 }
24862 arg2 = static_cast< int >(val2);
24863 }
24864 if (obj2) {
24865 ecode3 = SWIG_AsVal_int(obj2, &val3);
24866 if (!SWIG_IsOK(ecode3)) {
24867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24868 }
24869 arg3 = static_cast< int >(val3);
24870 }
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 {
24878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24879 }
24880 return resultobj;
24881fail:
24882 return NULL;
24883}
24884
24885
24886SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24887 PyObject *resultobj = 0;
24888 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24889 wxSize result;
24890 void *argp1 = 0 ;
24891 int res1 = 0 ;
24892 PyObject *swig_obj[1] ;
24893
24894 if (!args) SWIG_fail;
24895 swig_obj[0] = args;
24896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24897 if (!SWIG_IsOK(res1)) {
24898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24899 }
24900 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24901 {
24902 PyThreadState* __tstate = wxPyBeginAllowThreads();
24903 result = (arg1)->GetSize();
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24908 return resultobj;
24909fail:
24910 return NULL;
24911}
24912
24913
24914SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24915 PyObject *resultobj = 0;
24916 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24917 int result;
24918 void *argp1 = 0 ;
24919 int res1 = 0 ;
24920 PyObject *swig_obj[1] ;
24921
24922 if (!args) SWIG_fail;
24923 swig_obj[0] = args;
24924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24925 if (!SWIG_IsOK(res1)) {
24926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24927 }
24928 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24929 {
24930 PyThreadState* __tstate = wxPyBeginAllowThreads();
24931 result = (int)(arg1)->GetWidth();
24932 wxPyEndAllowThreads(__tstate);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 resultobj = SWIG_From_int(static_cast< int >(result));
24936 return resultobj;
24937fail:
24938 return NULL;
24939}
24940
24941
24942SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24943 PyObject *resultobj = 0;
24944 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24945 int result;
24946 void *argp1 = 0 ;
24947 int res1 = 0 ;
24948 PyObject *swig_obj[1] ;
24949
24950 if (!args) SWIG_fail;
24951 swig_obj[0] = args;
24952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24953 if (!SWIG_IsOK(res1)) {
24954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24955 }
24956 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 result = (int)(arg1)->GetHeight();
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 resultobj = SWIG_From_int(static_cast< int >(result));
24964 return resultobj;
24965fail:
24966 return NULL;
24967}
24968
24969
24970SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24971 PyObject *resultobj = 0;
24972 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24973 wxString *result = 0 ;
24974 void *argp1 = 0 ;
24975 int res1 = 0 ;
24976 PyObject *swig_obj[1] ;
24977
24978 if (!args) SWIG_fail;
24979 swig_obj[0] = args;
24980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24983 }
24984 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24987 {
554f62e9
RD
24988 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24989 result = (wxString *) &_result_ref;
e2950dbb 24990 }
554f62e9
RD
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 {
24995#if wxUSE_UNICODE
24996 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24997#else
24998 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24999#endif
25000 }
25001 return resultobj;
25002fail:
25003 return NULL;
25004}
25005
25006
25007SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25008 PyObject *obj;
25009 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25010 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25011 return SWIG_Py_Void();
25012}
25013
25014SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25015 return SWIG_Python_InitShadowInstance(args);
25016}
25017
25018SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25019 PyObject *resultobj = 0;
25020 wxString const &arg1_defvalue = wxPyEmptyString ;
25021 wxString *arg1 = (wxString *) &arg1_defvalue ;
25022 int arg2 = (int) 0 ;
25023 int arg3 = (int) 0 ;
25024 wxString const &arg4_defvalue = wxPyEmptyString ;
25025 wxString *arg4 = (wxString *) &arg4_defvalue ;
25026 wxMetaFileDC *result = 0 ;
25027 bool temp1 = false ;
25028 int val2 ;
25029 int ecode2 = 0 ;
25030 int val3 ;
25031 int ecode3 = 0 ;
25032 bool temp4 = false ;
25033 PyObject * obj0 = 0 ;
25034 PyObject * obj1 = 0 ;
25035 PyObject * obj2 = 0 ;
25036 PyObject * obj3 = 0 ;
25037 char * kwnames[] = {
25038 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25039 };
25040
25041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25042 if (obj0) {
e2950dbb 25043 {
554f62e9
RD
25044 arg1 = wxString_in_helper(obj0);
25045 if (arg1 == NULL) SWIG_fail;
25046 temp1 = true;
e2950dbb 25047 }
554f62e9
RD
25048 }
25049 if (obj1) {
25050 ecode2 = SWIG_AsVal_int(obj1, &val2);
25051 if (!SWIG_IsOK(ecode2)) {
25052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25053 }
25054 arg2 = static_cast< int >(val2);
25055 }
25056 if (obj2) {
25057 ecode3 = SWIG_AsVal_int(obj2, &val3);
25058 if (!SWIG_IsOK(ecode3)) {
25059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25060 }
25061 arg3 = static_cast< int >(val3);
25062 }
25063 if (obj3) {
093d3ff1 25064 {
554f62e9
RD
25065 arg4 = wxString_in_helper(obj3);
25066 if (arg4 == NULL) SWIG_fail;
25067 temp4 = true;
093d3ff1 25068 }
554f62e9
RD
25069 }
25070 {
25071 if (!wxPyCheckForApp()) SWIG_fail;
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25078 {
25079 if (temp1)
25080 delete arg1;
25081 }
25082 {
25083 if (temp4)
25084 delete arg4;
25085 }
25086 return resultobj;
25087fail:
25088 {
25089 if (temp1)
25090 delete arg1;
25091 }
25092 {
25093 if (temp4)
25094 delete arg4;
25095 }
25096 return NULL;
25097}
25098
25099
25100SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25101 PyObject *resultobj = 0;
25102 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25103 wxMetaFile *result = 0 ;
25104 void *argp1 = 0 ;
25105 int res1 = 0 ;
25106 PyObject *swig_obj[1] ;
25107
25108 if (!args) SWIG_fail;
25109 swig_obj[0] = args;
25110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25111 if (!SWIG_IsOK(res1)) {
25112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25113 }
25114 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 result = (wxMetaFile *)(arg1)->Close();
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25122 return resultobj;
25123fail:
25124 return NULL;
25125}
25126
25127
25128SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25129 PyObject *obj;
25130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25131 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25132 return SWIG_Py_Void();
25133}
25134
25135SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25136 return SWIG_Python_InitShadowInstance(args);
25137}
25138
25139SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25140 PyObject *resultobj = 0;
25141 wxPrintData *arg1 = 0 ;
25142 wxPrinterDC *result = 0 ;
25143 void *argp1 = 0 ;
25144 int res1 = 0 ;
25145 PyObject * obj0 = 0 ;
25146 char * kwnames[] = {
25147 (char *) "printData", NULL
25148 };
25149
25150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25151 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25154 }
25155 if (!argp1) {
25156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25157 }
25158 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25159 {
25160 if (!wxPyCheckForApp()) SWIG_fail;
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25167 return resultobj;
25168fail:
25169 return NULL;
25170}
25171
25172
25173SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25174 PyObject *obj;
25175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25176 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25177 return SWIG_Py_Void();
25178}
25179
25180SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25181 return SWIG_Python_InitShadowInstance(args);
25182}
25183
72ef6efb 25184SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 25185 PyObject *resultobj = 0;
72ef6efb 25186 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
554f62e9
RD
25187 void *argp1 = 0 ;
25188 int res1 = 0 ;
25189 PyObject *swig_obj[1] ;
25190
25191 if (!args) SWIG_fail;
25192 swig_obj[0] = args;
72ef6efb 25193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
554f62e9 25194 if (!SWIG_IsOK(res1)) {
72ef6efb 25195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
554f62e9 25196 }
72ef6efb 25197 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
554f62e9 25198 {
554f62e9
RD
25199 delete arg1;
25200
554f62e9
RD
25201 if (PyErr_Occurred()) SWIG_fail;
25202 }
25203 resultobj = SWIG_Py_Void();
25204 return resultobj;
25205fail:
25206 return NULL;
25207}
25208
25209
72ef6efb 25210SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 25211 PyObject *resultobj = 0;
72ef6efb
RD
25212 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25213 wxDouble arg2 ;
25214 wxDouble arg3 ;
554f62e9
RD
25215 void *argp1 = 0 ;
25216 int res1 = 0 ;
72ef6efb
RD
25217 double val2 ;
25218 int ecode2 = 0 ;
25219 double val3 ;
25220 int ecode3 = 0 ;
554f62e9
RD
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 PyObject * obj2 = 0 ;
25224 char * kwnames[] = {
72ef6efb 25225 (char *) "self",(char *) "x",(char *) "y", NULL
554f62e9
RD
25226 };
25227
72ef6efb
RD
25228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
554f62e9 25230 if (!SWIG_IsOK(res1)) {
72ef6efb 25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
554f62e9 25232 }
72ef6efb
RD
25233 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25234 ecode2 = SWIG_AsVal_double(obj1, &val2);
25235 if (!SWIG_IsOK(ecode2)) {
25236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25237 }
25238 arg2 = static_cast< wxDouble >(val2);
25239 ecode3 = SWIG_AsVal_double(obj2, &val3);
25240 if (!SWIG_IsOK(ecode3)) {
25241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25242 }
25243 arg3 = static_cast< wxDouble >(val3);
554f62e9 25244 {
72ef6efb 25245 (arg1)->MoveToPoint(arg2,arg3);
554f62e9
RD
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
72ef6efb 25248 resultobj = SWIG_Py_Void();
554f62e9
RD
25249 return resultobj;
25250fail:
25251 return NULL;
25252}
25253
25254
72ef6efb 25255SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 25256 PyObject *resultobj = 0;
72ef6efb
RD
25257 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25258 wxDouble arg2 ;
25259 wxDouble arg3 ;
554f62e9
RD
25260 void *argp1 = 0 ;
25261 int res1 = 0 ;
72ef6efb
RD
25262 double val2 ;
25263 int ecode2 = 0 ;
25264 double val3 ;
25265 int ecode3 = 0 ;
554f62e9
RD
25266 PyObject * obj0 = 0 ;
25267 PyObject * obj1 = 0 ;
25268 PyObject * obj2 = 0 ;
25269 char * kwnames[] = {
72ef6efb 25270 (char *) "self",(char *) "x",(char *) "y", NULL
554f62e9
RD
25271 };
25272
72ef6efb
RD
25273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
554f62e9 25275 if (!SWIG_IsOK(res1)) {
72ef6efb 25276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
554f62e9 25277 }
72ef6efb
RD
25278 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25279 ecode2 = SWIG_AsVal_double(obj1, &val2);
25280 if (!SWIG_IsOK(ecode2)) {
25281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25282 }
25283 arg2 = static_cast< wxDouble >(val2);
25284 ecode3 = SWIG_AsVal_double(obj2, &val3);
25285 if (!SWIG_IsOK(ecode3)) {
25286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25287 }
25288 arg3 = static_cast< wxDouble >(val3);
554f62e9 25289 {
72ef6efb 25290 (arg1)->AddLineToPoint(arg2,arg3);
554f62e9
RD
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
72ef6efb 25293 resultobj = SWIG_Py_Void();
554f62e9
RD
25294 return resultobj;
25295fail:
25296 return NULL;
25297}
25298
25299
72ef6efb 25300SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 25301 PyObject *resultobj = 0;
72ef6efb
RD
25302 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25303 wxDouble arg2 ;
25304 wxDouble arg3 ;
25305 wxDouble arg4 ;
25306 wxDouble arg5 ;
25307 wxDouble arg6 ;
25308 wxDouble arg7 ;
554f62e9
RD
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
72ef6efb
RD
25311 double val2 ;
25312 int ecode2 = 0 ;
25313 double val3 ;
25314 int ecode3 = 0 ;
25315 double val4 ;
25316 int ecode4 = 0 ;
25317 double val5 ;
25318 int ecode5 = 0 ;
25319 double val6 ;
25320 int ecode6 = 0 ;
25321 double val7 ;
25322 int ecode7 = 0 ;
25323 PyObject * obj0 = 0 ;
25324 PyObject * obj1 = 0 ;
25325 PyObject * obj2 = 0 ;
25326 PyObject * obj3 = 0 ;
25327 PyObject * obj4 = 0 ;
25328 PyObject * obj5 = 0 ;
25329 PyObject * obj6 = 0 ;
25330 char * kwnames[] = {
25331 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25332 };
25333
25334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25336 if (!SWIG_IsOK(res1)) {
25337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25338 }
25339 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25340 ecode2 = SWIG_AsVal_double(obj1, &val2);
25341 if (!SWIG_IsOK(ecode2)) {
25342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25343 }
25344 arg2 = static_cast< wxDouble >(val2);
25345 ecode3 = SWIG_AsVal_double(obj2, &val3);
25346 if (!SWIG_IsOK(ecode3)) {
25347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25348 }
25349 arg3 = static_cast< wxDouble >(val3);
25350 ecode4 = SWIG_AsVal_double(obj3, &val4);
25351 if (!SWIG_IsOK(ecode4)) {
25352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25353 }
25354 arg4 = static_cast< wxDouble >(val4);
25355 ecode5 = SWIG_AsVal_double(obj4, &val5);
25356 if (!SWIG_IsOK(ecode5)) {
25357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25358 }
25359 arg5 = static_cast< wxDouble >(val5);
25360 ecode6 = SWIG_AsVal_double(obj5, &val6);
25361 if (!SWIG_IsOK(ecode6)) {
25362 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25363 }
25364 arg6 = static_cast< wxDouble >(val6);
25365 ecode7 = SWIG_AsVal_double(obj6, &val7);
25366 if (!SWIG_IsOK(ecode7)) {
25367 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25368 }
25369 arg7 = static_cast< wxDouble >(val7);
25370 {
72ef6efb 25371 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 resultobj = SWIG_Py_Void();
25375 return resultobj;
25376fail:
25377 return NULL;
25378}
25379
25380
25381SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25382 PyObject *resultobj = 0;
25383 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25384 void *argp1 = 0 ;
25385 int res1 = 0 ;
25386 PyObject *swig_obj[1] ;
25387
25388 if (!args) SWIG_fail;
25389 swig_obj[0] = args;
25390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25391 if (!SWIG_IsOK(res1)) {
25392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25393 }
25394 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25395 {
72ef6efb 25396 (arg1)->CloseSubpath();
72ef6efb
RD
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 resultobj = SWIG_Py_Void();
25400 return resultobj;
25401fail:
25402 return NULL;
25403}
25404
25405
25406SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25407 PyObject *resultobj = 0;
25408 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25409 wxPoint2D result;
25410 void *argp1 = 0 ;
25411 int res1 = 0 ;
25412 PyObject *swig_obj[1] ;
25413
25414 if (!args) SWIG_fail;
25415 swig_obj[0] = args;
25416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25417 if (!SWIG_IsOK(res1)) {
25418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25419 }
25420 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25421 {
72ef6efb 25422 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25426 return resultobj;
25427fail:
25428 return NULL;
25429}
25430
25431
25432SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj = 0;
25434 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25435 wxDouble arg2 ;
25436 wxDouble arg3 ;
25437 wxDouble arg4 ;
25438 wxDouble arg5 ;
25439 wxDouble arg6 ;
25440 bool arg7 ;
25441 void *argp1 = 0 ;
25442 int res1 = 0 ;
25443 double val2 ;
25444 int ecode2 = 0 ;
25445 double val3 ;
25446 int ecode3 = 0 ;
25447 double val4 ;
25448 int ecode4 = 0 ;
25449 double val5 ;
25450 int ecode5 = 0 ;
25451 double val6 ;
25452 int ecode6 = 0 ;
25453 bool val7 ;
25454 int ecode7 = 0 ;
25455 PyObject * obj0 = 0 ;
25456 PyObject * obj1 = 0 ;
25457 PyObject * obj2 = 0 ;
25458 PyObject * obj3 = 0 ;
25459 PyObject * obj4 = 0 ;
25460 PyObject * obj5 = 0 ;
25461 PyObject * obj6 = 0 ;
25462 char * kwnames[] = {
25463 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25464 };
25465
25466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25470 }
25471 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25472 ecode2 = SWIG_AsVal_double(obj1, &val2);
25473 if (!SWIG_IsOK(ecode2)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25475 }
25476 arg2 = static_cast< wxDouble >(val2);
25477 ecode3 = SWIG_AsVal_double(obj2, &val3);
25478 if (!SWIG_IsOK(ecode3)) {
25479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25480 }
25481 arg3 = static_cast< wxDouble >(val3);
25482 ecode4 = SWIG_AsVal_double(obj3, &val4);
25483 if (!SWIG_IsOK(ecode4)) {
25484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25485 }
25486 arg4 = static_cast< wxDouble >(val4);
25487 ecode5 = SWIG_AsVal_double(obj4, &val5);
25488 if (!SWIG_IsOK(ecode5)) {
25489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25490 }
25491 arg5 = static_cast< wxDouble >(val5);
25492 ecode6 = SWIG_AsVal_double(obj5, &val6);
25493 if (!SWIG_IsOK(ecode6)) {
25494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25495 }
25496 arg6 = static_cast< wxDouble >(val6);
25497 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25498 if (!SWIG_IsOK(ecode7)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25500 }
25501 arg7 = static_cast< bool >(val7);
25502 {
72ef6efb 25503 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_Py_Void();
25507 return resultobj;
25508fail:
25509 return NULL;
25510}
25511
25512
25513SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25514 PyObject *resultobj = 0;
25515 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25516 wxDouble arg2 ;
25517 wxDouble arg3 ;
25518 wxDouble arg4 ;
25519 wxDouble arg5 ;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 double val2 ;
25523 int ecode2 = 0 ;
25524 double val3 ;
25525 int ecode3 = 0 ;
25526 double val4 ;
25527 int ecode4 = 0 ;
25528 double val5 ;
25529 int ecode5 = 0 ;
25530 PyObject * obj0 = 0 ;
25531 PyObject * obj1 = 0 ;
25532 PyObject * obj2 = 0 ;
25533 PyObject * obj3 = 0 ;
25534 PyObject * obj4 = 0 ;
25535 char * kwnames[] = {
25536 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25537 };
25538
25539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25541 if (!SWIG_IsOK(res1)) {
25542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25543 }
25544 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25545 ecode2 = SWIG_AsVal_double(obj1, &val2);
25546 if (!SWIG_IsOK(ecode2)) {
25547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25548 }
25549 arg2 = static_cast< wxDouble >(val2);
25550 ecode3 = SWIG_AsVal_double(obj2, &val3);
25551 if (!SWIG_IsOK(ecode3)) {
25552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25553 }
25554 arg3 = static_cast< wxDouble >(val3);
25555 ecode4 = SWIG_AsVal_double(obj3, &val4);
25556 if (!SWIG_IsOK(ecode4)) {
25557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25558 }
25559 arg4 = static_cast< wxDouble >(val4);
25560 ecode5 = SWIG_AsVal_double(obj4, &val5);
25561 if (!SWIG_IsOK(ecode5)) {
25562 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25563 }
25564 arg5 = static_cast< wxDouble >(val5);
25565 {
72ef6efb 25566 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
72ef6efb
RD
25567 if (PyErr_Occurred()) SWIG_fail;
25568 }
25569 resultobj = SWIG_Py_Void();
25570 return resultobj;
25571fail:
25572 return NULL;
25573}
25574
25575
25576SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25577 PyObject *resultobj = 0;
25578 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25579 wxDouble arg2 ;
25580 wxDouble arg3 ;
25581 wxDouble arg4 ;
25582 wxDouble arg5 ;
25583 void *argp1 = 0 ;
25584 int res1 = 0 ;
25585 double val2 ;
25586 int ecode2 = 0 ;
25587 double val3 ;
25588 int ecode3 = 0 ;
25589 double val4 ;
25590 int ecode4 = 0 ;
25591 double val5 ;
25592 int ecode5 = 0 ;
25593 PyObject * obj0 = 0 ;
25594 PyObject * obj1 = 0 ;
25595 PyObject * obj2 = 0 ;
25596 PyObject * obj3 = 0 ;
25597 PyObject * obj4 = 0 ;
25598 char * kwnames[] = {
25599 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25600 };
25601
25602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25604 if (!SWIG_IsOK(res1)) {
25605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25606 }
25607 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25608 ecode2 = SWIG_AsVal_double(obj1, &val2);
25609 if (!SWIG_IsOK(ecode2)) {
25610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25611 }
25612 arg2 = static_cast< wxDouble >(val2);
25613 ecode3 = SWIG_AsVal_double(obj2, &val3);
25614 if (!SWIG_IsOK(ecode3)) {
25615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25616 }
25617 arg3 = static_cast< wxDouble >(val3);
25618 ecode4 = SWIG_AsVal_double(obj3, &val4);
25619 if (!SWIG_IsOK(ecode4)) {
25620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25621 }
25622 arg4 = static_cast< wxDouble >(val4);
25623 ecode5 = SWIG_AsVal_double(obj4, &val5);
25624 if (!SWIG_IsOK(ecode5)) {
25625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25626 }
25627 arg5 = static_cast< wxDouble >(val5);
25628 {
72ef6efb 25629 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 resultobj = SWIG_Py_Void();
25633 return resultobj;
25634fail:
25635 return NULL;
25636}
25637
25638
25639SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25640 PyObject *resultobj = 0;
25641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25642 wxDouble arg2 ;
25643 wxDouble arg3 ;
25644 wxDouble arg4 ;
25645 void *argp1 = 0 ;
25646 int res1 = 0 ;
25647 double val2 ;
25648 int ecode2 = 0 ;
25649 double val3 ;
25650 int ecode3 = 0 ;
25651 double val4 ;
25652 int ecode4 = 0 ;
25653 PyObject * obj0 = 0 ;
25654 PyObject * obj1 = 0 ;
25655 PyObject * obj2 = 0 ;
25656 PyObject * obj3 = 0 ;
25657 char * kwnames[] = {
25658 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25659 };
25660
25661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25663 if (!SWIG_IsOK(res1)) {
25664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25665 }
25666 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25667 ecode2 = SWIG_AsVal_double(obj1, &val2);
25668 if (!SWIG_IsOK(ecode2)) {
25669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25670 }
25671 arg2 = static_cast< wxDouble >(val2);
25672 ecode3 = SWIG_AsVal_double(obj2, &val3);
25673 if (!SWIG_IsOK(ecode3)) {
25674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25675 }
25676 arg3 = static_cast< wxDouble >(val3);
25677 ecode4 = SWIG_AsVal_double(obj3, &val4);
25678 if (!SWIG_IsOK(ecode4)) {
25679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25680 }
25681 arg4 = static_cast< wxDouble >(val4);
25682 {
72ef6efb 25683 (arg1)->AddCircle(arg2,arg3,arg4);
72ef6efb
RD
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_Py_Void();
25687 return resultobj;
25688fail:
25689 return NULL;
25690}
25691
25692
25693SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj = 0;
25695 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25696 wxDouble arg2 ;
25697 wxDouble arg3 ;
25698 wxDouble arg4 ;
25699 wxDouble arg5 ;
25700 wxDouble arg6 ;
25701 void *argp1 = 0 ;
25702 int res1 = 0 ;
25703 double val2 ;
25704 int ecode2 = 0 ;
25705 double val3 ;
25706 int ecode3 = 0 ;
25707 double val4 ;
25708 int ecode4 = 0 ;
25709 double val5 ;
25710 int ecode5 = 0 ;
25711 double val6 ;
25712 int ecode6 = 0 ;
25713 PyObject * obj0 = 0 ;
25714 PyObject * obj1 = 0 ;
25715 PyObject * obj2 = 0 ;
25716 PyObject * obj3 = 0 ;
25717 PyObject * obj4 = 0 ;
25718 PyObject * obj5 = 0 ;
25719 char * kwnames[] = {
25720 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25721 };
25722
25723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25725 if (!SWIG_IsOK(res1)) {
25726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25727 }
25728 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25729 ecode2 = SWIG_AsVal_double(obj1, &val2);
25730 if (!SWIG_IsOK(ecode2)) {
25731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25732 }
25733 arg2 = static_cast< wxDouble >(val2);
25734 ecode3 = SWIG_AsVal_double(obj2, &val3);
25735 if (!SWIG_IsOK(ecode3)) {
25736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25737 }
25738 arg3 = static_cast< wxDouble >(val3);
25739 ecode4 = SWIG_AsVal_double(obj3, &val4);
25740 if (!SWIG_IsOK(ecode4)) {
25741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25742 }
25743 arg4 = static_cast< wxDouble >(val4);
25744 ecode5 = SWIG_AsVal_double(obj4, &val5);
25745 if (!SWIG_IsOK(ecode5)) {
25746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25747 }
25748 arg5 = static_cast< wxDouble >(val5);
25749 ecode6 = SWIG_AsVal_double(obj5, &val6);
25750 if (!SWIG_IsOK(ecode6)) {
25751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25752 }
25753 arg6 = static_cast< wxDouble >(val6);
25754 {
72ef6efb 25755 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
25758 resultobj = SWIG_Py_Void();
25759 return resultobj;
25760fail:
25761 return NULL;
25762}
25763
25764
25765SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25766 PyObject *obj;
25767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25768 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25769 return SWIG_Py_Void();
25770}
25771
25772SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25773 PyObject *resultobj = 0;
25774 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25775 void *argp1 = 0 ;
25776 int res1 = 0 ;
25777 PyObject *swig_obj[1] ;
25778
25779 if (!args) SWIG_fail;
25780 swig_obj[0] = args;
25781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25782 if (!SWIG_IsOK(res1)) {
25783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25784 }
25785 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25786 {
72ef6efb
RD
25787 delete arg1;
25788
72ef6efb
RD
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 resultobj = SWIG_Py_Void();
25792 return resultobj;
25793fail:
25794 return NULL;
25795}
25796
25797
0a27f394 25798SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
25799 PyObject *resultobj = 0;
25800 wxWindowDC *arg1 = 0 ;
25801 wxGraphicsContext *result = 0 ;
25802 void *argp1 = 0 ;
25803 int res1 = 0 ;
72ef6efb 25804
0a27f394
RD
25805 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
25807 if (!SWIG_IsOK(res1)) {
25808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25809 }
25810 if (!argp1) {
25811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25812 }
25813 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25814 {
72ef6efb 25815 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
72ef6efb
RD
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25819 return resultobj;
25820fail:
25821 return NULL;
25822}
25823
25824
0a27f394
RD
25825SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25826 PyObject *resultobj = 0;
25827 wxWindow *arg1 = (wxWindow *) 0 ;
25828 wxGraphicsContext *result = 0 ;
25829 void *argp1 = 0 ;
25830 int res1 = 0 ;
25831
25832 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25834 if (!SWIG_IsOK(res1)) {
25835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25836 }
25837 arg1 = reinterpret_cast< wxWindow * >(argp1);
25838 {
25839 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25843 return resultobj;
25844fail:
25845 return NULL;
25846}
25847
25848
25849SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25850 int argc;
25851 PyObject *argv[2];
25852
25853 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25854 --argc;
25855 if (argc == 1) {
25856 int _v = 0;
25857 {
25858 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25859 _v = SWIG_CheckState(res);
25860 }
25861 if (!_v) goto check_1;
25862 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25863 }
25864check_1:
25865
25866 if (argc == 1) {
25867 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25868 }
25869
25870fail:
25871 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25872 return NULL;
25873}
25874
25875
25876SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25877 PyObject *resultobj = 0;
25878 void *arg1 = (void *) 0 ;
25879 wxGraphicsContext *result = 0 ;
25880 int res1 ;
25881 PyObject * obj0 = 0 ;
25882 char * kwnames[] = {
25883 (char *) "context", NULL
25884 };
25885
25886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25887 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25888 if (!SWIG_IsOK(res1)) {
25889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25890 }
25891 {
25892 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25896 return resultobj;
25897fail:
25898 return NULL;
25899}
25900
25901
72ef6efb
RD
25902SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25903 PyObject *resultobj = 0;
25904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25905 wxGraphicsPath *result = 0 ;
25906 void *argp1 = 0 ;
25907 int res1 = 0 ;
25908 PyObject *swig_obj[1] ;
25909
25910 if (!args) SWIG_fail;
25911 swig_obj[0] = args;
25912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25913 if (!SWIG_IsOK(res1)) {
25914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25915 }
25916 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25917 {
72ef6efb 25918 result = (wxGraphicsPath *)(arg1)->CreatePath();
72ef6efb
RD
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25922 return resultobj;
25923fail:
25924 return NULL;
25925}
25926
25927
25928SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25929 PyObject *resultobj = 0;
25930 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 PyObject *swig_obj[1] ;
25934
25935 if (!args) SWIG_fail;
25936 swig_obj[0] = args;
25937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25938 if (!SWIG_IsOK(res1)) {
25939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25940 }
25941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25942 {
72ef6efb 25943 (arg1)->PushState();
72ef6efb
RD
25944 if (PyErr_Occurred()) SWIG_fail;
25945 }
25946 resultobj = SWIG_Py_Void();
25947 return resultobj;
25948fail:
25949 return NULL;
25950}
25951
25952
25953SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25954 PyObject *resultobj = 0;
25955 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25956 void *argp1 = 0 ;
25957 int res1 = 0 ;
25958 PyObject *swig_obj[1] ;
25959
25960 if (!args) SWIG_fail;
25961 swig_obj[0] = args;
25962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25963 if (!SWIG_IsOK(res1)) {
25964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25965 }
25966 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25967 {
72ef6efb 25968 (arg1)->PopState();
72ef6efb
RD
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 resultobj = SWIG_Py_Void();
25972 return resultobj;
25973fail:
25974 return NULL;
25975}
25976
25977
0a27f394 25978SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25979 PyObject *resultobj = 0;
25980 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25981 wxRegion *arg2 = 0 ;
25982 void *argp1 = 0 ;
25983 int res1 = 0 ;
25984 void *argp2 = 0 ;
25985 int res2 = 0 ;
25986 PyObject * obj0 = 0 ;
25987 PyObject * obj1 = 0 ;
25988 char * kwnames[] = {
25989 (char *) "self",(char *) "region", NULL
25990 };
25991
0a27f394 25992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25994 if (!SWIG_IsOK(res1)) {
0a27f394 25995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25996 }
25997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25999 if (!SWIG_IsOK(res2)) {
0a27f394 26000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
26001 }
26002 if (!argp2) {
0a27f394 26003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
26004 }
26005 arg2 = reinterpret_cast< wxRegion * >(argp2);
26006 {
72ef6efb 26007 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 resultobj = SWIG_Py_Void();
26011 return resultobj;
26012fail:
26013 return NULL;
26014}
26015
26016
0a27f394
RD
26017SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26018 PyObject *resultobj = 0;
26019 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26020 wxDouble arg2 ;
26021 wxDouble arg3 ;
26022 wxDouble arg4 ;
26023 wxDouble arg5 ;
26024 void *argp1 = 0 ;
26025 int res1 = 0 ;
26026 double val2 ;
26027 int ecode2 = 0 ;
26028 double val3 ;
26029 int ecode3 = 0 ;
26030 double val4 ;
26031 int ecode4 = 0 ;
26032 double val5 ;
26033 int ecode5 = 0 ;
26034 PyObject * obj0 = 0 ;
26035 PyObject * obj1 = 0 ;
26036 PyObject * obj2 = 0 ;
26037 PyObject * obj3 = 0 ;
26038 PyObject * obj4 = 0 ;
26039 char * kwnames[] = {
26040 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26041 };
26042
26043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26045 if (!SWIG_IsOK(res1)) {
26046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26047 }
26048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26049 ecode2 = SWIG_AsVal_double(obj1, &val2);
26050 if (!SWIG_IsOK(ecode2)) {
26051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
26052 }
26053 arg2 = static_cast< wxDouble >(val2);
26054 ecode3 = SWIG_AsVal_double(obj2, &val3);
26055 if (!SWIG_IsOK(ecode3)) {
26056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
26057 }
26058 arg3 = static_cast< wxDouble >(val3);
26059 ecode4 = SWIG_AsVal_double(obj3, &val4);
26060 if (!SWIG_IsOK(ecode4)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
26062 }
26063 arg4 = static_cast< wxDouble >(val4);
26064 ecode5 = SWIG_AsVal_double(obj4, &val5);
26065 if (!SWIG_IsOK(ecode5)) {
26066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
26067 }
26068 arg5 = static_cast< wxDouble >(val5);
26069 {
26070 (arg1)->Clip(arg2,arg3,arg4,arg5);
26071 if (PyErr_Occurred()) SWIG_fail;
26072 }
26073 resultobj = SWIG_Py_Void();
26074 return resultobj;
26075fail:
26076 return NULL;
26077}
26078
26079
26080SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26081 PyObject *resultobj = 0;
26082 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26083 void *argp1 = 0 ;
26084 int res1 = 0 ;
26085 PyObject *swig_obj[1] ;
26086
26087 if (!args) SWIG_fail;
26088 swig_obj[0] = args;
26089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26090 if (!SWIG_IsOK(res1)) {
26091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26092 }
26093 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26094 {
26095 (arg1)->ResetClip();
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100fail:
26101 return NULL;
26102}
26103
26104
26105SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26106 PyObject *resultobj = 0;
26107 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26108 void *result = 0 ;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 PyObject *swig_obj[1] ;
26112
26113 if (!args) SWIG_fail;
26114 swig_obj[0] = args;
26115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26116 if (!SWIG_IsOK(res1)) {
26117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26118 }
26119 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26120 {
26121 result = (void *)(arg1)->GetNativeContext();
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26125 return resultobj;
26126fail:
26127 return NULL;
26128}
26129
26130
72ef6efb
RD
26131SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = 0;
26133 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26134 wxDouble arg2 ;
26135 wxDouble arg3 ;
26136 void *argp1 = 0 ;
26137 int res1 = 0 ;
26138 double val2 ;
26139 int ecode2 = 0 ;
26140 double val3 ;
26141 int ecode3 = 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 PyObject * obj2 = 0 ;
26145 char * kwnames[] = {
26146 (char *) "self",(char *) "dx",(char *) "dy", NULL
26147 };
26148
26149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26151 if (!SWIG_IsOK(res1)) {
26152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26153 }
26154 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26155 ecode2 = SWIG_AsVal_double(obj1, &val2);
26156 if (!SWIG_IsOK(ecode2)) {
26157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26158 }
26159 arg2 = static_cast< wxDouble >(val2);
26160 ecode3 = SWIG_AsVal_double(obj2, &val3);
26161 if (!SWIG_IsOK(ecode3)) {
26162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26163 }
26164 arg3 = static_cast< wxDouble >(val3);
26165 {
72ef6efb 26166 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 resultobj = SWIG_Py_Void();
26170 return resultobj;
26171fail:
26172 return NULL;
26173}
26174
26175
26176SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26177 PyObject *resultobj = 0;
26178 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26179 wxDouble arg2 ;
26180 wxDouble arg3 ;
26181 void *argp1 = 0 ;
26182 int res1 = 0 ;
26183 double val2 ;
26184 int ecode2 = 0 ;
26185 double val3 ;
26186 int ecode3 = 0 ;
26187 PyObject * obj0 = 0 ;
26188 PyObject * obj1 = 0 ;
26189 PyObject * obj2 = 0 ;
26190 char * kwnames[] = {
26191 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26192 };
26193
26194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26196 if (!SWIG_IsOK(res1)) {
26197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26198 }
26199 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26200 ecode2 = SWIG_AsVal_double(obj1, &val2);
26201 if (!SWIG_IsOK(ecode2)) {
26202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26203 }
26204 arg2 = static_cast< wxDouble >(val2);
26205 ecode3 = SWIG_AsVal_double(obj2, &val3);
26206 if (!SWIG_IsOK(ecode3)) {
26207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26208 }
26209 arg3 = static_cast< wxDouble >(val3);
26210 {
72ef6efb 26211 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 resultobj = SWIG_Py_Void();
26215 return resultobj;
26216fail:
26217 return NULL;
26218}
26219
26220
26221SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj = 0;
26223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26224 wxDouble arg2 ;
26225 void *argp1 = 0 ;
26226 int res1 = 0 ;
26227 double val2 ;
26228 int ecode2 = 0 ;
26229 PyObject * obj0 = 0 ;
26230 PyObject * obj1 = 0 ;
26231 char * kwnames[] = {
26232 (char *) "self",(char *) "angle", NULL
26233 };
26234
26235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26237 if (!SWIG_IsOK(res1)) {
26238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26239 }
26240 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26241 ecode2 = SWIG_AsVal_double(obj1, &val2);
26242 if (!SWIG_IsOK(ecode2)) {
26243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26244 }
26245 arg2 = static_cast< wxDouble >(val2);
26246 {
72ef6efb 26247 (arg1)->Rotate(arg2);
72ef6efb
RD
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 resultobj = SWIG_Py_Void();
26251 return resultobj;
26252fail:
26253 return NULL;
26254}
26255
26256
26257SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26258 PyObject *resultobj = 0;
26259 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26260 wxPen *arg2 = 0 ;
26261 void *argp1 = 0 ;
26262 int res1 = 0 ;
26263 void *argp2 = 0 ;
26264 int res2 = 0 ;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char * kwnames[] = {
26268 (char *) "self",(char *) "pen", NULL
26269 };
26270
26271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26275 }
26276 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26278 if (!SWIG_IsOK(res2)) {
26279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26280 }
26281 if (!argp2) {
26282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26283 }
26284 arg2 = reinterpret_cast< wxPen * >(argp2);
26285 {
72ef6efb 26286 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
26287 if (PyErr_Occurred()) SWIG_fail;
26288 }
26289 resultobj = SWIG_Py_Void();
26290 return resultobj;
26291fail:
26292 return NULL;
26293}
26294
26295
26296SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26297 PyObject *resultobj = 0;
26298 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26299 wxBrush *arg2 = 0 ;
26300 void *argp1 = 0 ;
26301 int res1 = 0 ;
26302 void *argp2 = 0 ;
26303 int res2 = 0 ;
26304 PyObject * obj0 = 0 ;
26305 PyObject * obj1 = 0 ;
26306 char * kwnames[] = {
26307 (char *) "self",(char *) "brush", NULL
26308 };
26309
26310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26312 if (!SWIG_IsOK(res1)) {
26313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26314 }
26315 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26317 if (!SWIG_IsOK(res2)) {
26318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26319 }
26320 if (!argp2) {
26321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26322 }
26323 arg2 = reinterpret_cast< wxBrush * >(argp2);
26324 {
72ef6efb 26325 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
26326 if (PyErr_Occurred()) SWIG_fail;
26327 }
26328 resultobj = SWIG_Py_Void();
26329 return resultobj;
26330fail:
26331 return NULL;
26332}
26333
26334
26335SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26336 PyObject *resultobj = 0;
26337 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26338 wxDouble arg2 ;
26339 wxDouble arg3 ;
26340 wxDouble arg4 ;
26341 wxDouble arg5 ;
26342 wxColour *arg6 = 0 ;
26343 wxColour *arg7 = 0 ;
26344 void *argp1 = 0 ;
26345 int res1 = 0 ;
26346 double val2 ;
26347 int ecode2 = 0 ;
26348 double val3 ;
26349 int ecode3 = 0 ;
26350 double val4 ;
26351 int ecode4 = 0 ;
26352 double val5 ;
26353 int ecode5 = 0 ;
26354 wxColour temp6 ;
26355 wxColour temp7 ;
26356 PyObject * obj0 = 0 ;
26357 PyObject * obj1 = 0 ;
26358 PyObject * obj2 = 0 ;
26359 PyObject * obj3 = 0 ;
26360 PyObject * obj4 = 0 ;
26361 PyObject * obj5 = 0 ;
26362 PyObject * obj6 = 0 ;
26363 char * kwnames[] = {
26364 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26365 };
26366
26367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26369 if (!SWIG_IsOK(res1)) {
26370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26371 }
26372 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26373 ecode2 = SWIG_AsVal_double(obj1, &val2);
26374 if (!SWIG_IsOK(ecode2)) {
26375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26376 }
26377 arg2 = static_cast< wxDouble >(val2);
26378 ecode3 = SWIG_AsVal_double(obj2, &val3);
26379 if (!SWIG_IsOK(ecode3)) {
26380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26381 }
26382 arg3 = static_cast< wxDouble >(val3);
26383 ecode4 = SWIG_AsVal_double(obj3, &val4);
26384 if (!SWIG_IsOK(ecode4)) {
26385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26386 }
26387 arg4 = static_cast< wxDouble >(val4);
26388 ecode5 = SWIG_AsVal_double(obj4, &val5);
26389 if (!SWIG_IsOK(ecode5)) {
26390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26391 }
26392 arg5 = static_cast< wxDouble >(val5);
26393 {
26394 arg6 = &temp6;
26395 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26396 }
26397 {
26398 arg7 = &temp7;
26399 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26400 }
26401 {
72ef6efb 26402 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_Py_Void();
26406 return resultobj;
26407fail:
26408 return NULL;
26409}
26410
26411
26412SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26415 wxDouble arg2 ;
26416 wxDouble arg3 ;
26417 wxDouble arg4 ;
26418 wxDouble arg5 ;
26419 wxDouble arg6 ;
26420 wxColour *arg7 = 0 ;
26421 wxColour *arg8 = 0 ;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 double val2 ;
26425 int ecode2 = 0 ;
26426 double val3 ;
26427 int ecode3 = 0 ;
26428 double val4 ;
26429 int ecode4 = 0 ;
26430 double val5 ;
26431 int ecode5 = 0 ;
26432 double val6 ;
26433 int ecode6 = 0 ;
26434 wxColour temp7 ;
26435 wxColour temp8 ;
26436 PyObject * obj0 = 0 ;
26437 PyObject * obj1 = 0 ;
26438 PyObject * obj2 = 0 ;
26439 PyObject * obj3 = 0 ;
26440 PyObject * obj4 = 0 ;
26441 PyObject * obj5 = 0 ;
26442 PyObject * obj6 = 0 ;
26443 PyObject * obj7 = 0 ;
26444 char * kwnames[] = {
26445 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26446 };
26447
26448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26450 if (!SWIG_IsOK(res1)) {
26451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26452 }
26453 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26454 ecode2 = SWIG_AsVal_double(obj1, &val2);
26455 if (!SWIG_IsOK(ecode2)) {
26456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26457 }
26458 arg2 = static_cast< wxDouble >(val2);
26459 ecode3 = SWIG_AsVal_double(obj2, &val3);
26460 if (!SWIG_IsOK(ecode3)) {
26461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26462 }
26463 arg3 = static_cast< wxDouble >(val3);
26464 ecode4 = SWIG_AsVal_double(obj3, &val4);
26465 if (!SWIG_IsOK(ecode4)) {
26466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26467 }
26468 arg4 = static_cast< wxDouble >(val4);
26469 ecode5 = SWIG_AsVal_double(obj4, &val5);
26470 if (!SWIG_IsOK(ecode5)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26472 }
26473 arg5 = static_cast< wxDouble >(val5);
26474 ecode6 = SWIG_AsVal_double(obj5, &val6);
26475 if (!SWIG_IsOK(ecode6)) {
26476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26477 }
26478 arg6 = static_cast< wxDouble >(val6);
26479 {
26480 arg7 = &temp7;
26481 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26482 }
26483 {
26484 arg8 = &temp8;
26485 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26486 }
26487 {
72ef6efb 26488 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
26489 if (PyErr_Occurred()) SWIG_fail;
26490 }
26491 resultobj = SWIG_Py_Void();
26492 return resultobj;
26493fail:
26494 return NULL;
26495}
26496
26497
26498SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26499 PyObject *resultobj = 0;
26500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26501 wxFont *arg2 = 0 ;
26502 void *argp1 = 0 ;
26503 int res1 = 0 ;
26504 void *argp2 = 0 ;
26505 int res2 = 0 ;
26506 PyObject * obj0 = 0 ;
26507 PyObject * obj1 = 0 ;
26508 char * kwnames[] = {
26509 (char *) "self",(char *) "font", NULL
26510 };
26511
26512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26516 }
26517 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26519 if (!SWIG_IsOK(res2)) {
26520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26521 }
26522 if (!argp2) {
26523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26524 }
26525 arg2 = reinterpret_cast< wxFont * >(argp2);
26526 {
72ef6efb 26527 (arg1)->SetFont((wxFont const &)*arg2);
72ef6efb
RD
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_Py_Void();
26531 return resultobj;
26532fail:
26533 return NULL;
26534}
26535
26536
26537SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26538 PyObject *resultobj = 0;
26539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26540 wxColour *arg2 = 0 ;
26541 void *argp1 = 0 ;
26542 int res1 = 0 ;
26543 wxColour temp2 ;
26544 PyObject * obj0 = 0 ;
26545 PyObject * obj1 = 0 ;
26546 char * kwnames[] = {
26547 (char *) "self",(char *) "col", NULL
26548 };
26549
26550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26552 if (!SWIG_IsOK(res1)) {
26553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26554 }
26555 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26556 {
26557 arg2 = &temp2;
26558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26559 }
26560 {
72ef6efb 26561 (arg1)->SetTextColor((wxColour const &)*arg2);
72ef6efb
RD
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
26564 resultobj = SWIG_Py_Void();
26565 return resultobj;
26566fail:
26567 return NULL;
26568}
26569
26570
26571SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26572 PyObject *resultobj = 0;
26573 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26574 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26575 void *argp1 = 0 ;
26576 int res1 = 0 ;
26577 void *argp2 = 0 ;
26578 int res2 = 0 ;
26579 PyObject * obj0 = 0 ;
26580 PyObject * obj1 = 0 ;
26581 char * kwnames[] = {
26582 (char *) "self",(char *) "path", NULL
26583 };
26584
26585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26587 if (!SWIG_IsOK(res1)) {
26588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26589 }
26590 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26592 if (!SWIG_IsOK(res2)) {
26593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26594 }
26595 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26596 {
72ef6efb 26597 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
26598 if (PyErr_Occurred()) SWIG_fail;
26599 }
26600 resultobj = SWIG_Py_Void();
26601 return resultobj;
26602fail:
26603 return NULL;
26604}
26605
26606
26607SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26608 PyObject *resultobj = 0;
26609 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26610 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26611 int arg3 = (int) wxWINDING_RULE ;
26612 void *argp1 = 0 ;
26613 int res1 = 0 ;
26614 void *argp2 = 0 ;
26615 int res2 = 0 ;
26616 int val3 ;
26617 int ecode3 = 0 ;
26618 PyObject * obj0 = 0 ;
26619 PyObject * obj1 = 0 ;
26620 PyObject * obj2 = 0 ;
26621 char * kwnames[] = {
26622 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26623 };
26624
26625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26627 if (!SWIG_IsOK(res1)) {
26628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26629 }
26630 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26632 if (!SWIG_IsOK(res2)) {
26633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26634 }
26635 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26636 if (obj2) {
26637 ecode3 = SWIG_AsVal_int(obj2, &val3);
26638 if (!SWIG_IsOK(ecode3)) {
26639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26640 }
26641 arg3 = static_cast< int >(val3);
26642 }
26643 {
72ef6efb 26644 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
26645 if (PyErr_Occurred()) SWIG_fail;
26646 }
26647 resultobj = SWIG_Py_Void();
26648 return resultobj;
26649fail:
26650 return NULL;
26651}
26652
26653
26654SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26655 PyObject *resultobj = 0;
26656 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26657 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26658 int arg3 = (int) wxWINDING_RULE ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 void *argp2 = 0 ;
26662 int res2 = 0 ;
26663 int val3 ;
26664 int ecode3 = 0 ;
26665 PyObject * obj0 = 0 ;
26666 PyObject * obj1 = 0 ;
26667 PyObject * obj2 = 0 ;
26668 char * kwnames[] = {
26669 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26670 };
26671
26672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26674 if (!SWIG_IsOK(res1)) {
26675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26676 }
26677 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26679 if (!SWIG_IsOK(res2)) {
26680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26681 }
26682 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26683 if (obj2) {
26684 ecode3 = SWIG_AsVal_int(obj2, &val3);
26685 if (!SWIG_IsOK(ecode3)) {
26686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26687 }
26688 arg3 = static_cast< int >(val3);
26689 }
26690 {
72ef6efb 26691 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
26694 resultobj = SWIG_Py_Void();
26695 return resultobj;
26696fail:
26697 return NULL;
26698}
26699
26700
b39fe951 26701SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26702 PyObject *resultobj = 0;
26703 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26704 wxString *arg2 = 0 ;
26705 wxDouble arg3 ;
26706 wxDouble arg4 ;
26707 void *argp1 = 0 ;
26708 int res1 = 0 ;
26709 bool temp2 = false ;
26710 double val3 ;
26711 int ecode3 = 0 ;
26712 double val4 ;
26713 int ecode4 = 0 ;
b39fe951
RD
26714 PyObject * obj0 = 0 ;
26715 PyObject * obj1 = 0 ;
26716 PyObject * obj2 = 0 ;
26717 PyObject * obj3 = 0 ;
26718 char * kwnames[] = {
26719 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26720 };
72ef6efb 26721
b39fe951
RD
26722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26724 if (!SWIG_IsOK(res1)) {
26725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26726 }
26727 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26728 {
b39fe951 26729 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
26730 if (arg2 == NULL) SWIG_fail;
26731 temp2 = true;
26732 }
b39fe951 26733 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
26734 if (!SWIG_IsOK(ecode3)) {
26735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26736 }
26737 arg3 = static_cast< wxDouble >(val3);
b39fe951 26738 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
26739 if (!SWIG_IsOK(ecode4)) {
26740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26741 }
26742 arg4 = static_cast< wxDouble >(val4);
26743 {
72ef6efb 26744 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
26745 if (PyErr_Occurred()) SWIG_fail;
26746 }
26747 resultobj = SWIG_Py_Void();
26748 {
26749 if (temp2)
26750 delete arg2;
26751 }
26752 return resultobj;
26753fail:
26754 {
26755 if (temp2)
26756 delete arg2;
26757 }
26758 return NULL;
26759}
26760
26761
b39fe951 26762SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26763 PyObject *resultobj = 0;
26764 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26765 wxString *arg2 = 0 ;
26766 wxDouble arg3 ;
26767 wxDouble arg4 ;
26768 wxDouble arg5 ;
26769 void *argp1 = 0 ;
26770 int res1 = 0 ;
26771 bool temp2 = false ;
26772 double val3 ;
26773 int ecode3 = 0 ;
26774 double val4 ;
26775 int ecode4 = 0 ;
26776 double val5 ;
26777 int ecode5 = 0 ;
b39fe951
RD
26778 PyObject * obj0 = 0 ;
26779 PyObject * obj1 = 0 ;
26780 PyObject * obj2 = 0 ;
26781 PyObject * obj3 = 0 ;
26782 PyObject * obj4 = 0 ;
26783 char * kwnames[] = {
26784 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26785 };
72ef6efb 26786
b39fe951
RD
26787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26789 if (!SWIG_IsOK(res1)) {
b39fe951 26790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26791 }
26792 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26793 {
b39fe951 26794 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
26795 if (arg2 == NULL) SWIG_fail;
26796 temp2 = true;
26797 }
b39fe951 26798 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26799 if (!SWIG_IsOK(ecode3)) {
b39fe951 26800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26801 }
26802 arg3 = static_cast< wxDouble >(val3);
b39fe951 26803 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 26804 if (!SWIG_IsOK(ecode4)) {
b39fe951 26805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
26806 }
26807 arg4 = static_cast< wxDouble >(val4);
b39fe951 26808 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 26809 if (!SWIG_IsOK(ecode5)) {
b39fe951 26810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
26811 }
26812 arg5 = static_cast< wxDouble >(val5);
26813 {
72ef6efb 26814 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
26815 if (PyErr_Occurred()) SWIG_fail;
26816 }
26817 resultobj = SWIG_Py_Void();
26818 {
26819 if (temp2)
26820 delete arg2;
26821 }
26822 return resultobj;
26823fail:
26824 {
26825 if (temp2)
26826 delete arg2;
26827 }
26828 return NULL;
26829}
26830
26831
72ef6efb
RD
26832SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj = 0;
26834 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26835 wxString *arg2 = 0 ;
26836 wxDouble *arg3 = (wxDouble *) 0 ;
26837 wxDouble *arg4 = (wxDouble *) 0 ;
26838 wxDouble *arg5 = (wxDouble *) 0 ;
26839 wxDouble *arg6 = (wxDouble *) 0 ;
26840 void *argp1 = 0 ;
26841 int res1 = 0 ;
26842 bool temp2 = false ;
26843 wxDouble temp3 ;
26844 int res3 = SWIG_TMPOBJ ;
26845 wxDouble temp4 ;
26846 int res4 = SWIG_TMPOBJ ;
26847 wxDouble temp5 ;
26848 int res5 = SWIG_TMPOBJ ;
26849 wxDouble temp6 ;
26850 int res6 = SWIG_TMPOBJ ;
26851 PyObject * obj0 = 0 ;
26852 PyObject * obj1 = 0 ;
26853 char * kwnames[] = {
26854 (char *) "self",(char *) "text", NULL
26855 };
26856
26857 arg3 = &temp3;
26858 arg4 = &temp4;
26859 arg5 = &temp5;
26860 arg6 = &temp6;
26861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26863 if (!SWIG_IsOK(res1)) {
26864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26865 }
26866 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26867 {
26868 arg2 = wxString_in_helper(obj1);
26869 if (arg2 == NULL) SWIG_fail;
26870 temp2 = true;
26871 }
26872 {
72ef6efb 26873 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26874 if (PyErr_Occurred()) SWIG_fail;
26875 }
26876 resultobj = SWIG_Py_Void();
26877 if (SWIG_IsTmpObj(res3)) {
26878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26879 } else {
26880 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26882 }
26883 if (SWIG_IsTmpObj(res4)) {
26884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26885 } else {
26886 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26888 }
26889 if (SWIG_IsTmpObj(res5)) {
26890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26891 } else {
26892 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26894 }
26895 if (SWIG_IsTmpObj(res6)) {
26896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26897 } else {
26898 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26900 }
26901 {
26902 if (temp2)
26903 delete arg2;
26904 }
26905 return resultobj;
26906fail:
26907 {
26908 if (temp2)
26909 delete arg2;
26910 }
26911 return NULL;
26912}
26913
26914
26915SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26916 PyObject *resultobj = 0;
26917 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26918 wxString *arg2 = 0 ;
b39fe951 26919 wxArrayDouble result;
72ef6efb
RD
26920 void *argp1 = 0 ;
26921 int res1 = 0 ;
26922 bool temp2 = false ;
72ef6efb
RD
26923 PyObject * obj0 = 0 ;
26924 PyObject * obj1 = 0 ;
72ef6efb 26925 char * kwnames[] = {
b39fe951 26926 (char *) "self",(char *) "text", NULL
72ef6efb
RD
26927 };
26928
b39fe951 26929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
26930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26931 if (!SWIG_IsOK(res1)) {
b39fe951 26932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26933 }
26934 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26935 {
26936 arg2 = wxString_in_helper(obj1);
26937 if (arg2 == NULL) SWIG_fail;
26938 temp2 = true;
26939 }
72ef6efb 26940 {
b39fe951 26941 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
b39fe951
RD
26944 {
26945 resultobj = wxArrayDouble2PyList_helper(result);
26946 }
72ef6efb
RD
26947 {
26948 if (temp2)
26949 delete arg2;
26950 }
26951 return resultobj;
26952fail:
26953 {
26954 if (temp2)
26955 delete arg2;
26956 }
26957 return NULL;
26958}
26959
26960
26961SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26962 PyObject *resultobj = 0;
26963 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26964 wxBitmap *arg2 = 0 ;
26965 wxDouble arg3 ;
26966 wxDouble arg4 ;
26967 wxDouble arg5 ;
26968 wxDouble arg6 ;
26969 void *argp1 = 0 ;
26970 int res1 = 0 ;
26971 void *argp2 = 0 ;
26972 int res2 = 0 ;
26973 double val3 ;
26974 int ecode3 = 0 ;
26975 double val4 ;
26976 int ecode4 = 0 ;
26977 double val5 ;
26978 int ecode5 = 0 ;
26979 double val6 ;
26980 int ecode6 = 0 ;
26981 PyObject * obj0 = 0 ;
26982 PyObject * obj1 = 0 ;
26983 PyObject * obj2 = 0 ;
26984 PyObject * obj3 = 0 ;
26985 PyObject * obj4 = 0 ;
26986 PyObject * obj5 = 0 ;
26987 char * kwnames[] = {
26988 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26989 };
26990
26991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26995 }
26996 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26998 if (!SWIG_IsOK(res2)) {
26999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27000 }
27001 if (!argp2) {
27002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27003 }
27004 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27005 ecode3 = SWIG_AsVal_double(obj2, &val3);
27006 if (!SWIG_IsOK(ecode3)) {
27007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
27008 }
27009 arg3 = static_cast< wxDouble >(val3);
27010 ecode4 = SWIG_AsVal_double(obj3, &val4);
27011 if (!SWIG_IsOK(ecode4)) {
27012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
27013 }
27014 arg4 = static_cast< wxDouble >(val4);
27015 ecode5 = SWIG_AsVal_double(obj4, &val5);
27016 if (!SWIG_IsOK(ecode5)) {
27017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
27018 }
27019 arg5 = static_cast< wxDouble >(val5);
27020 ecode6 = SWIG_AsVal_double(obj5, &val6);
27021 if (!SWIG_IsOK(ecode6)) {
27022 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
27023 }
27024 arg6 = static_cast< wxDouble >(val6);
27025 {
72ef6efb 27026 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 resultobj = SWIG_Py_Void();
27030 return resultobj;
27031fail:
27032 return NULL;
27033}
27034
27035
27036SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj = 0;
27038 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27039 wxIcon *arg2 = 0 ;
27040 wxDouble arg3 ;
27041 wxDouble arg4 ;
27042 wxDouble arg5 ;
27043 wxDouble arg6 ;
27044 void *argp1 = 0 ;
27045 int res1 = 0 ;
27046 void *argp2 = 0 ;
27047 int res2 = 0 ;
27048 double val3 ;
27049 int ecode3 = 0 ;
27050 double val4 ;
27051 int ecode4 = 0 ;
27052 double val5 ;
27053 int ecode5 = 0 ;
27054 double val6 ;
27055 int ecode6 = 0 ;
27056 PyObject * obj0 = 0 ;
27057 PyObject * obj1 = 0 ;
27058 PyObject * obj2 = 0 ;
27059 PyObject * obj3 = 0 ;
27060 PyObject * obj4 = 0 ;
27061 PyObject * obj5 = 0 ;
27062 char * kwnames[] = {
27063 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27064 };
27065
27066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27068 if (!SWIG_IsOK(res1)) {
27069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27070 }
27071 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27073 if (!SWIG_IsOK(res2)) {
27074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27075 }
27076 if (!argp2) {
27077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27078 }
27079 arg2 = reinterpret_cast< wxIcon * >(argp2);
27080 ecode3 = SWIG_AsVal_double(obj2, &val3);
27081 if (!SWIG_IsOK(ecode3)) {
27082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
27083 }
27084 arg3 = static_cast< wxDouble >(val3);
27085 ecode4 = SWIG_AsVal_double(obj3, &val4);
27086 if (!SWIG_IsOK(ecode4)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
27088 }
27089 arg4 = static_cast< wxDouble >(val4);
27090 ecode5 = SWIG_AsVal_double(obj4, &val5);
27091 if (!SWIG_IsOK(ecode5)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
27093 }
27094 arg5 = static_cast< wxDouble >(val5);
27095 ecode6 = SWIG_AsVal_double(obj5, &val6);
27096 if (!SWIG_IsOK(ecode6)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
27098 }
27099 arg6 = static_cast< wxDouble >(val6);
27100 {
72ef6efb 27101 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 resultobj = SWIG_Py_Void();
27105 return resultobj;
27106fail:
27107 return NULL;
27108}
27109
27110
27111SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27112 PyObject *resultobj = 0;
27113 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27114 wxDouble arg2 ;
27115 wxDouble arg3 ;
27116 wxDouble arg4 ;
27117 wxDouble arg5 ;
27118 void *argp1 = 0 ;
27119 int res1 = 0 ;
27120 double val2 ;
27121 int ecode2 = 0 ;
27122 double val3 ;
27123 int ecode3 = 0 ;
27124 double val4 ;
27125 int ecode4 = 0 ;
27126 double val5 ;
27127 int ecode5 = 0 ;
27128 PyObject * obj0 = 0 ;
27129 PyObject * obj1 = 0 ;
27130 PyObject * obj2 = 0 ;
27131 PyObject * obj3 = 0 ;
27132 PyObject * obj4 = 0 ;
27133 char * kwnames[] = {
27134 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
27135 };
27136
27137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27139 if (!SWIG_IsOK(res1)) {
27140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27141 }
27142 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27143 ecode2 = SWIG_AsVal_double(obj1, &val2);
27144 if (!SWIG_IsOK(ecode2)) {
27145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
27146 }
27147 arg2 = static_cast< wxDouble >(val2);
27148 ecode3 = SWIG_AsVal_double(obj2, &val3);
27149 if (!SWIG_IsOK(ecode3)) {
27150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
27151 }
27152 arg3 = static_cast< wxDouble >(val3);
27153 ecode4 = SWIG_AsVal_double(obj3, &val4);
27154 if (!SWIG_IsOK(ecode4)) {
27155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
27156 }
27157 arg4 = static_cast< wxDouble >(val4);
27158 ecode5 = SWIG_AsVal_double(obj4, &val5);
27159 if (!SWIG_IsOK(ecode5)) {
27160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
27161 }
27162 arg5 = static_cast< wxDouble >(val5);
27163 {
72ef6efb 27164 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
72ef6efb
RD
27165 if (PyErr_Occurred()) SWIG_fail;
27166 }
27167 resultobj = SWIG_Py_Void();
27168 return resultobj;
27169fail:
27170 return NULL;
27171}
27172
27173
b39fe951 27174SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27175 PyObject *resultobj = 0;
27176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27177 size_t arg2 ;
27178 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27179 void *argp1 = 0 ;
27180 int res1 = 0 ;
b39fe951
RD
27181 PyObject * obj0 = 0 ;
27182 PyObject * obj1 = 0 ;
27183 char * kwnames[] = {
27184 (char *) "self",(char *) "points", NULL
27185 };
72ef6efb 27186
b39fe951
RD
27187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
27188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
27189 if (!SWIG_IsOK(res1)) {
27190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27191 }
27192 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
27193 {
27194 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27195 if (arg3 == NULL) SWIG_fail;
72ef6efb 27196 }
72ef6efb 27197 {
72ef6efb 27198 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
72ef6efb
RD
27199 if (PyErr_Occurred()) SWIG_fail;
27200 }
27201 resultobj = SWIG_Py_Void();
b39fe951
RD
27202 {
27203 if (arg3) delete [] arg3;
27204 }
72ef6efb
RD
27205 return resultobj;
27206fail:
b39fe951
RD
27207 {
27208 if (arg3) delete [] arg3;
27209 }
72ef6efb
RD
27210 return NULL;
27211}
27212
27213
f8eb59b9 27214SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27215 PyObject *resultobj = 0;
27216 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
b39fe951
RD
27217 PyObject *arg2 = (PyObject *) 0 ;
27218 PyObject *arg3 = (PyObject *) 0 ;
72ef6efb
RD
27219 void *argp1 = 0 ;
27220 int res1 = 0 ;
b39fe951
RD
27221 PyObject * obj0 = 0 ;
27222 PyObject * obj1 = 0 ;
27223 PyObject * obj2 = 0 ;
27224 char * kwnames[] = {
27225 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
27226 };
72ef6efb 27227
f8eb59b9 27228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
b39fe951 27229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27230 if (!SWIG_IsOK(res1)) {
f8eb59b9 27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27232 }
27233 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
27234 arg2 = obj1;
27235 arg3 = obj2;
72ef6efb 27236 {
f8eb59b9 27237 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
72ef6efb
RD
27238 if (PyErr_Occurred()) SWIG_fail;
27239 }
27240 resultobj = SWIG_Py_Void();
27241 return resultobj;
27242fail:
27243 return NULL;
27244}
27245
27246
72ef6efb
RD
27247SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27248 PyObject *resultobj = 0;
27249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27250 size_t arg2 ;
27251 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27252 int arg4 = (int) wxWINDING_RULE ;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
72ef6efb
RD
27255 int val4 ;
27256 int ecode4 = 0 ;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 PyObject * obj2 = 0 ;
72ef6efb 27260 char * kwnames[] = {
b39fe951 27261 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
72ef6efb
RD
27262 };
27263
b39fe951 27264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
72ef6efb
RD
27265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27266 if (!SWIG_IsOK(res1)) {
27267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27268 }
27269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
27270 {
27271 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27272 if (arg3 == NULL) SWIG_fail;
72ef6efb 27273 }
b39fe951
RD
27274 if (obj2) {
27275 ecode4 = SWIG_AsVal_int(obj2, &val4);
72ef6efb
RD
27276 if (!SWIG_IsOK(ecode4)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27278 }
27279 arg4 = static_cast< int >(val4);
27280 }
27281 {
72ef6efb 27282 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
72ef6efb
RD
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 resultobj = SWIG_Py_Void();
b39fe951
RD
27286 {
27287 if (arg3) delete [] arg3;
27288 }
72ef6efb
RD
27289 return resultobj;
27290fail:
b39fe951
RD
27291 {
27292 if (arg3) delete [] arg3;
27293 }
72ef6efb
RD
27294 return NULL;
27295}
27296
27297
27298SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27299 PyObject *resultobj = 0;
27300 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27301 wxDouble arg2 ;
27302 wxDouble arg3 ;
27303 wxDouble arg4 ;
27304 wxDouble arg5 ;
27305 void *argp1 = 0 ;
27306 int res1 = 0 ;
27307 double val2 ;
27308 int ecode2 = 0 ;
27309 double val3 ;
27310 int ecode3 = 0 ;
27311 double val4 ;
27312 int ecode4 = 0 ;
27313 double val5 ;
27314 int ecode5 = 0 ;
27315 PyObject * obj0 = 0 ;
27316 PyObject * obj1 = 0 ;
27317 PyObject * obj2 = 0 ;
27318 PyObject * obj3 = 0 ;
27319 PyObject * obj4 = 0 ;
27320 char * kwnames[] = {
27321 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27322 };
27323
27324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27328 }
27329 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27330 ecode2 = SWIG_AsVal_double(obj1, &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27333 }
27334 arg2 = static_cast< wxDouble >(val2);
27335 ecode3 = SWIG_AsVal_double(obj2, &val3);
27336 if (!SWIG_IsOK(ecode3)) {
27337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27338 }
27339 arg3 = static_cast< wxDouble >(val3);
27340 ecode4 = SWIG_AsVal_double(obj3, &val4);
27341 if (!SWIG_IsOK(ecode4)) {
27342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27343 }
27344 arg4 = static_cast< wxDouble >(val4);
27345 ecode5 = SWIG_AsVal_double(obj4, &val5);
27346 if (!SWIG_IsOK(ecode5)) {
27347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27348 }
27349 arg5 = static_cast< wxDouble >(val5);
27350 {
72ef6efb 27351 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 resultobj = SWIG_Py_Void();
27355 return resultobj;
27356fail:
27357 return NULL;
27358}
27359
27360
27361SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj = 0;
27363 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27364 wxDouble arg2 ;
27365 wxDouble arg3 ;
27366 wxDouble arg4 ;
27367 wxDouble arg5 ;
27368 void *argp1 = 0 ;
27369 int res1 = 0 ;
27370 double val2 ;
27371 int ecode2 = 0 ;
27372 double val3 ;
27373 int ecode3 = 0 ;
27374 double val4 ;
27375 int ecode4 = 0 ;
27376 double val5 ;
27377 int ecode5 = 0 ;
27378 PyObject * obj0 = 0 ;
27379 PyObject * obj1 = 0 ;
27380 PyObject * obj2 = 0 ;
27381 PyObject * obj3 = 0 ;
27382 PyObject * obj4 = 0 ;
27383 char * kwnames[] = {
27384 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27385 };
27386
27387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27391 }
27392 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27393 ecode2 = SWIG_AsVal_double(obj1, &val2);
27394 if (!SWIG_IsOK(ecode2)) {
27395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27396 }
27397 arg2 = static_cast< wxDouble >(val2);
27398 ecode3 = SWIG_AsVal_double(obj2, &val3);
27399 if (!SWIG_IsOK(ecode3)) {
27400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27401 }
27402 arg3 = static_cast< wxDouble >(val3);
27403 ecode4 = SWIG_AsVal_double(obj3, &val4);
27404 if (!SWIG_IsOK(ecode4)) {
27405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27406 }
27407 arg4 = static_cast< wxDouble >(val4);
27408 ecode5 = SWIG_AsVal_double(obj4, &val5);
27409 if (!SWIG_IsOK(ecode5)) {
27410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27411 }
27412 arg5 = static_cast< wxDouble >(val5);
27413 {
72ef6efb 27414 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_Py_Void();
27418 return resultobj;
27419fail:
27420 return NULL;
27421}
27422
27423
27424SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj = 0;
27426 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27427 wxDouble arg2 ;
27428 wxDouble arg3 ;
27429 wxDouble arg4 ;
27430 wxDouble arg5 ;
27431 wxDouble arg6 ;
27432 void *argp1 = 0 ;
27433 int res1 = 0 ;
27434 double val2 ;
27435 int ecode2 = 0 ;
27436 double val3 ;
27437 int ecode3 = 0 ;
27438 double val4 ;
27439 int ecode4 = 0 ;
27440 double val5 ;
27441 int ecode5 = 0 ;
27442 double val6 ;
27443 int ecode6 = 0 ;
27444 PyObject * obj0 = 0 ;
27445 PyObject * obj1 = 0 ;
27446 PyObject * obj2 = 0 ;
27447 PyObject * obj3 = 0 ;
27448 PyObject * obj4 = 0 ;
27449 PyObject * obj5 = 0 ;
27450 char * kwnames[] = {
27451 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27452 };
27453
27454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27456 if (!SWIG_IsOK(res1)) {
27457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27458 }
27459 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27460 ecode2 = SWIG_AsVal_double(obj1, &val2);
27461 if (!SWIG_IsOK(ecode2)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27463 }
27464 arg2 = static_cast< wxDouble >(val2);
27465 ecode3 = SWIG_AsVal_double(obj2, &val3);
27466 if (!SWIG_IsOK(ecode3)) {
27467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27468 }
27469 arg3 = static_cast< wxDouble >(val3);
27470 ecode4 = SWIG_AsVal_double(obj3, &val4);
27471 if (!SWIG_IsOK(ecode4)) {
27472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27473 }
27474 arg4 = static_cast< wxDouble >(val4);
27475 ecode5 = SWIG_AsVal_double(obj4, &val5);
27476 if (!SWIG_IsOK(ecode5)) {
27477 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27478 }
27479 arg5 = static_cast< wxDouble >(val5);
27480 ecode6 = SWIG_AsVal_double(obj5, &val6);
27481 if (!SWIG_IsOK(ecode6)) {
27482 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27483 }
27484 arg6 = static_cast< wxDouble >(val6);
27485 {
72ef6efb 27486 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
27487 if (PyErr_Occurred()) SWIG_fail;
27488 }
27489 resultobj = SWIG_Py_Void();
27490 return resultobj;
27491fail:
27492 return NULL;
27493}
27494
27495
27496SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27497 PyObject *obj;
27498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27499 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27500 return SWIG_Py_Void();
27501}
27502
27503SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27504 PyObject *resultobj = 0;
27505 wxWindowDC *arg1 = 0 ;
27506 wxGCDC *result = 0 ;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 PyObject * obj0 = 0 ;
27510 char * kwnames[] = {
27511 (char *) "dc", NULL
27512 };
27513
27514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27516 if (!SWIG_IsOK(res1)) {
27517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27518 }
27519 if (!argp1) {
27520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27521 }
27522 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27523 {
27524 if (!wxPyCheckForApp()) SWIG_fail;
27525 PyThreadState* __tstate = wxPyBeginAllowThreads();
27526 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27527 wxPyEndAllowThreads(__tstate);
27528 if (PyErr_Occurred()) SWIG_fail;
27529 }
27530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27531 return resultobj;
27532fail:
27533 return NULL;
27534}
27535
27536
27537SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27538 PyObject *resultobj = 0;
27539 wxGCDC *arg1 = (wxGCDC *) 0 ;
27540 void *argp1 = 0 ;
27541 int res1 = 0 ;
27542 PyObject *swig_obj[1] ;
27543
27544 if (!args) SWIG_fail;
27545 swig_obj[0] = args;
27546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27547 if (!SWIG_IsOK(res1)) {
27548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27549 }
27550 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27551 {
72ef6efb
RD
27552 delete arg1;
27553
72ef6efb
RD
27554 if (PyErr_Occurred()) SWIG_fail;
27555 }
27556 resultobj = SWIG_Py_Void();
27557 return resultobj;
27558fail:
27559 return NULL;
27560}
27561
27562
0a27f394 27563SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
27564 PyObject *resultobj = 0;
27565 wxGCDC *arg1 = (wxGCDC *) 0 ;
27566 wxGraphicsContext *result = 0 ;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 PyObject *swig_obj[1] ;
27570
27571 if (!args) SWIG_fail;
27572 swig_obj[0] = args;
27573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27574 if (!SWIG_IsOK(res1)) {
0a27f394 27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
27576 }
27577 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27578 {
0a27f394 27579 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
27580 if (PyErr_Occurred()) SWIG_fail;
27581 }
27582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27583 return resultobj;
27584fail:
27585 return NULL;
27586}
27587
27588
0a27f394
RD
27589SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27590 PyObject *resultobj = 0;
27591 wxGCDC *arg1 = (wxGCDC *) 0 ;
27592 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
27593 void *argp1 = 0 ;
27594 int res1 = 0 ;
27595 void *argp2 = 0 ;
27596 int res2 = 0 ;
27597 PyObject * obj0 = 0 ;
27598 PyObject * obj1 = 0 ;
27599 char * kwnames[] = {
27600 (char *) "self",(char *) "ctx", NULL
27601 };
27602
27603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
27604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27605 if (!SWIG_IsOK(res1)) {
27606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27607 }
27608 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27610 if (!SWIG_IsOK(res2)) {
27611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
27612 }
27613 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
27614 {
27615 (arg1)->SetGraphicsContext(arg2);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 resultobj = SWIG_Py_Void();
27619 return resultobj;
27620fail:
27621 return NULL;
27622}
27623
27624
72ef6efb
RD
27625SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *obj;
27627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27628 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27629 return SWIG_Py_Void();
27630}
27631
27632SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27633 return SWIG_Python_InitShadowInstance(args);
27634}
27635
b39fe951
RD
27636SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27637 PyObject *resultobj = 0;
27638 wxOverlay *result = 0 ;
27639
27640 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27641 {
27642 PyThreadState* __tstate = wxPyBeginAllowThreads();
27643 result = (wxOverlay *)new wxOverlay();
27644 wxPyEndAllowThreads(__tstate);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27648 return resultobj;
27649fail:
27650 return NULL;
27651}
27652
27653
27654SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxOverlay *arg1 = (wxOverlay *) 0 ;
27657 void *argp1 = 0 ;
27658 int res1 = 0 ;
27659 PyObject *swig_obj[1] ;
27660
27661 if (!args) SWIG_fail;
27662 swig_obj[0] = args;
27663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27664 if (!SWIG_IsOK(res1)) {
27665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27666 }
27667 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27668 {
27669 PyThreadState* __tstate = wxPyBeginAllowThreads();
27670 delete arg1;
27671
27672 wxPyEndAllowThreads(__tstate);
27673 if (PyErr_Occurred()) SWIG_fail;
27674 }
27675 resultobj = SWIG_Py_Void();
27676 return resultobj;
27677fail:
27678 return NULL;
27679}
27680
27681
27682SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27683 PyObject *resultobj = 0;
27684 wxOverlay *arg1 = (wxOverlay *) 0 ;
27685 void *argp1 = 0 ;
27686 int res1 = 0 ;
27687 PyObject *swig_obj[1] ;
27688
27689 if (!args) SWIG_fail;
27690 swig_obj[0] = args;
27691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27692 if (!SWIG_IsOK(res1)) {
27693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27694 }
27695 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27696 {
27697 PyThreadState* __tstate = wxPyBeginAllowThreads();
27698 (arg1)->Reset();
27699 wxPyEndAllowThreads(__tstate);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 resultobj = SWIG_Py_Void();
27703 return resultobj;
27704fail:
27705 return NULL;
27706}
27707
27708
27709SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27710 PyObject *obj;
27711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27712 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27713 return SWIG_Py_Void();
27714}
27715
27716SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27717 return SWIG_Python_InitShadowInstance(args);
27718}
27719
27720SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27721 PyObject *resultobj = 0;
27722 wxOverlay *arg1 = 0 ;
27723 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27724 int arg3 ;
27725 int arg4 ;
27726 int arg5 ;
27727 int arg6 ;
27728 wxDCOverlay *result = 0 ;
27729 void *argp1 = 0 ;
27730 int res1 = 0 ;
27731 void *argp2 = 0 ;
27732 int res2 = 0 ;
27733 int val3 ;
27734 int ecode3 = 0 ;
27735 int val4 ;
27736 int ecode4 = 0 ;
27737 int val5 ;
27738 int ecode5 = 0 ;
27739 int val6 ;
27740 int ecode6 = 0 ;
27741
27742 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27744 if (!SWIG_IsOK(res1)) {
27745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27746 }
27747 if (!argp1) {
27748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27749 }
27750 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27751 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27752 if (!SWIG_IsOK(res2)) {
27753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27754 }
27755 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27756 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27757 if (!SWIG_IsOK(ecode3)) {
27758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27759 }
27760 arg3 = static_cast< int >(val3);
27761 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27762 if (!SWIG_IsOK(ecode4)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27764 }
27765 arg4 = static_cast< int >(val4);
27766 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27767 if (!SWIG_IsOK(ecode5)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27769 }
27770 arg5 = static_cast< int >(val5);
27771 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27772 if (!SWIG_IsOK(ecode6)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27774 }
27775 arg6 = static_cast< int >(val6);
27776 {
27777 PyThreadState* __tstate = wxPyBeginAllowThreads();
27778 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27779 wxPyEndAllowThreads(__tstate);
27780 if (PyErr_Occurred()) SWIG_fail;
27781 }
27782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27783 return resultobj;
27784fail:
27785 return NULL;
27786}
27787
27788
27789SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27790 PyObject *resultobj = 0;
27791 wxOverlay *arg1 = 0 ;
27792 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27793 wxDCOverlay *result = 0 ;
27794 void *argp1 = 0 ;
27795 int res1 = 0 ;
27796 void *argp2 = 0 ;
27797 int res2 = 0 ;
27798
27799 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27801 if (!SWIG_IsOK(res1)) {
27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27803 }
27804 if (!argp1) {
27805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27806 }
27807 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27808 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27809 if (!SWIG_IsOK(res2)) {
27810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27811 }
27812 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27813 {
27814 PyThreadState* __tstate = wxPyBeginAllowThreads();
27815 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27820 return resultobj;
27821fail:
27822 return NULL;
27823}
27824
27825
27826SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27827 int argc;
27828 PyObject *argv[7];
27829
27830 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27831 --argc;
27832 if (argc == 2) {
27833 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27834 }
27835 if (argc == 6) {
27836 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27837 }
27838
27839fail:
27840 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27841 return NULL;
27842}
27843
27844
27845SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27846 PyObject *resultobj = 0;
27847 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27848 void *argp1 = 0 ;
27849 int res1 = 0 ;
27850 PyObject *swig_obj[1] ;
27851
27852 if (!args) SWIG_fail;
27853 swig_obj[0] = args;
27854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27855 if (!SWIG_IsOK(res1)) {
27856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27857 }
27858 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27859 {
27860 PyThreadState* __tstate = wxPyBeginAllowThreads();
27861 delete arg1;
27862
27863 wxPyEndAllowThreads(__tstate);
27864 if (PyErr_Occurred()) SWIG_fail;
27865 }
27866 resultobj = SWIG_Py_Void();
27867 return resultobj;
27868fail:
27869 return NULL;
27870}
27871
27872
27873SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27874 PyObject *resultobj = 0;
27875 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27876 void *argp1 = 0 ;
27877 int res1 = 0 ;
27878 PyObject *swig_obj[1] ;
27879
27880 if (!args) SWIG_fail;
27881 swig_obj[0] = args;
27882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27883 if (!SWIG_IsOK(res1)) {
27884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27885 }
27886 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27887 {
27888 PyThreadState* __tstate = wxPyBeginAllowThreads();
27889 (arg1)->Clear();
27890 wxPyEndAllowThreads(__tstate);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 resultobj = SWIG_Py_Void();
27894 return resultobj;
27895fail:
27896 return NULL;
27897}
27898
27899
27900SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27901 PyObject *obj;
27902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27903 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27904 return SWIG_Py_Void();
27905}
27906
27907SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27908 return SWIG_Python_InitShadowInstance(args);
27909}
27910
72ef6efb
RD
27911SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27912 PyObject *resultobj = 0;
27913 int arg1 ;
27914 int arg2 ;
27915 int arg3 = (int) true ;
27916 int arg4 = (int) 1 ;
27917 wxImageList *result = 0 ;
27918 int val1 ;
27919 int ecode1 = 0 ;
27920 int val2 ;
27921 int ecode2 = 0 ;
27922 int val3 ;
27923 int ecode3 = 0 ;
27924 int val4 ;
27925 int ecode4 = 0 ;
27926 PyObject * obj0 = 0 ;
27927 PyObject * obj1 = 0 ;
27928 PyObject * obj2 = 0 ;
27929 PyObject * obj3 = 0 ;
27930 char * kwnames[] = {
27931 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27932 };
27933
27934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27935 ecode1 = SWIG_AsVal_int(obj0, &val1);
27936 if (!SWIG_IsOK(ecode1)) {
27937 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27938 }
27939 arg1 = static_cast< int >(val1);
27940 ecode2 = SWIG_AsVal_int(obj1, &val2);
27941 if (!SWIG_IsOK(ecode2)) {
27942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27943 }
27944 arg2 = static_cast< int >(val2);
27945 if (obj2) {
27946 ecode3 = SWIG_AsVal_int(obj2, &val3);
27947 if (!SWIG_IsOK(ecode3)) {
27948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27949 }
27950 arg3 = static_cast< int >(val3);
27951 }
27952 if (obj3) {
27953 ecode4 = SWIG_AsVal_int(obj3, &val4);
27954 if (!SWIG_IsOK(ecode4)) {
27955 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27956 }
27957 arg4 = static_cast< int >(val4);
27958 }
27959 {
27960 if (!wxPyCheckForApp()) SWIG_fail;
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27963 wxPyEndAllowThreads(__tstate);
27964 if (PyErr_Occurred()) SWIG_fail;
27965 }
27966 {
27967 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27968 }
27969 return resultobj;
27970fail:
27971 return NULL;
27972}
27973
27974
27975SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxImageList *arg1 = (wxImageList *) 0 ;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 PyObject *swig_obj[1] ;
27981
27982 if (!args) SWIG_fail;
27983 swig_obj[0] = args;
27984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27987 }
27988 arg1 = reinterpret_cast< wxImageList * >(argp1);
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 delete arg1;
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_Py_Void();
27997 return resultobj;
27998fail:
27999 return NULL;
28000}
28001
28002
28003SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28004 PyObject *resultobj = 0;
28005 wxImageList *arg1 = (wxImageList *) 0 ;
28006 wxBitmap *arg2 = 0 ;
28007 wxBitmap const &arg3_defvalue = wxNullBitmap ;
28008 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
28009 int result;
28010 void *argp1 = 0 ;
28011 int res1 = 0 ;
28012 void *argp2 = 0 ;
28013 int res2 = 0 ;
28014 void *argp3 = 0 ;
28015 int res3 = 0 ;
28016 PyObject * obj0 = 0 ;
28017 PyObject * obj1 = 0 ;
28018 PyObject * obj2 = 0 ;
28019 char * kwnames[] = {
28020 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
28021 };
28022
28023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28025 if (!SWIG_IsOK(res1)) {
28026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
28027 }
28028 arg1 = reinterpret_cast< wxImageList * >(argp1);
28029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28030 if (!SWIG_IsOK(res2)) {
28031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28032 }
28033 if (!argp2) {
28034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28035 }
28036 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28037 if (obj2) {
28038 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28039 if (!SWIG_IsOK(res3)) {
28040 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28041 }
28042 if (!argp3) {
28043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28044 }
28045 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28046 }
28047 {
28048 PyThreadState* __tstate = wxPyBeginAllowThreads();
28049 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
28050 wxPyEndAllowThreads(__tstate);
28051 if (PyErr_Occurred()) SWIG_fail;
28052 }
28053 resultobj = SWIG_From_int(static_cast< int >(result));
28054 return resultobj;
28055fail:
28056 return NULL;
28057}
28058
28059
28060SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28061 PyObject *resultobj = 0;
28062 wxImageList *arg1 = (wxImageList *) 0 ;
28063 wxBitmap *arg2 = 0 ;
28064 wxColour *arg3 = 0 ;
28065 int result;
28066 void *argp1 = 0 ;
28067 int res1 = 0 ;
28068 void *argp2 = 0 ;
28069 int res2 = 0 ;
28070 wxColour temp3 ;
28071 PyObject * obj0 = 0 ;
28072 PyObject * obj1 = 0 ;
28073 PyObject * obj2 = 0 ;
28074 char * kwnames[] = {
28075 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
28076 };
28077
28078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28080 if (!SWIG_IsOK(res1)) {
28081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
28082 }
28083 arg1 = reinterpret_cast< wxImageList * >(argp1);
28084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28085 if (!SWIG_IsOK(res2)) {
28086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28087 }
28088 if (!argp2) {
28089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28090 }
28091 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28092 {
28093 arg3 = &temp3;
28094 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28095 }
28096 {
28097 PyThreadState* __tstate = wxPyBeginAllowThreads();
28098 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
28099 wxPyEndAllowThreads(__tstate);
28100 if (PyErr_Occurred()) SWIG_fail;
28101 }
28102 resultobj = SWIG_From_int(static_cast< int >(result));
28103 return resultobj;
28104fail:
28105 return NULL;
28106}
28107
28108
28109SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28110 PyObject *resultobj = 0;
28111 wxImageList *arg1 = (wxImageList *) 0 ;
28112 wxIcon *arg2 = 0 ;
28113 int result;
28114 void *argp1 = 0 ;
28115 int res1 = 0 ;
28116 void *argp2 = 0 ;
28117 int res2 = 0 ;
28118 PyObject * obj0 = 0 ;
28119 PyObject * obj1 = 0 ;
28120 char * kwnames[] = {
28121 (char *) "self",(char *) "icon", NULL
28122 };
28123
28124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28126 if (!SWIG_IsOK(res1)) {
28127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
28128 }
554f62e9
RD
28129 arg1 = reinterpret_cast< wxImageList * >(argp1);
28130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
28131 if (!SWIG_IsOK(res2)) {
28132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28133 }
28134 if (!argp2) {
28135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28136 }
28137 arg2 = reinterpret_cast< wxIcon * >(argp2);
28138 {
28139 PyThreadState* __tstate = wxPyBeginAllowThreads();
28140 result = (int)(arg1)->Add((wxIcon const &)*arg2);
28141 wxPyEndAllowThreads(__tstate);
28142 if (PyErr_Occurred()) SWIG_fail;
28143 }
28144 resultobj = SWIG_From_int(static_cast< int >(result));
28145 return resultobj;
28146fail:
28147 return NULL;
28148}
28149
28150
28151SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28152 PyObject *resultobj = 0;
28153 wxImageList *arg1 = (wxImageList *) 0 ;
28154 int arg2 ;
28155 SwigValueWrapper<wxBitmap > result;
28156 void *argp1 = 0 ;
28157 int res1 = 0 ;
28158 int val2 ;
28159 int ecode2 = 0 ;
28160 PyObject * obj0 = 0 ;
28161 PyObject * obj1 = 0 ;
28162 char * kwnames[] = {
28163 (char *) "self",(char *) "index", NULL
28164 };
28165
28166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
28167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28168 if (!SWIG_IsOK(res1)) {
28169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
28170 }
28171 arg1 = reinterpret_cast< wxImageList * >(argp1);
28172 ecode2 = SWIG_AsVal_int(obj1, &val2);
28173 if (!SWIG_IsOK(ecode2)) {
28174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
28175 }
28176 arg2 = static_cast< int >(val2);
28177 {
28178 PyThreadState* __tstate = wxPyBeginAllowThreads();
28179 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
28180 wxPyEndAllowThreads(__tstate);
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
28184 return resultobj;
28185fail:
28186 return NULL;
28187}
28188
28189
28190SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28191 PyObject *resultobj = 0;
28192 wxImageList *arg1 = (wxImageList *) 0 ;
28193 int arg2 ;
28194 wxIcon result;
28195 void *argp1 = 0 ;
28196 int res1 = 0 ;
28197 int val2 ;
28198 int ecode2 = 0 ;
28199 PyObject * obj0 = 0 ;
28200 PyObject * obj1 = 0 ;
28201 char * kwnames[] = {
28202 (char *) "self",(char *) "index", NULL
28203 };
28204
28205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28207 if (!SWIG_IsOK(res1)) {
28208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
28209 }
28210 arg1 = reinterpret_cast< wxImageList * >(argp1);
28211 ecode2 = SWIG_AsVal_int(obj1, &val2);
28212 if (!SWIG_IsOK(ecode2)) {
28213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
28214 }
28215 arg2 = static_cast< int >(val2);
28216 {
28217 PyThreadState* __tstate = wxPyBeginAllowThreads();
28218 result = ((wxImageList const *)arg1)->GetIcon(arg2);
28219 wxPyEndAllowThreads(__tstate);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 }
28222 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
28223 return resultobj;
28224fail:
28225 return NULL;
28226}
28227
28228
28229SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28230 PyObject *resultobj = 0;
28231 wxImageList *arg1 = (wxImageList *) 0 ;
28232 int arg2 ;
28233 wxBitmap *arg3 = 0 ;
28234 wxBitmap const &arg4_defvalue = wxNullBitmap ;
28235 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
28236 bool result;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 int val2 ;
28240 int ecode2 = 0 ;
28241 void *argp3 = 0 ;
28242 int res3 = 0 ;
28243 void *argp4 = 0 ;
28244 int res4 = 0 ;
28245 PyObject * obj0 = 0 ;
28246 PyObject * obj1 = 0 ;
28247 PyObject * obj2 = 0 ;
28248 PyObject * obj3 = 0 ;
28249 char * kwnames[] = {
28250 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
28251 };
28252
28253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28255 if (!SWIG_IsOK(res1)) {
28256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
28257 }
28258 arg1 = reinterpret_cast< wxImageList * >(argp1);
28259 ecode2 = SWIG_AsVal_int(obj1, &val2);
28260 if (!SWIG_IsOK(ecode2)) {
28261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
28262 }
28263 arg2 = static_cast< int >(val2);
28264 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28265 if (!SWIG_IsOK(res3)) {
28266 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28267 }
28268 if (!argp3) {
28269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28270 }
28271 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28272 if (obj3) {
28273 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28274 if (!SWIG_IsOK(res4)) {
28275 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 28276 }
554f62e9
RD
28277 if (!argp4) {
28278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 28279 }
554f62e9
RD
28280 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28281 }
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
28284 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28285 wxPyEndAllowThreads(__tstate);
28286 if (PyErr_Occurred()) SWIG_fail;
28287 }
28288 {
28289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28290 }
28291 return resultobj;
28292fail:
28293 return NULL;
28294}
28295
28296
28297SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28298 PyObject *resultobj = 0;
28299 wxImageList *arg1 = (wxImageList *) 0 ;
28300 int arg2 ;
28301 wxDC *arg3 = 0 ;
28302 int arg4 ;
28303 int arg5 ;
28304 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28305 bool arg7 = (bool) (bool)false ;
28306 bool result;
28307 void *argp1 = 0 ;
28308 int res1 = 0 ;
28309 int val2 ;
28310 int ecode2 = 0 ;
28311 void *argp3 = 0 ;
28312 int res3 = 0 ;
28313 int val4 ;
28314 int ecode4 = 0 ;
28315 int val5 ;
28316 int ecode5 = 0 ;
28317 int val6 ;
28318 int ecode6 = 0 ;
28319 bool val7 ;
28320 int ecode7 = 0 ;
28321 PyObject * obj0 = 0 ;
28322 PyObject * obj1 = 0 ;
28323 PyObject * obj2 = 0 ;
28324 PyObject * obj3 = 0 ;
28325 PyObject * obj4 = 0 ;
28326 PyObject * obj5 = 0 ;
28327 PyObject * obj6 = 0 ;
28328 char * kwnames[] = {
28329 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28330 };
28331
28332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28334 if (!SWIG_IsOK(res1)) {
28335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28336 }
28337 arg1 = reinterpret_cast< wxImageList * >(argp1);
28338 ecode2 = SWIG_AsVal_int(obj1, &val2);
28339 if (!SWIG_IsOK(ecode2)) {
28340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28341 }
28342 arg2 = static_cast< int >(val2);
28343 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28344 if (!SWIG_IsOK(res3)) {
28345 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28346 }
28347 if (!argp3) {
28348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28349 }
28350 arg3 = reinterpret_cast< wxDC * >(argp3);
28351 ecode4 = SWIG_AsVal_int(obj3, &val4);
28352 if (!SWIG_IsOK(ecode4)) {
28353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28354 }
28355 arg4 = static_cast< int >(val4);
28356 ecode5 = SWIG_AsVal_int(obj4, &val5);
28357 if (!SWIG_IsOK(ecode5)) {
28358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28359 }
28360 arg5 = static_cast< int >(val5);
28361 if (obj5) {
28362 ecode6 = SWIG_AsVal_int(obj5, &val6);
28363 if (!SWIG_IsOK(ecode6)) {
28364 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28365 }
28366 arg6 = static_cast< int >(val6);
28367 }
28368 if (obj6) {
28369 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28370 if (!SWIG_IsOK(ecode7)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28372 }
28373 arg7 = static_cast< bool >(val7);
28374 }
28375 {
28376 PyThreadState* __tstate = wxPyBeginAllowThreads();
28377 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28378 wxPyEndAllowThreads(__tstate);
28379 if (PyErr_Occurred()) SWIG_fail;
28380 }
28381 {
28382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28383 }
28384 return resultobj;
28385fail:
28386 return NULL;
28387}
28388
28389
28390SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28391 PyObject *resultobj = 0;
28392 wxImageList *arg1 = (wxImageList *) 0 ;
28393 int result;
28394 void *argp1 = 0 ;
28395 int res1 = 0 ;
28396 PyObject *swig_obj[1] ;
28397
28398 if (!args) SWIG_fail;
28399 swig_obj[0] = args;
28400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28401 if (!SWIG_IsOK(res1)) {
28402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28403 }
28404 arg1 = reinterpret_cast< wxImageList * >(argp1);
28405 {
28406 PyThreadState* __tstate = wxPyBeginAllowThreads();
28407 result = (int)(arg1)->GetImageCount();
28408 wxPyEndAllowThreads(__tstate);
28409 if (PyErr_Occurred()) SWIG_fail;
28410 }
28411 resultobj = SWIG_From_int(static_cast< int >(result));
28412 return resultobj;
28413fail:
28414 return NULL;
28415}
28416
28417
28418SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28419 PyObject *resultobj = 0;
28420 wxImageList *arg1 = (wxImageList *) 0 ;
28421 int arg2 ;
28422 bool result;
28423 void *argp1 = 0 ;
28424 int res1 = 0 ;
28425 int val2 ;
28426 int ecode2 = 0 ;
28427 PyObject * obj0 = 0 ;
28428 PyObject * obj1 = 0 ;
28429 char * kwnames[] = {
28430 (char *) "self",(char *) "index", NULL
28431 };
28432
28433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28435 if (!SWIG_IsOK(res1)) {
28436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28437 }
28438 arg1 = reinterpret_cast< wxImageList * >(argp1);
28439 ecode2 = SWIG_AsVal_int(obj1, &val2);
28440 if (!SWIG_IsOK(ecode2)) {
28441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28442 }
28443 arg2 = static_cast< int >(val2);
28444 {
28445 PyThreadState* __tstate = wxPyBeginAllowThreads();
28446 result = (bool)(arg1)->Remove(arg2);
28447 wxPyEndAllowThreads(__tstate);
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 {
28451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28452 }
28453 return resultobj;
28454fail:
28455 return NULL;
28456}
28457
28458
28459SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28460 PyObject *resultobj = 0;
28461 wxImageList *arg1 = (wxImageList *) 0 ;
28462 bool result;
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
28465 PyObject *swig_obj[1] ;
28466
28467 if (!args) SWIG_fail;
28468 swig_obj[0] = args;
28469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28470 if (!SWIG_IsOK(res1)) {
28471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28472 }
28473 arg1 = reinterpret_cast< wxImageList * >(argp1);
28474 {
28475 PyThreadState* __tstate = wxPyBeginAllowThreads();
28476 result = (bool)(arg1)->RemoveAll();
28477 wxPyEndAllowThreads(__tstate);
28478 if (PyErr_Occurred()) SWIG_fail;
28479 }
28480 {
28481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28482 }
28483 return resultobj;
28484fail:
28485 return NULL;
28486}
28487
28488
28489SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28490 PyObject *resultobj = 0;
28491 wxImageList *arg1 = (wxImageList *) 0 ;
28492 int arg2 ;
28493 int *arg3 = 0 ;
28494 int *arg4 = 0 ;
28495 void *argp1 = 0 ;
28496 int res1 = 0 ;
28497 int val2 ;
28498 int ecode2 = 0 ;
28499 int temp3 ;
28500 int res3 = SWIG_TMPOBJ ;
28501 int temp4 ;
28502 int res4 = SWIG_TMPOBJ ;
28503 PyObject * obj0 = 0 ;
28504 PyObject * obj1 = 0 ;
28505 char * kwnames[] = {
28506 (char *) "self",(char *) "index", NULL
28507 };
28508
28509 arg3 = &temp3;
28510 arg4 = &temp4;
28511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28515 }
28516 arg1 = reinterpret_cast< wxImageList * >(argp1);
28517 ecode2 = SWIG_AsVal_int(obj1, &val2);
28518 if (!SWIG_IsOK(ecode2)) {
28519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28520 }
28521 arg2 = static_cast< int >(val2);
28522 {
28523 PyThreadState* __tstate = wxPyBeginAllowThreads();
28524 (arg1)->GetSize(arg2,*arg3,*arg4);
28525 wxPyEndAllowThreads(__tstate);
28526 if (PyErr_Occurred()) SWIG_fail;
28527 }
28528 resultobj = SWIG_Py_Void();
28529 if (SWIG_IsTmpObj(res3)) {
28530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28531 } else {
28532 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28534 }
28535 if (SWIG_IsTmpObj(res4)) {
28536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28537 } else {
28538 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28540 }
28541 return resultobj;
28542fail:
28543 return NULL;
28544}
28545
28546
28547SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28548 PyObject *obj;
28549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28550 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28551 return SWIG_Py_Void();
28552}
28553
28554SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28555 return SWIG_Python_InitShadowInstance(args);
28556}
28557
50efceee
RD
28558SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28559 PyObject *resultobj = 0;
28560 wxStockGDI *result = 0 ;
554f62e9 28561
50efceee
RD
28562 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28563 {
28564 PyThreadState* __tstate = wxPyBeginAllowThreads();
28565 result = (wxStockGDI *)new wxStockGDI();
28566 wxPyEndAllowThreads(__tstate);
28567 if (PyErr_Occurred()) SWIG_fail;
28568 }
28569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28570 return resultobj;
28571fail:
28572 return NULL;
554f62e9
RD
28573}
28574
28575
50efceee
RD
28576SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28577 PyObject *resultobj = 0;
28578 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28579 void *argp1 = 0 ;
28580 int res1 = 0 ;
28581 PyObject *swig_obj[1] ;
554f62e9 28582
50efceee
RD
28583 if (!args) SWIG_fail;
28584 swig_obj[0] = args;
28585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28586 if (!SWIG_IsOK(res1)) {
28587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28588 }
28589 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28590 {
28591 PyThreadState* __tstate = wxPyBeginAllowThreads();
28592 delete arg1;
28593
28594 wxPyEndAllowThreads(__tstate);
28595 if (PyErr_Occurred()) SWIG_fail;
28596 }
28597 resultobj = SWIG_Py_Void();
28598 return resultobj;
28599fail:
28600 return NULL;
554f62e9
RD
28601}
28602
28603
50efceee
RD
28604SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28605 PyObject *resultobj = 0;
554f62e9 28606
50efceee
RD
28607 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28608 {
28609 PyThreadState* __tstate = wxPyBeginAllowThreads();
28610 wxStockGDI::DeleteAll();
28611 wxPyEndAllowThreads(__tstate);
28612 if (PyErr_Occurred()) SWIG_fail;
28613 }
28614 resultobj = SWIG_Py_Void();
28615 return resultobj;
28616fail:
28617 return NULL;
554f62e9
RD
28618}
28619
28620
50efceee
RD
28621SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28622 PyObject *resultobj = 0;
28623 wxStockGDI *result = 0 ;
554f62e9 28624
50efceee
RD
28625 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28626 {
28627 PyThreadState* __tstate = wxPyBeginAllowThreads();
28628 {
28629 wxStockGDI &_result_ref = wxStockGDI::instance();
28630 result = (wxStockGDI *) &_result_ref;
28631 }
28632 wxPyEndAllowThreads(__tstate);
28633 if (PyErr_Occurred()) SWIG_fail;
28634 }
28635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28636 return resultobj;
28637fail:
28638 return NULL;
554f62e9
RD
28639}
28640
28641
50efceee
RD
28642SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28643 PyObject *resultobj = 0;
28644 wxStockGDI::Item arg1 ;
28645 wxBrush *result = 0 ;
28646 int val1 ;
28647 int ecode1 = 0 ;
28648 PyObject * obj0 = 0 ;
28649 char * kwnames[] = {
28650 (char *) "item", NULL
28651 };
28652
28653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28654 ecode1 = SWIG_AsVal_int(obj0, &val1);
28655 if (!SWIG_IsOK(ecode1)) {
28656 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28657 }
28658 arg1 = static_cast< wxStockGDI::Item >(val1);
28659 {
28660 PyThreadState* __tstate = wxPyBeginAllowThreads();
28661 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28662 wxPyEndAllowThreads(__tstate);
28663 if (PyErr_Occurred()) SWIG_fail;
28664 }
28665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28666 return resultobj;
28667fail:
28668 return NULL;
554f62e9
RD
28669}
28670
28671
50efceee
RD
28672SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28673 PyObject *resultobj = 0;
28674 wxStockGDI::Item arg1 ;
28675 wxColour *result = 0 ;
28676 int val1 ;
28677 int ecode1 = 0 ;
28678 PyObject * obj0 = 0 ;
28679 char * kwnames[] = {
28680 (char *) "item", NULL
28681 };
554f62e9 28682
50efceee
RD
28683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28684 ecode1 = SWIG_AsVal_int(obj0, &val1);
28685 if (!SWIG_IsOK(ecode1)) {
28686 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28687 }
28688 arg1 = static_cast< wxStockGDI::Item >(val1);
28689 {
28690 PyThreadState* __tstate = wxPyBeginAllowThreads();
28691 result = (wxColour *)wxStockGDI::GetColour(arg1);
28692 wxPyEndAllowThreads(__tstate);
28693 if (PyErr_Occurred()) SWIG_fail;
28694 }
28695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28696 return resultobj;
28697fail:
28698 return NULL;
554f62e9
RD
28699}
28700
28701
50efceee
RD
28702SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28703 PyObject *resultobj = 0;
28704 wxStockGDI::Item arg1 ;
28705 wxCursor *result = 0 ;
28706 int val1 ;
28707 int ecode1 = 0 ;
28708 PyObject * obj0 = 0 ;
28709 char * kwnames[] = {
28710 (char *) "item", NULL
28711 };
28712
28713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28714 ecode1 = SWIG_AsVal_int(obj0, &val1);
28715 if (!SWIG_IsOK(ecode1)) {
28716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28717 }
28718 arg1 = static_cast< wxStockGDI::Item >(val1);
28719 {
28720 PyThreadState* __tstate = wxPyBeginAllowThreads();
28721 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28722 wxPyEndAllowThreads(__tstate);
28723 if (PyErr_Occurred()) SWIG_fail;
28724 }
28725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28726 return resultobj;
28727fail:
28728 return NULL;
554f62e9
RD
28729}
28730
28731
50efceee
RD
28732SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28733 PyObject *resultobj = 0;
28734 wxStockGDI::Item arg1 ;
28735 wxPen *result = 0 ;
28736 int val1 ;
28737 int ecode1 = 0 ;
28738 PyObject * obj0 = 0 ;
28739 char * kwnames[] = {
28740 (char *) "item", NULL
28741 };
28742
28743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28744 ecode1 = SWIG_AsVal_int(obj0, &val1);
28745 if (!SWIG_IsOK(ecode1)) {
28746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28747 }
28748 arg1 = static_cast< wxStockGDI::Item >(val1);
28749 {
28750 PyThreadState* __tstate = wxPyBeginAllowThreads();
28751 result = (wxPen *)wxStockGDI::GetPen(arg1);
28752 wxPyEndAllowThreads(__tstate);
28753 if (PyErr_Occurred()) SWIG_fail;
28754 }
28755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28756 return resultobj;
28757fail:
28758 return NULL;
554f62e9
RD
28759}
28760
28761
50efceee
RD
28762SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28763 PyObject *resultobj = 0;
28764 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28765 wxStockGDI::Item arg2 ;
28766 wxFont *result = 0 ;
28767 void *argp1 = 0 ;
28768 int res1 = 0 ;
28769 int val2 ;
28770 int ecode2 = 0 ;
28771 PyObject * obj0 = 0 ;
28772 PyObject * obj1 = 0 ;
28773 char * kwnames[] = {
28774 (char *) "self",(char *) "item", NULL
28775 };
554f62e9 28776
50efceee
RD
28777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28779 if (!SWIG_IsOK(res1)) {
28780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28781 }
28782 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28783 ecode2 = SWIG_AsVal_int(obj1, &val2);
28784 if (!SWIG_IsOK(ecode2)) {
28785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28786 }
28787 arg2 = static_cast< wxStockGDI::Item >(val2);
28788 {
28789 PyThreadState* __tstate = wxPyBeginAllowThreads();
28790 result = (wxFont *)(arg1)->GetFont(arg2);
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28795 return resultobj;
28796fail:
28797 return NULL;
554f62e9
RD
28798}
28799
28800
50efceee
RD
28801SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28802 PyObject *obj;
28803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28804 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28805 return SWIG_Py_Void();
554f62e9
RD
28806}
28807
50efceee
RD
28808SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28809 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
28810}
28811
554f62e9
RD
28812SWIGINTERN int NullBitmap_set(PyObject *) {
28813 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28814 return 1;
28815}
28816
28817
28818SWIGINTERN PyObject *NullBitmap_get(void) {
28819 PyObject *pyobj = 0;
28820
28821 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28822 return pyobj;
28823}
28824
28825
28826SWIGINTERN int NullIcon_set(PyObject *) {
28827 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28828 return 1;
28829}
28830
28831
28832SWIGINTERN PyObject *NullIcon_get(void) {
28833 PyObject *pyobj = 0;
28834
28835 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28836 return pyobj;
28837}
28838
28839
28840SWIGINTERN int NullCursor_set(PyObject *) {
28841 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28842 return 1;
28843}
28844
28845
28846SWIGINTERN PyObject *NullCursor_get(void) {
28847 PyObject *pyobj = 0;
28848
28849 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28850 return pyobj;
28851}
28852
28853
28854SWIGINTERN int NullPen_set(PyObject *) {
28855 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28856 return 1;
28857}
28858
28859
28860SWIGINTERN PyObject *NullPen_get(void) {
28861 PyObject *pyobj = 0;
28862
28863 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28864 return pyobj;
28865}
28866
28867
28868SWIGINTERN int NullBrush_set(PyObject *) {
28869 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28870 return 1;
28871}
28872
28873
28874SWIGINTERN PyObject *NullBrush_get(void) {
28875 PyObject *pyobj = 0;
28876
28877 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28878 return pyobj;
28879}
28880
28881
28882SWIGINTERN int NullPalette_set(PyObject *) {
28883 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28884 return 1;
28885}
28886
28887
28888SWIGINTERN PyObject *NullPalette_get(void) {
28889 PyObject *pyobj = 0;
28890
28891 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28892 return pyobj;
28893}
28894
28895
28896SWIGINTERN int NullFont_set(PyObject *) {
28897 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28898 return 1;
28899}
28900
28901
28902SWIGINTERN PyObject *NullFont_get(void) {
28903 PyObject *pyobj = 0;
28904
28905 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28906 return pyobj;
28907}
28908
28909
28910SWIGINTERN int NullColour_set(PyObject *) {
28911 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28912 return 1;
28913}
28914
28915
28916SWIGINTERN PyObject *NullColour_get(void) {
28917 PyObject *pyobj = 0;
28918
28919 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28920 return pyobj;
28921}
28922
28923
50efceee 28924SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 28925 PyObject *resultobj = 0;
50efceee
RD
28926 wxGDIObjListBase *result = 0 ;
28927
28928 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28929 {
28930 PyThreadState* __tstate = wxPyBeginAllowThreads();
28931 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28932 wxPyEndAllowThreads(__tstate);
28933 if (PyErr_Occurred()) SWIG_fail;
28934 }
28935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28936 return resultobj;
28937fail:
28938 return NULL;
28939}
28940
28941
28942SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28943 PyObject *resultobj = 0;
28944 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
28945 void *argp1 = 0 ;
28946 int res1 = 0 ;
50efceee 28947 PyObject *swig_obj[1] ;
554f62e9 28948
50efceee
RD
28949 if (!args) SWIG_fail;
28950 swig_obj[0] = args;
28951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 28952 if (!SWIG_IsOK(res1)) {
50efceee 28953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 28954 }
50efceee 28955 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
28956 {
28957 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
28958 delete arg1;
28959
554f62e9
RD
28960 wxPyEndAllowThreads(__tstate);
28961 if (PyErr_Occurred()) SWIG_fail;
28962 }
28963 resultobj = SWIG_Py_Void();
28964 return resultobj;
28965fail:
28966 return NULL;
28967}
28968
28969
50efceee
RD
28970SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28971 PyObject *obj;
28972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28973 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28974 return SWIG_Py_Void();
28975}
28976
28977SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28978 return SWIG_Python_InitShadowInstance(args);
28979}
28980
554f62e9
RD
28981SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28982 PyObject *resultobj = 0;
28983 wxPenList *arg1 = (wxPenList *) 0 ;
28984 wxColour *arg2 = 0 ;
28985 int arg3 ;
28986 int arg4 ;
28987 wxPen *result = 0 ;
28988 void *argp1 = 0 ;
28989 int res1 = 0 ;
28990 wxColour temp2 ;
28991 int val3 ;
28992 int ecode3 = 0 ;
28993 int val4 ;
28994 int ecode4 = 0 ;
28995 PyObject * obj0 = 0 ;
28996 PyObject * obj1 = 0 ;
28997 PyObject * obj2 = 0 ;
28998 PyObject * obj3 = 0 ;
28999 char * kwnames[] = {
29000 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
29001 };
29002
29003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29005 if (!SWIG_IsOK(res1)) {
29006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29007 }
29008 arg1 = reinterpret_cast< wxPenList * >(argp1);
29009 {
29010 arg2 = &temp2;
29011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29012 }
29013 ecode3 = SWIG_AsVal_int(obj2, &val3);
29014 if (!SWIG_IsOK(ecode3)) {
29015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
29016 }
29017 arg3 = static_cast< int >(val3);
29018 ecode4 = SWIG_AsVal_int(obj3, &val4);
29019 if (!SWIG_IsOK(ecode4)) {
29020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
29021 }
29022 arg4 = static_cast< int >(val4);
29023 {
29024 PyThreadState* __tstate = wxPyBeginAllowThreads();
29025 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
29026 wxPyEndAllowThreads(__tstate);
29027 if (PyErr_Occurred()) SWIG_fail;
29028 }
29029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
29030 return resultobj;
29031fail:
29032 return NULL;
29033}
29034
29035
50efceee 29036SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
29037 PyObject *resultobj = 0;
29038 wxPenList *arg1 = (wxPenList *) 0 ;
29039 wxPen *arg2 = (wxPen *) 0 ;
29040 void *argp1 = 0 ;
29041 int res1 = 0 ;
29042 void *argp2 = 0 ;
29043 int res2 = 0 ;
29044 PyObject * obj0 = 0 ;
29045 PyObject * obj1 = 0 ;
29046 char * kwnames[] = {
29047 (char *) "self",(char *) "pen", NULL
29048 };
29049
50efceee 29050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
29051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29052 if (!SWIG_IsOK(res1)) {
50efceee 29053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
29054 }
29055 arg1 = reinterpret_cast< wxPenList * >(argp1);
29056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29057 if (!SWIG_IsOK(res2)) {
50efceee 29058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
29059 }
29060 arg2 = reinterpret_cast< wxPen * >(argp2);
29061 {
29062 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29063 (arg1)->AddPen(arg2);
554f62e9
RD
29064 wxPyEndAllowThreads(__tstate);
29065 if (PyErr_Occurred()) SWIG_fail;
29066 }
29067 resultobj = SWIG_Py_Void();
29068 return resultobj;
29069fail:
29070 return NULL;
29071}
29072
29073
50efceee 29074SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
29075 PyObject *resultobj = 0;
29076 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 29077 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
50efceee
RD
29080 void *argp2 = 0 ;
29081 int res2 = 0 ;
29082 PyObject * obj0 = 0 ;
29083 PyObject * obj1 = 0 ;
29084 char * kwnames[] = {
29085 (char *) "self",(char *) "pen", NULL
29086 };
554f62e9 29087
50efceee
RD
29088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
29089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 29090 if (!SWIG_IsOK(res1)) {
50efceee 29091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
29092 }
29093 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
29094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29095 if (!SWIG_IsOK(res2)) {
29096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
29097 }
29098 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
29099 {
29100 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29101 (arg1)->RemovePen(arg2);
554f62e9
RD
29102 wxPyEndAllowThreads(__tstate);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 }
50efceee 29105 resultobj = SWIG_Py_Void();
554f62e9
RD
29106 return resultobj;
29107fail:
29108 return NULL;
29109}
29110
29111
29112SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29113 PyObject *obj;
29114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29115 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
29116 return SWIG_Py_Void();
29117}
29118
50efceee
RD
29119SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29120 PyObject *resultobj = 0;
29121 wxBrushList *arg1 = (wxBrushList *) 0 ;
29122 wxColour *arg2 = 0 ;
29123 int arg3 = (int) wxSOLID ;
29124 wxBrush *result = 0 ;
29125 void *argp1 = 0 ;
29126 int res1 = 0 ;
29127 wxColour temp2 ;
29128 int val3 ;
29129 int ecode3 = 0 ;
29130 PyObject * obj0 = 0 ;
29131 PyObject * obj1 = 0 ;
29132 PyObject * obj2 = 0 ;
29133 char * kwnames[] = {
29134 (char *) "self",(char *) "colour",(char *) "style", NULL
29135 };
29136
29137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29139 if (!SWIG_IsOK(res1)) {
29140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29141 }
29142 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29143 {
29144 arg2 = &temp2;
29145 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29146 }
29147 if (obj2) {
29148 ecode3 = SWIG_AsVal_int(obj2, &val3);
29149 if (!SWIG_IsOK(ecode3)) {
29150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
29151 }
29152 arg3 = static_cast< int >(val3);
29153 }
29154 {
29155 PyThreadState* __tstate = wxPyBeginAllowThreads();
29156 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
29157 wxPyEndAllowThreads(__tstate);
29158 if (PyErr_Occurred()) SWIG_fail;
29159 }
29160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
29161 return resultobj;
29162fail:
29163 return NULL;
29164}
29165
29166
554f62e9
RD
29167SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29168 PyObject *resultobj = 0;
29169 wxBrushList *arg1 = (wxBrushList *) 0 ;
29170 wxBrush *arg2 = (wxBrush *) 0 ;
29171 void *argp1 = 0 ;
29172 int res1 = 0 ;
29173 void *argp2 = 0 ;
29174 int res2 = 0 ;
29175 PyObject * obj0 = 0 ;
29176 PyObject * obj1 = 0 ;
29177 char * kwnames[] = {
29178 (char *) "self",(char *) "brush", NULL
29179 };
29180
29181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29183 if (!SWIG_IsOK(res1)) {
29184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29185 }
29186 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29187 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29188 if (!SWIG_IsOK(res2)) {
29189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29190 }
29191 arg2 = reinterpret_cast< wxBrush * >(argp2);
29192 {
29193 PyThreadState* __tstate = wxPyBeginAllowThreads();
29194 (arg1)->AddBrush(arg2);
29195 wxPyEndAllowThreads(__tstate);
29196 if (PyErr_Occurred()) SWIG_fail;
29197 }
29198 resultobj = SWIG_Py_Void();
29199 return resultobj;
29200fail:
29201 return NULL;
29202}
29203
29204
50efceee 29205SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
29206 PyObject *resultobj = 0;
29207 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 29208 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
29209 void *argp1 = 0 ;
29210 int res1 = 0 ;
50efceee
RD
29211 void *argp2 = 0 ;
29212 int res2 = 0 ;
29213 PyObject * obj0 = 0 ;
29214 PyObject * obj1 = 0 ;
29215 char * kwnames[] = {
29216 (char *) "self",(char *) "brush", NULL
29217 };
29218
29219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29221 if (!SWIG_IsOK(res1)) {
29222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29223 }
29224 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29225 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29226 if (!SWIG_IsOK(res2)) {
29227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29228 }
29229 arg2 = reinterpret_cast< wxBrush * >(argp2);
29230 {
29231 PyThreadState* __tstate = wxPyBeginAllowThreads();
29232 (arg1)->RemoveBrush(arg2);
29233 wxPyEndAllowThreads(__tstate);
29234 if (PyErr_Occurred()) SWIG_fail;
29235 }
29236 resultobj = SWIG_Py_Void();
29237 return resultobj;
29238fail:
29239 return NULL;
29240}
29241
29242
29243SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29244 PyObject *obj;
29245 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29246 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
29247 return SWIG_Py_Void();
29248}
29249
29250SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29251 PyObject *resultobj = 0;
29252 wxFontList *arg1 = (wxFontList *) 0 ;
29253 int arg2 ;
29254 int arg3 ;
29255 int arg4 ;
29256 int arg5 ;
29257 bool arg6 = (bool) false ;
29258 wxString const &arg7_defvalue = wxPyEmptyString ;
29259 wxString *arg7 = (wxString *) &arg7_defvalue ;
29260 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
29261 wxFont *result = 0 ;
29262 void *argp1 = 0 ;
29263 int res1 = 0 ;
29264 int val2 ;
29265 int ecode2 = 0 ;
554f62e9
RD
29266 int val3 ;
29267 int ecode3 = 0 ;
50efceee
RD
29268 int val4 ;
29269 int ecode4 = 0 ;
29270 int val5 ;
29271 int ecode5 = 0 ;
29272 bool val6 ;
29273 int ecode6 = 0 ;
29274 bool temp7 = false ;
29275 int val8 ;
29276 int ecode8 = 0 ;
554f62e9
RD
29277 PyObject * obj0 = 0 ;
29278 PyObject * obj1 = 0 ;
29279 PyObject * obj2 = 0 ;
50efceee
RD
29280 PyObject * obj3 = 0 ;
29281 PyObject * obj4 = 0 ;
29282 PyObject * obj5 = 0 ;
29283 PyObject * obj6 = 0 ;
29284 PyObject * obj7 = 0 ;
554f62e9 29285 char * kwnames[] = {
50efceee 29286 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
29287 };
29288
50efceee
RD
29289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 29291 if (!SWIG_IsOK(res1)) {
50efceee 29292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 29293 }
50efceee
RD
29294 arg1 = reinterpret_cast< wxFontList * >(argp1);
29295 ecode2 = SWIG_AsVal_int(obj1, &val2);
29296 if (!SWIG_IsOK(ecode2)) {
29297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29298 }
29299 arg2 = static_cast< int >(val2);
29300 ecode3 = SWIG_AsVal_int(obj2, &val3);
29301 if (!SWIG_IsOK(ecode3)) {
29302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29303 }
29304 arg3 = static_cast< int >(val3);
29305 ecode4 = SWIG_AsVal_int(obj3, &val4);
29306 if (!SWIG_IsOK(ecode4)) {
29307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29308 }
29309 arg4 = static_cast< int >(val4);
29310 ecode5 = SWIG_AsVal_int(obj4, &val5);
29311 if (!SWIG_IsOK(ecode5)) {
29312 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29313 }
29314 arg5 = static_cast< int >(val5);
29315 if (obj5) {
29316 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29317 if (!SWIG_IsOK(ecode6)) {
29318 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29319 }
29320 arg6 = static_cast< bool >(val6);
554f62e9 29321 }
50efceee
RD
29322 if (obj6) {
29323 {
29324 arg7 = wxString_in_helper(obj6);
29325 if (arg7 == NULL) SWIG_fail;
29326 temp7 = true;
29327 }
29328 }
29329 if (obj7) {
29330 ecode8 = SWIG_AsVal_int(obj7, &val8);
29331 if (!SWIG_IsOK(ecode8)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 29333 }
50efceee 29334 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
29335 }
29336 {
29337 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29338 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
29339 wxPyEndAllowThreads(__tstate);
29340 if (PyErr_Occurred()) SWIG_fail;
29341 }
50efceee
RD
29342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29343 {
29344 if (temp7)
29345 delete arg7;
29346 }
554f62e9
RD
29347 return resultobj;
29348fail:
50efceee
RD
29349 {
29350 if (temp7)
29351 delete arg7;
29352 }
554f62e9
RD
29353 return NULL;
29354}
29355
29356
50efceee 29357SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 29358 PyObject *resultobj = 0;
50efceee
RD
29359 wxFontList *arg1 = (wxFontList *) 0 ;
29360 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
29361 void *argp1 = 0 ;
29362 int res1 = 0 ;
29363 void *argp2 = 0 ;
29364 int res2 = 0 ;
29365 PyObject * obj0 = 0 ;
29366 PyObject * obj1 = 0 ;
29367 char * kwnames[] = {
50efceee 29368 (char *) "self",(char *) "font", NULL
554f62e9
RD
29369 };
29370
50efceee
RD
29371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 29373 if (!SWIG_IsOK(res1)) {
50efceee 29374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 29375 }
50efceee
RD
29376 arg1 = reinterpret_cast< wxFontList * >(argp1);
29377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 29378 if (!SWIG_IsOK(res2)) {
50efceee 29379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 29380 }
50efceee 29381 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
29382 {
29383 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29384 (arg1)->AddFont(arg2);
554f62e9
RD
29385 wxPyEndAllowThreads(__tstate);
29386 if (PyErr_Occurred()) SWIG_fail;
29387 }
29388 resultobj = SWIG_Py_Void();
29389 return resultobj;
29390fail:
29391 return NULL;
29392}
29393
29394
50efceee 29395SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 29396 PyObject *resultobj = 0;
50efceee
RD
29397 wxFontList *arg1 = (wxFontList *) 0 ;
29398 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
29399 void *argp1 = 0 ;
29400 int res1 = 0 ;
50efceee
RD
29401 void *argp2 = 0 ;
29402 int res2 = 0 ;
29403 PyObject * obj0 = 0 ;
29404 PyObject * obj1 = 0 ;
29405 char * kwnames[] = {
29406 (char *) "self",(char *) "font", NULL
29407 };
554f62e9 29408
50efceee
RD
29409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 29411 if (!SWIG_IsOK(res1)) {
50efceee 29412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 29413 }
50efceee
RD
29414 arg1 = reinterpret_cast< wxFontList * >(argp1);
29415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29416 if (!SWIG_IsOK(res2)) {
29417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29418 }
29419 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
29420 {
29421 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29422 (arg1)->RemoveFont(arg2);
554f62e9
RD
29423 wxPyEndAllowThreads(__tstate);
29424 if (PyErr_Occurred()) SWIG_fail;
29425 }
50efceee 29426 resultobj = SWIG_Py_Void();
554f62e9
RD
29427 return resultobj;
29428fail:
29429 return NULL;
29430}
29431
29432
50efceee 29433SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
29434 PyObject *obj;
29435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 29436 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
29437 return SWIG_Py_Void();
29438}
29439
29440SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29441 PyObject *resultobj = 0;
29442 wxColourDatabase *result = 0 ;
29443
29444 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29445 {
29446 if (!wxPyCheckForApp()) SWIG_fail;
29447 PyThreadState* __tstate = wxPyBeginAllowThreads();
29448 result = (wxColourDatabase *)new wxColourDatabase();
29449 wxPyEndAllowThreads(__tstate);
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29453 return resultobj;
29454fail:
29455 return NULL;
29456}
29457
29458
29459SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29460 PyObject *resultobj = 0;
29461 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29462 void *argp1 = 0 ;
29463 int res1 = 0 ;
29464 PyObject *swig_obj[1] ;
29465
29466 if (!args) SWIG_fail;
29467 swig_obj[0] = args;
29468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29469 if (!SWIG_IsOK(res1)) {
29470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29471 }
29472 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29473 {
29474 PyThreadState* __tstate = wxPyBeginAllowThreads();
29475 delete arg1;
29476
29477 wxPyEndAllowThreads(__tstate);
29478 if (PyErr_Occurred()) SWIG_fail;
29479 }
29480 resultobj = SWIG_Py_Void();
29481 return resultobj;
29482fail:
29483 return NULL;
29484}
29485
29486
29487SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29488 PyObject *resultobj = 0;
29489 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29490 wxString *arg2 = 0 ;
29491 wxColour result;
29492 void *argp1 = 0 ;
29493 int res1 = 0 ;
29494 bool temp2 = false ;
29495 PyObject * obj0 = 0 ;
29496 PyObject * obj1 = 0 ;
29497 char * kwnames[] = {
29498 (char *) "self",(char *) "name", NULL
29499 };
29500
29501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29503 if (!SWIG_IsOK(res1)) {
29504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29505 }
29506 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29507 {
29508 arg2 = wxString_in_helper(obj1);
29509 if (arg2 == NULL) SWIG_fail;
29510 temp2 = true;
29511 }
29512 {
29513 PyThreadState* __tstate = wxPyBeginAllowThreads();
29514 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29519 {
29520 if (temp2)
29521 delete arg2;
29522 }
29523 return resultobj;
29524fail:
29525 {
29526 if (temp2)
29527 delete arg2;
29528 }
29529 return NULL;
29530}
29531
29532
29533SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29534 PyObject *resultobj = 0;
29535 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29536 wxColour *arg2 = 0 ;
29537 wxString result;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 wxColour temp2 ;
29541 PyObject * obj0 = 0 ;
29542 PyObject * obj1 = 0 ;
29543 char * kwnames[] = {
29544 (char *) "self",(char *) "colour", NULL
29545 };
29546
29547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29551 }
29552 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29553 {
29554 arg2 = &temp2;
29555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29556 }
29557 {
29558 PyThreadState* __tstate = wxPyBeginAllowThreads();
29559 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29560 wxPyEndAllowThreads(__tstate);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 {
29564#if wxUSE_UNICODE
29565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29566#else
29567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29568#endif
29569 }
29570 return resultobj;
29571fail:
29572 return NULL;
29573}
29574
29575
29576SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29579 wxString *arg2 = 0 ;
29580 wxColour *arg3 = 0 ;
29581 void *argp1 = 0 ;
29582 int res1 = 0 ;
29583 bool temp2 = false ;
29584 wxColour temp3 ;
29585 PyObject * obj0 = 0 ;
29586 PyObject * obj1 = 0 ;
29587 PyObject * obj2 = 0 ;
29588 char * kwnames[] = {
29589 (char *) "self",(char *) "name",(char *) "colour", NULL
29590 };
29591
29592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29594 if (!SWIG_IsOK(res1)) {
29595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29596 }
29597 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29598 {
29599 arg2 = wxString_in_helper(obj1);
29600 if (arg2 == NULL) SWIG_fail;
29601 temp2 = true;
29602 }
29603 {
29604 arg3 = &temp3;
29605 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29606 }
29607 {
29608 PyThreadState* __tstate = wxPyBeginAllowThreads();
29609 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 resultobj = SWIG_Py_Void();
29614 {
29615 if (temp2)
29616 delete arg2;
29617 }
29618 return resultobj;
29619fail:
29620 {
29621 if (temp2)
29622 delete arg2;
29623 }
29624 return NULL;
29625}
29626
29627
29628SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29629 PyObject *resultobj = 0;
29630 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29631 wxString *arg2 = 0 ;
29632 int arg3 ;
29633 int arg4 ;
29634 int arg5 ;
29635 void *argp1 = 0 ;
29636 int res1 = 0 ;
29637 bool temp2 = false ;
29638 int val3 ;
29639 int ecode3 = 0 ;
29640 int val4 ;
29641 int ecode4 = 0 ;
50efceee
RD
29642 int val5 ;
29643 int ecode5 = 0 ;
554f62e9
RD
29644 PyObject * obj0 = 0 ;
29645 PyObject * obj1 = 0 ;
29646 PyObject * obj2 = 0 ;
29647 PyObject * obj3 = 0 ;
29648 PyObject * obj4 = 0 ;
554f62e9 29649 char * kwnames[] = {
50efceee 29650 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
29651 };
29652
50efceee
RD
29653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 29655 if (!SWIG_IsOK(res1)) {
50efceee
RD
29656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29657 }
29658 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29659 {
29660 arg2 = wxString_in_helper(obj1);
29661 if (arg2 == NULL) SWIG_fail;
29662 temp2 = true;
554f62e9 29663 }
554f62e9
RD
29664 ecode3 = SWIG_AsVal_int(obj2, &val3);
29665 if (!SWIG_IsOK(ecode3)) {
50efceee 29666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
29667 }
29668 arg3 = static_cast< int >(val3);
29669 ecode4 = SWIG_AsVal_int(obj3, &val4);
29670 if (!SWIG_IsOK(ecode4)) {
50efceee 29671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
29672 }
29673 arg4 = static_cast< int >(val4);
29674 ecode5 = SWIG_AsVal_int(obj4, &val5);
29675 if (!SWIG_IsOK(ecode5)) {
50efceee 29676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
29677 }
29678 arg5 = static_cast< int >(val5);
554f62e9
RD
29679 {
29680 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29681 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
29682 wxPyEndAllowThreads(__tstate);
29683 if (PyErr_Occurred()) SWIG_fail;
29684 }
50efceee 29685 resultobj = SWIG_Py_Void();
554f62e9 29686 {
50efceee
RD
29687 if (temp2)
29688 delete arg2;
554f62e9
RD
29689 }
29690 return resultobj;
29691fail:
29692 {
50efceee
RD
29693 if (temp2)
29694 delete arg2;
554f62e9
RD
29695 }
29696 return NULL;
29697}
29698
29699
50efceee
RD
29700SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29701 PyObject *obj;
29702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29703 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29704 return SWIG_Py_Void();
29705}
29706
29707SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29708 return SWIG_Python_InitShadowInstance(args);
29709}
29710
29711SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 29712 PyObject *resultobj = 0;
50efceee 29713 wxFontList *result = 0 ;
554f62e9 29714
50efceee 29715 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
29716 {
29717 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29718 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
29719 wxPyEndAllowThreads(__tstate);
29720 if (PyErr_Occurred()) SWIG_fail;
29721 }
50efceee 29722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
29723 return resultobj;
29724fail:
29725 return NULL;
29726}
29727
29728
50efceee 29729SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 29730 PyObject *resultobj = 0;
50efceee 29731 wxPenList *result = 0 ;
554f62e9 29732
50efceee 29733 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
29734 {
29735 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 29736 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
29737 wxPyEndAllowThreads(__tstate);
29738 if (PyErr_Occurred()) SWIG_fail;
29739 }
50efceee 29740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
29741 return resultobj;
29742fail:
29743 return NULL;
29744}
29745
29746
50efceee
RD
29747SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29748 PyObject *resultobj = 0;
29749 wxBrushList *result = 0 ;
554f62e9 29750
50efceee
RD
29751 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29752 {
29753 PyThreadState* __tstate = wxPyBeginAllowThreads();
29754 result = (wxBrushList *)_wxPyInitTheBrushList();
29755 wxPyEndAllowThreads(__tstate);
29756 if (PyErr_Occurred()) SWIG_fail;
29757 }
29758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29759 return resultobj;
29760fail:
29761 return NULL;
554f62e9
RD
29762}
29763
29764
50efceee
RD
29765SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29766 PyObject *resultobj = 0;
29767 wxColourDatabase *result = 0 ;
554f62e9 29768
50efceee
RD
29769 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29770 {
29771 PyThreadState* __tstate = wxPyBeginAllowThreads();
29772 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29773 wxPyEndAllowThreads(__tstate);
29774 if (PyErr_Occurred()) SWIG_fail;
29775 }
29776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29777 return resultobj;
29778fail:
29779 return NULL;
554f62e9
RD
29780}
29781
29782
29783SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29784 PyObject *resultobj = 0;
29785 wxEffects *result = 0 ;
29786
29787 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29788 {
29789 PyThreadState* __tstate = wxPyBeginAllowThreads();
29790 result = (wxEffects *)new wxEffects();
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29795 return resultobj;
29796fail:
29797 return NULL;
29798}
29799
29800
29801SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29802 PyObject *resultobj = 0;
29803 wxEffects *arg1 = (wxEffects *) 0 ;
29804 wxColour result;
29805 void *argp1 = 0 ;
29806 int res1 = 0 ;
29807 PyObject *swig_obj[1] ;
29808
29809 if (!args) SWIG_fail;
29810 swig_obj[0] = args;
29811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29812 if (!SWIG_IsOK(res1)) {
29813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29814 }
29815 arg1 = reinterpret_cast< wxEffects * >(argp1);
29816 {
29817 PyThreadState* __tstate = wxPyBeginAllowThreads();
29818 result = ((wxEffects const *)arg1)->GetHighlightColour();
29819 wxPyEndAllowThreads(__tstate);
29820 if (PyErr_Occurred()) SWIG_fail;
29821 }
29822 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29823 return resultobj;
29824fail:
29825 return NULL;
29826}
29827
29828
29829SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29830 PyObject *resultobj = 0;
29831 wxEffects *arg1 = (wxEffects *) 0 ;
29832 wxColour result;
29833 void *argp1 = 0 ;
29834 int res1 = 0 ;
29835 PyObject *swig_obj[1] ;
29836
29837 if (!args) SWIG_fail;
29838 swig_obj[0] = args;
29839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29840 if (!SWIG_IsOK(res1)) {
29841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29842 }
29843 arg1 = reinterpret_cast< wxEffects * >(argp1);
29844 {
29845 PyThreadState* __tstate = wxPyBeginAllowThreads();
29846 result = ((wxEffects const *)arg1)->GetLightShadow();
29847 wxPyEndAllowThreads(__tstate);
29848 if (PyErr_Occurred()) SWIG_fail;
29849 }
29850 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29851 return resultobj;
29852fail:
29853 return NULL;
29854}
29855
29856
29857SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29858 PyObject *resultobj = 0;
29859 wxEffects *arg1 = (wxEffects *) 0 ;
29860 wxColour result;
29861 void *argp1 = 0 ;
29862 int res1 = 0 ;
29863 PyObject *swig_obj[1] ;
29864
29865 if (!args) SWIG_fail;
29866 swig_obj[0] = args;
29867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29868 if (!SWIG_IsOK(res1)) {
29869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29870 }
29871 arg1 = reinterpret_cast< wxEffects * >(argp1);
29872 {
29873 PyThreadState* __tstate = wxPyBeginAllowThreads();
29874 result = ((wxEffects const *)arg1)->GetFaceColour();
29875 wxPyEndAllowThreads(__tstate);
29876 if (PyErr_Occurred()) SWIG_fail;
29877 }
29878 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29879 return resultobj;
29880fail:
29881 return NULL;
29882}
29883
29884
29885SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29886 PyObject *resultobj = 0;
29887 wxEffects *arg1 = (wxEffects *) 0 ;
29888 wxColour result;
29889 void *argp1 = 0 ;
29890 int res1 = 0 ;
29891 PyObject *swig_obj[1] ;
29892
29893 if (!args) SWIG_fail;
29894 swig_obj[0] = args;
29895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29896 if (!SWIG_IsOK(res1)) {
29897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29898 }
29899 arg1 = reinterpret_cast< wxEffects * >(argp1);
29900 {
29901 PyThreadState* __tstate = wxPyBeginAllowThreads();
29902 result = ((wxEffects const *)arg1)->GetMediumShadow();
29903 wxPyEndAllowThreads(__tstate);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 }
29906 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29907 return resultobj;
29908fail:
29909 return NULL;
29910}
29911
29912
29913SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29914 PyObject *resultobj = 0;
29915 wxEffects *arg1 = (wxEffects *) 0 ;
29916 wxColour result;
29917 void *argp1 = 0 ;
29918 int res1 = 0 ;
29919 PyObject *swig_obj[1] ;
29920
29921 if (!args) SWIG_fail;
29922 swig_obj[0] = args;
29923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29924 if (!SWIG_IsOK(res1)) {
29925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29926 }
29927 arg1 = reinterpret_cast< wxEffects * >(argp1);
29928 {
29929 PyThreadState* __tstate = wxPyBeginAllowThreads();
29930 result = ((wxEffects const *)arg1)->GetDarkShadow();
29931 wxPyEndAllowThreads(__tstate);
29932 if (PyErr_Occurred()) SWIG_fail;
29933 }
29934 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29935 return resultobj;
29936fail:
29937 return NULL;
29938}
29939
29940
29941SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29942 PyObject *resultobj = 0;
29943 wxEffects *arg1 = (wxEffects *) 0 ;
29944 wxColour *arg2 = 0 ;
29945 void *argp1 = 0 ;
29946 int res1 = 0 ;
29947 wxColour temp2 ;
29948 PyObject * obj0 = 0 ;
29949 PyObject * obj1 = 0 ;
29950 char * kwnames[] = {
29951 (char *) "self",(char *) "c", NULL
29952 };
29953
29954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29956 if (!SWIG_IsOK(res1)) {
29957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29958 }
29959 arg1 = reinterpret_cast< wxEffects * >(argp1);
29960 {
29961 arg2 = &temp2;
29962 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29963 }
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29967 wxPyEndAllowThreads(__tstate);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 resultobj = SWIG_Py_Void();
29971 return resultobj;
29972fail:
29973 return NULL;
29974}
29975
29976
29977SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29978 PyObject *resultobj = 0;
29979 wxEffects *arg1 = (wxEffects *) 0 ;
29980 wxColour *arg2 = 0 ;
29981 void *argp1 = 0 ;
29982 int res1 = 0 ;
29983 wxColour temp2 ;
29984 PyObject * obj0 = 0 ;
29985 PyObject * obj1 = 0 ;
29986 char * kwnames[] = {
29987 (char *) "self",(char *) "c", NULL
29988 };
29989
29990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29992 if (!SWIG_IsOK(res1)) {
29993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29994 }
29995 arg1 = reinterpret_cast< wxEffects * >(argp1);
29996 {
29997 arg2 = &temp2;
29998 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29999 }
30000 {
30001 PyThreadState* __tstate = wxPyBeginAllowThreads();
30002 (arg1)->SetLightShadow((wxColour const &)*arg2);
30003 wxPyEndAllowThreads(__tstate);
30004 if (PyErr_Occurred()) SWIG_fail;
30005 }
30006 resultobj = SWIG_Py_Void();
30007 return resultobj;
30008fail:
30009 return NULL;
30010}
30011
30012
30013SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30014 PyObject *resultobj = 0;
30015 wxEffects *arg1 = (wxEffects *) 0 ;
30016 wxColour *arg2 = 0 ;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 wxColour temp2 ;
30020 PyObject * obj0 = 0 ;
30021 PyObject * obj1 = 0 ;
30022 char * kwnames[] = {
30023 (char *) "self",(char *) "c", NULL
30024 };
30025
30026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
30027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30028 if (!SWIG_IsOK(res1)) {
30029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
30030 }
30031 arg1 = reinterpret_cast< wxEffects * >(argp1);
30032 {
30033 arg2 = &temp2;
30034 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30035 }
30036 {
30037 PyThreadState* __tstate = wxPyBeginAllowThreads();
30038 (arg1)->SetFaceColour((wxColour const &)*arg2);
30039 wxPyEndAllowThreads(__tstate);
30040 if (PyErr_Occurred()) SWIG_fail;
30041 }
30042 resultobj = SWIG_Py_Void();
30043 return resultobj;
30044fail:
30045 return NULL;
30046}
30047
30048
30049SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30050 PyObject *resultobj = 0;
30051 wxEffects *arg1 = (wxEffects *) 0 ;
30052 wxColour *arg2 = 0 ;
30053 void *argp1 = 0 ;
30054 int res1 = 0 ;
30055 wxColour temp2 ;
30056 PyObject * obj0 = 0 ;
30057 PyObject * obj1 = 0 ;
30058 char * kwnames[] = {
30059 (char *) "self",(char *) "c", NULL
30060 };
30061
30062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30064 if (!SWIG_IsOK(res1)) {
30065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30066 }
30067 arg1 = reinterpret_cast< wxEffects * >(argp1);
30068 {
30069 arg2 = &temp2;
30070 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30071 }
30072 {
30073 PyThreadState* __tstate = wxPyBeginAllowThreads();
30074 (arg1)->SetMediumShadow((wxColour const &)*arg2);
30075 wxPyEndAllowThreads(__tstate);
30076 if (PyErr_Occurred()) SWIG_fail;
30077 }
30078 resultobj = SWIG_Py_Void();
30079 return resultobj;
30080fail:
30081 return NULL;
30082}
30083
30084
30085SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30086 PyObject *resultobj = 0;
30087 wxEffects *arg1 = (wxEffects *) 0 ;
30088 wxColour *arg2 = 0 ;
30089 void *argp1 = 0 ;
30090 int res1 = 0 ;
30091 wxColour temp2 ;
30092 PyObject * obj0 = 0 ;
30093 PyObject * obj1 = 0 ;
30094 char * kwnames[] = {
30095 (char *) "self",(char *) "c", NULL
30096 };
30097
30098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30100 if (!SWIG_IsOK(res1)) {
30101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30102 }
30103 arg1 = reinterpret_cast< wxEffects * >(argp1);
30104 {
30105 arg2 = &temp2;
30106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30107 }
30108 {
30109 PyThreadState* __tstate = wxPyBeginAllowThreads();
30110 (arg1)->SetDarkShadow((wxColour const &)*arg2);
30111 wxPyEndAllowThreads(__tstate);
30112 if (PyErr_Occurred()) SWIG_fail;
30113 }
30114 resultobj = SWIG_Py_Void();
30115 return resultobj;
30116fail:
30117 return NULL;
30118}
30119
30120
30121SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30122 PyObject *resultobj = 0;
30123 wxEffects *arg1 = (wxEffects *) 0 ;
30124 wxColour *arg2 = 0 ;
30125 wxColour *arg3 = 0 ;
30126 wxColour *arg4 = 0 ;
30127 wxColour *arg5 = 0 ;
30128 wxColour *arg6 = 0 ;
30129 void *argp1 = 0 ;
30130 int res1 = 0 ;
30131 wxColour temp2 ;
30132 wxColour temp3 ;
30133 wxColour temp4 ;
30134 wxColour temp5 ;
30135 wxColour temp6 ;
30136 PyObject * obj0 = 0 ;
30137 PyObject * obj1 = 0 ;
30138 PyObject * obj2 = 0 ;
30139 PyObject * obj3 = 0 ;
30140 PyObject * obj4 = 0 ;
30141 PyObject * obj5 = 0 ;
30142 char * kwnames[] = {
30143 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
30144 };
30145
30146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30148 if (!SWIG_IsOK(res1)) {
30149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
30150 }
30151 arg1 = reinterpret_cast< wxEffects * >(argp1);
30152 {
30153 arg2 = &temp2;
30154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30155 }
30156 {
30157 arg3 = &temp3;
30158 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30159 }
30160 {
30161 arg4 = &temp4;
30162 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
30163 }
30164 {
30165 arg5 = &temp5;
30166 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
30167 }
30168 {
30169 arg6 = &temp6;
30170 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30171 }
30172 {
30173 PyThreadState* __tstate = wxPyBeginAllowThreads();
30174 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
30175 wxPyEndAllowThreads(__tstate);
30176 if (PyErr_Occurred()) SWIG_fail;
30177 }
30178 resultobj = SWIG_Py_Void();
30179 return resultobj;
30180fail:
30181 return NULL;
30182}
30183
30184
30185SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30186 PyObject *resultobj = 0;
30187 wxEffects *arg1 = (wxEffects *) 0 ;
30188 wxDC *arg2 = 0 ;
30189 wxRect *arg3 = 0 ;
30190 int arg4 = (int) 1 ;
30191 void *argp1 = 0 ;
30192 int res1 = 0 ;
30193 void *argp2 = 0 ;
30194 int res2 = 0 ;
30195 wxRect temp3 ;
30196 int val4 ;
30197 int ecode4 = 0 ;
30198 PyObject * obj0 = 0 ;
30199 PyObject * obj1 = 0 ;
30200 PyObject * obj2 = 0 ;
30201 PyObject * obj3 = 0 ;
30202 char * kwnames[] = {
30203 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
30204 };
30205
30206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30208 if (!SWIG_IsOK(res1)) {
30209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
30210 }
30211 arg1 = reinterpret_cast< wxEffects * >(argp1);
30212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
30213 if (!SWIG_IsOK(res2)) {
30214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30215 }
30216 if (!argp2) {
30217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30218 }
30219 arg2 = reinterpret_cast< wxDC * >(argp2);
30220 {
30221 arg3 = &temp3;
30222 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30223 }
30224 if (obj3) {
30225 ecode4 = SWIG_AsVal_int(obj3, &val4);
30226 if (!SWIG_IsOK(ecode4)) {
30227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
30228 }
30229 arg4 = static_cast< int >(val4);
30230 }
30231 {
30232 PyThreadState* __tstate = wxPyBeginAllowThreads();
30233 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
30234 wxPyEndAllowThreads(__tstate);
30235 if (PyErr_Occurred()) SWIG_fail;
30236 }
30237 resultobj = SWIG_Py_Void();
30238 return resultobj;
30239fail:
30240 return NULL;
30241}
30242
30243
30244SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30245 PyObject *resultobj = 0;
30246 wxEffects *arg1 = (wxEffects *) 0 ;
30247 wxRect *arg2 = 0 ;
30248 wxDC *arg3 = 0 ;
30249 wxBitmap *arg4 = 0 ;
30250 bool result;
30251 void *argp1 = 0 ;
30252 int res1 = 0 ;
30253 wxRect temp2 ;
30254 void *argp3 = 0 ;
30255 int res3 = 0 ;
30256 void *argp4 = 0 ;
30257 int res4 = 0 ;
30258 PyObject * obj0 = 0 ;
30259 PyObject * obj1 = 0 ;
30260 PyObject * obj2 = 0 ;
30261 PyObject * obj3 = 0 ;
30262 char * kwnames[] = {
30263 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
30264 };
30265
30266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30268 if (!SWIG_IsOK(res1)) {
30269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30270 }
30271 arg1 = reinterpret_cast< wxEffects * >(argp1);
30272 {
30273 arg2 = &temp2;
30274 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30275 }
30276 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30277 if (!SWIG_IsOK(res3)) {
30278 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30279 }
30280 if (!argp3) {
30281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30282 }
30283 arg3 = reinterpret_cast< wxDC * >(argp3);
30284 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30285 if (!SWIG_IsOK(res4)) {
30286 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30287 }
30288 if (!argp4) {
30289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30290 }
30291 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30292 {
30293 PyThreadState* __tstate = wxPyBeginAllowThreads();
30294 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30295 wxPyEndAllowThreads(__tstate);
30296 if (PyErr_Occurred()) SWIG_fail;
30297 }
30298 {
30299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30300 }
30301 return resultobj;
30302fail:
30303 return NULL;
30304}
30305
30306
30307SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30308 PyObject *obj;
30309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30310 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30311 return SWIG_Py_Void();
30312}
30313
30314SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30315 return SWIG_Python_InitShadowInstance(args);
30316}
30317
30318SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30319 PyObject *resultobj = 0;
30320 int arg1 ;
30321 int arg2 ;
30322 bool arg3 ;
30323 wxSplitterRenderParams *result = 0 ;
30324 int val1 ;
30325 int ecode1 = 0 ;
30326 int val2 ;
30327 int ecode2 = 0 ;
30328 bool val3 ;
30329 int ecode3 = 0 ;
30330 PyObject * obj0 = 0 ;
30331 PyObject * obj1 = 0 ;
30332 PyObject * obj2 = 0 ;
30333 char * kwnames[] = {
30334 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30335 };
30336
30337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30338 ecode1 = SWIG_AsVal_int(obj0, &val1);
30339 if (!SWIG_IsOK(ecode1)) {
30340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30341 }
30342 arg1 = static_cast< int >(val1);
30343 ecode2 = SWIG_AsVal_int(obj1, &val2);
30344 if (!SWIG_IsOK(ecode2)) {
30345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30346 }
30347 arg2 = static_cast< int >(val2);
30348 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30349 if (!SWIG_IsOK(ecode3)) {
30350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30351 }
30352 arg3 = static_cast< bool >(val3);
30353 {
30354 PyThreadState* __tstate = wxPyBeginAllowThreads();
30355 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30356 wxPyEndAllowThreads(__tstate);
30357 if (PyErr_Occurred()) SWIG_fail;
30358 }
30359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30360 return resultobj;
30361fail:
30362 return NULL;
30363}
30364
30365
30366SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30367 PyObject *resultobj = 0;
30368 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30369 void *argp1 = 0 ;
30370 int res1 = 0 ;
30371 PyObject *swig_obj[1] ;
30372
30373 if (!args) SWIG_fail;
30374 swig_obj[0] = args;
30375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30376 if (!SWIG_IsOK(res1)) {
30377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30378 }
30379 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30380 {
30381 PyThreadState* __tstate = wxPyBeginAllowThreads();
30382 delete arg1;
30383
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 resultobj = SWIG_Py_Void();
30388 return resultobj;
30389fail:
30390 return NULL;
30391}
30392
30393
30394SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30395 PyObject *resultobj = 0;
30396 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30397 int result;
30398 void *argp1 = 0 ;
30399 int res1 = 0 ;
30400 PyObject *swig_obj[1] ;
30401
30402 if (!args) SWIG_fail;
30403 swig_obj[0] = args;
30404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30405 if (!SWIG_IsOK(res1)) {
30406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30407 }
30408 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30409 result = (int)(int) ((arg1)->widthSash);
30410 resultobj = SWIG_From_int(static_cast< int >(result));
30411 return resultobj;
30412fail:
30413 return NULL;
30414}
30415
30416
30417SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30418 PyObject *resultobj = 0;
30419 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30420 int result;
30421 void *argp1 = 0 ;
30422 int res1 = 0 ;
30423 PyObject *swig_obj[1] ;
30424
30425 if (!args) SWIG_fail;
30426 swig_obj[0] = args;
30427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30428 if (!SWIG_IsOK(res1)) {
30429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30430 }
30431 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30432 result = (int)(int) ((arg1)->border);
30433 resultobj = SWIG_From_int(static_cast< int >(result));
30434 return resultobj;
30435fail:
30436 return NULL;
30437}
30438
30439
30440SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30441 PyObject *resultobj = 0;
30442 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30443 bool result;
30444 void *argp1 = 0 ;
30445 int res1 = 0 ;
30446 PyObject *swig_obj[1] ;
30447
30448 if (!args) SWIG_fail;
30449 swig_obj[0] = args;
30450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30451 if (!SWIG_IsOK(res1)) {
30452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30453 }
30454 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30455 result = (bool)(bool) ((arg1)->isHotSensitive);
30456 resultobj = SWIG_From_bool(static_cast< bool >(result));
30457 return resultobj;
30458fail:
30459 return NULL;
30460}
30461
30462
30463SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30464 PyObject *obj;
30465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30466 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30467 return SWIG_Py_Void();
30468}
30469
30470SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30471 return SWIG_Python_InitShadowInstance(args);
30472}
30473
33d6fd3b
RD
30474SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30475 PyObject *resultobj = 0;
30476 wxHeaderButtonParams *result = 0 ;
30477
30478 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30479 {
30480 PyThreadState* __tstate = wxPyBeginAllowThreads();
30481 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30482 wxPyEndAllowThreads(__tstate);
30483 if (PyErr_Occurred()) SWIG_fail;
30484 }
30485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30486 return resultobj;
30487fail:
30488 return NULL;
30489}
30490
30491
30492SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30493 PyObject *resultobj = 0;
30494 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30495 void *argp1 = 0 ;
30496 int res1 = 0 ;
30497 PyObject *swig_obj[1] ;
30498
30499 if (!args) SWIG_fail;
30500 swig_obj[0] = args;
30501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30502 if (!SWIG_IsOK(res1)) {
30503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30504 }
30505 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30506 {
30507 PyThreadState* __tstate = wxPyBeginAllowThreads();
30508 delete arg1;
30509
30510 wxPyEndAllowThreads(__tstate);
30511 if (PyErr_Occurred()) SWIG_fail;
30512 }
30513 resultobj = SWIG_Py_Void();
30514 return resultobj;
30515fail:
30516 return NULL;
30517}
30518
30519
30520SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30521 PyObject *resultobj = 0;
30522 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30523 wxColour *arg2 = (wxColour *) 0 ;
30524 void *argp1 = 0 ;
30525 int res1 = 0 ;
30526 wxColour temp2 ;
30527 PyObject *swig_obj[2] ;
30528
30529 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30531 if (!SWIG_IsOK(res1)) {
30532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30533 }
30534 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30535 {
30536 arg2 = &temp2;
30537 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30538 }
30539 if (arg1) (arg1)->m_arrowColour = *arg2;
30540
30541 resultobj = SWIG_Py_Void();
30542 return resultobj;
30543fail:
30544 return NULL;
30545}
30546
30547
30548SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30549 PyObject *resultobj = 0;
30550 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30551 wxColour *result = 0 ;
30552 void *argp1 = 0 ;
30553 int res1 = 0 ;
30554 PyObject *swig_obj[1] ;
30555
30556 if (!args) SWIG_fail;
30557 swig_obj[0] = args;
30558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30559 if (!SWIG_IsOK(res1)) {
30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30561 }
30562 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30563 result = (wxColour *)& ((arg1)->m_arrowColour);
30564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30565 return resultobj;
30566fail:
30567 return NULL;
30568}
30569
30570
30571SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30572 PyObject *resultobj = 0;
30573 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30574 wxColour *arg2 = (wxColour *) 0 ;
30575 void *argp1 = 0 ;
30576 int res1 = 0 ;
30577 wxColour temp2 ;
30578 PyObject *swig_obj[2] ;
30579
30580 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30582 if (!SWIG_IsOK(res1)) {
30583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30584 }
30585 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30586 {
30587 arg2 = &temp2;
30588 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30589 }
30590 if (arg1) (arg1)->m_selectionColour = *arg2;
30591
30592 resultobj = SWIG_Py_Void();
30593 return resultobj;
30594fail:
30595 return NULL;
30596}
30597
30598
30599SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30600 PyObject *resultobj = 0;
30601 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30602 wxColour *result = 0 ;
30603 void *argp1 = 0 ;
30604 int res1 = 0 ;
30605 PyObject *swig_obj[1] ;
30606
30607 if (!args) SWIG_fail;
30608 swig_obj[0] = args;
30609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30610 if (!SWIG_IsOK(res1)) {
30611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30612 }
30613 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30614 result = (wxColour *)& ((arg1)->m_selectionColour);
30615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30616 return resultobj;
30617fail:
30618 return NULL;
30619}
30620
30621
30622SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30623 PyObject *resultobj = 0;
30624 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30625 wxString *arg2 = (wxString *) 0 ;
30626 void *argp1 = 0 ;
30627 int res1 = 0 ;
30628 bool temp2 = false ;
30629 PyObject *swig_obj[2] ;
30630
30631 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30633 if (!SWIG_IsOK(res1)) {
30634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30635 }
30636 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30637 {
30638 arg2 = wxString_in_helper(swig_obj[1]);
30639 if (arg2 == NULL) SWIG_fail;
30640 temp2 = true;
30641 }
30642 if (arg1) (arg1)->m_labelText = *arg2;
30643
30644 resultobj = SWIG_Py_Void();
30645 {
30646 if (temp2)
30647 delete arg2;
30648 }
30649 return resultobj;
30650fail:
30651 {
30652 if (temp2)
30653 delete arg2;
30654 }
30655 return NULL;
30656}
30657
30658
30659SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30660 PyObject *resultobj = 0;
30661 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30662 wxString *result = 0 ;
30663 void *argp1 = 0 ;
30664 int res1 = 0 ;
30665 PyObject *swig_obj[1] ;
30666
30667 if (!args) SWIG_fail;
30668 swig_obj[0] = args;
30669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30670 if (!SWIG_IsOK(res1)) {
30671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30672 }
30673 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30674 result = (wxString *)& ((arg1)->m_labelText);
30675 {
30676#if wxUSE_UNICODE
30677 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30678#else
30679 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30680#endif
30681 }
30682 return resultobj;
30683fail:
30684 return NULL;
30685}
30686
30687
30688SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30689 PyObject *resultobj = 0;
30690 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30691 wxFont *arg2 = (wxFont *) 0 ;
30692 void *argp1 = 0 ;
30693 int res1 = 0 ;
30694 void *argp2 = 0 ;
30695 int res2 = 0 ;
30696 PyObject *swig_obj[2] ;
30697
30698 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30700 if (!SWIG_IsOK(res1)) {
30701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30702 }
30703 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30704 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30705 if (!SWIG_IsOK(res2)) {
30706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30707 }
30708 arg2 = reinterpret_cast< wxFont * >(argp2);
30709 if (arg1) (arg1)->m_labelFont = *arg2;
30710
30711 resultobj = SWIG_Py_Void();
30712 return resultobj;
30713fail:
30714 return NULL;
30715}
30716
30717
30718SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30719 PyObject *resultobj = 0;
30720 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30721 wxFont *result = 0 ;
30722 void *argp1 = 0 ;
30723 int res1 = 0 ;
30724 PyObject *swig_obj[1] ;
30725
30726 if (!args) SWIG_fail;
30727 swig_obj[0] = args;
30728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30729 if (!SWIG_IsOK(res1)) {
30730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30731 }
30732 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30733 result = (wxFont *)& ((arg1)->m_labelFont);
30734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30735 return resultobj;
30736fail:
30737 return NULL;
30738}
30739
30740
30741SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30742 PyObject *resultobj = 0;
30743 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30744 wxColour *arg2 = (wxColour *) 0 ;
30745 void *argp1 = 0 ;
30746 int res1 = 0 ;
30747 wxColour temp2 ;
30748 PyObject *swig_obj[2] ;
30749
30750 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30752 if (!SWIG_IsOK(res1)) {
30753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30754 }
30755 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30756 {
30757 arg2 = &temp2;
30758 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30759 }
30760 if (arg1) (arg1)->m_labelColour = *arg2;
30761
30762 resultobj = SWIG_Py_Void();
30763 return resultobj;
30764fail:
30765 return NULL;
30766}
30767
30768
30769SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30770 PyObject *resultobj = 0;
30771 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30772 wxColour *result = 0 ;
30773 void *argp1 = 0 ;
30774 int res1 = 0 ;
30775 PyObject *swig_obj[1] ;
30776
30777 if (!args) SWIG_fail;
30778 swig_obj[0] = args;
30779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30780 if (!SWIG_IsOK(res1)) {
30781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30782 }
30783 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30784 result = (wxColour *)& ((arg1)->m_labelColour);
30785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30786 return resultobj;
30787fail:
30788 return NULL;
30789}
30790
30791
30792SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30793 PyObject *resultobj = 0;
30794 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30795 wxBitmap *arg2 = (wxBitmap *) 0 ;
30796 void *argp1 = 0 ;
30797 int res1 = 0 ;
30798 void *argp2 = 0 ;
30799 int res2 = 0 ;
30800 PyObject *swig_obj[2] ;
30801
30802 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30806 }
30807 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30808 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30809 if (!SWIG_IsOK(res2)) {
30810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30811 }
30812 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30813 if (arg1) (arg1)->m_labelBitmap = *arg2;
30814
30815 resultobj = SWIG_Py_Void();
30816 return resultobj;
30817fail:
30818 return NULL;
30819}
30820
30821
30822SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30823 PyObject *resultobj = 0;
30824 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30825 wxBitmap *result = 0 ;
30826 void *argp1 = 0 ;
30827 int res1 = 0 ;
30828 PyObject *swig_obj[1] ;
30829
30830 if (!args) SWIG_fail;
30831 swig_obj[0] = args;
30832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30833 if (!SWIG_IsOK(res1)) {
30834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30835 }
30836 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30837 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30839 return resultobj;
30840fail:
30841 return NULL;
30842}
30843
30844
30845SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30846 PyObject *resultobj = 0;
30847 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30848 int arg2 ;
30849 void *argp1 = 0 ;
30850 int res1 = 0 ;
30851 int val2 ;
30852 int ecode2 = 0 ;
30853 PyObject *swig_obj[2] ;
30854
30855 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30859 }
30860 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30861 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30862 if (!SWIG_IsOK(ecode2)) {
30863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30864 }
30865 arg2 = static_cast< int >(val2);
30866 if (arg1) (arg1)->m_labelAlignment = arg2;
30867
30868 resultobj = SWIG_Py_Void();
30869 return resultobj;
30870fail:
30871 return NULL;
30872}
30873
30874
30875SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30876 PyObject *resultobj = 0;
30877 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30878 int result;
30879 void *argp1 = 0 ;
30880 int res1 = 0 ;
30881 PyObject *swig_obj[1] ;
30882
30883 if (!args) SWIG_fail;
30884 swig_obj[0] = args;
30885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30886 if (!SWIG_IsOK(res1)) {
30887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30888 }
30889 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30890 result = (int) ((arg1)->m_labelAlignment);
30891 resultobj = SWIG_From_int(static_cast< int >(result));
30892 return resultobj;
30893fail:
30894 return NULL;
30895}
30896
30897
30898SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30899 PyObject *obj;
30900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30901 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30902 return SWIG_Py_Void();
30903}
30904
30905SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30906 return SWIG_Python_InitShadowInstance(args);
30907}
30908
554f62e9
RD
30909SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30910 PyObject *resultobj = 0;
30911 int arg1 ;
30912 int arg2 ;
30913 wxRendererVersion *result = 0 ;
30914 int val1 ;
30915 int ecode1 = 0 ;
30916 int val2 ;
30917 int ecode2 = 0 ;
30918 PyObject * obj0 = 0 ;
30919 PyObject * obj1 = 0 ;
30920 char * kwnames[] = {
30921 (char *) "version_",(char *) "age_", NULL
30922 };
30923
30924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30925 ecode1 = SWIG_AsVal_int(obj0, &val1);
30926 if (!SWIG_IsOK(ecode1)) {
30927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30928 }
30929 arg1 = static_cast< int >(val1);
30930 ecode2 = SWIG_AsVal_int(obj1, &val2);
30931 if (!SWIG_IsOK(ecode2)) {
30932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30933 }
30934 arg2 = static_cast< int >(val2);
30935 {
30936 PyThreadState* __tstate = wxPyBeginAllowThreads();
30937 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30942 return resultobj;
30943fail:
30944 return NULL;
30945}
30946
30947
30948SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30949 PyObject *resultobj = 0;
30950 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30951 void *argp1 = 0 ;
30952 int res1 = 0 ;
30953 PyObject *swig_obj[1] ;
30954
30955 if (!args) SWIG_fail;
30956 swig_obj[0] = args;
30957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30960 }
30961 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30962 {
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 delete arg1;
30965
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 resultobj = SWIG_Py_Void();
30970 return resultobj;
30971fail:
30972 return NULL;
30973}
30974
30975
30976SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30977 PyObject *resultobj = 0;
30978 wxRendererVersion *arg1 = 0 ;
30979 bool result;
30980 void *argp1 = 0 ;
30981 int res1 = 0 ;
30982 PyObject * obj0 = 0 ;
30983 char * kwnames[] = {
30984 (char *) "ver", NULL
30985 };
30986
30987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30988 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30989 if (!SWIG_IsOK(res1)) {
30990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30991 }
30992 if (!argp1) {
30993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30994 }
30995 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30996 {
30997 PyThreadState* __tstate = wxPyBeginAllowThreads();
30998 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30999 wxPyEndAllowThreads(__tstate);
31000 if (PyErr_Occurred()) SWIG_fail;
31001 }
31002 {
31003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31004 }
31005 return resultobj;
31006fail:
31007 return NULL;
31008}
31009
31010
31011SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31012 PyObject *resultobj = 0;
31013 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31014 int result;
31015 void *argp1 = 0 ;
31016 int res1 = 0 ;
31017 PyObject *swig_obj[1] ;
31018
31019 if (!args) SWIG_fail;
31020 swig_obj[0] = args;
31021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31022 if (!SWIG_IsOK(res1)) {
31023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31024 }
31025 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31026 result = (int)(int) ((arg1)->version);
31027 resultobj = SWIG_From_int(static_cast< int >(result));
31028 return resultobj;
31029fail:
31030 return NULL;
31031}
31032
31033
31034SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31035 PyObject *resultobj = 0;
31036 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31037 int result;
31038 void *argp1 = 0 ;
31039 int res1 = 0 ;
31040 PyObject *swig_obj[1] ;
31041
31042 if (!args) SWIG_fail;
31043 swig_obj[0] = args;
31044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31045 if (!SWIG_IsOK(res1)) {
31046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31047 }
31048 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31049 result = (int)(int) ((arg1)->age);
31050 resultobj = SWIG_From_int(static_cast< int >(result));
31051 return resultobj;
31052fail:
31053 return NULL;
31054}
31055
31056
31057SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31058 PyObject *obj;
31059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31060 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
31061 return SWIG_Py_Void();
31062}
31063
31064SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31065 return SWIG_Python_InitShadowInstance(args);
31066}
31067
31068SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31069 PyObject *resultobj = 0;
31070 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31071 wxWindow *arg2 = (wxWindow *) 0 ;
31072 wxDC *arg3 = 0 ;
31073 wxRect *arg4 = 0 ;
31074 int arg5 = (int) 0 ;
33d6fd3b
RD
31075 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31076 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
554f62e9
RD
31077 void *argp1 = 0 ;
31078 int res1 = 0 ;
31079 void *argp2 = 0 ;
31080 int res2 = 0 ;
31081 void *argp3 = 0 ;
31082 int res3 = 0 ;
31083 wxRect temp4 ;
31084 int val5 ;
31085 int ecode5 = 0 ;
33d6fd3b
RD
31086 int val6 ;
31087 int ecode6 = 0 ;
31088 void *argp7 = 0 ;
31089 int res7 = 0 ;
554f62e9
RD
31090 PyObject * obj0 = 0 ;
31091 PyObject * obj1 = 0 ;
31092 PyObject * obj2 = 0 ;
31093 PyObject * obj3 = 0 ;
31094 PyObject * obj4 = 0 ;
33d6fd3b
RD
31095 PyObject * obj5 = 0 ;
31096 PyObject * obj6 = 0 ;
554f62e9 31097 char * kwnames[] = {
33d6fd3b 31098 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
31099 };
31100
33d6fd3b 31101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
31102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31103 if (!SWIG_IsOK(res1)) {
31104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31105 }
31106 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31108 if (!SWIG_IsOK(res2)) {
31109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31110 }
31111 arg2 = reinterpret_cast< wxWindow * >(argp2);
31112 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31113 if (!SWIG_IsOK(res3)) {
31114 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31115 }
31116 if (!argp3) {
31117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31118 }
31119 arg3 = reinterpret_cast< wxDC * >(argp3);
31120 {
31121 arg4 = &temp4;
31122 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31123 }
31124 if (obj4) {
31125 ecode5 = SWIG_AsVal_int(obj4, &val5);
31126 if (!SWIG_IsOK(ecode5)) {
31127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
31128 }
31129 arg5 = static_cast< int >(val5);
31130 }
33d6fd3b
RD
31131 if (obj5) {
31132 ecode6 = SWIG_AsVal_int(obj5, &val6);
31133 if (!SWIG_IsOK(ecode6)) {
31134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31135 }
31136 arg6 = static_cast< wxHeaderSortIconType >(val6);
31137 }
31138 if (obj6) {
31139 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31140 if (!SWIG_IsOK(res7)) {
31141 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31142 }
31143 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31144 }
31145 {
31146 PyThreadState* __tstate = wxPyBeginAllowThreads();
31147 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31148 wxPyEndAllowThreads(__tstate);
31149 if (PyErr_Occurred()) SWIG_fail;
31150 }
31151 resultobj = SWIG_Py_Void();
31152 return resultobj;
31153fail:
31154 return NULL;
31155}
31156
31157
31158SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31159 PyObject *resultobj = 0;
31160 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31161 wxWindow *arg2 = (wxWindow *) 0 ;
31162 wxDC *arg3 = 0 ;
31163 wxRect *arg4 = 0 ;
31164 int arg5 = (int) 0 ;
31165 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31166 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31167 void *argp1 = 0 ;
31168 int res1 = 0 ;
31169 void *argp2 = 0 ;
31170 int res2 = 0 ;
31171 void *argp3 = 0 ;
31172 int res3 = 0 ;
31173 wxRect temp4 ;
31174 int val5 ;
31175 int ecode5 = 0 ;
31176 int val6 ;
31177 int ecode6 = 0 ;
31178 void *argp7 = 0 ;
31179 int res7 = 0 ;
31180 PyObject * obj0 = 0 ;
31181 PyObject * obj1 = 0 ;
31182 PyObject * obj2 = 0 ;
31183 PyObject * obj3 = 0 ;
31184 PyObject * obj4 = 0 ;
31185 PyObject * obj5 = 0 ;
31186 PyObject * obj6 = 0 ;
31187 char * kwnames[] = {
31188 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31189 };
31190
31191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31193 if (!SWIG_IsOK(res1)) {
31194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31195 }
31196 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31198 if (!SWIG_IsOK(res2)) {
31199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
31200 }
31201 arg2 = reinterpret_cast< wxWindow * >(argp2);
31202 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31203 if (!SWIG_IsOK(res3)) {
31204 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31205 }
31206 if (!argp3) {
31207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31208 }
31209 arg3 = reinterpret_cast< wxDC * >(argp3);
31210 {
31211 arg4 = &temp4;
31212 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31213 }
31214 if (obj4) {
31215 ecode5 = SWIG_AsVal_int(obj4, &val5);
31216 if (!SWIG_IsOK(ecode5)) {
31217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
31218 }
31219 arg5 = static_cast< int >(val5);
31220 }
31221 if (obj5) {
31222 ecode6 = SWIG_AsVal_int(obj5, &val6);
31223 if (!SWIG_IsOK(ecode6)) {
31224 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31225 }
31226 arg6 = static_cast< wxHeaderSortIconType >(val6);
31227 }
31228 if (obj6) {
31229 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31230 if (!SWIG_IsOK(res7)) {
31231 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31232 }
31233 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31234 }
554f62e9
RD
31235 {
31236 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 31237 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
31238 wxPyEndAllowThreads(__tstate);
31239 if (PyErr_Occurred()) SWIG_fail;
31240 }
31241 resultobj = SWIG_Py_Void();
31242 return resultobj;
31243fail:
31244 return NULL;
31245}
31246
31247
33d6fd3b
RD
31248SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31249 PyObject *resultobj = 0;
31250 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31251 wxWindow *arg2 = (wxWindow *) 0 ;
31252 int result;
31253 void *argp1 = 0 ;
31254 int res1 = 0 ;
31255 void *argp2 = 0 ;
31256 int res2 = 0 ;
31257 PyObject * obj0 = 0 ;
31258 PyObject * obj1 = 0 ;
31259 char * kwnames[] = {
31260 (char *) "self",(char *) "win", NULL
31261 };
31262
31263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
31264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31265 if (!SWIG_IsOK(res1)) {
31266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31267 }
31268 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31270 if (!SWIG_IsOK(res2)) {
31271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31272 }
31273 arg2 = reinterpret_cast< wxWindow * >(argp2);
31274 {
31275 PyThreadState* __tstate = wxPyBeginAllowThreads();
31276 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31277 wxPyEndAllowThreads(__tstate);
31278 if (PyErr_Occurred()) SWIG_fail;
31279 }
31280 resultobj = SWIG_From_int(static_cast< int >(result));
31281 return resultobj;
31282fail:
31283 return NULL;
31284}
31285
31286
554f62e9
RD
31287SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31288 PyObject *resultobj = 0;
31289 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31290 wxWindow *arg2 = (wxWindow *) 0 ;
31291 wxDC *arg3 = 0 ;
31292 wxRect *arg4 = 0 ;
31293 int arg5 = (int) 0 ;
31294 void *argp1 = 0 ;
31295 int res1 = 0 ;
31296 void *argp2 = 0 ;
31297 int res2 = 0 ;
31298 void *argp3 = 0 ;
31299 int res3 = 0 ;
31300 wxRect temp4 ;
31301 int val5 ;
31302 int ecode5 = 0 ;
31303 PyObject * obj0 = 0 ;
31304 PyObject * obj1 = 0 ;
31305 PyObject * obj2 = 0 ;
31306 PyObject * obj3 = 0 ;
31307 PyObject * obj4 = 0 ;
31308 char * kwnames[] = {
31309 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31310 };
31311
31312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31314 if (!SWIG_IsOK(res1)) {
31315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31316 }
31317 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31319 if (!SWIG_IsOK(res2)) {
31320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31321 }
31322 arg2 = reinterpret_cast< wxWindow * >(argp2);
31323 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31324 if (!SWIG_IsOK(res3)) {
31325 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31326 }
31327 if (!argp3) {
31328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31329 }
31330 arg3 = reinterpret_cast< wxDC * >(argp3);
31331 {
31332 arg4 = &temp4;
31333 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31334 }
31335 if (obj4) {
31336 ecode5 = SWIG_AsVal_int(obj4, &val5);
31337 if (!SWIG_IsOK(ecode5)) {
31338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31339 }
31340 arg5 = static_cast< int >(val5);
31341 }
31342 {
31343 PyThreadState* __tstate = wxPyBeginAllowThreads();
31344 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31345 wxPyEndAllowThreads(__tstate);
31346 if (PyErr_Occurred()) SWIG_fail;
31347 }
31348 resultobj = SWIG_Py_Void();
31349 return resultobj;
31350fail:
31351 return NULL;
31352}
31353
31354
31355SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31356 PyObject *resultobj = 0;
31357 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31358 wxWindow *arg2 = (wxWindow *) 0 ;
31359 wxDC *arg3 = 0 ;
31360 wxRect *arg4 = 0 ;
31361 int arg5 = (int) 0 ;
31362 void *argp1 = 0 ;
31363 int res1 = 0 ;
31364 void *argp2 = 0 ;
31365 int res2 = 0 ;
31366 void *argp3 = 0 ;
31367 int res3 = 0 ;
31368 wxRect temp4 ;
31369 int val5 ;
31370 int ecode5 = 0 ;
31371 PyObject * obj0 = 0 ;
31372 PyObject * obj1 = 0 ;
31373 PyObject * obj2 = 0 ;
31374 PyObject * obj3 = 0 ;
31375 PyObject * obj4 = 0 ;
31376 char * kwnames[] = {
31377 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31378 };
31379
31380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31382 if (!SWIG_IsOK(res1)) {
31383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31384 }
31385 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31387 if (!SWIG_IsOK(res2)) {
31388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31389 }
31390 arg2 = reinterpret_cast< wxWindow * >(argp2);
31391 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31392 if (!SWIG_IsOK(res3)) {
31393 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31394 }
31395 if (!argp3) {
31396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31397 }
31398 arg3 = reinterpret_cast< wxDC * >(argp3);
31399 {
31400 arg4 = &temp4;
31401 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31402 }
31403 if (obj4) {
31404 ecode5 = SWIG_AsVal_int(obj4, &val5);
31405 if (!SWIG_IsOK(ecode5)) {
31406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31407 }
31408 arg5 = static_cast< int >(val5);
31409 }
31410 {
31411 PyThreadState* __tstate = wxPyBeginAllowThreads();
31412 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31413 wxPyEndAllowThreads(__tstate);
31414 if (PyErr_Occurred()) SWIG_fail;
31415 }
31416 resultobj = SWIG_Py_Void();
31417 return resultobj;
31418fail:
31419 return NULL;
31420}
31421
31422
31423SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31424 PyObject *resultobj = 0;
31425 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31426 wxWindow *arg2 = (wxWindow *) 0 ;
31427 wxDC *arg3 = 0 ;
31428 wxSize *arg4 = 0 ;
31429 int arg5 ;
31430 wxOrientation arg6 ;
31431 int arg7 = (int) 0 ;
31432 void *argp1 = 0 ;
31433 int res1 = 0 ;
31434 void *argp2 = 0 ;
31435 int res2 = 0 ;
31436 void *argp3 = 0 ;
31437 int res3 = 0 ;
31438 wxSize temp4 ;
31439 int val5 ;
31440 int ecode5 = 0 ;
31441 int val6 ;
31442 int ecode6 = 0 ;
31443 int val7 ;
31444 int ecode7 = 0 ;
31445 PyObject * obj0 = 0 ;
31446 PyObject * obj1 = 0 ;
31447 PyObject * obj2 = 0 ;
31448 PyObject * obj3 = 0 ;
31449 PyObject * obj4 = 0 ;
31450 PyObject * obj5 = 0 ;
31451 PyObject * obj6 = 0 ;
31452 char * kwnames[] = {
31453 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31454 };
31455
31456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31458 if (!SWIG_IsOK(res1)) {
31459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31460 }
31461 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31463 if (!SWIG_IsOK(res2)) {
31464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31465 }
31466 arg2 = reinterpret_cast< wxWindow * >(argp2);
31467 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31468 if (!SWIG_IsOK(res3)) {
31469 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31470 }
31471 if (!argp3) {
31472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31473 }
31474 arg3 = reinterpret_cast< wxDC * >(argp3);
31475 {
31476 arg4 = &temp4;
31477 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31478 }
31479 ecode5 = SWIG_AsVal_int(obj4, &val5);
31480 if (!SWIG_IsOK(ecode5)) {
31481 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31482 }
31483 arg5 = static_cast< int >(val5);
31484 ecode6 = SWIG_AsVal_int(obj5, &val6);
31485 if (!SWIG_IsOK(ecode6)) {
31486 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31487 }
31488 arg6 = static_cast< wxOrientation >(val6);
31489 if (obj6) {
31490 ecode7 = SWIG_AsVal_int(obj6, &val7);
31491 if (!SWIG_IsOK(ecode7)) {
31492 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31493 }
31494 arg7 = static_cast< int >(val7);
31495 }
31496 {
31497 PyThreadState* __tstate = wxPyBeginAllowThreads();
31498 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31499 wxPyEndAllowThreads(__tstate);
31500 if (PyErr_Occurred()) SWIG_fail;
31501 }
31502 resultobj = SWIG_Py_Void();
31503 return resultobj;
31504fail:
31505 return NULL;
31506}
31507
31508
31509SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31510 PyObject *resultobj = 0;
31511 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31512 wxWindow *arg2 = (wxWindow *) 0 ;
31513 wxDC *arg3 = 0 ;
31514 wxRect *arg4 = 0 ;
31515 int arg5 = (int) 0 ;
31516 void *argp1 = 0 ;
31517 int res1 = 0 ;
31518 void *argp2 = 0 ;
31519 int res2 = 0 ;
31520 void *argp3 = 0 ;
31521 int res3 = 0 ;
31522 wxRect temp4 ;
31523 int val5 ;
31524 int ecode5 = 0 ;
31525 PyObject * obj0 = 0 ;
31526 PyObject * obj1 = 0 ;
31527 PyObject * obj2 = 0 ;
31528 PyObject * obj3 = 0 ;
31529 PyObject * obj4 = 0 ;
31530 char * kwnames[] = {
31531 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31532 };
31533
31534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31536 if (!SWIG_IsOK(res1)) {
31537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31538 }
31539 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31541 if (!SWIG_IsOK(res2)) {
31542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31543 }
31544 arg2 = reinterpret_cast< wxWindow * >(argp2);
31545 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31546 if (!SWIG_IsOK(res3)) {
31547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31548 }
31549 if (!argp3) {
31550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31551 }
31552 arg3 = reinterpret_cast< wxDC * >(argp3);
31553 {
31554 arg4 = &temp4;
31555 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31556 }
31557 if (obj4) {
31558 ecode5 = SWIG_AsVal_int(obj4, &val5);
31559 if (!SWIG_IsOK(ecode5)) {
31560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31561 }
31562 arg5 = static_cast< int >(val5);
31563 }
31564 {
31565 PyThreadState* __tstate = wxPyBeginAllowThreads();
31566 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31567 wxPyEndAllowThreads(__tstate);
31568 if (PyErr_Occurred()) SWIG_fail;
31569 }
31570 resultobj = SWIG_Py_Void();
31571 return resultobj;
31572fail:
31573 return NULL;
31574}
31575
31576
31577SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31578 PyObject *resultobj = 0;
31579 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31580 wxWindow *arg2 = (wxWindow *) 0 ;
31581 wxDC *arg3 = 0 ;
31582 wxRect *arg4 = 0 ;
31583 int arg5 = (int) 0 ;
31584 void *argp1 = 0 ;
31585 int res1 = 0 ;
31586 void *argp2 = 0 ;
31587 int res2 = 0 ;
31588 void *argp3 = 0 ;
31589 int res3 = 0 ;
31590 wxRect temp4 ;
31591 int val5 ;
31592 int ecode5 = 0 ;
31593 PyObject * obj0 = 0 ;
31594 PyObject * obj1 = 0 ;
31595 PyObject * obj2 = 0 ;
31596 PyObject * obj3 = 0 ;
31597 PyObject * obj4 = 0 ;
31598 char * kwnames[] = {
31599 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31600 };
31601
31602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31604 if (!SWIG_IsOK(res1)) {
31605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31606 }
31607 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31608 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31609 if (!SWIG_IsOK(res2)) {
31610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31611 }
31612 arg2 = reinterpret_cast< wxWindow * >(argp2);
31613 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31614 if (!SWIG_IsOK(res3)) {
31615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31616 }
31617 if (!argp3) {
31618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31619 }
31620 arg3 = reinterpret_cast< wxDC * >(argp3);
31621 {
31622 arg4 = &temp4;
31623 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31624 }
31625 if (obj4) {
31626 ecode5 = SWIG_AsVal_int(obj4, &val5);
31627 if (!SWIG_IsOK(ecode5)) {
31628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31629 }
31630 arg5 = static_cast< int >(val5);
31631 }
31632 {
31633 PyThreadState* __tstate = wxPyBeginAllowThreads();
31634 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31635 wxPyEndAllowThreads(__tstate);
31636 if (PyErr_Occurred()) SWIG_fail;
31637 }
31638 resultobj = SWIG_Py_Void();
31639 return resultobj;
31640fail:
31641 return NULL;
31642}
31643
31644
f460c29d
RD
31645SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31646 PyObject *resultobj = 0;
31647 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31648 wxWindow *arg2 = (wxWindow *) 0 ;
31649 wxDC *arg3 = 0 ;
31650 wxRect *arg4 = 0 ;
31651 int arg5 = (int) 0 ;
31652 void *argp1 = 0 ;
31653 int res1 = 0 ;
31654 void *argp2 = 0 ;
31655 int res2 = 0 ;
31656 void *argp3 = 0 ;
31657 int res3 = 0 ;
31658 wxRect temp4 ;
31659 int val5 ;
31660 int ecode5 = 0 ;
31661 PyObject * obj0 = 0 ;
31662 PyObject * obj1 = 0 ;
31663 PyObject * obj2 = 0 ;
31664 PyObject * obj3 = 0 ;
31665 PyObject * obj4 = 0 ;
31666 char * kwnames[] = {
31667 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31668 };
31669
31670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31672 if (!SWIG_IsOK(res1)) {
31673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31674 }
31675 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31677 if (!SWIG_IsOK(res2)) {
31678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31679 }
31680 arg2 = reinterpret_cast< wxWindow * >(argp2);
31681 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31682 if (!SWIG_IsOK(res3)) {
31683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31684 }
31685 if (!argp3) {
31686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31687 }
31688 arg3 = reinterpret_cast< wxDC * >(argp3);
31689 {
31690 arg4 = &temp4;
31691 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31692 }
31693 if (obj4) {
31694 ecode5 = SWIG_AsVal_int(obj4, &val5);
31695 if (!SWIG_IsOK(ecode5)) {
31696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31697 }
31698 arg5 = static_cast< int >(val5);
31699 }
31700 {
31701 PyThreadState* __tstate = wxPyBeginAllowThreads();
31702 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31703 wxPyEndAllowThreads(__tstate);
31704 if (PyErr_Occurred()) SWIG_fail;
31705 }
31706 resultobj = SWIG_Py_Void();
31707 return resultobj;
31708fail:
31709 return NULL;
31710}
31711
31712
31713SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31714 PyObject *resultobj = 0;
31715 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31716 wxWindow *arg2 = (wxWindow *) 0 ;
31717 wxDC *arg3 = 0 ;
31718 wxRect *arg4 = 0 ;
31719 int arg5 = (int) 0 ;
31720 void *argp1 = 0 ;
31721 int res1 = 0 ;
31722 void *argp2 = 0 ;
31723 int res2 = 0 ;
31724 void *argp3 = 0 ;
31725 int res3 = 0 ;
31726 wxRect temp4 ;
31727 int val5 ;
31728 int ecode5 = 0 ;
31729 PyObject * obj0 = 0 ;
31730 PyObject * obj1 = 0 ;
31731 PyObject * obj2 = 0 ;
31732 PyObject * obj3 = 0 ;
31733 PyObject * obj4 = 0 ;
31734 char * kwnames[] = {
31735 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31736 };
31737
31738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31740 if (!SWIG_IsOK(res1)) {
31741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31742 }
31743 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31745 if (!SWIG_IsOK(res2)) {
31746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31747 }
31748 arg2 = reinterpret_cast< wxWindow * >(argp2);
31749 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31750 if (!SWIG_IsOK(res3)) {
31751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31752 }
31753 if (!argp3) {
31754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31755 }
31756 arg3 = reinterpret_cast< wxDC * >(argp3);
31757 {
31758 arg4 = &temp4;
31759 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31760 }
31761 if (obj4) {
31762 ecode5 = SWIG_AsVal_int(obj4, &val5);
31763 if (!SWIG_IsOK(ecode5)) {
31764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31765 }
31766 arg5 = static_cast< int >(val5);
31767 }
31768 {
31769 PyThreadState* __tstate = wxPyBeginAllowThreads();
31770 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31771 wxPyEndAllowThreads(__tstate);
31772 if (PyErr_Occurred()) SWIG_fail;
31773 }
31774 resultobj = SWIG_Py_Void();
31775 return resultobj;
31776fail:
31777 return NULL;
31778}
31779
31780
31781SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
31782 PyObject *resultobj = 0;
31783 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31784 wxWindow *arg2 = (wxWindow *) 0 ;
31785 wxDC *arg3 = 0 ;
31786 wxRect *arg4 = 0 ;
31787 int arg5 = (int) 0 ;
31788 void *argp1 = 0 ;
31789 int res1 = 0 ;
31790 void *argp2 = 0 ;
31791 int res2 = 0 ;
31792 void *argp3 = 0 ;
31793 int res3 = 0 ;
31794 wxRect temp4 ;
31795 int val5 ;
31796 int ecode5 = 0 ;
31797 PyObject * obj0 = 0 ;
31798 PyObject * obj1 = 0 ;
31799 PyObject * obj2 = 0 ;
31800 PyObject * obj3 = 0 ;
31801 PyObject * obj4 = 0 ;
31802 char * kwnames[] = {
31803 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31804 };
31805
f460c29d 31806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
31807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31808 if (!SWIG_IsOK(res1)) {
f460c29d 31809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
31810 }
31811 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31813 if (!SWIG_IsOK(res2)) {
f460c29d 31814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
31815 }
31816 arg2 = reinterpret_cast< wxWindow * >(argp2);
31817 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31818 if (!SWIG_IsOK(res3)) {
f460c29d 31819 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
31820 }
31821 if (!argp3) {
f460c29d 31822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
31823 }
31824 arg3 = reinterpret_cast< wxDC * >(argp3);
31825 {
31826 arg4 = &temp4;
31827 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31828 }
31829 if (obj4) {
31830 ecode5 = SWIG_AsVal_int(obj4, &val5);
31831 if (!SWIG_IsOK(ecode5)) {
f460c29d 31832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
31833 }
31834 arg5 = static_cast< int >(val5);
31835 }
31836 {
31837 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 31838 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
31839 wxPyEndAllowThreads(__tstate);
31840 if (PyErr_Occurred()) SWIG_fail;
31841 }
31842 resultobj = SWIG_Py_Void();
31843 return resultobj;
31844fail:
31845 return NULL;
31846}
31847
31848
554f62e9
RD
31849SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31850 PyObject *resultobj = 0;
31851 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31852 wxWindow *arg2 = (wxWindow *) 0 ;
31853 SwigValueWrapper<wxSplitterRenderParams > result;
31854 void *argp1 = 0 ;
31855 int res1 = 0 ;
31856 void *argp2 = 0 ;
31857 int res2 = 0 ;
31858 PyObject * obj0 = 0 ;
31859 PyObject * obj1 = 0 ;
31860 char * kwnames[] = {
31861 (char *) "self",(char *) "win", NULL
31862 };
31863
31864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31866 if (!SWIG_IsOK(res1)) {
31867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31868 }
31869 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31871 if (!SWIG_IsOK(res2)) {
31872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31873 }
31874 arg2 = reinterpret_cast< wxWindow * >(argp2);
31875 {
31876 PyThreadState* __tstate = wxPyBeginAllowThreads();
31877 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31878 wxPyEndAllowThreads(__tstate);
31879 if (PyErr_Occurred()) SWIG_fail;
31880 }
31881 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31882 return resultobj;
31883fail:
31884 return NULL;
31885}
31886
31887
31888SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31889 PyObject *resultobj = 0;
31890 wxRendererNative *result = 0 ;
31891
31892 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31893 {
704eda0c 31894 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 31896 {
554f62e9
RD
31897 wxRendererNative &_result_ref = wxRendererNative::Get();
31898 result = (wxRendererNative *) &_result_ref;
093d3ff1 31899 }
554f62e9
RD
31900 wxPyEndAllowThreads(__tstate);
31901 if (PyErr_Occurred()) SWIG_fail;
31902 }
31903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31904 return resultobj;
31905fail:
31906 return NULL;
31907}
31908
31909
31910SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31911 PyObject *resultobj = 0;
31912 wxRendererNative *result = 0 ;
31913
31914 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31915 {
704eda0c 31916 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 31917 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 31918 {
554f62e9
RD
31919 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31920 result = (wxRendererNative *) &_result_ref;
be9b1dca 31921 }
554f62e9
RD
31922 wxPyEndAllowThreads(__tstate);
31923 if (PyErr_Occurred()) SWIG_fail;
31924 }
31925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31926 return resultobj;
31927fail:
31928 return NULL;
31929}
31930
31931
31932SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31933 PyObject *resultobj = 0;
31934 wxRendererNative *result = 0 ;
31935
31936 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31937 {
704eda0c 31938 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 31939 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 31940 {
554f62e9
RD
31941 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31942 result = (wxRendererNative *) &_result_ref;
be9b1dca 31943 }
554f62e9
RD
31944 wxPyEndAllowThreads(__tstate);
31945 if (PyErr_Occurred()) SWIG_fail;
31946 }
31947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31948 return resultobj;
31949fail:
31950 return NULL;
31951}
31952
31953
31954SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31955 PyObject *resultobj = 0;
31956 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31957 wxRendererNative *result = 0 ;
31958 void *argp1 = 0 ;
31959 int res1 = 0 ;
31960 PyObject * obj0 = 0 ;
31961 char * kwnames[] = {
31962 (char *) "renderer", NULL
31963 };
31964
31965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31967 if (!SWIG_IsOK(res1)) {
31968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31969 }
31970 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31971 {
704eda0c 31972 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
31973 PyThreadState* __tstate = wxPyBeginAllowThreads();
31974 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31975 wxPyEndAllowThreads(__tstate);
31976 if (PyErr_Occurred()) SWIG_fail;
31977 }
31978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31979 return resultobj;
31980fail:
31981 return NULL;
31982}
31983
31984
31985SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31986 PyObject *resultobj = 0;
31987 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31988 SwigValueWrapper<wxRendererVersion > result;
31989 void *argp1 = 0 ;
31990 int res1 = 0 ;
31991 PyObject *swig_obj[1] ;
31992
31993 if (!args) SWIG_fail;
31994 swig_obj[0] = args;
31995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31996 if (!SWIG_IsOK(res1)) {
31997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31998 }
31999 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
32000 {
32001 PyThreadState* __tstate = wxPyBeginAllowThreads();
32002 result = ((wxRendererNative const *)arg1)->GetVersion();
32003 wxPyEndAllowThreads(__tstate);
32004 if (PyErr_Occurred()) SWIG_fail;
32005 }
32006 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
32007 return resultobj;
32008fail:
32009 return NULL;
32010}
32011
32012
32013SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32014 PyObject *obj;
32015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32016 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
32017 return SWIG_Py_Void();
32018}
32019
27e45892
RD
32020SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32021 PyObject *resultobj = 0;
32022 wxPseudoDC *result = 0 ;
32023
32024 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
32025 {
32026 PyThreadState* __tstate = wxPyBeginAllowThreads();
32027 result = (wxPseudoDC *)new wxPseudoDC();
32028 wxPyEndAllowThreads(__tstate);
32029 if (PyErr_Occurred()) SWIG_fail;
32030 }
32031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
32032 return resultobj;
32033fail:
32034 return NULL;
32035}
32036
32037
32038SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32039 PyObject *resultobj = 0;
32040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32041 void *argp1 = 0 ;
32042 int res1 = 0 ;
32043 PyObject *swig_obj[1] ;
32044
32045 if (!args) SWIG_fail;
32046 swig_obj[0] = args;
32047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32048 if (!SWIG_IsOK(res1)) {
32049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32050 }
32051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32052 {
32053 PyThreadState* __tstate = wxPyBeginAllowThreads();
32054 (arg1)->BeginDrawing();
32055 wxPyEndAllowThreads(__tstate);
32056 if (PyErr_Occurred()) SWIG_fail;
32057 }
32058 resultobj = SWIG_Py_Void();
32059 return resultobj;
32060fail:
32061 return NULL;
32062}
32063
32064
32065SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32066 PyObject *resultobj = 0;
32067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32068 void *argp1 = 0 ;
32069 int res1 = 0 ;
32070 PyObject *swig_obj[1] ;
32071
32072 if (!args) SWIG_fail;
32073 swig_obj[0] = args;
32074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32075 if (!SWIG_IsOK(res1)) {
32076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32077 }
32078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32079 {
32080 PyThreadState* __tstate = wxPyBeginAllowThreads();
32081 (arg1)->EndDrawing();
32082 wxPyEndAllowThreads(__tstate);
32083 if (PyErr_Occurred()) SWIG_fail;
32084 }
32085 resultobj = SWIG_Py_Void();
32086 return resultobj;
32087fail:
32088 return NULL;
32089}
32090
32091
32092SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32093 PyObject *resultobj = 0;
32094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32095 void *argp1 = 0 ;
32096 int res1 = 0 ;
32097 PyObject *swig_obj[1] ;
32098
32099 if (!args) SWIG_fail;
32100 swig_obj[0] = args;
32101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
32102 if (!SWIG_IsOK(res1)) {
32103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32104 }
32105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32106 {
32107 PyThreadState* __tstate = wxPyBeginAllowThreads();
32108 delete arg1;
32109
32110 wxPyEndAllowThreads(__tstate);
32111 if (PyErr_Occurred()) SWIG_fail;
32112 }
32113 resultobj = SWIG_Py_Void();
32114 return resultobj;
32115fail:
32116 return NULL;
32117}
32118
32119
32120SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32121 PyObject *resultobj = 0;
32122 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32123 void *argp1 = 0 ;
32124 int res1 = 0 ;
32125 PyObject *swig_obj[1] ;
32126
32127 if (!args) SWIG_fail;
32128 swig_obj[0] = args;
32129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32130 if (!SWIG_IsOK(res1)) {
32131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32132 }
32133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32134 {
32135 PyThreadState* __tstate = wxPyBeginAllowThreads();
32136 (arg1)->RemoveAll();
32137 wxPyEndAllowThreads(__tstate);
32138 if (PyErr_Occurred()) SWIG_fail;
32139 }
32140 resultobj = SWIG_Py_Void();
32141 return resultobj;
32142fail:
32143 return NULL;
32144}
32145
32146
32147SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32148 PyObject *resultobj = 0;
32149 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32150 int result;
32151 void *argp1 = 0 ;
32152 int res1 = 0 ;
32153 PyObject *swig_obj[1] ;
32154
32155 if (!args) SWIG_fail;
32156 swig_obj[0] = args;
32157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32158 if (!SWIG_IsOK(res1)) {
32159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32160 }
32161 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32162 {
32163 PyThreadState* __tstate = wxPyBeginAllowThreads();
32164 result = (int)(arg1)->GetLen();
32165 wxPyEndAllowThreads(__tstate);
32166 if (PyErr_Occurred()) SWIG_fail;
32167 }
32168 resultobj = SWIG_From_int(static_cast< int >(result));
32169 return resultobj;
32170fail:
32171 return NULL;
32172}
32173
32174
32175SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32176 PyObject *resultobj = 0;
32177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32178 int arg2 ;
32179 void *argp1 = 0 ;
32180 int res1 = 0 ;
32181 int val2 ;
32182 int ecode2 = 0 ;
32183 PyObject * obj0 = 0 ;
32184 PyObject * obj1 = 0 ;
32185 char * kwnames[] = {
32186 (char *) "self",(char *) "id", NULL
32187 };
32188
32189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32191 if (!SWIG_IsOK(res1)) {
32192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32193 }
32194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32195 ecode2 = SWIG_AsVal_int(obj1, &val2);
32196 if (!SWIG_IsOK(ecode2)) {
32197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
32198 }
32199 arg2 = static_cast< int >(val2);
32200 {
32201 PyThreadState* __tstate = wxPyBeginAllowThreads();
32202 (arg1)->SetId(arg2);
32203 wxPyEndAllowThreads(__tstate);
32204 if (PyErr_Occurred()) SWIG_fail;
32205 }
32206 resultobj = SWIG_Py_Void();
32207 return resultobj;
32208fail:
32209 return NULL;
32210}
32211
32212
32213SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32214 PyObject *resultobj = 0;
32215 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32216 int arg2 ;
32217 void *argp1 = 0 ;
32218 int res1 = 0 ;
32219 int val2 ;
32220 int ecode2 = 0 ;
32221 PyObject * obj0 = 0 ;
32222 PyObject * obj1 = 0 ;
32223 char * kwnames[] = {
32224 (char *) "self",(char *) "id", NULL
32225 };
32226
32227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
32228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32229 if (!SWIG_IsOK(res1)) {
32230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32231 }
32232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32233 ecode2 = SWIG_AsVal_int(obj1, &val2);
32234 if (!SWIG_IsOK(ecode2)) {
32235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
32236 }
32237 arg2 = static_cast< int >(val2);
32238 {
32239 PyThreadState* __tstate = wxPyBeginAllowThreads();
32240 (arg1)->ClearId(arg2);
32241 wxPyEndAllowThreads(__tstate);
32242 if (PyErr_Occurred()) SWIG_fail;
32243 }
32244 resultobj = SWIG_Py_Void();
32245 return resultobj;
32246fail:
32247 return NULL;
32248}
32249
32250
32251SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32252 PyObject *resultobj = 0;
32253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32254 int arg2 ;
32255 void *argp1 = 0 ;
32256 int res1 = 0 ;
32257 int val2 ;
32258 int ecode2 = 0 ;
32259 PyObject * obj0 = 0 ;
32260 PyObject * obj1 = 0 ;
32261 char * kwnames[] = {
32262 (char *) "self",(char *) "id", NULL
32263 };
32264
32265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
32266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32267 if (!SWIG_IsOK(res1)) {
32268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32269 }
32270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32271 ecode2 = SWIG_AsVal_int(obj1, &val2);
32272 if (!SWIG_IsOK(ecode2)) {
32273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32274 }
32275 arg2 = static_cast< int >(val2);
32276 {
32277 PyThreadState* __tstate = wxPyBeginAllowThreads();
32278 (arg1)->RemoveId(arg2);
32279 wxPyEndAllowThreads(__tstate);
32280 if (PyErr_Occurred()) SWIG_fail;
32281 }
32282 resultobj = SWIG_Py_Void();
32283 return resultobj;
32284fail:
32285 return NULL;
32286}
32287
32288
32289SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32290 PyObject *resultobj = 0;
32291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32292 int arg2 ;
32293 int arg3 ;
32294 int arg4 ;
32295 void *argp1 = 0 ;
32296 int res1 = 0 ;
32297 int val2 ;
32298 int ecode2 = 0 ;
32299 int val3 ;
32300 int ecode3 = 0 ;
32301 int val4 ;
32302 int ecode4 = 0 ;
32303 PyObject * obj0 = 0 ;
32304 PyObject * obj1 = 0 ;
32305 PyObject * obj2 = 0 ;
32306 PyObject * obj3 = 0 ;
32307 char * kwnames[] = {
32308 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32309 };
32310
32311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32313 if (!SWIG_IsOK(res1)) {
32314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32315 }
32316 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32317 ecode2 = SWIG_AsVal_int(obj1, &val2);
32318 if (!SWIG_IsOK(ecode2)) {
32319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32320 }
32321 arg2 = static_cast< int >(val2);
32322 ecode3 = SWIG_AsVal_int(obj2, &val3);
32323 if (!SWIG_IsOK(ecode3)) {
32324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32325 }
32326 arg3 = static_cast< int >(val3);
32327 ecode4 = SWIG_AsVal_int(obj3, &val4);
32328 if (!SWIG_IsOK(ecode4)) {
32329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32330 }
32331 arg4 = static_cast< int >(val4);
32332 {
32333 PyThreadState* __tstate = wxPyBeginAllowThreads();
32334 (arg1)->TranslateId(arg2,arg3,arg4);
32335 wxPyEndAllowThreads(__tstate);
32336 if (PyErr_Occurred()) SWIG_fail;
32337 }
32338 resultobj = SWIG_Py_Void();
32339 return resultobj;
32340fail:
32341 return NULL;
32342}
32343
32344
72ef6efb
RD
32345SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32346 PyObject *resultobj = 0;
32347 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32348 int arg2 ;
32349 bool arg3 = (bool) true ;
32350 void *argp1 = 0 ;
32351 int res1 = 0 ;
32352 int val2 ;
32353 int ecode2 = 0 ;
32354 bool val3 ;
32355 int ecode3 = 0 ;
32356 PyObject * obj0 = 0 ;
32357 PyObject * obj1 = 0 ;
32358 PyObject * obj2 = 0 ;
32359 char * kwnames[] = {
32360 (char *) "self",(char *) "id",(char *) "greyout", NULL
32361 };
32362
32363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32365 if (!SWIG_IsOK(res1)) {
32366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32367 }
32368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32369 ecode2 = SWIG_AsVal_int(obj1, &val2);
32370 if (!SWIG_IsOK(ecode2)) {
32371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32372 }
32373 arg2 = static_cast< int >(val2);
32374 if (obj2) {
32375 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32376 if (!SWIG_IsOK(ecode3)) {
32377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32378 }
32379 arg3 = static_cast< bool >(val3);
32380 }
32381 {
32382 PyThreadState* __tstate = wxPyBeginAllowThreads();
32383 (arg1)->SetIdGreyedOut(arg2,arg3);
32384 wxPyEndAllowThreads(__tstate);
32385 if (PyErr_Occurred()) SWIG_fail;
32386 }
32387 resultobj = SWIG_Py_Void();
32388 return resultobj;
32389fail:
32390 return NULL;
32391}
32392
32393
32394SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32395 PyObject *resultobj = 0;
32396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32397 int arg2 ;
32398 bool result;
32399 void *argp1 = 0 ;
32400 int res1 = 0 ;
32401 int val2 ;
32402 int ecode2 = 0 ;
32403 PyObject * obj0 = 0 ;
32404 PyObject * obj1 = 0 ;
32405 char * kwnames[] = {
32406 (char *) "self",(char *) "id", NULL
32407 };
32408
32409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32411 if (!SWIG_IsOK(res1)) {
32412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32413 }
32414 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32415 ecode2 = SWIG_AsVal_int(obj1, &val2);
32416 if (!SWIG_IsOK(ecode2)) {
32417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32418 }
32419 arg2 = static_cast< int >(val2);
32420 {
32421 PyThreadState* __tstate = wxPyBeginAllowThreads();
32422 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32423 wxPyEndAllowThreads(__tstate);
32424 if (PyErr_Occurred()) SWIG_fail;
32425 }
32426 {
32427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32428 }
32429 return resultobj;
32430fail:
32431 return NULL;
32432}
32433
32434
32435SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32436 PyObject *resultobj = 0;
32437 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32438 int arg2 ;
32439 int arg3 ;
32440 int arg4 = (int) 1 ;
32441 wxColor const &arg5_defvalue = *wxWHITE ;
32442 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32443 PyObject *result = 0 ;
32444 void *argp1 = 0 ;
32445 int res1 = 0 ;
32446 int val2 ;
32447 int ecode2 = 0 ;
32448 int val3 ;
32449 int ecode3 = 0 ;
32450 int val4 ;
32451 int ecode4 = 0 ;
32452 void *argp5 = 0 ;
32453 int res5 = 0 ;
32454 PyObject * obj0 = 0 ;
32455 PyObject * obj1 = 0 ;
32456 PyObject * obj2 = 0 ;
32457 PyObject * obj3 = 0 ;
32458 PyObject * obj4 = 0 ;
32459 char * kwnames[] = {
32460 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32461 };
32462
32463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32465 if (!SWIG_IsOK(res1)) {
32466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32467 }
32468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32469 ecode2 = SWIG_AsVal_int(obj1, &val2);
32470 if (!SWIG_IsOK(ecode2)) {
32471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32472 }
32473 arg2 = static_cast< int >(val2);
32474 ecode3 = SWIG_AsVal_int(obj2, &val3);
32475 if (!SWIG_IsOK(ecode3)) {
32476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32477 }
32478 arg3 = static_cast< int >(val3);
32479 if (obj3) {
32480 ecode4 = SWIG_AsVal_int(obj3, &val4);
32481 if (!SWIG_IsOK(ecode4)) {
32482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32483 }
32484 arg4 = static_cast< int >(val4);
32485 }
32486 if (obj4) {
32487 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32488 if (!SWIG_IsOK(res5)) {
32489 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32490 }
32491 if (!argp5) {
32492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32493 }
32494 arg5 = reinterpret_cast< wxColor * >(argp5);
32495 }
32496 {
32497 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32498 if (PyErr_Occurred()) SWIG_fail;
32499 }
32500 resultobj = result;
32501 return resultobj;
32502fail:
32503 return NULL;
32504}
32505
32506
32507SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32508 PyObject *resultobj = 0;
32509 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32510 int arg2 ;
32511 int arg3 ;
32512 PyObject *result = 0 ;
32513 void *argp1 = 0 ;
32514 int res1 = 0 ;
32515 int val2 ;
32516 int ecode2 = 0 ;
32517 int val3 ;
32518 int ecode3 = 0 ;
32519 PyObject * obj0 = 0 ;
32520 PyObject * obj1 = 0 ;
32521 PyObject * obj2 = 0 ;
32522 char * kwnames[] = {
32523 (char *) "self",(char *) "x",(char *) "y", NULL
32524 };
32525
32526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32528 if (!SWIG_IsOK(res1)) {
32529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32530 }
32531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32532 ecode2 = SWIG_AsVal_int(obj1, &val2);
32533 if (!SWIG_IsOK(ecode2)) {
32534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32535 }
32536 arg2 = static_cast< int >(val2);
32537 ecode3 = SWIG_AsVal_int(obj2, &val3);
32538 if (!SWIG_IsOK(ecode3)) {
32539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32540 }
32541 arg3 = static_cast< int >(val3);
32542 {
32543 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32544 if (PyErr_Occurred()) SWIG_fail;
32545 }
32546 resultobj = result;
32547 return resultobj;
32548fail:
32549 return NULL;
32550}
32551
32552
27e45892
RD
32553SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32554 PyObject *resultobj = 0;
32555 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32556 int arg2 ;
32557 wxDC *arg3 = (wxDC *) 0 ;
32558 void *argp1 = 0 ;
32559 int res1 = 0 ;
32560 int val2 ;
32561 int ecode2 = 0 ;
32562 void *argp3 = 0 ;
32563 int res3 = 0 ;
32564 PyObject * obj0 = 0 ;
32565 PyObject * obj1 = 0 ;
32566 PyObject * obj2 = 0 ;
32567 char * kwnames[] = {
32568 (char *) "self",(char *) "id",(char *) "dc", NULL
32569 };
32570
32571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32573 if (!SWIG_IsOK(res1)) {
32574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32575 }
32576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32577 ecode2 = SWIG_AsVal_int(obj1, &val2);
32578 if (!SWIG_IsOK(ecode2)) {
32579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32580 }
32581 arg2 = static_cast< int >(val2);
32582 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32583 if (!SWIG_IsOK(res3)) {
32584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32585 }
32586 arg3 = reinterpret_cast< wxDC * >(argp3);
32587 {
32588 PyThreadState* __tstate = wxPyBeginAllowThreads();
32589 (arg1)->DrawIdToDC(arg2,arg3);
32590 wxPyEndAllowThreads(__tstate);
32591 if (PyErr_Occurred()) SWIG_fail;
32592 }
32593 resultobj = SWIG_Py_Void();
32594 return resultobj;
32595fail:
32596 return NULL;
32597}
32598
32599
32600SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32601 PyObject *resultobj = 0;
32602 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32603 int arg2 ;
32604 wxRect *arg3 = 0 ;
32605 void *argp1 = 0 ;
32606 int res1 = 0 ;
32607 int val2 ;
32608 int ecode2 = 0 ;
32609 wxRect temp3 ;
32610 PyObject * obj0 = 0 ;
32611 PyObject * obj1 = 0 ;
32612 PyObject * obj2 = 0 ;
32613 char * kwnames[] = {
32614 (char *) "self",(char *) "id",(char *) "rect", NULL
32615 };
32616
32617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32619 if (!SWIG_IsOK(res1)) {
32620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32621 }
32622 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32623 ecode2 = SWIG_AsVal_int(obj1, &val2);
32624 if (!SWIG_IsOK(ecode2)) {
32625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32626 }
32627 arg2 = static_cast< int >(val2);
32628 {
32629 arg3 = &temp3;
32630 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32631 }
32632 {
32633 PyThreadState* __tstate = wxPyBeginAllowThreads();
32634 (arg1)->SetIdBounds(arg2,*arg3);
32635 wxPyEndAllowThreads(__tstate);
32636 if (PyErr_Occurred()) SWIG_fail;
32637 }
32638 resultobj = SWIG_Py_Void();
32639 return resultobj;
32640fail:
32641 return NULL;
32642}
32643
32644
32645SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32646 PyObject *resultobj = 0;
32647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32648 int arg2 ;
32649 wxRect result;
32650 void *argp1 = 0 ;
32651 int res1 = 0 ;
32652 int val2 ;
32653 int ecode2 = 0 ;
32654 PyObject * obj0 = 0 ;
32655 PyObject * obj1 = 0 ;
32656 char * kwnames[] = {
32657 (char *) "self",(char *) "id", NULL
32658 };
32659
32660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32662 if (!SWIG_IsOK(res1)) {
32663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32664 }
32665 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32666 ecode2 = SWIG_AsVal_int(obj1, &val2);
32667 if (!SWIG_IsOK(ecode2)) {
32668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32669 }
32670 arg2 = static_cast< int >(val2);
32671 {
32672 PyThreadState* __tstate = wxPyBeginAllowThreads();
32673 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32678 return resultobj;
32679fail:
32680 return NULL;
32681}
32682
32683
32684SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32685 PyObject *resultobj = 0;
32686 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32687 wxDC *arg2 = (wxDC *) 0 ;
32688 wxRect *arg3 = 0 ;
32689 void *argp1 = 0 ;
32690 int res1 = 0 ;
32691 void *argp2 = 0 ;
32692 int res2 = 0 ;
32693 wxRect temp3 ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 PyObject * obj2 = 0 ;
32697 char * kwnames[] = {
32698 (char *) "self",(char *) "dc",(char *) "rect", NULL
32699 };
32700
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32703 if (!SWIG_IsOK(res1)) {
32704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32705 }
32706 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32708 if (!SWIG_IsOK(res2)) {
32709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32710 }
32711 arg2 = reinterpret_cast< wxDC * >(argp2);
32712 {
32713 arg3 = &temp3;
32714 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32715 }
32716 {
32717 PyThreadState* __tstate = wxPyBeginAllowThreads();
32718 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32719 wxPyEndAllowThreads(__tstate);
32720 if (PyErr_Occurred()) SWIG_fail;
32721 }
32722 resultobj = SWIG_Py_Void();
32723 return resultobj;
32724fail:
32725 return NULL;
32726}
32727
32728
32729SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32730 PyObject *resultobj = 0;
32731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32732 wxDC *arg2 = (wxDC *) 0 ;
32733 wxRegion *arg3 = 0 ;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 void *argp2 = 0 ;
32737 int res2 = 0 ;
32738 void *argp3 = 0 ;
32739 int res3 = 0 ;
32740 PyObject * obj0 = 0 ;
32741 PyObject * obj1 = 0 ;
32742 PyObject * obj2 = 0 ;
32743 char * kwnames[] = {
32744 (char *) "self",(char *) "dc",(char *) "region", NULL
32745 };
32746
32747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32749 if (!SWIG_IsOK(res1)) {
32750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32751 }
32752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32753 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32754 if (!SWIG_IsOK(res2)) {
32755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32756 }
32757 arg2 = reinterpret_cast< wxDC * >(argp2);
32758 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32759 if (!SWIG_IsOK(res3)) {
32760 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32761 }
32762 if (!argp3) {
32763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32764 }
32765 arg3 = reinterpret_cast< wxRegion * >(argp3);
32766 {
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_Py_Void();
32773 return resultobj;
32774fail:
32775 return NULL;
32776}
32777
32778
32779SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32780 PyObject *resultobj = 0;
32781 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32782 wxDC *arg2 = (wxDC *) 0 ;
32783 void *argp1 = 0 ;
32784 int res1 = 0 ;
32785 void *argp2 = 0 ;
32786 int res2 = 0 ;
32787 PyObject * obj0 = 0 ;
32788 PyObject * obj1 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "dc", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32797 }
32798 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32799 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32800 if (!SWIG_IsOK(res2)) {
32801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32802 }
32803 arg2 = reinterpret_cast< wxDC * >(argp2);
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 (arg1)->DrawToDC(arg2);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_Py_Void();
32811 return resultobj;
32812fail:
32813 return NULL;
32814}
32815
32816
32817SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32818 PyObject *resultobj = 0;
32819 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32820 int arg2 ;
32821 int arg3 ;
32822 wxColour *arg4 = 0 ;
32823 int arg5 = (int) wxFLOOD_SURFACE ;
32824 void *argp1 = 0 ;
32825 int res1 = 0 ;
32826 int val2 ;
32827 int ecode2 = 0 ;
32828 int val3 ;
32829 int ecode3 = 0 ;
32830 wxColour temp4 ;
32831 int val5 ;
32832 int ecode5 = 0 ;
32833 PyObject * obj0 = 0 ;
32834 PyObject * obj1 = 0 ;
32835 PyObject * obj2 = 0 ;
32836 PyObject * obj3 = 0 ;
32837 PyObject * obj4 = 0 ;
32838 char * kwnames[] = {
32839 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32840 };
32841
32842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32844 if (!SWIG_IsOK(res1)) {
32845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32846 }
32847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32848 ecode2 = SWIG_AsVal_int(obj1, &val2);
32849 if (!SWIG_IsOK(ecode2)) {
32850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32851 }
32852 arg2 = static_cast< int >(val2);
32853 ecode3 = SWIG_AsVal_int(obj2, &val3);
32854 if (!SWIG_IsOK(ecode3)) {
32855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32856 }
32857 arg3 = static_cast< int >(val3);
32858 {
32859 arg4 = &temp4;
32860 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32861 }
32862 if (obj4) {
32863 ecode5 = SWIG_AsVal_int(obj4, &val5);
32864 if (!SWIG_IsOK(ecode5)) {
32865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32866 }
32867 arg5 = static_cast< int >(val5);
32868 }
32869 {
32870 PyThreadState* __tstate = wxPyBeginAllowThreads();
32871 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32872 wxPyEndAllowThreads(__tstate);
32873 if (PyErr_Occurred()) SWIG_fail;
32874 }
32875 resultobj = SWIG_Py_Void();
32876 return resultobj;
32877fail:
32878 return NULL;
32879}
32880
32881
32882SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32883 PyObject *resultobj = 0;
32884 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32885 wxPoint *arg2 = 0 ;
32886 wxColour *arg3 = 0 ;
32887 int arg4 = (int) wxFLOOD_SURFACE ;
32888 void *argp1 = 0 ;
32889 int res1 = 0 ;
32890 wxPoint temp2 ;
32891 wxColour temp3 ;
32892 int val4 ;
32893 int ecode4 = 0 ;
32894 PyObject * obj0 = 0 ;
32895 PyObject * obj1 = 0 ;
32896 PyObject * obj2 = 0 ;
32897 PyObject * obj3 = 0 ;
32898 char * kwnames[] = {
32899 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32900 };
32901
32902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32904 if (!SWIG_IsOK(res1)) {
32905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32906 }
32907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32908 {
32909 arg2 = &temp2;
32910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32911 }
32912 {
32913 arg3 = &temp3;
32914 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32915 }
32916 if (obj3) {
32917 ecode4 = SWIG_AsVal_int(obj3, &val4);
32918 if (!SWIG_IsOK(ecode4)) {
32919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32920 }
32921 arg4 = static_cast< int >(val4);
32922 }
32923 {
32924 PyThreadState* __tstate = wxPyBeginAllowThreads();
32925 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32926 wxPyEndAllowThreads(__tstate);
32927 if (PyErr_Occurred()) SWIG_fail;
32928 }
32929 resultobj = SWIG_Py_Void();
32930 return resultobj;
32931fail:
32932 return NULL;
32933}
32934
32935
32936SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32937 PyObject *resultobj = 0;
32938 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32939 int arg2 ;
32940 int arg3 ;
32941 int arg4 ;
32942 int arg5 ;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 int val2 ;
32946 int ecode2 = 0 ;
32947 int val3 ;
32948 int ecode3 = 0 ;
32949 int val4 ;
32950 int ecode4 = 0 ;
32951 int val5 ;
32952 int ecode5 = 0 ;
32953 PyObject * obj0 = 0 ;
32954 PyObject * obj1 = 0 ;
32955 PyObject * obj2 = 0 ;
32956 PyObject * obj3 = 0 ;
32957 PyObject * obj4 = 0 ;
32958 char * kwnames[] = {
32959 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32960 };
32961
32962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32964 if (!SWIG_IsOK(res1)) {
32965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32966 }
32967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32968 ecode2 = SWIG_AsVal_int(obj1, &val2);
32969 if (!SWIG_IsOK(ecode2)) {
32970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32971 }
32972 arg2 = static_cast< int >(val2);
32973 ecode3 = SWIG_AsVal_int(obj2, &val3);
32974 if (!SWIG_IsOK(ecode3)) {
32975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32976 }
32977 arg3 = static_cast< int >(val3);
32978 ecode4 = SWIG_AsVal_int(obj3, &val4);
32979 if (!SWIG_IsOK(ecode4)) {
32980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32981 }
32982 arg4 = static_cast< int >(val4);
32983 ecode5 = SWIG_AsVal_int(obj4, &val5);
32984 if (!SWIG_IsOK(ecode5)) {
32985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32986 }
32987 arg5 = static_cast< int >(val5);
32988 {
32989 PyThreadState* __tstate = wxPyBeginAllowThreads();
32990 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
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_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33002 PyObject *resultobj = 0;
33003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33004 wxPoint *arg2 = 0 ;
33005 wxPoint *arg3 = 0 ;
33006 void *argp1 = 0 ;
33007 int res1 = 0 ;
33008 wxPoint temp2 ;
33009 wxPoint temp3 ;
33010 PyObject * obj0 = 0 ;
33011 PyObject * obj1 = 0 ;
33012 PyObject * obj2 = 0 ;
33013 char * kwnames[] = {
33014 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
33015 };
33016
33017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33019 if (!SWIG_IsOK(res1)) {
33020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33021 }
33022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33023 {
33024 arg2 = &temp2;
33025 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33026 }
33027 {
33028 arg3 = &temp3;
33029 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33030 }
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_Py_Void();
33038 return resultobj;
33039fail:
33040 return NULL;
33041}
33042
33043
33044SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33045 PyObject *resultobj = 0;
33046 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33047 int arg2 ;
33048 int arg3 ;
33049 void *argp1 = 0 ;
33050 int res1 = 0 ;
33051 int val2 ;
33052 int ecode2 = 0 ;
33053 int val3 ;
33054 int ecode3 = 0 ;
33055 PyObject * obj0 = 0 ;
33056 PyObject * obj1 = 0 ;
33057 PyObject * obj2 = 0 ;
33058 char * kwnames[] = {
33059 (char *) "self",(char *) "x",(char *) "y", NULL
33060 };
33061
33062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33064 if (!SWIG_IsOK(res1)) {
33065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33066 }
33067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33068 ecode2 = SWIG_AsVal_int(obj1, &val2);
33069 if (!SWIG_IsOK(ecode2)) {
33070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
33071 }
33072 arg2 = static_cast< int >(val2);
33073 ecode3 = SWIG_AsVal_int(obj2, &val3);
33074 if (!SWIG_IsOK(ecode3)) {
33075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
33076 }
33077 arg3 = static_cast< int >(val3);
33078 {
33079 PyThreadState* __tstate = wxPyBeginAllowThreads();
33080 (arg1)->CrossHair(arg2,arg3);
33081 wxPyEndAllowThreads(__tstate);
33082 if (PyErr_Occurred()) SWIG_fail;
33083 }
33084 resultobj = SWIG_Py_Void();
33085 return resultobj;
33086fail:
33087 return NULL;
33088}
33089
33090
33091SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33092 PyObject *resultobj = 0;
33093 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33094 wxPoint *arg2 = 0 ;
33095 void *argp1 = 0 ;
33096 int res1 = 0 ;
33097 wxPoint temp2 ;
33098 PyObject * obj0 = 0 ;
33099 PyObject * obj1 = 0 ;
33100 char * kwnames[] = {
33101 (char *) "self",(char *) "pt", NULL
33102 };
33103
33104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33108 }
33109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33110 {
33111 arg2 = &temp2;
33112 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33113 }
33114 {
33115 PyThreadState* __tstate = wxPyBeginAllowThreads();
33116 (arg1)->CrossHair((wxPoint const &)*arg2);
33117 wxPyEndAllowThreads(__tstate);
33118 if (PyErr_Occurred()) SWIG_fail;
33119 }
33120 resultobj = SWIG_Py_Void();
33121 return resultobj;
33122fail:
33123 return NULL;
33124}
33125
33126
33127SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33128 PyObject *resultobj = 0;
33129 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33130 int arg2 ;
33131 int arg3 ;
33132 int arg4 ;
33133 int arg5 ;
33134 int arg6 ;
33135 int arg7 ;
33136 void *argp1 = 0 ;
33137 int res1 = 0 ;
33138 int val2 ;
33139 int ecode2 = 0 ;
33140 int val3 ;
33141 int ecode3 = 0 ;
33142 int val4 ;
33143 int ecode4 = 0 ;
33144 int val5 ;
33145 int ecode5 = 0 ;
33146 int val6 ;
33147 int ecode6 = 0 ;
33148 int val7 ;
33149 int ecode7 = 0 ;
33150 PyObject * obj0 = 0 ;
33151 PyObject * obj1 = 0 ;
33152 PyObject * obj2 = 0 ;
33153 PyObject * obj3 = 0 ;
33154 PyObject * obj4 = 0 ;
33155 PyObject * obj5 = 0 ;
33156 PyObject * obj6 = 0 ;
33157 char * kwnames[] = {
33158 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
33159 };
33160
33161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33163 if (!SWIG_IsOK(res1)) {
33164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33165 }
33166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33167 ecode2 = SWIG_AsVal_int(obj1, &val2);
33168 if (!SWIG_IsOK(ecode2)) {
33169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
33170 }
33171 arg2 = static_cast< int >(val2);
33172 ecode3 = SWIG_AsVal_int(obj2, &val3);
33173 if (!SWIG_IsOK(ecode3)) {
33174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
33175 }
33176 arg3 = static_cast< int >(val3);
33177 ecode4 = SWIG_AsVal_int(obj3, &val4);
33178 if (!SWIG_IsOK(ecode4)) {
33179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
33180 }
33181 arg4 = static_cast< int >(val4);
33182 ecode5 = SWIG_AsVal_int(obj4, &val5);
33183 if (!SWIG_IsOK(ecode5)) {
33184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
33185 }
33186 arg5 = static_cast< int >(val5);
33187 ecode6 = SWIG_AsVal_int(obj5, &val6);
33188 if (!SWIG_IsOK(ecode6)) {
33189 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
33190 }
33191 arg6 = static_cast< int >(val6);
33192 ecode7 = SWIG_AsVal_int(obj6, &val7);
33193 if (!SWIG_IsOK(ecode7)) {
33194 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
33195 }
33196 arg7 = static_cast< int >(val7);
33197 {
33198 PyThreadState* __tstate = wxPyBeginAllowThreads();
33199 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
33200 wxPyEndAllowThreads(__tstate);
33201 if (PyErr_Occurred()) SWIG_fail;
33202 }
33203 resultobj = SWIG_Py_Void();
33204 return resultobj;
33205fail:
33206 return NULL;
33207}
33208
33209
33210SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33211 PyObject *resultobj = 0;
33212 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33213 wxPoint *arg2 = 0 ;
33214 wxPoint *arg3 = 0 ;
33215 wxPoint *arg4 = 0 ;
33216 void *argp1 = 0 ;
33217 int res1 = 0 ;
33218 wxPoint temp2 ;
33219 wxPoint temp3 ;
33220 wxPoint temp4 ;
33221 PyObject * obj0 = 0 ;
33222 PyObject * obj1 = 0 ;
33223 PyObject * obj2 = 0 ;
33224 PyObject * obj3 = 0 ;
33225 char * kwnames[] = {
33226 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
33227 };
33228
33229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33231 if (!SWIG_IsOK(res1)) {
33232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33233 }
33234 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33235 {
33236 arg2 = &temp2;
33237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33238 }
33239 {
33240 arg3 = &temp3;
33241 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33242 }
33243 {
33244 arg4 = &temp4;
33245 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33246 }
33247 {
33248 PyThreadState* __tstate = wxPyBeginAllowThreads();
33249 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
33250 wxPyEndAllowThreads(__tstate);
33251 if (PyErr_Occurred()) SWIG_fail;
33252 }
33253 resultobj = SWIG_Py_Void();
33254 return resultobj;
33255fail:
33256 return NULL;
33257}
33258
33259
33260SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33261 PyObject *resultobj = 0;
33262 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33263 int arg2 ;
33264 int arg3 ;
33265 int arg4 ;
33266 int arg5 ;
33267 void *argp1 = 0 ;
33268 int res1 = 0 ;
33269 int val2 ;
33270 int ecode2 = 0 ;
33271 int val3 ;
33272 int ecode3 = 0 ;
33273 int val4 ;
33274 int ecode4 = 0 ;
33275 int val5 ;
33276 int ecode5 = 0 ;
33277 PyObject * obj0 = 0 ;
33278 PyObject * obj1 = 0 ;
33279 PyObject * obj2 = 0 ;
33280 PyObject * obj3 = 0 ;
33281 PyObject * obj4 = 0 ;
33282 char * kwnames[] = {
33283 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33284 };
33285
33286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33288 if (!SWIG_IsOK(res1)) {
33289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33290 }
33291 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33292 ecode2 = SWIG_AsVal_int(obj1, &val2);
33293 if (!SWIG_IsOK(ecode2)) {
33294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33295 }
33296 arg2 = static_cast< int >(val2);
33297 ecode3 = SWIG_AsVal_int(obj2, &val3);
33298 if (!SWIG_IsOK(ecode3)) {
33299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33300 }
33301 arg3 = static_cast< int >(val3);
33302 ecode4 = SWIG_AsVal_int(obj3, &val4);
33303 if (!SWIG_IsOK(ecode4)) {
33304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33305 }
33306 arg4 = static_cast< int >(val4);
33307 ecode5 = SWIG_AsVal_int(obj4, &val5);
33308 if (!SWIG_IsOK(ecode5)) {
33309 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33310 }
33311 arg5 = static_cast< int >(val5);
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33315 wxPyEndAllowThreads(__tstate);
33316 if (PyErr_Occurred()) SWIG_fail;
33317 }
33318 resultobj = SWIG_Py_Void();
33319 return resultobj;
33320fail:
33321 return NULL;
33322}
33323
33324
33325SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33326 PyObject *resultobj = 0;
33327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33328 wxRect *arg2 = 0 ;
33329 void *argp1 = 0 ;
33330 int res1 = 0 ;
33331 wxRect temp2 ;
33332 PyObject * obj0 = 0 ;
33333 PyObject * obj1 = 0 ;
33334 char * kwnames[] = {
33335 (char *) "self",(char *) "rect", NULL
33336 };
33337
33338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33340 if (!SWIG_IsOK(res1)) {
33341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33342 }
33343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33344 {
33345 arg2 = &temp2;
33346 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33347 }
33348 {
33349 PyThreadState* __tstate = wxPyBeginAllowThreads();
33350 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33351 wxPyEndAllowThreads(__tstate);
33352 if (PyErr_Occurred()) SWIG_fail;
33353 }
33354 resultobj = SWIG_Py_Void();
33355 return resultobj;
33356fail:
33357 return NULL;
33358}
33359
33360
33361SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj = 0;
33363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33364 int arg2 ;
33365 int arg3 ;
33366 int arg4 ;
33367 int arg5 ;
33368 double arg6 ;
33369 double arg7 ;
33370 void *argp1 = 0 ;
33371 int res1 = 0 ;
33372 int val2 ;
33373 int ecode2 = 0 ;
33374 int val3 ;
33375 int ecode3 = 0 ;
33376 int val4 ;
33377 int ecode4 = 0 ;
33378 int val5 ;
33379 int ecode5 = 0 ;
33380 double val6 ;
33381 int ecode6 = 0 ;
33382 double val7 ;
33383 int ecode7 = 0 ;
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 PyObject * obj2 = 0 ;
33387 PyObject * obj3 = 0 ;
33388 PyObject * obj4 = 0 ;
33389 PyObject * obj5 = 0 ;
33390 PyObject * obj6 = 0 ;
33391 char * kwnames[] = {
33392 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33393 };
33394
33395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33397 if (!SWIG_IsOK(res1)) {
33398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33399 }
33400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33401 ecode2 = SWIG_AsVal_int(obj1, &val2);
33402 if (!SWIG_IsOK(ecode2)) {
33403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33404 }
33405 arg2 = static_cast< int >(val2);
33406 ecode3 = SWIG_AsVal_int(obj2, &val3);
33407 if (!SWIG_IsOK(ecode3)) {
33408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33409 }
33410 arg3 = static_cast< int >(val3);
33411 ecode4 = SWIG_AsVal_int(obj3, &val4);
33412 if (!SWIG_IsOK(ecode4)) {
33413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33414 }
33415 arg4 = static_cast< int >(val4);
33416 ecode5 = SWIG_AsVal_int(obj4, &val5);
33417 if (!SWIG_IsOK(ecode5)) {
33418 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33419 }
33420 arg5 = static_cast< int >(val5);
33421 ecode6 = SWIG_AsVal_double(obj5, &val6);
33422 if (!SWIG_IsOK(ecode6)) {
33423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33424 }
33425 arg6 = static_cast< double >(val6);
33426 ecode7 = SWIG_AsVal_double(obj6, &val7);
33427 if (!SWIG_IsOK(ecode7)) {
33428 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33429 }
33430 arg7 = static_cast< double >(val7);
33431 {
33432 PyThreadState* __tstate = wxPyBeginAllowThreads();
33433 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33434 wxPyEndAllowThreads(__tstate);
33435 if (PyErr_Occurred()) SWIG_fail;
33436 }
33437 resultobj = SWIG_Py_Void();
33438 return resultobj;
33439fail:
33440 return NULL;
33441}
33442
33443
33444SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33445 PyObject *resultobj = 0;
33446 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33447 wxPoint *arg2 = 0 ;
33448 wxSize *arg3 = 0 ;
33449 double arg4 ;
33450 double arg5 ;
33451 void *argp1 = 0 ;
33452 int res1 = 0 ;
33453 wxPoint temp2 ;
33454 wxSize temp3 ;
33455 double val4 ;
33456 int ecode4 = 0 ;
33457 double val5 ;
33458 int ecode5 = 0 ;
33459 PyObject * obj0 = 0 ;
33460 PyObject * obj1 = 0 ;
33461 PyObject * obj2 = 0 ;
33462 PyObject * obj3 = 0 ;
33463 PyObject * obj4 = 0 ;
33464 char * kwnames[] = {
33465 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33466 };
33467
33468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33470 if (!SWIG_IsOK(res1)) {
33471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33472 }
33473 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33474 {
33475 arg2 = &temp2;
33476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33477 }
33478 {
33479 arg3 = &temp3;
33480 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33481 }
33482 ecode4 = SWIG_AsVal_double(obj3, &val4);
33483 if (!SWIG_IsOK(ecode4)) {
33484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33485 }
33486 arg4 = static_cast< double >(val4);
33487 ecode5 = SWIG_AsVal_double(obj4, &val5);
33488 if (!SWIG_IsOK(ecode5)) {
33489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33490 }
33491 arg5 = static_cast< double >(val5);
33492 {
33493 PyThreadState* __tstate = wxPyBeginAllowThreads();
33494 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33495 wxPyEndAllowThreads(__tstate);
33496 if (PyErr_Occurred()) SWIG_fail;
33497 }
33498 resultobj = SWIG_Py_Void();
33499 return resultobj;
33500fail:
33501 return NULL;
33502}
33503
33504
33505SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33506 PyObject *resultobj = 0;
33507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33508 int arg2 ;
33509 int arg3 ;
33510 void *argp1 = 0 ;
33511 int res1 = 0 ;
33512 int val2 ;
33513 int ecode2 = 0 ;
33514 int val3 ;
33515 int ecode3 = 0 ;
33516 PyObject * obj0 = 0 ;
33517 PyObject * obj1 = 0 ;
33518 PyObject * obj2 = 0 ;
33519 char * kwnames[] = {
33520 (char *) "self",(char *) "x",(char *) "y", NULL
33521 };
33522
33523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33525 if (!SWIG_IsOK(res1)) {
33526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33527 }
33528 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33529 ecode2 = SWIG_AsVal_int(obj1, &val2);
33530 if (!SWIG_IsOK(ecode2)) {
33531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33532 }
33533 arg2 = static_cast< int >(val2);
33534 ecode3 = SWIG_AsVal_int(obj2, &val3);
33535 if (!SWIG_IsOK(ecode3)) {
33536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33537 }
33538 arg3 = static_cast< int >(val3);
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 (arg1)->DrawPoint(arg2,arg3);
33542 wxPyEndAllowThreads(__tstate);
33543 if (PyErr_Occurred()) SWIG_fail;
33544 }
33545 resultobj = SWIG_Py_Void();
33546 return resultobj;
33547fail:
33548 return NULL;
33549}
33550
33551
33552SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33553 PyObject *resultobj = 0;
33554 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33555 wxPoint *arg2 = 0 ;
33556 void *argp1 = 0 ;
33557 int res1 = 0 ;
33558 wxPoint temp2 ;
33559 PyObject * obj0 = 0 ;
33560 PyObject * obj1 = 0 ;
33561 char * kwnames[] = {
33562 (char *) "self",(char *) "pt", NULL
33563 };
33564
33565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33567 if (!SWIG_IsOK(res1)) {
33568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33569 }
33570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33571 {
33572 arg2 = &temp2;
33573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33574 }
33575 {
33576 PyThreadState* __tstate = wxPyBeginAllowThreads();
33577 (arg1)->DrawPoint((wxPoint const &)*arg2);
33578 wxPyEndAllowThreads(__tstate);
33579 if (PyErr_Occurred()) SWIG_fail;
33580 }
33581 resultobj = SWIG_Py_Void();
33582 return resultobj;
33583fail:
33584 return NULL;
33585}
33586
33587
33588SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33589 PyObject *resultobj = 0;
33590 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33591 int arg2 ;
33592 int arg3 ;
33593 int arg4 ;
33594 int arg5 ;
33595 void *argp1 = 0 ;
33596 int res1 = 0 ;
33597 int val2 ;
33598 int ecode2 = 0 ;
33599 int val3 ;
33600 int ecode3 = 0 ;
33601 int val4 ;
33602 int ecode4 = 0 ;
33603 int val5 ;
33604 int ecode5 = 0 ;
33605 PyObject * obj0 = 0 ;
33606 PyObject * obj1 = 0 ;
33607 PyObject * obj2 = 0 ;
33608 PyObject * obj3 = 0 ;
33609 PyObject * obj4 = 0 ;
33610 char * kwnames[] = {
33611 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33612 };
33613
33614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33616 if (!SWIG_IsOK(res1)) {
33617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33618 }
33619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33620 ecode2 = SWIG_AsVal_int(obj1, &val2);
33621 if (!SWIG_IsOK(ecode2)) {
33622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33623 }
33624 arg2 = static_cast< int >(val2);
33625 ecode3 = SWIG_AsVal_int(obj2, &val3);
33626 if (!SWIG_IsOK(ecode3)) {
33627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33628 }
33629 arg3 = static_cast< int >(val3);
33630 ecode4 = SWIG_AsVal_int(obj3, &val4);
33631 if (!SWIG_IsOK(ecode4)) {
33632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33633 }
33634 arg4 = static_cast< int >(val4);
33635 ecode5 = SWIG_AsVal_int(obj4, &val5);
33636 if (!SWIG_IsOK(ecode5)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33638 }
33639 arg5 = static_cast< int >(val5);
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33643 wxPyEndAllowThreads(__tstate);
33644 if (PyErr_Occurred()) SWIG_fail;
33645 }
33646 resultobj = SWIG_Py_Void();
33647 return resultobj;
33648fail:
33649 return NULL;
33650}
33651
33652
33653SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33654 PyObject *resultobj = 0;
33655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33656 wxRect *arg2 = 0 ;
33657 void *argp1 = 0 ;
33658 int res1 = 0 ;
33659 wxRect temp2 ;
33660 PyObject * obj0 = 0 ;
33661 PyObject * obj1 = 0 ;
33662 char * kwnames[] = {
33663 (char *) "self",(char *) "rect", NULL
33664 };
33665
33666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33668 if (!SWIG_IsOK(res1)) {
33669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33670 }
33671 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33672 {
33673 arg2 = &temp2;
33674 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33675 }
33676 {
33677 PyThreadState* __tstate = wxPyBeginAllowThreads();
33678 (arg1)->DrawRectangle((wxRect const &)*arg2);
33679 wxPyEndAllowThreads(__tstate);
33680 if (PyErr_Occurred()) SWIG_fail;
33681 }
33682 resultobj = SWIG_Py_Void();
33683 return resultobj;
33684fail:
33685 return NULL;
33686}
33687
33688
33689SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33690 PyObject *resultobj = 0;
33691 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33692 wxPoint *arg2 = 0 ;
33693 wxSize *arg3 = 0 ;
33694 void *argp1 = 0 ;
33695 int res1 = 0 ;
33696 wxPoint temp2 ;
33697 wxSize temp3 ;
33698 PyObject * obj0 = 0 ;
33699 PyObject * obj1 = 0 ;
33700 PyObject * obj2 = 0 ;
33701 char * kwnames[] = {
33702 (char *) "self",(char *) "pt",(char *) "sz", NULL
33703 };
33704
33705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33707 if (!SWIG_IsOK(res1)) {
33708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33709 }
33710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33711 {
33712 arg2 = &temp2;
33713 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33714 }
33715 {
33716 arg3 = &temp3;
33717 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33718 }
33719 {
33720 PyThreadState* __tstate = wxPyBeginAllowThreads();
33721 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33722 wxPyEndAllowThreads(__tstate);
33723 if (PyErr_Occurred()) SWIG_fail;
33724 }
33725 resultobj = SWIG_Py_Void();
33726 return resultobj;
33727fail:
33728 return NULL;
33729}
33730
33731
33732SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33733 PyObject *resultobj = 0;
33734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33735 int arg2 ;
33736 int arg3 ;
33737 int arg4 ;
33738 int arg5 ;
33739 double arg6 ;
33740 void *argp1 = 0 ;
33741 int res1 = 0 ;
33742 int val2 ;
33743 int ecode2 = 0 ;
33744 int val3 ;
33745 int ecode3 = 0 ;
33746 int val4 ;
33747 int ecode4 = 0 ;
33748 int val5 ;
33749 int ecode5 = 0 ;
33750 double val6 ;
33751 int ecode6 = 0 ;
33752 PyObject * obj0 = 0 ;
33753 PyObject * obj1 = 0 ;
33754 PyObject * obj2 = 0 ;
33755 PyObject * obj3 = 0 ;
33756 PyObject * obj4 = 0 ;
33757 PyObject * obj5 = 0 ;
33758 char * kwnames[] = {
33759 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33760 };
33761
33762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33764 if (!SWIG_IsOK(res1)) {
33765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33766 }
33767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33768 ecode2 = SWIG_AsVal_int(obj1, &val2);
33769 if (!SWIG_IsOK(ecode2)) {
33770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33771 }
33772 arg2 = static_cast< int >(val2);
33773 ecode3 = SWIG_AsVal_int(obj2, &val3);
33774 if (!SWIG_IsOK(ecode3)) {
33775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33776 }
33777 arg3 = static_cast< int >(val3);
33778 ecode4 = SWIG_AsVal_int(obj3, &val4);
33779 if (!SWIG_IsOK(ecode4)) {
33780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33781 }
33782 arg4 = static_cast< int >(val4);
33783 ecode5 = SWIG_AsVal_int(obj4, &val5);
33784 if (!SWIG_IsOK(ecode5)) {
33785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33786 }
33787 arg5 = static_cast< int >(val5);
33788 ecode6 = SWIG_AsVal_double(obj5, &val6);
33789 if (!SWIG_IsOK(ecode6)) {
33790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33791 }
33792 arg6 = static_cast< double >(val6);
33793 {
33794 PyThreadState* __tstate = wxPyBeginAllowThreads();
33795 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33796 wxPyEndAllowThreads(__tstate);
33797 if (PyErr_Occurred()) SWIG_fail;
33798 }
33799 resultobj = SWIG_Py_Void();
33800 return resultobj;
33801fail:
33802 return NULL;
33803}
33804
33805
33806SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33807 PyObject *resultobj = 0;
33808 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33809 wxRect *arg2 = 0 ;
33810 double arg3 ;
33811 void *argp1 = 0 ;
33812 int res1 = 0 ;
33813 wxRect temp2 ;
33814 double val3 ;
33815 int ecode3 = 0 ;
33816 PyObject * obj0 = 0 ;
33817 PyObject * obj1 = 0 ;
33818 PyObject * obj2 = 0 ;
33819 char * kwnames[] = {
33820 (char *) "self",(char *) "r",(char *) "radius", NULL
33821 };
33822
33823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33825 if (!SWIG_IsOK(res1)) {
33826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33827 }
33828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33829 {
33830 arg2 = &temp2;
33831 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33832 }
33833 ecode3 = SWIG_AsVal_double(obj2, &val3);
33834 if (!SWIG_IsOK(ecode3)) {
33835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33836 }
33837 arg3 = static_cast< double >(val3);
33838 {
33839 PyThreadState* __tstate = wxPyBeginAllowThreads();
33840 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33841 wxPyEndAllowThreads(__tstate);
33842 if (PyErr_Occurred()) SWIG_fail;
33843 }
33844 resultobj = SWIG_Py_Void();
33845 return resultobj;
33846fail:
33847 return NULL;
33848}
33849
33850
33851SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33852 PyObject *resultobj = 0;
33853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33854 wxPoint *arg2 = 0 ;
33855 wxSize *arg3 = 0 ;
33856 double arg4 ;
33857 void *argp1 = 0 ;
33858 int res1 = 0 ;
33859 wxPoint temp2 ;
33860 wxSize temp3 ;
33861 double val4 ;
33862 int ecode4 = 0 ;
33863 PyObject * obj0 = 0 ;
33864 PyObject * obj1 = 0 ;
33865 PyObject * obj2 = 0 ;
33866 PyObject * obj3 = 0 ;
33867 char * kwnames[] = {
33868 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33869 };
33870
33871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33873 if (!SWIG_IsOK(res1)) {
33874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33875 }
33876 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33877 {
33878 arg2 = &temp2;
33879 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33880 }
33881 {
33882 arg3 = &temp3;
33883 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33884 }
33885 ecode4 = SWIG_AsVal_double(obj3, &val4);
33886 if (!SWIG_IsOK(ecode4)) {
33887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33888 }
33889 arg4 = static_cast< double >(val4);
33890 {
33891 PyThreadState* __tstate = wxPyBeginAllowThreads();
33892 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33893 wxPyEndAllowThreads(__tstate);
33894 if (PyErr_Occurred()) SWIG_fail;
33895 }
33896 resultobj = SWIG_Py_Void();
33897 return resultobj;
33898fail:
33899 return NULL;
33900}
33901
33902
33903SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33904 PyObject *resultobj = 0;
33905 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33906 int arg2 ;
33907 int arg3 ;
33908 int arg4 ;
33909 void *argp1 = 0 ;
33910 int res1 = 0 ;
33911 int val2 ;
33912 int ecode2 = 0 ;
33913 int val3 ;
33914 int ecode3 = 0 ;
33915 int val4 ;
33916 int ecode4 = 0 ;
33917 PyObject * obj0 = 0 ;
33918 PyObject * obj1 = 0 ;
33919 PyObject * obj2 = 0 ;
33920 PyObject * obj3 = 0 ;
33921 char * kwnames[] = {
33922 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33923 };
33924
33925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33927 if (!SWIG_IsOK(res1)) {
33928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33929 }
33930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33931 ecode2 = SWIG_AsVal_int(obj1, &val2);
33932 if (!SWIG_IsOK(ecode2)) {
33933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33934 }
33935 arg2 = static_cast< int >(val2);
33936 ecode3 = SWIG_AsVal_int(obj2, &val3);
33937 if (!SWIG_IsOK(ecode3)) {
33938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33939 }
33940 arg3 = static_cast< int >(val3);
33941 ecode4 = SWIG_AsVal_int(obj3, &val4);
33942 if (!SWIG_IsOK(ecode4)) {
33943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33944 }
33945 arg4 = static_cast< int >(val4);
33946 {
33947 PyThreadState* __tstate = wxPyBeginAllowThreads();
33948 (arg1)->DrawCircle(arg2,arg3,arg4);
33949 wxPyEndAllowThreads(__tstate);
33950 if (PyErr_Occurred()) SWIG_fail;
33951 }
33952 resultobj = SWIG_Py_Void();
33953 return resultobj;
33954fail:
33955 return NULL;
33956}
33957
33958
33959SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33960 PyObject *resultobj = 0;
33961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33962 wxPoint *arg2 = 0 ;
33963 int arg3 ;
33964 void *argp1 = 0 ;
33965 int res1 = 0 ;
33966 wxPoint temp2 ;
33967 int val3 ;
33968 int ecode3 = 0 ;
33969 PyObject * obj0 = 0 ;
33970 PyObject * obj1 = 0 ;
33971 PyObject * obj2 = 0 ;
33972 char * kwnames[] = {
33973 (char *) "self",(char *) "pt",(char *) "radius", NULL
33974 };
33975
33976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33978 if (!SWIG_IsOK(res1)) {
33979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33980 }
33981 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33982 {
33983 arg2 = &temp2;
33984 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33985 }
33986 ecode3 = SWIG_AsVal_int(obj2, &val3);
33987 if (!SWIG_IsOK(ecode3)) {
33988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33989 }
33990 arg3 = static_cast< int >(val3);
33991 {
33992 PyThreadState* __tstate = wxPyBeginAllowThreads();
33993 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33994 wxPyEndAllowThreads(__tstate);
33995 if (PyErr_Occurred()) SWIG_fail;
33996 }
33997 resultobj = SWIG_Py_Void();
33998 return resultobj;
33999fail:
34000 return NULL;
34001}
34002
34003
34004SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34005 PyObject *resultobj = 0;
34006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34007 int arg2 ;
34008 int arg3 ;
34009 int arg4 ;
34010 int arg5 ;
34011 void *argp1 = 0 ;
34012 int res1 = 0 ;
34013 int val2 ;
34014 int ecode2 = 0 ;
34015 int val3 ;
34016 int ecode3 = 0 ;
34017 int val4 ;
34018 int ecode4 = 0 ;
34019 int val5 ;
34020 int ecode5 = 0 ;
34021 PyObject * obj0 = 0 ;
34022 PyObject * obj1 = 0 ;
34023 PyObject * obj2 = 0 ;
34024 PyObject * obj3 = 0 ;
34025 PyObject * obj4 = 0 ;
34026 char * kwnames[] = {
34027 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
34028 };
34029
34030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34034 }
34035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34036 ecode2 = SWIG_AsVal_int(obj1, &val2);
34037 if (!SWIG_IsOK(ecode2)) {
34038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
34039 }
34040 arg2 = static_cast< int >(val2);
34041 ecode3 = SWIG_AsVal_int(obj2, &val3);
34042 if (!SWIG_IsOK(ecode3)) {
34043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
34044 }
34045 arg3 = static_cast< int >(val3);
34046 ecode4 = SWIG_AsVal_int(obj3, &val4);
34047 if (!SWIG_IsOK(ecode4)) {
34048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
34049 }
34050 arg4 = static_cast< int >(val4);
34051 ecode5 = SWIG_AsVal_int(obj4, &val5);
34052 if (!SWIG_IsOK(ecode5)) {
34053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
34054 }
34055 arg5 = static_cast< int >(val5);
34056 {
34057 PyThreadState* __tstate = wxPyBeginAllowThreads();
34058 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
34059 wxPyEndAllowThreads(__tstate);
34060 if (PyErr_Occurred()) SWIG_fail;
34061 }
34062 resultobj = SWIG_Py_Void();
34063 return resultobj;
34064fail:
34065 return NULL;
34066}
34067
34068
34069SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34070 PyObject *resultobj = 0;
34071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34072 wxRect *arg2 = 0 ;
34073 void *argp1 = 0 ;
34074 int res1 = 0 ;
34075 wxRect temp2 ;
34076 PyObject * obj0 = 0 ;
34077 PyObject * obj1 = 0 ;
34078 char * kwnames[] = {
34079 (char *) "self",(char *) "rect", NULL
34080 };
34081
34082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
34083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34084 if (!SWIG_IsOK(res1)) {
34085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34086 }
34087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34088 {
34089 arg2 = &temp2;
34090 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34091 }
34092 {
34093 PyThreadState* __tstate = wxPyBeginAllowThreads();
34094 (arg1)->DrawEllipse((wxRect const &)*arg2);
34095 wxPyEndAllowThreads(__tstate);
34096 if (PyErr_Occurred()) SWIG_fail;
34097 }
34098 resultobj = SWIG_Py_Void();
34099 return resultobj;
34100fail:
34101 return NULL;
34102}
34103
34104
34105SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34106 PyObject *resultobj = 0;
34107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34108 wxPoint *arg2 = 0 ;
34109 wxSize *arg3 = 0 ;
34110 void *argp1 = 0 ;
34111 int res1 = 0 ;
34112 wxPoint temp2 ;
34113 wxSize temp3 ;
34114 PyObject * obj0 = 0 ;
34115 PyObject * obj1 = 0 ;
34116 PyObject * obj2 = 0 ;
34117 char * kwnames[] = {
34118 (char *) "self",(char *) "pt",(char *) "sz", NULL
34119 };
34120
34121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34123 if (!SWIG_IsOK(res1)) {
34124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34125 }
34126 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34127 {
34128 arg2 = &temp2;
34129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
34130 }
34131 {
34132 arg3 = &temp3;
34133 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
34134 }
34135 {
34136 PyThreadState* __tstate = wxPyBeginAllowThreads();
34137 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
34138 wxPyEndAllowThreads(__tstate);
34139 if (PyErr_Occurred()) SWIG_fail;
34140 }
34141 resultobj = SWIG_Py_Void();
34142 return resultobj;
34143fail:
34144 return NULL;
34145}
34146
34147
34148SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34149 PyObject *resultobj = 0;
34150 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34151 wxIcon *arg2 = 0 ;
34152 int arg3 ;
34153 int arg4 ;
34154 void *argp1 = 0 ;
34155 int res1 = 0 ;
34156 void *argp2 = 0 ;
34157 int res2 = 0 ;
34158 int val3 ;
34159 int ecode3 = 0 ;
34160 int val4 ;
34161 int ecode4 = 0 ;
34162 PyObject * obj0 = 0 ;
34163 PyObject * obj1 = 0 ;
34164 PyObject * obj2 = 0 ;
34165 PyObject * obj3 = 0 ;
34166 char * kwnames[] = {
34167 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
34168 };
34169
34170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34172 if (!SWIG_IsOK(res1)) {
34173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34174 }
34175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34177 if (!SWIG_IsOK(res2)) {
34178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34179 }
34180 if (!argp2) {
34181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34182 }
34183 arg2 = reinterpret_cast< wxIcon * >(argp2);
34184 ecode3 = SWIG_AsVal_int(obj2, &val3);
34185 if (!SWIG_IsOK(ecode3)) {
34186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
34187 }
34188 arg3 = static_cast< int >(val3);
34189 ecode4 = SWIG_AsVal_int(obj3, &val4);
34190 if (!SWIG_IsOK(ecode4)) {
34191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
34192 }
34193 arg4 = static_cast< int >(val4);
34194 {
34195 PyThreadState* __tstate = wxPyBeginAllowThreads();
34196 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
34197 wxPyEndAllowThreads(__tstate);
34198 if (PyErr_Occurred()) SWIG_fail;
34199 }
34200 resultobj = SWIG_Py_Void();
34201 return resultobj;
34202fail:
34203 return NULL;
34204}
34205
34206
34207SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34208 PyObject *resultobj = 0;
34209 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34210 wxIcon *arg2 = 0 ;
34211 wxPoint *arg3 = 0 ;
34212 void *argp1 = 0 ;
34213 int res1 = 0 ;
34214 void *argp2 = 0 ;
34215 int res2 = 0 ;
34216 wxPoint temp3 ;
34217 PyObject * obj0 = 0 ;
34218 PyObject * obj1 = 0 ;
34219 PyObject * obj2 = 0 ;
34220 char * kwnames[] = {
34221 (char *) "self",(char *) "icon",(char *) "pt", NULL
34222 };
34223
34224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34226 if (!SWIG_IsOK(res1)) {
34227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34228 }
34229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34231 if (!SWIG_IsOK(res2)) {
34232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34233 }
34234 if (!argp2) {
34235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34236 }
34237 arg2 = reinterpret_cast< wxIcon * >(argp2);
34238 {
34239 arg3 = &temp3;
34240 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34241 }
34242 {
34243 PyThreadState* __tstate = wxPyBeginAllowThreads();
34244 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
34245 wxPyEndAllowThreads(__tstate);
34246 if (PyErr_Occurred()) SWIG_fail;
34247 }
34248 resultobj = SWIG_Py_Void();
34249 return resultobj;
34250fail:
34251 return NULL;
34252}
34253
34254
34255SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34256 PyObject *resultobj = 0;
34257 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34258 wxBitmap *arg2 = 0 ;
34259 int arg3 ;
34260 int arg4 ;
34261 bool arg5 = (bool) false ;
34262 void *argp1 = 0 ;
34263 int res1 = 0 ;
34264 void *argp2 = 0 ;
34265 int res2 = 0 ;
34266 int val3 ;
34267 int ecode3 = 0 ;
34268 int val4 ;
34269 int ecode4 = 0 ;
34270 bool val5 ;
34271 int ecode5 = 0 ;
34272 PyObject * obj0 = 0 ;
34273 PyObject * obj1 = 0 ;
34274 PyObject * obj2 = 0 ;
34275 PyObject * obj3 = 0 ;
34276 PyObject * obj4 = 0 ;
34277 char * kwnames[] = {
34278 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34279 };
34280
34281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34283 if (!SWIG_IsOK(res1)) {
34284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34285 }
34286 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34288 if (!SWIG_IsOK(res2)) {
34289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34290 }
34291 if (!argp2) {
34292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34293 }
34294 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34295 ecode3 = SWIG_AsVal_int(obj2, &val3);
34296 if (!SWIG_IsOK(ecode3)) {
34297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34298 }
34299 arg3 = static_cast< int >(val3);
34300 ecode4 = SWIG_AsVal_int(obj3, &val4);
34301 if (!SWIG_IsOK(ecode4)) {
34302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34303 }
34304 arg4 = static_cast< int >(val4);
34305 if (obj4) {
34306 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34307 if (!SWIG_IsOK(ecode5)) {
34308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34309 }
34310 arg5 = static_cast< bool >(val5);
34311 }
34312 {
34313 PyThreadState* __tstate = wxPyBeginAllowThreads();
34314 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34315 wxPyEndAllowThreads(__tstate);
34316 if (PyErr_Occurred()) SWIG_fail;
34317 }
34318 resultobj = SWIG_Py_Void();
34319 return resultobj;
34320fail:
34321 return NULL;
34322}
34323
34324
34325SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34326 PyObject *resultobj = 0;
34327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34328 wxBitmap *arg2 = 0 ;
34329 wxPoint *arg3 = 0 ;
34330 bool arg4 = (bool) false ;
34331 void *argp1 = 0 ;
34332 int res1 = 0 ;
34333 void *argp2 = 0 ;
34334 int res2 = 0 ;
34335 wxPoint temp3 ;
34336 bool val4 ;
34337 int ecode4 = 0 ;
34338 PyObject * obj0 = 0 ;
34339 PyObject * obj1 = 0 ;
34340 PyObject * obj2 = 0 ;
34341 PyObject * obj3 = 0 ;
34342 char * kwnames[] = {
34343 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34344 };
34345
34346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34348 if (!SWIG_IsOK(res1)) {
34349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34350 }
34351 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34353 if (!SWIG_IsOK(res2)) {
34354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34355 }
34356 if (!argp2) {
34357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34358 }
34359 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34360 {
34361 arg3 = &temp3;
34362 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34363 }
34364 if (obj3) {
34365 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34366 if (!SWIG_IsOK(ecode4)) {
34367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34368 }
34369 arg4 = static_cast< bool >(val4);
34370 }
34371 {
34372 PyThreadState* __tstate = wxPyBeginAllowThreads();
34373 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34374 wxPyEndAllowThreads(__tstate);
34375 if (PyErr_Occurred()) SWIG_fail;
34376 }
34377 resultobj = SWIG_Py_Void();
34378 return resultobj;
34379fail:
34380 return NULL;
34381}
34382
34383
34384SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34385 PyObject *resultobj = 0;
34386 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34387 wxString *arg2 = 0 ;
34388 int arg3 ;
34389 int arg4 ;
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 bool temp2 = false ;
34393 int val3 ;
34394 int ecode3 = 0 ;
34395 int val4 ;
34396 int ecode4 = 0 ;
34397 PyObject * obj0 = 0 ;
34398 PyObject * obj1 = 0 ;
34399 PyObject * obj2 = 0 ;
34400 PyObject * obj3 = 0 ;
34401 char * kwnames[] = {
34402 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34403 };
34404
34405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34407 if (!SWIG_IsOK(res1)) {
34408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34409 }
34410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34411 {
34412 arg2 = wxString_in_helper(obj1);
34413 if (arg2 == NULL) SWIG_fail;
34414 temp2 = true;
34415 }
34416 ecode3 = SWIG_AsVal_int(obj2, &val3);
34417 if (!SWIG_IsOK(ecode3)) {
34418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34419 }
34420 arg3 = static_cast< int >(val3);
34421 ecode4 = SWIG_AsVal_int(obj3, &val4);
34422 if (!SWIG_IsOK(ecode4)) {
34423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34424 }
34425 arg4 = static_cast< int >(val4);
34426 {
34427 PyThreadState* __tstate = wxPyBeginAllowThreads();
34428 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34429 wxPyEndAllowThreads(__tstate);
34430 if (PyErr_Occurred()) SWIG_fail;
34431 }
34432 resultobj = SWIG_Py_Void();
34433 {
34434 if (temp2)
34435 delete arg2;
34436 }
34437 return resultobj;
34438fail:
34439 {
34440 if (temp2)
34441 delete arg2;
34442 }
34443 return NULL;
34444}
34445
34446
34447SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34448 PyObject *resultobj = 0;
34449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34450 wxString *arg2 = 0 ;
34451 wxPoint *arg3 = 0 ;
34452 void *argp1 = 0 ;
34453 int res1 = 0 ;
34454 bool temp2 = false ;
34455 wxPoint temp3 ;
34456 PyObject * obj0 = 0 ;
34457 PyObject * obj1 = 0 ;
34458 PyObject * obj2 = 0 ;
34459 char * kwnames[] = {
34460 (char *) "self",(char *) "text",(char *) "pt", NULL
34461 };
34462
34463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34465 if (!SWIG_IsOK(res1)) {
34466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34467 }
34468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34469 {
34470 arg2 = wxString_in_helper(obj1);
34471 if (arg2 == NULL) SWIG_fail;
34472 temp2 = true;
34473 }
34474 {
34475 arg3 = &temp3;
34476 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34477 }
34478 {
34479 PyThreadState* __tstate = wxPyBeginAllowThreads();
34480 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34481 wxPyEndAllowThreads(__tstate);
34482 if (PyErr_Occurred()) SWIG_fail;
34483 }
34484 resultobj = SWIG_Py_Void();
34485 {
34486 if (temp2)
34487 delete arg2;
34488 }
34489 return resultobj;
34490fail:
34491 {
34492 if (temp2)
34493 delete arg2;
34494 }
34495 return NULL;
34496}
34497
34498
34499SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34500 PyObject *resultobj = 0;
34501 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34502 wxString *arg2 = 0 ;
34503 int arg3 ;
34504 int arg4 ;
34505 double arg5 ;
34506 void *argp1 = 0 ;
34507 int res1 = 0 ;
34508 bool temp2 = false ;
34509 int val3 ;
34510 int ecode3 = 0 ;
34511 int val4 ;
34512 int ecode4 = 0 ;
34513 double val5 ;
34514 int ecode5 = 0 ;
34515 PyObject * obj0 = 0 ;
34516 PyObject * obj1 = 0 ;
34517 PyObject * obj2 = 0 ;
34518 PyObject * obj3 = 0 ;
34519 PyObject * obj4 = 0 ;
34520 char * kwnames[] = {
34521 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34522 };
34523
34524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34526 if (!SWIG_IsOK(res1)) {
34527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34528 }
34529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34530 {
34531 arg2 = wxString_in_helper(obj1);
34532 if (arg2 == NULL) SWIG_fail;
34533 temp2 = true;
34534 }
34535 ecode3 = SWIG_AsVal_int(obj2, &val3);
34536 if (!SWIG_IsOK(ecode3)) {
34537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34538 }
34539 arg3 = static_cast< int >(val3);
34540 ecode4 = SWIG_AsVal_int(obj3, &val4);
34541 if (!SWIG_IsOK(ecode4)) {
34542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34543 }
34544 arg4 = static_cast< int >(val4);
34545 ecode5 = SWIG_AsVal_double(obj4, &val5);
34546 if (!SWIG_IsOK(ecode5)) {
34547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34548 }
34549 arg5 = static_cast< double >(val5);
34550 {
34551 PyThreadState* __tstate = wxPyBeginAllowThreads();
34552 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34553 wxPyEndAllowThreads(__tstate);
34554 if (PyErr_Occurred()) SWIG_fail;
34555 }
34556 resultobj = SWIG_Py_Void();
34557 {
34558 if (temp2)
34559 delete arg2;
34560 }
34561 return resultobj;
34562fail:
34563 {
34564 if (temp2)
34565 delete arg2;
34566 }
34567 return NULL;
34568}
34569
34570
34571SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34572 PyObject *resultobj = 0;
34573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34574 wxString *arg2 = 0 ;
34575 wxPoint *arg3 = 0 ;
34576 double arg4 ;
34577 void *argp1 = 0 ;
34578 int res1 = 0 ;
34579 bool temp2 = false ;
34580 wxPoint temp3 ;
34581 double val4 ;
34582 int ecode4 = 0 ;
34583 PyObject * obj0 = 0 ;
34584 PyObject * obj1 = 0 ;
34585 PyObject * obj2 = 0 ;
34586 PyObject * obj3 = 0 ;
34587 char * kwnames[] = {
34588 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34589 };
34590
34591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34593 if (!SWIG_IsOK(res1)) {
34594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34595 }
34596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34597 {
34598 arg2 = wxString_in_helper(obj1);
34599 if (arg2 == NULL) SWIG_fail;
34600 temp2 = true;
34601 }
34602 {
34603 arg3 = &temp3;
34604 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34605 }
34606 ecode4 = SWIG_AsVal_double(obj3, &val4);
34607 if (!SWIG_IsOK(ecode4)) {
34608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34609 }
34610 arg4 = static_cast< double >(val4);
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34614 wxPyEndAllowThreads(__tstate);
34615 if (PyErr_Occurred()) SWIG_fail;
34616 }
34617 resultobj = SWIG_Py_Void();
34618 {
34619 if (temp2)
34620 delete arg2;
34621 }
34622 return resultobj;
34623fail:
34624 {
34625 if (temp2)
34626 delete arg2;
34627 }
34628 return NULL;
34629}
34630
34631
34632SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34633 PyObject *resultobj = 0;
34634 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34635 int arg2 ;
34636 wxPoint *arg3 = (wxPoint *) 0 ;
34637 int arg4 = (int) 0 ;
34638 int arg5 = (int) 0 ;
34639 void *argp1 = 0 ;
34640 int res1 = 0 ;
34641 int val4 ;
34642 int ecode4 = 0 ;
34643 int val5 ;
34644 int ecode5 = 0 ;
34645 PyObject * obj0 = 0 ;
34646 PyObject * obj1 = 0 ;
34647 PyObject * obj2 = 0 ;
34648 PyObject * obj3 = 0 ;
34649 char * kwnames[] = {
34650 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34651 };
34652
34653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34655 if (!SWIG_IsOK(res1)) {
34656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34657 }
34658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34659 {
34660 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34661 if (arg3 == NULL) SWIG_fail;
34662 }
34663 if (obj2) {
34664 ecode4 = SWIG_AsVal_int(obj2, &val4);
34665 if (!SWIG_IsOK(ecode4)) {
34666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34667 }
34668 arg4 = static_cast< int >(val4);
34669 }
34670 if (obj3) {
34671 ecode5 = SWIG_AsVal_int(obj3, &val5);
34672 if (!SWIG_IsOK(ecode5)) {
34673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34674 }
34675 arg5 = static_cast< int >(val5);
34676 }
34677 {
34678 PyThreadState* __tstate = wxPyBeginAllowThreads();
34679 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34680 wxPyEndAllowThreads(__tstate);
34681 if (PyErr_Occurred()) SWIG_fail;
34682 }
34683 resultobj = SWIG_Py_Void();
34684 {
34685 if (arg3) delete [] arg3;
34686 }
34687 return resultobj;
34688fail:
34689 {
34690 if (arg3) delete [] arg3;
34691 }
34692 return NULL;
34693}
34694
34695
34696SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34697 PyObject *resultobj = 0;
34698 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34699 int arg2 ;
34700 wxPoint *arg3 = (wxPoint *) 0 ;
34701 int arg4 = (int) 0 ;
34702 int arg5 = (int) 0 ;
34703 int arg6 = (int) wxODDEVEN_RULE ;
34704 void *argp1 = 0 ;
34705 int res1 = 0 ;
34706 int val4 ;
34707 int ecode4 = 0 ;
34708 int val5 ;
34709 int ecode5 = 0 ;
34710 int val6 ;
34711 int ecode6 = 0 ;
34712 PyObject * obj0 = 0 ;
34713 PyObject * obj1 = 0 ;
34714 PyObject * obj2 = 0 ;
34715 PyObject * obj3 = 0 ;
34716 PyObject * obj4 = 0 ;
34717 char * kwnames[] = {
34718 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34719 };
34720
34721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34723 if (!SWIG_IsOK(res1)) {
34724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34725 }
34726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34727 {
34728 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34729 if (arg3 == NULL) SWIG_fail;
34730 }
34731 if (obj2) {
34732 ecode4 = SWIG_AsVal_int(obj2, &val4);
34733 if (!SWIG_IsOK(ecode4)) {
34734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34735 }
34736 arg4 = static_cast< int >(val4);
34737 }
34738 if (obj3) {
34739 ecode5 = SWIG_AsVal_int(obj3, &val5);
34740 if (!SWIG_IsOK(ecode5)) {
34741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34742 }
34743 arg5 = static_cast< int >(val5);
34744 }
34745 if (obj4) {
34746 ecode6 = SWIG_AsVal_int(obj4, &val6);
34747 if (!SWIG_IsOK(ecode6)) {
34748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34749 }
34750 arg6 = static_cast< int >(val6);
34751 }
34752 {
34753 PyThreadState* __tstate = wxPyBeginAllowThreads();
34754 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34755 wxPyEndAllowThreads(__tstate);
34756 if (PyErr_Occurred()) SWIG_fail;
34757 }
34758 resultobj = SWIG_Py_Void();
34759 {
34760 if (arg3) delete [] arg3;
34761 }
34762 return resultobj;
34763fail:
34764 {
34765 if (arg3) delete [] arg3;
34766 }
34767 return NULL;
34768}
34769
34770
34771SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34772 PyObject *resultobj = 0;
34773 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34774 wxString *arg2 = 0 ;
34775 wxRect *arg3 = 0 ;
34776 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34777 int arg5 = (int) -1 ;
34778 void *argp1 = 0 ;
34779 int res1 = 0 ;
34780 bool temp2 = false ;
34781 wxRect temp3 ;
34782 int val4 ;
34783 int ecode4 = 0 ;
34784 int val5 ;
34785 int ecode5 = 0 ;
34786 PyObject * obj0 = 0 ;
34787 PyObject * obj1 = 0 ;
34788 PyObject * obj2 = 0 ;
34789 PyObject * obj3 = 0 ;
34790 PyObject * obj4 = 0 ;
34791 char * kwnames[] = {
34792 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34793 };
34794
34795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34797 if (!SWIG_IsOK(res1)) {
34798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34799 }
34800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34801 {
34802 arg2 = wxString_in_helper(obj1);
34803 if (arg2 == NULL) SWIG_fail;
34804 temp2 = true;
34805 }
34806 {
34807 arg3 = &temp3;
34808 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34809 }
34810 if (obj3) {
34811 ecode4 = SWIG_AsVal_int(obj3, &val4);
34812 if (!SWIG_IsOK(ecode4)) {
34813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34814 }
34815 arg4 = static_cast< int >(val4);
34816 }
34817 if (obj4) {
34818 ecode5 = SWIG_AsVal_int(obj4, &val5);
34819 if (!SWIG_IsOK(ecode5)) {
34820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34821 }
34822 arg5 = static_cast< int >(val5);
34823 }
34824 {
34825 PyThreadState* __tstate = wxPyBeginAllowThreads();
34826 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34827 wxPyEndAllowThreads(__tstate);
34828 if (PyErr_Occurred()) SWIG_fail;
34829 }
34830 resultobj = SWIG_Py_Void();
34831 {
34832 if (temp2)
34833 delete arg2;
34834 }
34835 return resultobj;
34836fail:
34837 {
34838 if (temp2)
34839 delete arg2;
34840 }
34841 return NULL;
34842}
34843
34844
34845SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34846 PyObject *resultobj = 0;
34847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34848 wxString *arg2 = 0 ;
34849 wxBitmap *arg3 = 0 ;
34850 wxRect *arg4 = 0 ;
34851 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34852 int arg6 = (int) -1 ;
34853 void *argp1 = 0 ;
34854 int res1 = 0 ;
34855 bool temp2 = false ;
34856 void *argp3 = 0 ;
34857 int res3 = 0 ;
34858 wxRect temp4 ;
34859 int val5 ;
34860 int ecode5 = 0 ;
34861 int val6 ;
34862 int ecode6 = 0 ;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 PyObject * obj2 = 0 ;
34866 PyObject * obj3 = 0 ;
34867 PyObject * obj4 = 0 ;
34868 PyObject * obj5 = 0 ;
34869 char * kwnames[] = {
34870 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34871 };
34872
34873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34875 if (!SWIG_IsOK(res1)) {
34876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34877 }
34878 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34879 {
34880 arg2 = wxString_in_helper(obj1);
34881 if (arg2 == NULL) SWIG_fail;
34882 temp2 = true;
34883 }
34884 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34885 if (!SWIG_IsOK(res3)) {
34886 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34887 }
34888 if (!argp3) {
34889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34890 }
34891 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34892 {
34893 arg4 = &temp4;
34894 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34895 }
34896 if (obj4) {
34897 ecode5 = SWIG_AsVal_int(obj4, &val5);
34898 if (!SWIG_IsOK(ecode5)) {
34899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34900 }
34901 arg5 = static_cast< int >(val5);
34902 }
34903 if (obj5) {
34904 ecode6 = SWIG_AsVal_int(obj5, &val6);
34905 if (!SWIG_IsOK(ecode6)) {
34906 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34907 }
34908 arg6 = static_cast< int >(val6);
34909 }
34910 {
34911 PyThreadState* __tstate = wxPyBeginAllowThreads();
34912 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34913 wxPyEndAllowThreads(__tstate);
34914 if (PyErr_Occurred()) SWIG_fail;
34915 }
34916 resultobj = SWIG_Py_Void();
34917 {
34918 if (temp2)
34919 delete arg2;
34920 }
34921 return resultobj;
34922fail:
34923 {
34924 if (temp2)
34925 delete arg2;
34926 }
34927 return NULL;
34928}
34929
34930
34931SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34932 PyObject *resultobj = 0;
34933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34934 int arg2 ;
34935 wxPoint *arg3 = (wxPoint *) 0 ;
34936 void *argp1 = 0 ;
34937 int res1 = 0 ;
34938 PyObject * obj0 = 0 ;
34939 PyObject * obj1 = 0 ;
34940 char * kwnames[] = {
34941 (char *) "self",(char *) "points", NULL
34942 };
34943
34944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34946 if (!SWIG_IsOK(res1)) {
34947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34948 }
34949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34950 {
34951 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34952 if (arg3 == NULL) SWIG_fail;
34953 }
34954 {
34955 PyThreadState* __tstate = wxPyBeginAllowThreads();
34956 (arg1)->DrawSpline(arg2,arg3);
34957 wxPyEndAllowThreads(__tstate);
34958 if (PyErr_Occurred()) SWIG_fail;
34959 }
34960 resultobj = SWIG_Py_Void();
34961 {
34962 if (arg3) delete [] arg3;
34963 }
34964 return resultobj;
34965fail:
34966 {
34967 if (arg3) delete [] arg3;
34968 }
34969 return NULL;
34970}
34971
34972
34973SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34974 PyObject *resultobj = 0;
34975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34976 void *argp1 = 0 ;
34977 int res1 = 0 ;
34978 PyObject *swig_obj[1] ;
34979
34980 if (!args) SWIG_fail;
34981 swig_obj[0] = args;
34982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34983 if (!SWIG_IsOK(res1)) {
34984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34985 }
34986 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34987 {
34988 PyThreadState* __tstate = wxPyBeginAllowThreads();
34989 (arg1)->Clear();
34990 wxPyEndAllowThreads(__tstate);
34991 if (PyErr_Occurred()) SWIG_fail;
34992 }
34993 resultobj = SWIG_Py_Void();
34994 return resultobj;
34995fail:
34996 return NULL;
34997}
34998
34999
35000SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35001 PyObject *resultobj = 0;
35002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35003 wxFont *arg2 = 0 ;
35004 void *argp1 = 0 ;
35005 int res1 = 0 ;
35006 void *argp2 = 0 ;
35007 int res2 = 0 ;
35008 PyObject * obj0 = 0 ;
35009 PyObject * obj1 = 0 ;
35010 char * kwnames[] = {
35011 (char *) "self",(char *) "font", NULL
35012 };
35013
35014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
35015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35016 if (!SWIG_IsOK(res1)) {
35017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35018 }
35019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
35021 if (!SWIG_IsOK(res2)) {
35022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35023 }
35024 if (!argp2) {
35025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35026 }
35027 arg2 = reinterpret_cast< wxFont * >(argp2);
35028 {
35029 PyThreadState* __tstate = wxPyBeginAllowThreads();
35030 (arg1)->SetFont((wxFont const &)*arg2);
35031 wxPyEndAllowThreads(__tstate);
35032 if (PyErr_Occurred()) SWIG_fail;
35033 }
35034 resultobj = SWIG_Py_Void();
35035 return resultobj;
35036fail:
35037 return NULL;
35038}
35039
35040
35041SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35042 PyObject *resultobj = 0;
35043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35044 wxPen *arg2 = 0 ;
35045 void *argp1 = 0 ;
35046 int res1 = 0 ;
35047 void *argp2 = 0 ;
35048 int res2 = 0 ;
35049 PyObject * obj0 = 0 ;
35050 PyObject * obj1 = 0 ;
35051 char * kwnames[] = {
35052 (char *) "self",(char *) "pen", NULL
35053 };
35054
35055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
35056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35057 if (!SWIG_IsOK(res1)) {
35058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35059 }
35060 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
35062 if (!SWIG_IsOK(res2)) {
35063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35064 }
35065 if (!argp2) {
35066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35067 }
35068 arg2 = reinterpret_cast< wxPen * >(argp2);
35069 {
35070 PyThreadState* __tstate = wxPyBeginAllowThreads();
35071 (arg1)->SetPen((wxPen const &)*arg2);
35072 wxPyEndAllowThreads(__tstate);
35073 if (PyErr_Occurred()) SWIG_fail;
35074 }
35075 resultobj = SWIG_Py_Void();
35076 return resultobj;
35077fail:
35078 return NULL;
35079}
35080
35081
35082SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35083 PyObject *resultobj = 0;
35084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35085 wxBrush *arg2 = 0 ;
35086 void *argp1 = 0 ;
35087 int res1 = 0 ;
35088 void *argp2 = 0 ;
35089 int res2 = 0 ;
35090 PyObject * obj0 = 0 ;
35091 PyObject * obj1 = 0 ;
35092 char * kwnames[] = {
35093 (char *) "self",(char *) "brush", NULL
35094 };
35095
35096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
35097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35098 if (!SWIG_IsOK(res1)) {
35099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35100 }
35101 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35103 if (!SWIG_IsOK(res2)) {
35104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35105 }
35106 if (!argp2) {
35107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35108 }
35109 arg2 = reinterpret_cast< wxBrush * >(argp2);
35110 {
35111 PyThreadState* __tstate = wxPyBeginAllowThreads();
35112 (arg1)->SetBrush((wxBrush const &)*arg2);
35113 wxPyEndAllowThreads(__tstate);
35114 if (PyErr_Occurred()) SWIG_fail;
35115 }
35116 resultobj = SWIG_Py_Void();
35117 return resultobj;
35118fail:
35119 return NULL;
35120}
35121
35122
35123SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35124 PyObject *resultobj = 0;
35125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35126 wxBrush *arg2 = 0 ;
35127 void *argp1 = 0 ;
35128 int res1 = 0 ;
35129 void *argp2 = 0 ;
35130 int res2 = 0 ;
35131 PyObject * obj0 = 0 ;
35132 PyObject * obj1 = 0 ;
35133 char * kwnames[] = {
35134 (char *) "self",(char *) "brush", NULL
35135 };
35136
35137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35139 if (!SWIG_IsOK(res1)) {
35140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35141 }
35142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35144 if (!SWIG_IsOK(res2)) {
35145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35146 }
35147 if (!argp2) {
35148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35149 }
35150 arg2 = reinterpret_cast< wxBrush * >(argp2);
35151 {
35152 PyThreadState* __tstate = wxPyBeginAllowThreads();
35153 (arg1)->SetBackground((wxBrush const &)*arg2);
35154 wxPyEndAllowThreads(__tstate);
35155 if (PyErr_Occurred()) SWIG_fail;
35156 }
35157 resultobj = SWIG_Py_Void();
35158 return resultobj;
35159fail:
35160 return NULL;
35161}
35162
35163
35164SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35165 PyObject *resultobj = 0;
35166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35167 int arg2 ;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 int val2 ;
35171 int ecode2 = 0 ;
35172 PyObject * obj0 = 0 ;
35173 PyObject * obj1 = 0 ;
35174 char * kwnames[] = {
35175 (char *) "self",(char *) "mode", NULL
35176 };
35177
35178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
35179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35180 if (!SWIG_IsOK(res1)) {
35181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35182 }
35183 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35184 ecode2 = SWIG_AsVal_int(obj1, &val2);
35185 if (!SWIG_IsOK(ecode2)) {
35186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
35187 }
35188 arg2 = static_cast< int >(val2);
35189 {
35190 PyThreadState* __tstate = wxPyBeginAllowThreads();
35191 (arg1)->SetBackgroundMode(arg2);
35192 wxPyEndAllowThreads(__tstate);
35193 if (PyErr_Occurred()) SWIG_fail;
35194 }
35195 resultobj = SWIG_Py_Void();
35196 return resultobj;
35197fail:
35198 return NULL;
35199}
35200
35201
35202SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35203 PyObject *resultobj = 0;
35204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35205 wxPalette *arg2 = 0 ;
35206 void *argp1 = 0 ;
35207 int res1 = 0 ;
35208 void *argp2 = 0 ;
35209 int res2 = 0 ;
35210 PyObject * obj0 = 0 ;
35211 PyObject * obj1 = 0 ;
35212 char * kwnames[] = {
35213 (char *) "self",(char *) "palette", NULL
35214 };
35215
35216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
35217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35218 if (!SWIG_IsOK(res1)) {
35219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35220 }
35221 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
35223 if (!SWIG_IsOK(res2)) {
35224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35225 }
35226 if (!argp2) {
35227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35228 }
35229 arg2 = reinterpret_cast< wxPalette * >(argp2);
35230 {
35231 PyThreadState* __tstate = wxPyBeginAllowThreads();
35232 (arg1)->SetPalette((wxPalette const &)*arg2);
35233 wxPyEndAllowThreads(__tstate);
35234 if (PyErr_Occurred()) SWIG_fail;
35235 }
35236 resultobj = SWIG_Py_Void();
35237 return resultobj;
35238fail:
35239 return NULL;
35240}
35241
35242
35243SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35244 PyObject *resultobj = 0;
35245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35246 wxColour *arg2 = 0 ;
35247 void *argp1 = 0 ;
35248 int res1 = 0 ;
35249 wxColour temp2 ;
35250 PyObject * obj0 = 0 ;
35251 PyObject * obj1 = 0 ;
35252 char * kwnames[] = {
35253 (char *) "self",(char *) "colour", NULL
35254 };
35255
35256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
35257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35258 if (!SWIG_IsOK(res1)) {
35259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35260 }
35261 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35262 {
35263 arg2 = &temp2;
35264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35265 }
35266 {
35267 PyThreadState* __tstate = wxPyBeginAllowThreads();
35268 (arg1)->SetTextForeground((wxColour const &)*arg2);
35269 wxPyEndAllowThreads(__tstate);
35270 if (PyErr_Occurred()) SWIG_fail;
35271 }
35272 resultobj = SWIG_Py_Void();
35273 return resultobj;
35274fail:
35275 return NULL;
35276}
35277
35278
35279SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35280 PyObject *resultobj = 0;
35281 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35282 wxColour *arg2 = 0 ;
35283 void *argp1 = 0 ;
35284 int res1 = 0 ;
35285 wxColour temp2 ;
35286 PyObject * obj0 = 0 ;
35287 PyObject * obj1 = 0 ;
35288 char * kwnames[] = {
35289 (char *) "self",(char *) "colour", NULL
35290 };
35291
35292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35294 if (!SWIG_IsOK(res1)) {
35295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35296 }
35297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35298 {
35299 arg2 = &temp2;
35300 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35301 }
35302 {
35303 PyThreadState* __tstate = wxPyBeginAllowThreads();
35304 (arg1)->SetTextBackground((wxColour const &)*arg2);
35305 wxPyEndAllowThreads(__tstate);
35306 if (PyErr_Occurred()) SWIG_fail;
35307 }
35308 resultobj = SWIG_Py_Void();
35309 return resultobj;
35310fail:
35311 return NULL;
35312}
35313
35314
35315SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35316 PyObject *resultobj = 0;
35317 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35318 int arg2 ;
35319 void *argp1 = 0 ;
35320 int res1 = 0 ;
35321 int val2 ;
35322 int ecode2 = 0 ;
35323 PyObject * obj0 = 0 ;
35324 PyObject * obj1 = 0 ;
35325 char * kwnames[] = {
35326 (char *) "self",(char *) "function", NULL
35327 };
35328
35329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35331 if (!SWIG_IsOK(res1)) {
35332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35333 }
35334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35335 ecode2 = SWIG_AsVal_int(obj1, &val2);
35336 if (!SWIG_IsOK(ecode2)) {
35337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35338 }
35339 arg2 = static_cast< int >(val2);
35340 {
35341 PyThreadState* __tstate = wxPyBeginAllowThreads();
35342 (arg1)->SetLogicalFunction(arg2);
35343 wxPyEndAllowThreads(__tstate);
35344 if (PyErr_Occurred()) SWIG_fail;
35345 }
35346 resultobj = SWIG_Py_Void();
35347 return resultobj;
35348fail:
35349 return NULL;
35350}
35351
35352
35353SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35354 PyObject *obj;
35355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35356 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35357 return SWIG_Py_Void();
35358}
35359
35360SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35361 return SWIG_Python_InitShadowInstance(args);
35362}
35363
35364static PyMethodDef SwigMethods[] = {
35365 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35366 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35367 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35368 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35369 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35370 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35371 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35372 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35373 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35374 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35375 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35376 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 35377 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 35378 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
35379 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35380 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35381 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35382 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35383 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35384 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35385 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 35386 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
35387 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35388 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35389 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35390 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35391 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35392 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35393 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35394 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 35395 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
35396 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35397 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35398 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35399 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35400 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35401 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35402 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35403 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35404 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 35405 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
35406 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35411 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35413 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35414 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35415 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35416 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35418 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35419 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35420 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35421 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35422 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35423 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35424 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35425 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35426 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35427 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35428 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35429 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35430 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 35431 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
35432 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35433 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35434 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35436 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35442 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 35443 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
35444 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35445 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35446 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35447 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35448 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35449 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35450 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35456 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35458 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35459 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35460 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35461 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35462 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35463 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35464 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35465 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35466 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
35467 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35469 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35470 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35471 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35472 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35473 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35474 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35475 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35476 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35477 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35478 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35479 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35480 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35481 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35482 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35483 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35484 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35485 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35486 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35487 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35488 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35489 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35490 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35491 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35492 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35493 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35494 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35495 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35496 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35497 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35498 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35499 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35500 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35501 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35502 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35503 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35504 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35505 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35506 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35507 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35508 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35509 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35510 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35511 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35512 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35513 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35514 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35515 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
35516 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35517 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35518 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35519 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35520 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35521 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35522 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35523 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35526 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35528 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 35529 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
35530 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35531 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35532 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35533 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35534 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35535 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35536 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35537 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35538 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35539 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35540 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35541 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35542 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35543 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35544 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35545 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35546 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35547 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35548 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35549 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35550 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35551 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35552 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35553 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35554 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35555 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35556 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35557 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35558 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35559 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35560 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35561 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35562 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35563 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 35564 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
35565 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35566 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35567 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35568 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35570 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35571 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35572 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35573 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35574 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35575 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35576 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35577 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35578 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35579 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35580 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35581 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35583 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35584 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35586 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 35590 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
35591 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35592 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35593 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35594 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35595 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35596 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35597 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35598 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35599 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35600 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35601 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35602 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35603 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35604 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35605 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35606 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35607 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35608 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35609 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35610 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35611 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35612 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35613 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35614 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35615 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35616 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35617 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35618 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35619 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35620 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35621 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35622 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35623 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35624 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35625 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35626 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35627 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35628 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35629 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35630 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35631 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35632 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35633 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35634 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35635 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35636 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35637 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35638 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35639 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35640 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35641 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35642 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35643 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35644 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35645 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35646 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35647 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35648 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35649 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35650 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35651 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35652 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35653 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35654 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35655 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35656 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35657 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35658 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35659 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35660 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35661 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35662 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35663 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35664 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35665 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
35666 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35667 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35668 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35669 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35670 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35671 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35672 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35673 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35674 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35675 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35676 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35677 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35678 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35679 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35680 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35681 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35682 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35683 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 35684 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
35685 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35686 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35687 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35688 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35689 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35690 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35691 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35692 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35693 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35694 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35695 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35696 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35697 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35698 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35699 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35700 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35701 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35702 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35703 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35704 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35705 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35706 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35707 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35708 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35709 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35710 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35711 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35712 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35713 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35714 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35715 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35716 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35717 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35718 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35719 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35720 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35721 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35722 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35723 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35724 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
35725 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35726 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35727 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
35728 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35729 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35730 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35731 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35732 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35733 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35734 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35735 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35736 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35737 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35738 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35739 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35740 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35741 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35742 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35743 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35744 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35745 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35746 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35747 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35748 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35749 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35750 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 35751 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
35752 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35753 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35754 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35755 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35756 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35757 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35758 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35759 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35760 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
35761 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35762 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35763 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35765 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35766 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35767 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
35768 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35769 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35770 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35771 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35772 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35773 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35774 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35775 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35776 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35777 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35778 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35779 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35780 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35781 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35782 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35783 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35784 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35785 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35786 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35787 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35788 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35789 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35790 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35791 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35792 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35793 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35794 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35795 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35796 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35797 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35798 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35799 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35800 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35801 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35803 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35805 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35806 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35807 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35808 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35809 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35810 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35811 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35812 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35813 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35814 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35815 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35816 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35817 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35818 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35819 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35820 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35823 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35824 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35825 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35826 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35827 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35828 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35829 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35830 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35831 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35832 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35833 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35834 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35835 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35836 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35837 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35838 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35839 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35840 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35841 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35842 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35843 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35844 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35845 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35846 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35847 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35848 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35849 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35850 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35851 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35852 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35853 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35854 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35855 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35856 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35857 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35858 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35859 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35860 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35861 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35862 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35863 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 35864 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
35865 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35866 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35867 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35868 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35869 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35870 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35871 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35872 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35873 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35874 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35875 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35876 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35877 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35878 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35879 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35880 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35881 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35882 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35883 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35884 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35885 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35886 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35887 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35888 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35889 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35890 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35891 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35892 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35893 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35894 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35895 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35896 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35897 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35898 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35899 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
35900 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35901 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
35902 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35903 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35905 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35906 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35907 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35908 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35909 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
8e99bda9 35910 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
35911 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35912 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35913 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35914 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
35915 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35916 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35917 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35918 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35919 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35920 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
35921 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35922 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35923 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
35924 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35925 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35926 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35927 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35928 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35929 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
35930 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35931 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35932 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35933 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35934 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35935 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35936 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35937 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35938 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35939 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35940 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 35941 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
35942 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35943 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35944 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35945 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35946 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35947 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35948 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35949 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35950 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35951 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35952 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35953 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 35954 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
35955 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35956 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35957 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35958 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35959 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35960 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35961 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35962 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35963 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35964 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35965 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35966 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35967 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35968 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
35969 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35970 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35971 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35972 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35973 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35974 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35975 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35976 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35977 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35978 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35979 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35980 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35981 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
35982 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35983 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35984 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35985 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35986 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 35987 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 35988 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
35989 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35990 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
35991 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35992 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35993 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35994 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35995 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35996 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35997 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35998 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35999 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
36000 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
36001 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
36002 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
36003 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36004 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
36005 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
36006 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
36007 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36008 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36009 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 36010 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 36011 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
36012 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36013 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36014 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36015 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36016 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
36017 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
36018 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
36019 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
36020 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
36021 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
36022 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
36023 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
36024 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
36025 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
36026 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
36027 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
36028 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
36029 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
36030 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
36031 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
36032 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
36033 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
36034 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
36035 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
36036 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
36037 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36038 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36039 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36040 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
36041 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
36042 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
36043 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
36044 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
36045 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
36046 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
36047 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
36048 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
36049 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
36050 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
36051 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
36052 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36053 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
36054 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
36055 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36056 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36057 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
36058 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
36059 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
36060 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
36061 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
36062 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 36063 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 36064 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 36065 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 36066 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 36067 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 36068 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 36069 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 36070 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
36071 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
36072 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
36073 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
36074 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
36075 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
36076 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
36077 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
36078 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
36079 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
36080 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
36081 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
36082 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
36083 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
36084 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
36085 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
36086 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
36087 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
36088 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
36089 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
36090 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
36091 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
36092 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
36093 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
36094 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36095 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
36096 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36097 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36098 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36099 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
36100 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36101 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
36102 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
36103 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
36104 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
36105 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
36106 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
36107 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
36108 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
36109 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
36110 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
36111 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
36112 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
36113 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
36114 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
36115 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
36116 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
36117 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
36118 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
36119 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
36120 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
36121 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
36122 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
36123 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
36124 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
36125 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
36126 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
36127 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
36128 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
36129 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
36130 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
36131 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
36132 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
36133 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
36134 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
36135 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
36136 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
36137 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
36138 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
36139 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
36140 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
36141 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
36142 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
36143 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
36144 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
36145 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
36146 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
36147 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
36148 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
36149 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
36150 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36151 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
36152 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
36153 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
36154 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
36155 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
36156 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
36157 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
36158 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
36159 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
36160 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
36161 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
36162 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
36163 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36164 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36165 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
36166 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
36167 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36168 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36169 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36170 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
36171 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
36172 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36173 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
36174 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36175 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
36176 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36177 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
36178 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36179 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
36180 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36181 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
36182 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
36183 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
36184 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36185 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36186 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36187 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36188 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36189 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36190 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36191 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36192 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36193 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
36194 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36195 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36196 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
36197 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36198 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36199 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36200 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36201 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36202 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36203 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36204 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36205 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36206 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36207 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
36208 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36209 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36210 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
36211 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
36212 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36213 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36214 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36215 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36216 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
36217 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
36218 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
36219 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36220 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
36221 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
36222 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
36223 { NULL, NULL, 0, NULL }
36224};
36225
36226
36227/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
36228
72ef6efb
RD
36229static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
36230 return (void *)((wxClientDC *) ((wxPaintDC *) x));
36231}
8e99bda9
RD
36232static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
36233 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
36234}
36235static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
36236 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
36237}
72ef6efb
RD
36238static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
36239 return (void *)((wxWindowDC *) ((wxClientDC *) x));
36240}
36241static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
36242 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
36243}
fc46b7f3
RD
36244static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
36245 return (void *)((wxLocale *) ((wxPyLocale *) x));
36246}
554f62e9
RD
36247static void *_p_wxIconTo_p_wxGDIObject(void *x) {
36248 return (void *)((wxGDIObject *) ((wxIcon *) x));
36249}
36250static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
36251 return (void *)((wxGDIObject *) ((wxPalette *) x));
36252}
36253static void *_p_wxPenTo_p_wxGDIObject(void *x) {
36254 return (void *)((wxGDIObject *) ((wxPen *) x));
36255}
36256static void *_p_wxFontTo_p_wxGDIObject(void *x) {
36257 return (void *)((wxGDIObject *) ((wxFont *) x));
36258}
36259static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
36260 return (void *)((wxGDIObject *) ((wxCursor *) x));
36261}
36262static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
36263 return (void *)((wxGDIObject *) ((wxBitmap *) x));
36264}
36265static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
36266 return (void *)((wxGDIObject *) ((wxRegion *) x));
36267}
36268static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
36269 return (void *)((wxGDIObject *) ((wxBrush *) x));
36270}
72ef6efb
RD
36271static void *_p_wxGCDCTo_p_wxDC(void *x) {
36272 return (void *)((wxDC *) ((wxGCDC *) x));
36273}
554f62e9
RD
36274static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36275 return (void *)((wxDC *) ((wxScreenDC *) x));
36276}
24f6c4e8
RD
36277static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
36278 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
36279}
554f62e9
RD
36280static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36281 return (void *)((wxDC *) ((wxMirrorDC *) x));
36282}
36283static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36284 return (void *)((wxDC *) ((wxMemoryDC *) x));
36285}
36286static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36287 return (void *)((wxDC *) ((wxWindowDC *) x));
36288}
36289static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36290 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36291}
554f62e9 36292static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 36293 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
36294}
36295static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 36296 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 36297}
24f6c4e8
RD
36298static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36299 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36300}
36301static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
36302 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
36303}
554f62e9
RD
36304static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36305 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36306}
36307static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36308 return (void *)((wxDC *) ((wxPrinterDC *) x));
36309}
50efceee
RD
36310static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36311 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36312}
36313static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36314 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36315}
36316static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36317 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36318}
554f62e9
RD
36319static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36320 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36321}
36322static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36323 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36324}
36325static void *_p_wxPenTo_p_wxObject(void *x) {
36326 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36327}
36328static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36329 return (void *)((wxObject *) ((wxRegionIterator *) x));
36330}
554f62e9
RD
36331static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36332 return (void *)((wxObject *) ((wxSizerItem *) x));
36333}
0f83f5da
RD
36334static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36335 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36336}
554f62e9
RD
36337static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36338 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36339}
36340static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36341 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36342}
36343static void *_p_wxIconTo_p_wxObject(void *x) {
36344 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36345}
36346static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36347 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36348}
36349static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36350 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36351}
36352static void *_p_wxSizerTo_p_wxObject(void *x) {
36353 return (void *)((wxObject *) ((wxSizer *) x));
36354}
36355static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36356 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36357}
36358static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36359 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36360}
554f62e9
RD
36361static void *_p_wxEventTo_p_wxObject(void *x) {
36362 return (void *)((wxObject *) ((wxEvent *) x));
36363}
36364static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36365 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36366}
36367static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36368 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36369}
36370static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36371 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36372}
27e45892
RD
36373static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36374 return (void *)((wxObject *) ((wxPseudoDC *) x));
36375}
2131d850
RD
36376static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36377 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36378}
554f62e9
RD
36379static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36380 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36381}
36382static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36383 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36384}
36385static void *_p_wxDCTo_p_wxObject(void *x) {
36386 return (void *)((wxObject *) ((wxDC *) x));
36387}
36388static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36389 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36390}
36391static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36392 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36393}
36394static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36395 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36396}
36397static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36398 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36399}
36400static void *_p_wxControlTo_p_wxObject(void *x) {
36401 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36402}
36403static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36404 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36405}
36406static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 36407 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
36408}
36409static void *_p_wxFSFileTo_p_wxObject(void *x) {
36410 return (void *)((wxObject *) ((wxFSFile *) x));
36411}
36412static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36413 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36414}
36415static void *_p_wxRegionTo_p_wxObject(void *x) {
36416 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36417}
36418static void *_p_wxPySizerTo_p_wxObject(void *x) {
36419 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36420}
36421static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36422 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36423}
36424static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36425 return (void *)((wxObject *) ((wxGDIObject *) x));
36426}
36427static void *_p_wxEffectsTo_p_wxObject(void *x) {
36428 return (void *)((wxObject *) ((wxEffects *) x));
36429}
36430static void *_p_wxPyEventTo_p_wxObject(void *x) {
36431 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36432}
36433static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36434 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36435}
36436static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36437 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36438}
36439static void *_p_wxShowEventTo_p_wxObject(void *x) {
36440 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36441}
36442static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36443 return (void *)((wxObject *) ((wxMenuItem *) x));
36444}
36445static void *_p_wxDateEventTo_p_wxObject(void *x) {
36446 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36447}
36448static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36449 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36450}
36451static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36452 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36453}
36454static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36455 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36456}
36457static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36458 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36459}
36460static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36461 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36462}
36463static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36464 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36465}
36466static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36467 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36468}
36469static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36470 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36471}
36472static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36473 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36474}
36475static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36476 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36477}
36478static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36479 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36480}
36481static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36482 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36483}
36484static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36485 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36486}
36487static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36488 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36489}
36490static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36491 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36492}
36493static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36494 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36495}
36496static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36497 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36498}
36499static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36500 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36501}
36502static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36503 return (void *)((wxObject *) ((wxImageHandler *) x));
36504}
36505static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36506 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36507}
36508static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36509 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36510}
36511static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36512 return (void *)((wxObject *) ((wxEvtHandler *) x));
36513}
0f83f5da
RD
36514static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36515 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36516}
24f6c4e8
RD
36517static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36518 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36519}
554f62e9 36520static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 36521 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 36522}
24f6c4e8
RD
36523static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
36524 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
36525}
36526static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36527 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36528}
36529static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36530 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36531}
36532static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36533 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36534}
36535static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36536 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36537}
36538static void *_p_wxImageTo_p_wxObject(void *x) {
36539 return (void *)((wxObject *) ((wxImage *) x));
36540}
36541static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36542 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36543}
36544static void *_p_wxPaletteTo_p_wxObject(void *x) {
36545 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36546}
36547static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 36548 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
36549}
36550static void *_p_wxImageListTo_p_wxObject(void *x) {
36551 return (void *)((wxObject *) ((wxImageList *) x));
36552}
72ef6efb
RD
36553static void *_p_wxGCDCTo_p_wxObject(void *x) {
36554 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36555}
554f62e9
RD
36556static void *_p_wxCursorTo_p_wxObject(void *x) {
36557 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36558}
36559static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36560 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36561}
36562static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36563 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36564}
36565static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36567}
36568static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36569 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36570}
36571static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36572 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36573}
36574static void *_p_wxWindowTo_p_wxObject(void *x) {
36575 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36576}
36577static void *_p_wxMenuTo_p_wxObject(void *x) {
36578 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36579}
36580static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36581 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36582}
36583static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36584 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36585}
554f62e9
RD
36586static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36587 return (void *)((wxObject *) ((wxFileSystem *) x));
36588}
36589static void *_p_wxBitmapTo_p_wxObject(void *x) {
36590 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36591}
36592static void *_p_wxMaskTo_p_wxObject(void *x) {
36593 return (void *)((wxObject *) ((wxMask *) x));
36594}
36595static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36596 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36597}
36598static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36599 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36600}
36601static void *_p_wxPyAppTo_p_wxObject(void *x) {
36602 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36603}
36604static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36605 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36606}
36607static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36608 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36609}
36610static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36611 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36612}
36613static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36614 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36615}
36616static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36617 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36618}
36619static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36620 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36621}
36622static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36623 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36624}
36625static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36626 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36627}
36628static void *_p_wxFontTo_p_wxObject(void *x) {
36629 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36630}
36631static void *_p_wxBrushTo_p_wxObject(void *x) {
36632 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36633}
36634static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36635 return (void *)((wxObject *) ((wxMetaFile *) x));
36636}
36637static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36638 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36639}
36640static void *_p_wxColourTo_p_wxObject(void *x) {
36641 return (void *)((wxObject *) ((wxColour *) x));
36642}
554f62e9
RD
36643static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36644 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36645}
36646static void *_p_wxValidatorTo_p_wxObject(void *x) {
36647 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36648}
36649static void *_p_wxControlTo_p_wxWindow(void *x) {
36650 return (void *)((wxWindow *) ((wxControl *) x));
36651}
36652static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36653 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36654}
36655static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36656 return (void *)((wxWindow *) ((wxMenuBar *) x));
36657}
fc46b7f3
RD
36658static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36659 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36660}
36661static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36662 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36663}
36664static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 36665static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 36666static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
36667static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
36668static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36669static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36670static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36671static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 36672static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
36673static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36674static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 36675static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
36676static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36677static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36678static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36679static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36680static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 36681static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9 36682static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 36683static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
554f62e9
RD
36684static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36685static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36686static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36687static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
b39fe951 36688static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
36689static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36690static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36691static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36692static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36693static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36694static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36695static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 36696static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 36697static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 36698static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
36699static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36700static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 36701static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
36702static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36703static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36704static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36705static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36706static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36707static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36708static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36709static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36710static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36711static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36712static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36713static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36714static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36715static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
36716static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36717static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
36718static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36719static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 36720static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 36721static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
36722static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36723static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36724static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36725static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36726static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36727static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36728static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36729static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36730static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36731static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36732static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36733static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 36734static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
36735static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36736static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36737static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36738static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36739static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36740static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36741static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36742static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36743static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36744static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36745static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36746static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36747static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36748static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36749static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36750static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36751static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36752static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36753static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36754static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36755static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36756static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36757static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
554f62e9
RD
36758static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36759static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36760static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36761static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36762static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36763static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36764static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
24f6c4e8 36765static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 36766static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 36767static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 36768static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
36769static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36770static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36771static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 36772static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
36773static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36774static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36775static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36776static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36777static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36778static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36779static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36780static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36781static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36782static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36783static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36784static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36785static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36786static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36787static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36788static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36789static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36790static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36791static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36792static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36793static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36794static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 36795static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
36796static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36797static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36798static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36799static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36800static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 36801static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 36802static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 36803static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
554f62e9
RD
36804static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36805static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36806static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 36807static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 36808static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 36809static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9
RD
36810static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36811static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36812static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36813static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36814static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36815static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36816static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36817static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 36818static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
36819static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36820static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36821static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36822
36823static swig_type_info *swig_type_initial[] = {
fc46b7f3 36824 &_swigt__p_buffer,
554f62e9
RD
36825 &_swigt__p_char,
36826 &_swigt__p_double,
36827 &_swigt__p_form_ops_t,
36828 &_swigt__p_int,
36829 &_swigt__p_unsigned_char,
36830 &_swigt__p_unsigned_int,
36831 &_swigt__p_unsigned_long,
0a27f394 36832 &_swigt__p_void,
554f62e9
RD
36833 &_swigt__p_wxANIHandler,
36834 &_swigt__p_wxAcceleratorTable,
36835 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
36836 &_swigt__p_wxAlphaPixelData,
36837 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 36838 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
36839 &_swigt__p_wxBMPHandler,
36840 &_swigt__p_wxBitmap,
36841 &_swigt__p_wxBoxSizer,
36842 &_swigt__p_wxBrush,
36843 &_swigt__p_wxBrushList,
36844 &_swigt__p_wxBufferedDC,
36845 &_swigt__p_wxBufferedPaintDC,
36846 &_swigt__p_wxCURHandler,
fc46b7f3 36847 &_swigt__p_wxChar,
554f62e9
RD
36848 &_swigt__p_wxChildFocusEvent,
36849 &_swigt__p_wxClientDC,
2131d850 36850 &_swigt__p_wxClipboardTextEvent,
554f62e9 36851 &_swigt__p_wxCloseEvent,
72ef6efb 36852 &_swigt__p_wxColor,
554f62e9
RD
36853 &_swigt__p_wxColour,
36854 &_swigt__p_wxColourDatabase,
36855 &_swigt__p_wxCommandEvent,
36856 &_swigt__p_wxContextMenuEvent,
36857 &_swigt__p_wxControl,
36858 &_swigt__p_wxControlWithItems,
36859 &_swigt__p_wxCursor,
36860 &_swigt__p_wxDC,
b39fe951 36861 &_swigt__p_wxDCOverlay,
554f62e9
RD
36862 &_swigt__p_wxDash,
36863 &_swigt__p_wxDateEvent,
36864 &_swigt__p_wxDisplayChangedEvent,
36865 &_swigt__p_wxDropFilesEvent,
36866 &_swigt__p_wxDuplexMode,
36867 &_swigt__p_wxEffects,
36868 &_swigt__p_wxEncodingConverter,
36869 &_swigt__p_wxEraseEvent,
36870 &_swigt__p_wxEvent,
36871 &_swigt__p_wxEvtHandler,
36872 &_swigt__p_wxFSFile,
36873 &_swigt__p_wxFileSystem,
36874 &_swigt__p_wxFlexGridSizer,
36875 &_swigt__p_wxFocusEvent,
36876 &_swigt__p_wxFont,
36877 &_swigt__p_wxFontList,
36878 &_swigt__p_wxFontMapper,
36879 &_swigt__p_wxGBSizerItem,
72ef6efb 36880 &_swigt__p_wxGCDC,
50efceee 36881 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
36882 &_swigt__p_wxGDIObject,
36883 &_swigt__p_wxGIFHandler,
72ef6efb
RD
36884 &_swigt__p_wxGraphicsContext,
36885 &_swigt__p_wxGraphicsPath,
554f62e9
RD
36886 &_swigt__p_wxGridBagSizer,
36887 &_swigt__p_wxGridSizer,
33d6fd3b 36888 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
36889 &_swigt__p_wxICOHandler,
36890 &_swigt__p_wxIcon,
36891 &_swigt__p_wxIconBundle,
36892 &_swigt__p_wxIconLocation,
36893 &_swigt__p_wxIconizeEvent,
36894 &_swigt__p_wxIdleEvent,
36895 &_swigt__p_wxImage,
36896 &_swigt__p_wxImageHandler,
36897 &_swigt__p_wxImageList,
36898 &_swigt__p_wxIndividualLayoutConstraint,
36899 &_swigt__p_wxInitDialogEvent,
36900 &_swigt__p_wxJPEGHandler,
36901 &_swigt__p_wxKeyEvent,
36902 &_swigt__p_wxLanguageInfo,
36903 &_swigt__p_wxLayoutConstraints,
36904 &_swigt__p_wxLocale,
36905 &_swigt__p_wxMask,
36906 &_swigt__p_wxMaximizeEvent,
36907 &_swigt__p_wxMemoryDC,
36908 &_swigt__p_wxMenu,
36909 &_swigt__p_wxMenuBar,
36910 &_swigt__p_wxMenuEvent,
36911 &_swigt__p_wxMenuItem,
36912 &_swigt__p_wxMetaFile,
36913 &_swigt__p_wxMetaFileDC,
36914 &_swigt__p_wxMirrorDC,
36915 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 36916 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
36917 &_swigt__p_wxMouseEvent,
36918 &_swigt__p_wxMoveEvent,
36919 &_swigt__p_wxNativeEncodingInfo,
36920 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
36921 &_swigt__p_wxNativePixelData,
36922 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
36923 &_swigt__p_wxNavigationKeyEvent,
36924 &_swigt__p_wxNcPaintEvent,
36925 &_swigt__p_wxNotifyEvent,
36926 &_swigt__p_wxObject,
b39fe951 36927 &_swigt__p_wxOverlay,
554f62e9
RD
36928 &_swigt__p_wxPCXHandler,
36929 &_swigt__p_wxPNGHandler,
36930 &_swigt__p_wxPNMHandler,
36931 &_swigt__p_wxPaintDC,
36932 &_swigt__p_wxPaintEvent,
36933 &_swigt__p_wxPalette,
36934 &_swigt__p_wxPaletteChangedEvent,
36935 &_swigt__p_wxPaperSize,
36936 &_swigt__p_wxPen,
36937 &_swigt__p_wxPenList,
fc46b7f3 36938 &_swigt__p_wxPixelDataBase,
554f62e9 36939 &_swigt__p_wxPoint,
72ef6efb 36940 &_swigt__p_wxPoint2D,
554f62e9
RD
36941 &_swigt__p_wxPostScriptDC,
36942 &_swigt__p_wxPrintData,
36943 &_swigt__p_wxPrinterDC,
27e45892 36944 &_swigt__p_wxPseudoDC,
554f62e9
RD
36945 &_swigt__p_wxPyApp,
36946 &_swigt__p_wxPyCommandEvent,
36947 &_swigt__p_wxPyEvent,
36948 &_swigt__p_wxPyFontEnumerator,
36949 &_swigt__p_wxPyImageHandler,
fc46b7f3 36950 &_swigt__p_wxPyLocale,
554f62e9
RD
36951 &_swigt__p_wxPySizer,
36952 &_swigt__p_wxPyValidator,
36953 &_swigt__p_wxQueryNewPaletteEvent,
36954 &_swigt__p_wxRect,
36955 &_swigt__p_wxRegion,
36956 &_swigt__p_wxRegionIterator,
36957 &_swigt__p_wxRendererNative,
36958 &_swigt__p_wxRendererVersion,
36959 &_swigt__p_wxScreenDC,
36960 &_swigt__p_wxScrollEvent,
36961 &_swigt__p_wxScrollWinEvent,
36962 &_swigt__p_wxSetCursorEvent,
36963 &_swigt__p_wxShowEvent,
36964 &_swigt__p_wxSize,
36965 &_swigt__p_wxSizeEvent,
36966 &_swigt__p_wxSizer,
36967 &_swigt__p_wxSizerItem,
36968 &_swigt__p_wxSplitterRenderParams,
36969 &_swigt__p_wxStaticBoxSizer,
36970 &_swigt__p_wxStdDialogButtonSizer,
50efceee 36971 &_swigt__p_wxStockGDI,
554f62e9
RD
36972 &_swigt__p_wxString,
36973 &_swigt__p_wxSysColourChangedEvent,
36974 &_swigt__p_wxTIFFHandler,
36975 &_swigt__p_wxUpdateUIEvent,
36976 &_swigt__p_wxValidator,
36977 &_swigt__p_wxWindow,
36978 &_swigt__p_wxWindowCreateEvent,
36979 &_swigt__p_wxWindowDC,
36980 &_swigt__p_wxWindowDestroyEvent,
36981 &_swigt__p_wxXPMHandler,
36982};
36983
fc46b7f3 36984static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
36985static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36986static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36987static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36988static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36989static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36990static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36991static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 36992static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
36993static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36994static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36995static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
36996static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36997static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36998static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36999static 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}};
37000static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 37001static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
37002static 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}};
37003static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37004static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
37005static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
37006static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 37007static 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}};
b39fe951 37008static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37009static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
37010static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
37011static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
37012static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
37013static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
37014static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
37015static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 37016static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 37017static 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}};
554f62e9 37018static swig_cast_info _swigc__p_wxGDIObject[] = { {&_swigt__p_wxIcon, _p_wxIconTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxGDIObject, 0, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxGDIObject, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
37019static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
37020static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 37021static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37022static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
37023static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
37024static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
37025static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
37026static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
37027static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 37028static 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}};
554f62e9 37029static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 37030static 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}};
554f62e9
RD
37031static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
37032static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
37033static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
37034static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
37035static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
37036static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
37037static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 37038static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 37039static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 37040static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37041static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
37042static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
37043static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37044static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37045static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
37046static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
37047static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
37048static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
37049static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
37050static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37051static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37052static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 37053static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37054static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37055static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37056static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37057static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37058static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37059static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37060static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
37061static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
37062static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
37063static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
37064static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
37065static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
37066static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
37067static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
37068static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
37069static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
37070static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
37071static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
37072static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37073static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37074static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37075static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
37076static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37077static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
37078static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
37079static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37080static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37081static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
37082static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
37083static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 37084static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 37085static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 37086static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 37087static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37088static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
37089static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
37090static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 37091static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37092static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
37093static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
37094static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
37095static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
37096static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37097static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37098static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
37099static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
37100static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37101static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37102static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
37103static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
37104static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
37105static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
37106static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37107static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37108static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
37109static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37110static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37111static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
37112static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
37113static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 37114static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 37115static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37116static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37117static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
37118static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
37119static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
37120static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 37121static 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}};
554f62e9 37122static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 37123static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37124static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
37125static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
37126static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 37127static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 37128static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 37129static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37130static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
37131static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
37132static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
37133static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
37134static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
37135static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
37136static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
37137static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 37138static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37139static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
37140static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 37141static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
37142
37143static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 37144 _swigc__p_buffer,
554f62e9
RD
37145 _swigc__p_char,
37146 _swigc__p_double,
37147 _swigc__p_form_ops_t,
37148 _swigc__p_int,
37149 _swigc__p_unsigned_char,
37150 _swigc__p_unsigned_int,
37151 _swigc__p_unsigned_long,
0a27f394 37152 _swigc__p_void,
554f62e9
RD
37153 _swigc__p_wxANIHandler,
37154 _swigc__p_wxAcceleratorTable,
37155 _swigc__p_wxActivateEvent,
fc46b7f3
RD
37156 _swigc__p_wxAlphaPixelData,
37157 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 37158 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
37159 _swigc__p_wxBMPHandler,
37160 _swigc__p_wxBitmap,
37161 _swigc__p_wxBoxSizer,
37162 _swigc__p_wxBrush,
37163 _swigc__p_wxBrushList,
37164 _swigc__p_wxBufferedDC,
37165 _swigc__p_wxBufferedPaintDC,
37166 _swigc__p_wxCURHandler,
fc46b7f3 37167 _swigc__p_wxChar,
554f62e9
RD
37168 _swigc__p_wxChildFocusEvent,
37169 _swigc__p_wxClientDC,
2131d850 37170 _swigc__p_wxClipboardTextEvent,
554f62e9 37171 _swigc__p_wxCloseEvent,
72ef6efb 37172 _swigc__p_wxColor,
554f62e9
RD
37173 _swigc__p_wxColour,
37174 _swigc__p_wxColourDatabase,
37175 _swigc__p_wxCommandEvent,
37176 _swigc__p_wxContextMenuEvent,
37177 _swigc__p_wxControl,
37178 _swigc__p_wxControlWithItems,
37179 _swigc__p_wxCursor,
37180 _swigc__p_wxDC,
b39fe951 37181 _swigc__p_wxDCOverlay,
554f62e9
RD
37182 _swigc__p_wxDash,
37183 _swigc__p_wxDateEvent,
37184 _swigc__p_wxDisplayChangedEvent,
37185 _swigc__p_wxDropFilesEvent,
37186 _swigc__p_wxDuplexMode,
37187 _swigc__p_wxEffects,
37188 _swigc__p_wxEncodingConverter,
37189 _swigc__p_wxEraseEvent,
37190 _swigc__p_wxEvent,
37191 _swigc__p_wxEvtHandler,
37192 _swigc__p_wxFSFile,
37193 _swigc__p_wxFileSystem,
37194 _swigc__p_wxFlexGridSizer,
37195 _swigc__p_wxFocusEvent,
37196 _swigc__p_wxFont,
37197 _swigc__p_wxFontList,
37198 _swigc__p_wxFontMapper,
37199 _swigc__p_wxGBSizerItem,
72ef6efb 37200 _swigc__p_wxGCDC,
50efceee 37201 _swigc__p_wxGDIObjListBase,
554f62e9
RD
37202 _swigc__p_wxGDIObject,
37203 _swigc__p_wxGIFHandler,
72ef6efb
RD
37204 _swigc__p_wxGraphicsContext,
37205 _swigc__p_wxGraphicsPath,
554f62e9
RD
37206 _swigc__p_wxGridBagSizer,
37207 _swigc__p_wxGridSizer,
33d6fd3b 37208 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
37209 _swigc__p_wxICOHandler,
37210 _swigc__p_wxIcon,
37211 _swigc__p_wxIconBundle,
37212 _swigc__p_wxIconLocation,
37213 _swigc__p_wxIconizeEvent,
37214 _swigc__p_wxIdleEvent,
37215 _swigc__p_wxImage,
37216 _swigc__p_wxImageHandler,
37217 _swigc__p_wxImageList,
37218 _swigc__p_wxIndividualLayoutConstraint,
37219 _swigc__p_wxInitDialogEvent,
37220 _swigc__p_wxJPEGHandler,
37221 _swigc__p_wxKeyEvent,
37222 _swigc__p_wxLanguageInfo,
37223 _swigc__p_wxLayoutConstraints,
37224 _swigc__p_wxLocale,
37225 _swigc__p_wxMask,
37226 _swigc__p_wxMaximizeEvent,
37227 _swigc__p_wxMemoryDC,
37228 _swigc__p_wxMenu,
37229 _swigc__p_wxMenuBar,
37230 _swigc__p_wxMenuEvent,
37231 _swigc__p_wxMenuItem,
37232 _swigc__p_wxMetaFile,
37233 _swigc__p_wxMetaFileDC,
37234 _swigc__p_wxMirrorDC,
37235 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 37236 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
37237 _swigc__p_wxMouseEvent,
37238 _swigc__p_wxMoveEvent,
37239 _swigc__p_wxNativeEncodingInfo,
37240 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
37241 _swigc__p_wxNativePixelData,
37242 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
37243 _swigc__p_wxNavigationKeyEvent,
37244 _swigc__p_wxNcPaintEvent,
37245 _swigc__p_wxNotifyEvent,
37246 _swigc__p_wxObject,
b39fe951 37247 _swigc__p_wxOverlay,
554f62e9
RD
37248 _swigc__p_wxPCXHandler,
37249 _swigc__p_wxPNGHandler,
37250 _swigc__p_wxPNMHandler,
37251 _swigc__p_wxPaintDC,
37252 _swigc__p_wxPaintEvent,
37253 _swigc__p_wxPalette,
37254 _swigc__p_wxPaletteChangedEvent,
37255 _swigc__p_wxPaperSize,
37256 _swigc__p_wxPen,
37257 _swigc__p_wxPenList,
fc46b7f3 37258 _swigc__p_wxPixelDataBase,
554f62e9 37259 _swigc__p_wxPoint,
72ef6efb 37260 _swigc__p_wxPoint2D,
554f62e9
RD
37261 _swigc__p_wxPostScriptDC,
37262 _swigc__p_wxPrintData,
37263 _swigc__p_wxPrinterDC,
27e45892 37264 _swigc__p_wxPseudoDC,
554f62e9
RD
37265 _swigc__p_wxPyApp,
37266 _swigc__p_wxPyCommandEvent,
37267 _swigc__p_wxPyEvent,
37268 _swigc__p_wxPyFontEnumerator,
37269 _swigc__p_wxPyImageHandler,
fc46b7f3 37270 _swigc__p_wxPyLocale,
554f62e9
RD
37271 _swigc__p_wxPySizer,
37272 _swigc__p_wxPyValidator,
37273 _swigc__p_wxQueryNewPaletteEvent,
37274 _swigc__p_wxRect,
37275 _swigc__p_wxRegion,
37276 _swigc__p_wxRegionIterator,
37277 _swigc__p_wxRendererNative,
37278 _swigc__p_wxRendererVersion,
37279 _swigc__p_wxScreenDC,
37280 _swigc__p_wxScrollEvent,
37281 _swigc__p_wxScrollWinEvent,
37282 _swigc__p_wxSetCursorEvent,
37283 _swigc__p_wxShowEvent,
37284 _swigc__p_wxSize,
37285 _swigc__p_wxSizeEvent,
37286 _swigc__p_wxSizer,
37287 _swigc__p_wxSizerItem,
37288 _swigc__p_wxSplitterRenderParams,
37289 _swigc__p_wxStaticBoxSizer,
37290 _swigc__p_wxStdDialogButtonSizer,
50efceee 37291 _swigc__p_wxStockGDI,
554f62e9
RD
37292 _swigc__p_wxString,
37293 _swigc__p_wxSysColourChangedEvent,
37294 _swigc__p_wxTIFFHandler,
37295 _swigc__p_wxUpdateUIEvent,
37296 _swigc__p_wxValidator,
37297 _swigc__p_wxWindow,
37298 _swigc__p_wxWindowCreateEvent,
37299 _swigc__p_wxWindowDC,
37300 _swigc__p_wxWindowDestroyEvent,
37301 _swigc__p_wxXPMHandler,
37302};
37303
37304
37305/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37306
37307static swig_const_info swig_const_table[] = {
37308{0, 0, 0, 0.0, 0, 0}};
37309
37310#ifdef __cplusplus
37311}
37312#endif
37313/* -----------------------------------------------------------------------------
37314 * Type initialization:
37315 * This problem is tough by the requirement that no dynamic
37316 * memory is used. Also, since swig_type_info structures store pointers to
37317 * swig_cast_info structures and swig_cast_info structures store pointers back
37318 * to swig_type_info structures, we need some lookup code at initialization.
37319 * The idea is that swig generates all the structures that are needed.
37320 * The runtime then collects these partially filled structures.
37321 * The SWIG_InitializeModule function takes these initial arrays out of
37322 * swig_module, and does all the lookup, filling in the swig_module.types
37323 * array with the correct data and linking the correct swig_cast_info
37324 * structures together.
37325 *
37326 * The generated swig_type_info structures are assigned staticly to an initial
37327 * array. We just loop though that array, and handle each type individually.
37328 * First we lookup if this type has been already loaded, and if so, use the
37329 * loaded structure instead of the generated one. Then we have to fill in the
37330 * cast linked list. The cast data is initially stored in something like a
37331 * two-dimensional array. Each row corresponds to a type (there are the same
37332 * number of rows as there are in the swig_type_initial array). Each entry in
37333 * a column is one of the swig_cast_info structures for that type.
37334 * The cast_initial array is actually an array of arrays, because each row has
37335 * a variable number of columns. So to actually build the cast linked list,
37336 * we find the array of casts associated with the type, and loop through it
37337 * adding the casts to the list. The one last trick we need to do is making
37338 * sure the type pointer in the swig_cast_info struct is correct.
37339 *
37340 * First off, we lookup the cast->type name to see if it is already loaded.
37341 * There are three cases to handle:
37342 * 1) If the cast->type has already been loaded AND the type we are adding
37343 * casting info to has not been loaded (it is in this module), THEN we
37344 * replace the cast->type pointer with the type pointer that has already
37345 * been loaded.
37346 * 2) If BOTH types (the one we are adding casting info to, and the
37347 * cast->type) are loaded, THEN the cast info has already been loaded by
37348 * the previous module so we just ignore it.
37349 * 3) Finally, if cast->type has not already been loaded, then we add that
37350 * swig_cast_info to the linked list (because the cast->type) pointer will
37351 * be correct.
37352 * ----------------------------------------------------------------------------- */
37353
37354#ifdef __cplusplus
37355extern "C" {
37356#if 0
37357} /* c-mode */
37358#endif
37359#endif
37360
37361#if 0
37362#define SWIGRUNTIME_DEBUG
37363#endif
37364
37365SWIGRUNTIME void
37366SWIG_InitializeModule(void *clientdata) {
37367 size_t i;
37368 swig_module_info *module_head;
37369 static int init_run = 0;
37370
37371 clientdata = clientdata;
37372
37373 if (init_run) return;
37374 init_run = 1;
37375
37376 /* Initialize the swig_module */
37377 swig_module.type_initial = swig_type_initial;
37378 swig_module.cast_initial = swig_cast_initial;
37379
37380 /* Try and load any already created modules */
37381 module_head = SWIG_GetModule(clientdata);
37382 if (module_head) {
37383 swig_module.next = module_head->next;
37384 module_head->next = &swig_module;
37385 } else {
37386 /* This is the first module loaded */
37387 swig_module.next = &swig_module;
37388 SWIG_SetModule(clientdata, &swig_module);
37389 }
37390
37391 /* Now work on filling in swig_module.types */
37392#ifdef SWIGRUNTIME_DEBUG
37393 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37394#endif
37395 for (i = 0; i < swig_module.size; ++i) {
37396 swig_type_info *type = 0;
37397 swig_type_info *ret;
37398 swig_cast_info *cast;
37399
37400#ifdef SWIGRUNTIME_DEBUG
37401 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37402#endif
37403
37404 /* if there is another module already loaded */
37405 if (swig_module.next != &swig_module) {
37406 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 37407 }
554f62e9
RD
37408 if (type) {
37409 /* Overwrite clientdata field */
37410#ifdef SWIGRUNTIME_DEBUG
37411 printf("SWIG_InitializeModule: found type %s\n", type->name);
37412#endif
37413 if (swig_module.type_initial[i]->clientdata) {
37414 type->clientdata = swig_module.type_initial[i]->clientdata;
37415#ifdef SWIGRUNTIME_DEBUG
37416 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37417#endif
37418 }
37419 } else {
37420 type = swig_module.type_initial[i];
be9b1dca 37421 }
554f62e9
RD
37422
37423 /* Insert casting types */
37424 cast = swig_module.cast_initial[i];
37425 while (cast->type) {
37426 /* Don't need to add information already in the list */
37427 ret = 0;
37428#ifdef SWIGRUNTIME_DEBUG
37429 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37430#endif
37431 if (swig_module.next != &swig_module) {
37432 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37433#ifdef SWIGRUNTIME_DEBUG
37434 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37435#endif
37436 }
37437 if (ret) {
37438 if (type == swig_module.type_initial[i]) {
37439#ifdef SWIGRUNTIME_DEBUG
37440 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37441#endif
37442 cast->type = ret;
37443 ret = 0;
37444 } else {
37445 /* Check for casting already in the list */
37446 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37447#ifdef SWIGRUNTIME_DEBUG
37448 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37449#endif
37450 if (!ocast) ret = 0;
37451 }
37452 }
37453
37454 if (!ret) {
37455#ifdef SWIGRUNTIME_DEBUG
37456 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37457#endif
37458 if (type->cast) {
37459 type->cast->prev = cast;
37460 cast->next = type->cast;
37461 }
37462 type->cast = cast;
37463 }
37464 cast++;
be9b1dca 37465 }
554f62e9
RD
37466 /* Set entry in modules->types array equal to the type */
37467 swig_module.types[i] = type;
37468 }
37469 swig_module.types[i] = 0;
37470
37471#ifdef SWIGRUNTIME_DEBUG
37472 printf("**** SWIG_InitializeModule: Cast List ******\n");
37473 for (i = 0; i < swig_module.size; ++i) {
37474 int j = 0;
37475 swig_cast_info *cast = swig_module.cast_initial[i];
37476 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37477 while (cast->type) {
37478 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37479 cast++;
37480 ++j;
37481 }
37482 printf("---- Total casts: %d\n",j);
37483 }
37484 printf("**** SWIG_InitializeModule: Cast List ******\n");
37485#endif
37486}
37487
37488/* This function will propagate the clientdata field of type to
37489* any new swig_type_info structures that have been added into the list
37490* of equivalent types. It is like calling
37491* SWIG_TypeClientData(type, clientdata) a second time.
37492*/
37493SWIGRUNTIME void
37494SWIG_PropagateClientData(void) {
37495 size_t i;
37496 swig_cast_info *equiv;
37497 static int init_run = 0;
37498
37499 if (init_run) return;
37500 init_run = 1;
37501
37502 for (i = 0; i < swig_module.size; i++) {
37503 if (swig_module.types[i]->clientdata) {
37504 equiv = swig_module.types[i]->cast;
37505 while (equiv) {
37506 if (!equiv->converter) {
37507 if (equiv->type && !equiv->type->clientdata)
37508 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37509 }
37510 equiv = equiv->next;
37511 }
be9b1dca 37512 }
554f62e9
RD
37513 }
37514}
37515
37516#ifdef __cplusplus
37517#if 0
37518{
37519 /* c-mode */
37520#endif
37521}
37522#endif
37523
37524
37525
37526#ifdef __cplusplus
37527extern "C" {
37528#endif
37529
37530 /* Python-specific SWIG API */
37531#define SWIG_newvarlink() SWIG_Python_newvarlink()
37532#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37533#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37534
37535 /* -----------------------------------------------------------------------------
37536 * global variable support code.
37537 * ----------------------------------------------------------------------------- */
37538
37539 typedef struct swig_globalvar {
37540 char *name; /* Name of global variable */
37541 PyObject *(*get_attr)(void); /* Return the current value */
37542 int (*set_attr)(PyObject *); /* Set the value */
37543 struct swig_globalvar *next;
37544 } swig_globalvar;
37545
37546 typedef struct swig_varlinkobject {
37547 PyObject_HEAD
37548 swig_globalvar *vars;
37549 } swig_varlinkobject;
37550
37551 SWIGINTERN PyObject *
37552 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37553 return PyString_FromString("<Swig global variables>");
37554 }
37555
37556 SWIGINTERN PyObject *
37557 swig_varlink_str(swig_varlinkobject *v) {
37558 PyObject *str = PyString_FromString("(");
37559 swig_globalvar *var;
37560 for (var = v->vars; var; var=var->next) {
37561 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37562 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37563 }
37564 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37565 return str;
37566 }
37567
37568 SWIGINTERN int
37569 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37570 PyObject *str = swig_varlink_str(v);
37571 fprintf(fp,"Swig global variables ");
37572 fprintf(fp,"%s\n", PyString_AsString(str));
37573 Py_DECREF(str);
37574 return 0;
37575 }
37576
37577 SWIGINTERN void
37578 swig_varlink_dealloc(swig_varlinkobject *v) {
37579 swig_globalvar *var = v->vars;
37580 while (var) {
37581 swig_globalvar *n = var->next;
37582 free(var->name);
37583 free(var);
37584 var = n;
be9b1dca 37585 }
554f62e9
RD
37586 }
37587
37588 SWIGINTERN PyObject *
37589 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37590 PyObject *res = NULL;
37591 swig_globalvar *var = v->vars;
37592 while (var) {
37593 if (strcmp(var->name,n) == 0) {
37594 res = (*var->get_attr)();
37595 break;
37596 }
37597 var = var->next;
be9b1dca 37598 }
554f62e9
RD
37599 if (res == NULL && !PyErr_Occurred()) {
37600 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 37601 }
554f62e9
RD
37602 return res;
37603 }
37604
37605 SWIGINTERN int
37606 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37607 int res = 1;
37608 swig_globalvar *var = v->vars;
37609 while (var) {
37610 if (strcmp(var->name,n) == 0) {
37611 res = (*var->set_attr)(p);
37612 break;
37613 }
37614 var = var->next;
be9b1dca 37615 }
554f62e9
RD
37616 if (res == 1 && !PyErr_Occurred()) {
37617 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 37618 }
554f62e9
RD
37619 return res;
37620 }
37621
37622 SWIGINTERN PyTypeObject*
37623 swig_varlink_type(void) {
37624 static char varlink__doc__[] = "Swig var link object";
37625 static PyTypeObject varlink_type;
37626 static int type_init = 0;
37627 if (!type_init) {
37628 const PyTypeObject tmp
37629 = {
37630 PyObject_HEAD_INIT(NULL)
37631 0, /* Number of items in variable part (ob_size) */
37632 (char *)"swigvarlink", /* Type name (tp_name) */
37633 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37634 0, /* Itemsize (tp_itemsize) */
37635 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37636 (printfunc) swig_varlink_print, /* Print (tp_print) */
37637 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37638 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37639 0, /* tp_compare */
37640 (reprfunc) swig_varlink_repr, /* tp_repr */
37641 0, /* tp_as_number */
37642 0, /* tp_as_sequence */
37643 0, /* tp_as_mapping */
37644 0, /* tp_hash */
37645 0, /* tp_call */
37646 (reprfunc)swig_varlink_str, /* tp_str */
37647 0, /* tp_getattro */
37648 0, /* tp_setattro */
37649 0, /* tp_as_buffer */
37650 0, /* tp_flags */
37651 varlink__doc__, /* tp_doc */
37652 0, /* tp_traverse */
37653 0, /* tp_clear */
37654 0, /* tp_richcompare */
37655 0, /* tp_weaklistoffset */
37656#if PY_VERSION_HEX >= 0x02020000
37657 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37658#endif
37659#if PY_VERSION_HEX >= 0x02030000
37660 0, /* tp_del */
37661#endif
37662#ifdef COUNT_ALLOCS
37663 0,0,0,0 /* tp_alloc -> tp_next */
37664#endif
37665 };
37666 varlink_type = tmp;
37667 varlink_type.ob_type = &PyType_Type;
37668 type_init = 1;
be9b1dca 37669 }
554f62e9
RD
37670 return &varlink_type;
37671 }
37672
37673 /* Create a variable linking object for use later */
37674 SWIGINTERN PyObject *
37675 SWIG_Python_newvarlink(void) {
37676 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37677 if (result) {
37678 result->vars = 0;
37679 }
37680 return ((PyObject*) result);
37681 }
37682
37683 SWIGINTERN void
37684 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37685 swig_varlinkobject *v = (swig_varlinkobject *) p;
37686 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37687 if (gv) {
37688 size_t size = strlen(name)+1;
37689 gv->name = (char *)malloc(size);
37690 if (gv->name) {
37691 strncpy(gv->name,name,size);
37692 gv->get_attr = get_attr;
37693 gv->set_attr = set_attr;
37694 gv->next = v->vars;
37695 }
be9b1dca 37696 }
554f62e9
RD
37697 v->vars = gv;
37698 }
37699
37700 SWIGINTERN PyObject *
37701 SWIG_globals() {
37702 static PyObject *_SWIG_globals = 0;
37703 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37704 return _SWIG_globals;
37705 }
37706
37707 /* -----------------------------------------------------------------------------
37708 * constants/methods manipulation
37709 * ----------------------------------------------------------------------------- */
37710
37711 /* Install Constants */
37712 SWIGINTERN void
37713 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37714 PyObject *obj = 0;
37715 size_t i;
37716 for (i = 0; constants[i].type; ++i) {
37717 switch(constants[i].type) {
37718 case SWIG_PY_POINTER:
37719 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37720 break;
37721 case SWIG_PY_BINARY:
37722 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37723 break;
37724 default:
37725 obj = 0;
37726 break;
37727 }
37728 if (obj) {
37729 PyDict_SetItemString(d, constants[i].name, obj);
37730 Py_DECREF(obj);
37731 }
be9b1dca 37732 }
554f62e9
RD
37733 }
37734
37735 /* -----------------------------------------------------------------------------*/
37736 /* Fix SwigMethods to carry the callback ptrs when needed */
37737 /* -----------------------------------------------------------------------------*/
37738
37739 SWIGINTERN void
37740 SWIG_Python_FixMethods(PyMethodDef *methods,
37741 swig_const_info *const_table,
37742 swig_type_info **types,
37743 swig_type_info **types_initial) {
37744 size_t i;
37745 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 37746 const char *c = methods[i].ml_doc;
554f62e9
RD
37747 if (c && (c = strstr(c, "swig_ptr: "))) {
37748 int j;
37749 swig_const_info *ci = 0;
453fb36b 37750 const char *name = c + 10;
554f62e9
RD
37751 for (j = 0; const_table[j].type; ++j) {
37752 if (strncmp(const_table[j].name, name,
37753 strlen(const_table[j].name)) == 0) {
37754 ci = &(const_table[j]);
37755 break;
37756 }
37757 }
37758 if (ci) {
37759 size_t shift = (ci->ptype) - types;
37760 swig_type_info *ty = types_initial[shift];
37761 size_t ldoc = (c - methods[i].ml_doc);
37762 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37763 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37764 if (ndoc) {
37765 char *buff = ndoc;
37766 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37767 if (ptr) {
37768 strncpy(buff, methods[i].ml_doc, ldoc);
37769 buff += ldoc;
37770 strncpy(buff, "swig_ptr: ", 10);
37771 buff += 10;
37772 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37773 methods[i].ml_doc = ndoc;
37774 }
37775 }
37776 }
37777 }
be9b1dca 37778 }
554f62e9
RD
37779 }
37780
37781#ifdef __cplusplus
37782}
37783#endif
37784
37785/* -----------------------------------------------------------------------------*
37786 * Partial Init method
37787 * -----------------------------------------------------------------------------*/
37788
37789#ifdef __cplusplus
37790extern "C"
37791#endif
37792SWIGEXPORT void SWIG_init(void) {
37793 PyObject *m, *d;
37794
37795 /* Fix SwigMethods to carry the callback ptrs when needed */
37796 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37797
37798 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37799 d = PyModule_GetDict(m);
37800
37801 SWIG_InitializeModule(0);
37802 SWIG_InstallConstants(d,swig_const_table);
37803
37804
f460c29d
RD
37805 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37806 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37807 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
37808 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37809 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
37810 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37811 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37812 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37813 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37814 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37815 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37816 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37817 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37818 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37819 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37820 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37821 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37822 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37823 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37824 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37825 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37826 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37827 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37828 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37829 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37830 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37831 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37832 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37833 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37834 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37835 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37836 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37837 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37838 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37839 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37840 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37841 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37842 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37843 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37844 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37845 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37846 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37847 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37848 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37849 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37850 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37851 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37852 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37853 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37854 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37855 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37856 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37857 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37858 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37859 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37860 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37861 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37862 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37863 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37864 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37865 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37866 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37867 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37868 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37869 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37870 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37871 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37872 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37873 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37874 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37875 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37876 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37877 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37878 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37879 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37880 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37881 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37882 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37883 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37884 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37885 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37886 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37887 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37888 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37889 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37890 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37891 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37892 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37893 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37894 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37895 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37896 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37897 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37898 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37899 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37900 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37901 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37902 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37903 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37904 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37905 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37906 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37907 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37908 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37909 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37910 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37911 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37912 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37913 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37914 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37915 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37916 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37917 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37918 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37919 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37920 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37921 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37922 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37923 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37924 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37925 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37926 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37927 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37928 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37929 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37930 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37931 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37932 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37933 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37934 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37935 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37936 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37937
37938 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37939
37940 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37941 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37942 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37943 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37944 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37945 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37946 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37947 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37948 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37949 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37950 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37951 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37952 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37953 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37954 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37955 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37956 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37957 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37958 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37959 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37960 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37961 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37962 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37963 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37964 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37965 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37966 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37967 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37968 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37969 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37970 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37971 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37972 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37973 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37974 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37975 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37976 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37977 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37978 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37979 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37980 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37981 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37982 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37983 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37984 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37985 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37986 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37987 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37988 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37989 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37990 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37991 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37992 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37993 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37994 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37995 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37996 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37997 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37998 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37999 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
38000 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
38001 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
38002 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
38003 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
38004 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
38005 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
38006 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
38007 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
38008 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
38009 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
38010 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
38011 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
38012 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
38013 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
38014 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
38015 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
38016 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
38017 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
38018 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
38019 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
38020 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
38021 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
38022 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
38023 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
38024 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
38025 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
38026 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
38027 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
38028 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
38029 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
38030 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
38031 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
38032 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
38033 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
38034 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
38035 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
38036 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
38037 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
38038 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
38039 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
38040 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
38041 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
38042 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
38043 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
38044 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
38045 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
38046 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
38047 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
38048 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
38049 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
38050 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
38051 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
38052 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
38053 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
38054 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
38055 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
38056 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
38057 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
38058 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
38059 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
38060 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
38061 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
38062 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
38063 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
38064 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
38065 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
38066 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
38067 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
38068 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
38069 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
38070 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
38071 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
38072 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
38073 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
38074 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
38075 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
38076 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
38077 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
38078 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
38079 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
38080 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
38081 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
38082 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
38083 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
38084 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
38085 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
38086 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
38087 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
38088 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
38089 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
38090 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
38091 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
38092 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
38093 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
38094 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
38095 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
38096 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
38097 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
38098 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
38099 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
38100 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
38101 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
38102 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
38103 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
38104 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
38105 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
38106 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
38107 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
38108 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
38109 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
38110 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
38111 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
38112 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
38113 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
38114 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
38115 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
38116 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
38117 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
38118 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
38119 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
38120 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
38121 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
38122 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
38123 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
38124 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
38125 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
38126 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
38127 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
38128 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
38129 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
38130 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
38131 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
38132 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
38133 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
38134 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
38135 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
38136 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
38137 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
38138 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
38139 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
38140 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
38141 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
38142 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
38143 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
38144 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
38145 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
38146 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
38147 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
38148 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
38149 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
38150 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
38151 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
38152 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
38153 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
38154 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
38155 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
38156 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
38157 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
38158 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
38159 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
38160 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
38161 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
38162 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
38163 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
38164 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
38165 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
38166 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
38167 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
38168 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
38169 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
38170 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
38171 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
38172 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
38173 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
38174 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
38175 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
38176 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
38177 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
38178 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
38179 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
38180 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
38181 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
38182 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
38183 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
38184 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
38185 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
38186 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
38187 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
38188 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
38189 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
38190 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
38191 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
38192 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
38193 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
38194 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
38195 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
38196 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
38197 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
38198 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
38199 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
38200 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
38201 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
38202 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
38203 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
38204 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
38205 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
38206 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
38207 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
38208 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
38209 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
38210 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
38211 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
38212 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
38213 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
38214 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
38215 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
38216 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
38217 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
38218 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
38219 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
38220 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
38221 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
38222 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
38223 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
38224 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
38225 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
38226 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
38227 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
38228 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
38229 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9 38230 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
554f62e9
RD
38231 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
38232 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
38233 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
38234 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
38235 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
38236 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
38237 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
38238 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
38239 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
38240 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
38241 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 38242 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
38243 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
38244 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
38245 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 38246 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
38247 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
38248 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
38249 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
38250 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
38251 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
38252 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
38253 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
38254 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
38255 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
38256 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
38257 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
38258 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
38259
38260 // Work around a chicken/egg problem in drawlist.cpp
38261 wxPyDrawList_SetAPIPtr();
38262
d55e5bfc
RD
38263}
38264