]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
mdi fix
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
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
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
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};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
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
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 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 */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 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*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
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;
0085ce49 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>|...
32fe5131 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 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 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. */
0085ce49 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
32fe5131
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;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
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) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 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;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 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}
d14a1e28 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}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
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
d14a1e28 714
0085ce49
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
0085ce49
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/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
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}
d14a1e28 846
0085ce49
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
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 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 {
0085ce49
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;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
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 *
0085ce49
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 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
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
994141e6 1000
0085ce49
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)
994141e6 1004
0085ce49
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)
d14a1e28 1008
0085ce49
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)
994141e6 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
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}
15afbcd0 1042
0085ce49
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}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
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 {
0085ce49
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);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
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*/
32fe5131 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 */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
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;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
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);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
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
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
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}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
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 {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
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;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
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 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
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 {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
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
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
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 {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
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}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
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 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
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 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
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 }
0085ce49
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 }
0085ce49
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 }
0085ce49
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}
d14a1e28 2159
0085ce49
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
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
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 {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
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 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
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);
15afbcd0 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 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
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}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_wxANIHandler swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476#define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477#define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479#define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480#define SWIGTYPE_p_wxBitmap swig_types[14]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482#define SWIGTYPE_p_wxBrush swig_types[16]
2483#define SWIGTYPE_p_wxBrushList swig_types[17]
2484#define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485#define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486#define SWIGTYPE_p_wxCURHandler swig_types[20]
2487#define SWIGTYPE_p_wxChar swig_types[21]
2488#define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489#define SWIGTYPE_p_wxClientDC swig_types[23]
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492#define SWIGTYPE_p_wxColour swig_types[26]
2493#define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494#define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495#define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496#define SWIGTYPE_p_wxControl swig_types[30]
2497#define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498#define SWIGTYPE_p_wxCursor swig_types[32]
2499#define SWIGTYPE_p_wxDC swig_types[33]
2500#define SWIGTYPE_p_wxDash swig_types[34]
2501#define SWIGTYPE_p_wxDateEvent swig_types[35]
2502#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503#define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504#define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505#define SWIGTYPE_p_wxEffects swig_types[39]
2506#define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507#define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508#define SWIGTYPE_p_wxEvent swig_types[42]
2509#define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510#define SWIGTYPE_p_wxFSFile swig_types[44]
2511#define SWIGTYPE_p_wxFileSystem swig_types[45]
2512#define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513#define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514#define SWIGTYPE_p_wxFont swig_types[48]
2515#define SWIGTYPE_p_wxFontList swig_types[49]
2516#define SWIGTYPE_p_wxFontMapper swig_types[50]
2517#define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518#define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519#define SWIGTYPE_p_wxGDIObject swig_types[53]
2520#define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521#define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522#define SWIGTYPE_p_wxGridSizer swig_types[56]
2523#define SWIGTYPE_p_wxICOHandler swig_types[57]
2524#define SWIGTYPE_p_wxIcon swig_types[58]
2525#define SWIGTYPE_p_wxIconBundle swig_types[59]
2526#define SWIGTYPE_p_wxIconLocation swig_types[60]
2527#define SWIGTYPE_p_wxIconizeEvent swig_types[61]
2528#define SWIGTYPE_p_wxIdleEvent swig_types[62]
2529#define SWIGTYPE_p_wxImage swig_types[63]
2530#define SWIGTYPE_p_wxImageHandler swig_types[64]
2531#define SWIGTYPE_p_wxImageList swig_types[65]
2532#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[66]
2533#define SWIGTYPE_p_wxInitDialogEvent swig_types[67]
2534#define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535#define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536#define SWIGTYPE_p_wxLanguageInfo swig_types[70]
2537#define SWIGTYPE_p_wxLayoutConstraints swig_types[71]
2538#define SWIGTYPE_p_wxLocale swig_types[72]
2539#define SWIGTYPE_p_wxMask swig_types[73]
2540#define SWIGTYPE_p_wxMaximizeEvent swig_types[74]
2541#define SWIGTYPE_p_wxMemoryDC swig_types[75]
2542#define SWIGTYPE_p_wxMenu swig_types[76]
2543#define SWIGTYPE_p_wxMenuBar swig_types[77]
2544#define SWIGTYPE_p_wxMenuEvent swig_types[78]
2545#define SWIGTYPE_p_wxMenuItem swig_types[79]
2546#define SWIGTYPE_p_wxMetaFile swig_types[80]
2547#define SWIGTYPE_p_wxMetaFileDC swig_types[81]
2548#define SWIGTYPE_p_wxMirrorDC swig_types[82]
2549#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[83]
2550#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[84]
2551#define SWIGTYPE_p_wxMouseEvent swig_types[85]
2552#define SWIGTYPE_p_wxMoveEvent swig_types[86]
2553#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[87]
2554#define SWIGTYPE_p_wxNativeFontInfo swig_types[88]
2555#define SWIGTYPE_p_wxNativePixelData swig_types[89]
2556#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[90]
2557#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
2558#define SWIGTYPE_p_wxNcPaintEvent swig_types[92]
2559#define SWIGTYPE_p_wxNotifyEvent swig_types[93]
2560#define SWIGTYPE_p_wxObject swig_types[94]
2561#define SWIGTYPE_p_wxPCXHandler swig_types[95]
2562#define SWIGTYPE_p_wxPNGHandler swig_types[96]
2563#define SWIGTYPE_p_wxPNMHandler swig_types[97]
2564#define SWIGTYPE_p_wxPaintDC swig_types[98]
2565#define SWIGTYPE_p_wxPaintEvent swig_types[99]
2566#define SWIGTYPE_p_wxPalette swig_types[100]
2567#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxPaperSize swig_types[102]
2569#define SWIGTYPE_p_wxPen swig_types[103]
2570#define SWIGTYPE_p_wxPenList swig_types[104]
2571#define SWIGTYPE_p_wxPixelDataBase swig_types[105]
2572#define SWIGTYPE_p_wxPoint swig_types[106]
2573#define SWIGTYPE_p_wxPostScriptDC swig_types[107]
2574#define SWIGTYPE_p_wxPrintData swig_types[108]
2575#define SWIGTYPE_p_wxPrinterDC swig_types[109]
2576#define SWIGTYPE_p_wxPseudoDC swig_types[110]
2577#define SWIGTYPE_p_wxPyApp swig_types[111]
2578#define SWIGTYPE_p_wxPyCommandEvent swig_types[112]
2579#define SWIGTYPE_p_wxPyEvent swig_types[113]
2580#define SWIGTYPE_p_wxPyFontEnumerator swig_types[114]
2581#define SWIGTYPE_p_wxPyImageHandler swig_types[115]
2582#define SWIGTYPE_p_wxPyLocale swig_types[116]
2583#define SWIGTYPE_p_wxPySizer swig_types[117]
2584#define SWIGTYPE_p_wxPyValidator swig_types[118]
2585#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[119]
2586#define SWIGTYPE_p_wxRect swig_types[120]
2587#define SWIGTYPE_p_wxRegion swig_types[121]
2588#define SWIGTYPE_p_wxRegionIterator swig_types[122]
2589#define SWIGTYPE_p_wxRendererNative swig_types[123]
2590#define SWIGTYPE_p_wxRendererVersion swig_types[124]
2591#define SWIGTYPE_p_wxScreenDC swig_types[125]
2592#define SWIGTYPE_p_wxScrollEvent swig_types[126]
2593#define SWIGTYPE_p_wxScrollWinEvent swig_types[127]
2594#define SWIGTYPE_p_wxSetCursorEvent swig_types[128]
2595#define SWIGTYPE_p_wxShowEvent swig_types[129]
2596#define SWIGTYPE_p_wxSize swig_types[130]
2597#define SWIGTYPE_p_wxSizeEvent swig_types[131]
2598#define SWIGTYPE_p_wxSizer swig_types[132]
2599#define SWIGTYPE_p_wxSizerItem swig_types[133]
2600#define SWIGTYPE_p_wxSplitterRenderParams swig_types[134]
2601#define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2602#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[136]
2603#define SWIGTYPE_p_wxStockGDI swig_types[137]
2604#define SWIGTYPE_p_wxString swig_types[138]
2605#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[139]
2606#define SWIGTYPE_p_wxTIFFHandler swig_types[140]
2607#define SWIGTYPE_p_wxUpdateUIEvent swig_types[141]
2608#define SWIGTYPE_p_wxValidator swig_types[142]
2609#define SWIGTYPE_p_wxWindow swig_types[143]
2610#define SWIGTYPE_p_wxWindowCreateEvent swig_types[144]
2611#define SWIGTYPE_p_wxWindowDC swig_types[145]
2612#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[146]
2613#define SWIGTYPE_p_wxXPMHandler swig_types[147]
2614static swig_type_info *swig_types[149];
2615static swig_module_info swig_module = {swig_types, 148, 0, 0, 0, 0};
32fe5131
RD
2616#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2617#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2618
093d3ff1 2619/* -------- TYPES TABLE (END) -------- */
d14a1e28 2620
0085ce49
RD
2621#if (PY_VERSION_HEX <= 0x02000000)
2622# if !defined(SWIG_PYTHON_CLASSIC)
2623# error "This python version requires to use swig with the '-classic' option"
2624# endif
2625#endif
2626#if (PY_VERSION_HEX <= 0x02020000)
2627# error "This python version requires to use swig with the '-nomodern' option"
2628#endif
2629#if (PY_VERSION_HEX <= 0x02020000)
2630# error "This python version requires to use swig with the '-nomodernargs' option"
2631#endif
2632#ifndef METH_O
2633# error "This python version requires to use swig with the '-nofastunpack' option"
2634#endif
d14a1e28 2635
093d3ff1
RD
2636/*-----------------------------------------------
2637 @(target):= _gdi_.so
2638 ------------------------------------------------*/
2639#define SWIG_init init_gdi_
d14a1e28 2640
093d3ff1 2641#define SWIG_name "_gdi_"
d14a1e28 2642
0085ce49 2643#define SWIGVERSION 0x010329
d14a1e28 2644
d14a1e28 2645
0085ce49
RD
2646#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2647#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2648
2649
0085ce49
RD
2650#include <stdexcept>
2651
2652
2653namespace swig {
2654 class PyObject_ptr {
2655 protected:
2656 PyObject *_obj;
2657
2658 public:
2659 PyObject_ptr() :_obj(0)
2660 {
093d3ff1 2661 }
0085ce49
RD
2662
2663 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2664 {
2665 Py_XINCREF(_obj);
093d3ff1 2666 }
0085ce49
RD
2667
2668 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2669 {
2670 if (initial_ref) Py_XINCREF(_obj);
2671 }
2672
2673 PyObject_ptr & operator=(const PyObject_ptr& item)
2674 {
2675 Py_XINCREF(item._obj);
2676 Py_XDECREF(_obj);
2677 _obj = item._obj;
2678 return *this;
2679 }
2680
2681 ~PyObject_ptr()
2682 {
2683 Py_XDECREF(_obj);
2684 }
2685
2686 operator PyObject *() const
2687 {
2688 return _obj;
2689 }
2690
2691 PyObject *operator->() const
2692 {
2693 return _obj;
2694 }
2695 };
093d3ff1 2696}
d14a1e28 2697
994141e6 2698
0085ce49
RD
2699namespace swig {
2700 struct PyObject_var : PyObject_ptr {
2701 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2702
2703 PyObject_var & operator = (PyObject* obj)
2704 {
2705 Py_XDECREF(_obj);
2706 _obj = obj;
2707 return *this;
69223c70 2708 }
0085ce49 2709 };
15afbcd0
RD
2710}
2711
2712
0085ce49
RD
2713#include "wx/wxPython/wxPython.h"
2714#include "wx/wxPython/pyclasses.h"
2715
2716
2717 static const wxString wxPyEmptyString(wxEmptyString);
2718
01f6b6d3
RD
2719 #define SWIG_From_long PyInt_FromLong
2720
2721
2722SWIGINTERNINLINE PyObject *
2723SWIG_From_int (int value)
2724{
2725 return SWIG_From_long (value);
2726}
2727
2728
0085ce49
RD
2729#include <limits.h>
2730#ifndef LLONG_MIN
2731# define LLONG_MIN LONG_LONG_MIN
2732#endif
2733#ifndef LLONG_MAX
2734# define LLONG_MAX LONG_LONG_MAX
2735#endif
2736#ifndef ULLONG_MAX
2737# define ULLONG_MAX ULONG_LONG_MAX
2738#endif
b88bce5f 2739
b88bce5f 2740
50efceee
RD
2741SWIGINTERN int
2742SWIG_AsVal_long (PyObject* obj, long* val)
2743{
2744 if (PyNumber_Check(obj)) {
2745 if (val) *val = PyInt_AsLong(obj);
2746 return SWIG_OK;
2747 }
2748 return SWIG_TypeError;
2749}
2750
2751
093d3ff1 2752SWIGINTERN int
0085ce49 2753SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2754{
2755 long v = 0;
2756 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2757 return SWIG_TypeError;
093d3ff1
RD
2758 }
2759 else if (val)
2760 *val = (unsigned long)v;
0085ce49 2761 return SWIG_OK;
093d3ff1 2762}
d14a1e28
RD
2763
2764
093d3ff1 2765SWIGINTERN int
0085ce49
RD
2766SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2767{
093d3ff1 2768 unsigned long v;
0085ce49
RD
2769 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2770 if (SWIG_IsOK(res)) {
2771 if ((v > UCHAR_MAX)) {
2772 return SWIG_OverflowError;
093d3ff1 2773 } else {
0085ce49 2774 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2775 }
0085ce49
RD
2776 }
2777 return res;
093d3ff1 2778}
33b885b9 2779
d14a1e28 2780
0085ce49
RD
2781SWIGINTERNINLINE PyObject*
2782SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2783{
0085ce49
RD
2784 return (value > LONG_MAX) ?
2785 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2786}
d14a1e28 2787
d14a1e28 2788
0085ce49
RD
2789SWIGINTERNINLINE PyObject *
2790SWIG_From_unsigned_SS_char (unsigned char value)
2791{
2792 return SWIG_From_unsigned_SS_long (value);
2793}
d14a1e28 2794
e9d6f3a4
RD
2795SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return false;
2798 if ( ! wxColour_helper(other, &obj) ) {
2799 PyErr_Clear();
2800 return false;
2801 }
2802 return self->operator==(*obj);
2803 }
2804SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return true;
2807 if ( ! wxColour_helper(other, &obj)) {
2808 PyErr_Clear();
2809 return true;
2810 }
2811 return self->operator!=(*obj);
2812 }
fc46b7f3
RD
2813
2814SWIGINTERN int
2815SWIG_AsVal_bool (PyObject *obj, bool *val)
2816{
2817 if (obj == Py_True) {
2818 if (val) *val = true;
2819 return SWIG_OK;
2820 } else if (obj == Py_False) {
2821 if (val) *val = false;
2822 return SWIG_OK;
2823 } else {
2824 long v = 0;
2825 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2826 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2827 return res;
2828 }
2829}
2830
2831SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2832 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2833 int red = -1;
2834 int green = -1;
2835 int blue = -1;
fc46b7f3 2836 int alpha = wxALPHA_OPAQUE;
093d3ff1
RD
2837 if (self->Ok()) {
2838 red = self->Red();
2839 green = self->Green();
2840 blue = self->Blue();
fc46b7f3 2841 alpha = self->Alpha();
093d3ff1
RD
2842 }
2843 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2844 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2845 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2846 if (includeAlpha)
2847 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2848 return rv;
2849 }
0085ce49 2850SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2851 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2852 }
d14a1e28 2853
0085ce49
RD
2854SWIGINTERN int
2855SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2856{
0085ce49
RD
2857 long v;
2858 int res = SWIG_AsVal_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v < INT_MIN || v > INT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< int >(v);
2864 }
2865 }
2866 return res;
d14a1e28
RD
2867}
2868
0085ce49 2869SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2870 wxDash* dashes;
2871 int count = self->GetDashes(&dashes);
5a446332 2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2873 PyObject* retval = PyList_New(0);
2874 for (int x=0; x<count; x++) {
2875 PyObject* pyint = PyInt_FromLong(dashes[x]);
2876 PyList_Append(retval, pyint);
2877 Py_DECREF(pyint);
2878 }
2879 wxPyEndBlockThreads(blocked);
2880 return retval;
2881 }
0085ce49 2882SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2884 int size = PyList_Size(pyDashes);
2885 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2886
093d3ff1
RD
2887 // black magic warning! The array of wxDashes needs to exist as
2888 // long as the pen does because wxPen does not copy the array. So
2889 // stick a copy in a Python string object and attach it to _self,
2890 // and then call SetDashes with a pointer to that array. Then
2891 // when the Python pen object is destroyed the array will be
2892 // cleaned up too.
2893 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2894 PyObject_SetAttrString(_self, "_dashes", strDashes);
2895
2896 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2897 delete [] dashes;
2898 Py_DECREF(strDashes);
2899 wxPyEndBlockThreads(blocked);
2900 }
0085ce49
RD
2901SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2902SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2903
fc46b7f3
RD
2904#include <wx/rawbmp.h>
2905
2906
093d3ff1 2907#include <wx/image.h>
b88bce5f 2908
093d3ff1
RD
2909 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2910 char** cArray = NULL;
2911 int count;
2912
2913 if (!PyList_Check(listOfStrings)) {
2914 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2915 return NULL;
2916 }
2917 count = PyList_Size(listOfStrings);
2918 cArray = new char*[count];
2919
2920 for(int x=0; x<count; x++) {
2921 // TODO: Need some validation and error checking here
2922 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2923 }
2924 return cArray;
b88bce5f 2925 }
b88bce5f
RD
2926
2927
0085ce49 2928SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2929 char** cArray = NULL;
2930 wxBitmap* bmp;
2931
2932 cArray = ConvertListOfStrings(listOfStrings);
2933 if (! cArray)
2934 return NULL;
2935 bmp = new wxBitmap(cArray);
2936 delete [] cArray;
2937 return bmp;
2938 }
0085ce49 2939SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2940 char* buf;
2941 Py_ssize_t length;
2942 PyString_AsStringAndSize(bits, &buf, &length);
2943 return new wxBitmap(buf, width, height, depth);
2944 }
0085ce49 2945SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2946 wxSize size(self->GetWidth(), self->GetHeight());
2947 return size;
2948 }
0085ce49 2949SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2950 wxMask *mask = new wxMask(*self, colour);
2951 self->SetMask(mask);
2952 }
0085ce49 2953SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2954 self->SetWidth(size.x);
2955 self->SetHeight(size.y);
2956 }
0085ce49
RD
2957SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2958SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2959
2960// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2961// appears to me that the other platforms are already doing it, so I'll just
2962// automatically do it for wxMSW here.
2963#ifdef __WXMSW__
195a89b4
RD
2964#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2965#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2966#else
2967#define wxPy_premultiply(p, a) (p)
2968#define wxPy_unpremultiply(p, a) (p)
2969#endif
2970
2971
2972 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2973 buffer data, int DATASIZE,
2974 buffer alpha, int ALPHASIZE)
2975 {
2976 if (DATASIZE != width*height*3) {
2977 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2978 return NULL;
2979 }
2980
2981 if (ALPHASIZE != width*height) {
2982 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2983 return NULL;
2984 }
2985
2986 wxBitmap* bmp = new wxBitmap(width, height, 32);
2987 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2988 if (! pixData) {
2989 // raise an exception...
2990 wxPyErr_SetString(PyExc_RuntimeError,
2991 "Failed to gain raw access to bitmap data.");
2992 return NULL;
2993 }
2994
2995 pixData.UseAlpha();
2996 wxAlphaPixelData::Iterator p(pixData);
2997 for (int y=0; y<height; y++) {
2998 wxAlphaPixelData::Iterator rowStart = p;
2999 for (int x=0; x<width; x++) {
3000 byte a = *(alpha++);
3001 p.Red() = wxPy_premultiply(*(data++), a);
3002 p.Green() = wxPy_premultiply(*(data++), a);
3003 p.Blue() = wxPy_premultiply(*(data++), a);
3004 p.Alpha() = a;
3005 ++p;
3006 }
3007 p = rowStart;
3008 p.OffsetY(pixData, 1);
3009 }
3010 return bmp;
3011 }
3012
3013 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3014 {
3015 if (DATASIZE != width*height*3) {
3016 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3017 return NULL;
3018 }
3019
3020 wxBitmap* bmp = new wxBitmap(width, height, 24);
3021 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3022 if (! pixData) {
3023 // raise an exception...
3024 wxPyErr_SetString(PyExc_RuntimeError,
3025 "Failed to gain raw access to bitmap data.");
3026 return NULL;
3027 }
3028
3029 wxNativePixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxNativePixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 p.Red() = *(data++);
3034 p.Green() = *(data++);
3035 p.Blue() = *(data++);
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 return bmp;
3042 }
3043
3044
3045 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3046 {
3047 if (DATASIZE != width*height*4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 return NULL;
3050 }
3051
3052 wxBitmap* bmp = new wxBitmap(width, height, 32);
3053 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3054 if (! pixData) {
3055 // raise an exception...
3056 wxPyErr_SetString(PyExc_RuntimeError,
3057 "Failed to gain raw access to bitmap data.");
3058 return NULL;
3059 }
3060
3061 pixData.UseAlpha();
3062 wxAlphaPixelData::Iterator p(pixData);
3063 for (int y=0; y<height; y++) {
3064 wxAlphaPixelData::Iterator rowStart = p;
3065 for (int x=0; x<width; x++) {
3066 byte a = data[3];
3067 p.Red() = wxPy_premultiply(*(data++), a);
3068 p.Green() = wxPy_premultiply(*(data++), a);
3069 p.Blue() = wxPy_premultiply(*(data++), a);
3070 p.Alpha() = a; data++;
3071 ++p;
3072 }
3073 p = rowStart;
3074 p.OffsetY(pixData, 1);
3075 }
3076 return bmp;
3077 }
3078
3079
3080 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3081
3082SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3083SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3084SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3085 self->Red() = red;
3086 self->Green() = green;
3087 self->Blue() = blue;
3088 }
3089SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3090 PyObject* rv = PyTuple_New(3);
3091 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3092 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3093 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3094 return rv;
3095 }
3096
3097 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3098
3099SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3100SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3101SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3102 self->Red() = wxPy_premultiply(red, alpha);
3103 self->Green() = wxPy_premultiply(green, alpha);
3104 self->Blue() = wxPy_premultiply(blue, alpha);
3105 self->Alpha() = alpha;
3106 }
3107SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3108 PyObject* rv = PyTuple_New(4);
3109 int red = self->Red();
3110 int green = self->Green();
3111 int blue = self->Blue();
3112 int alpha = self->Alpha();
3113
3114 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3115 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3116 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3117 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3118 return rv;
3119 }
0085ce49 3120SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
093d3ff1
RD
3121 if ( !colour.Ok() )
3122 return new wxMask(bitmap, *wxBLACK);
3123 else
3124 return new wxMask(bitmap, colour);
3125 }
d14a1e28 3126
093d3ff1 3127#include <wx/iconbndl.h>
d14a1e28 3128
0085ce49 3129SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3130 wxIcon* icon = new wxIcon();
3131 icon->CopyFromBitmap(bmp);
3132 return icon;
3133 }
0085ce49 3134SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3135 char** cArray = NULL;
3136 wxIcon* icon;
d14a1e28 3137
093d3ff1
RD
3138 cArray = ConvertListOfStrings(listOfStrings);
3139 if (! cArray)
3140 return NULL;
3141 icon = new wxIcon(cArray);
3142 delete [] cArray;
3143 return icon;
3144 }
0085ce49 3145SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3146
3147
d14a1e28 3148
093d3ff1 3149 return new wxIconLocation(*filename);
d14a1e28 3150
093d3ff1 3151 }
0085ce49 3152SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3153
3154
d14a1e28 3155
093d3ff1 3156 // do nothing
d14a1e28 3157
093d3ff1 3158 }
0085ce49 3159SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3160
3161
093d3ff1
RD
3162
3163 return -1;
3164
3165 }
0085ce49 3166SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3167#ifdef __WXGTK__
7557b9b5
RD
3168 wxImage img(cursorName, type);
3169 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3170 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3171 return new wxCursor(img);
093d3ff1 3172#else
7557b9b5 3173 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3174#endif
3175 }
3176
3177
0085ce49 3178SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3179 (*self) ++;
3180 }
0085ce49 3181SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3182 return self->operator bool();
3183 }
3184
3185#include <wx/fontutil.h>
3186#include <wx/fontmap.h>
3187#include <wx/fontenum.h>
3188
0085ce49 3189SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3190 return self->ToString();
3191 }
3192
3193 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3194 static wxNativeEncodingInfo info;
3195 if ( wxGetNativeFontEncoding(encoding, &info) )
3196 return &info;
3197 else
3198 return NULL;
3199 }
3200
0085ce49
RD
3201
3202SWIGINTERNINLINE PyObject *
3203SWIG_From_size_t (size_t value)
3204{
3205 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3206}
3207
3208
3209SWIGINTERNINLINE int
3210SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3211{
3212 unsigned long v;
3213 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3214 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3215 return res;
3216}
3217
3218SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3219 wxFontEncoding alt_enc;
3220 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3221 return PyInt_FromLong(alt_enc);
3222 else {
3223 Py_INCREF(Py_None);
3224 return Py_None;
3225 }
3226 }
0085ce49 3227SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3228 wxNativeFontInfo nfi;
3229 nfi.FromString(info);
3230 return new wxFont(nfi);
3231 }
0085ce49 3232SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3233 return wxFont::New(pointSize, family, flags, face, encoding);
3234 }
0085ce49 3235SWIGINTERN 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
3236 return wxFontBase::New(pixelSize, family,
3237 style, weight, underlined,
3238 face, encoding);
3239 }
0085ce49 3240SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3241 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3242 }
0085ce49
RD
3243SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3244SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3245
3246class wxPyFontEnumerator : public wxFontEnumerator {
3247public:
3248 wxPyFontEnumerator() {}
3249 ~wxPyFontEnumerator() {}
3250
3251 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3252 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3253
3254 PYPRIVATE;
3255};
3256
3257IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3258IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3259
3260
704eda0c 3261SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3262 PyObject* ret;
704eda0c 3263 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3264 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3265 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3266 wxPyEndBlockThreads(blocked);
3267 return ret;
093d3ff1 3268 }
704eda0c 3269SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3270 PyObject* ret;
704eda0c 3271 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3272 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3273 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3274 wxPyEndBlockThreads(blocked);
3275 return ret;
093d3ff1
RD
3276 }
3277
3278#include <locale.h>
3279
0085ce49 3280SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3281 wxLocale* loc;
3282 if (language == -1)
3283 loc = new wxLocale();
3284 else
3285 loc = new wxLocale(language, flags);
3286 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3287 // for the floating point conversions and such to work right.
3288#if PY_VERSION_HEX < 0x02040000
3289 setlocale(LC_NUMERIC, "C");
3290#endif
3291 return loc;
3292 }
0085ce49 3293SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3294 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3295 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3296 // for the floating point conversions and such to work right.
3297#if PY_VERSION_HEX < 0x02040000
3298 setlocale(LC_NUMERIC, "C");
3299#endif
3300 return rc;
3301 }
0085ce49 3302SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3303 bool rc = self->Init(language, flags);
3304 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3305 // for the floating point conversions and such to work right.
3306#if PY_VERSION_HEX < 0x02040000
3307 setlocale(LC_NUMERIC, "C");
3308#endif
3309 return rc;
3310 }
3311
fc46b7f3
RD
3312class wxPyLocale : public wxLocale
3313{
3314public:
3315 wxPyLocale();
3316
3317 wxPyLocale(const wxChar *szName, // name (for messages)
3318 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3319 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3320 bool bLoadDefault = true, // preload wxstd.mo?
3321 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3322
3323 wxPyLocale(int language, // wxLanguage id or custom language
3324 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3325
3326 ~wxPyLocale();
3327
3328 virtual const wxChar *GetString(const wxChar *szOrigString,
3329 const wxChar *szDomain = NULL) const;
3330 virtual const wxChar *GetString(const wxChar *szOrigString,
3331 const wxChar *szOrigString2, size_t n,
3332 const wxChar *szDomain = NULL) const;
3333
3334 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3335 const wxChar *szDomain = NULL) const;
3336 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3337 const wxChar *szOrigString2, size_t n,
3338 const wxChar *szDomain = NULL) const;
3339
3340 PYPRIVATE;
3341private:
3342 DECLARE_NO_COPY_CLASS(wxPyLocale)
3343};
3344
3345wxPyLocale::wxPyLocale() : wxLocale()
3346{
3347}
3348
3349wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3350 const wxChar *szShort, // dir prefix (for msg files)
3351 const wxChar *szLocale, // locale (for setlocale)
3352 bool bLoadDefault, // preload wxstd.mo?
3353 bool bConvertEncoding) // convert Win<->Unix if necessary?
3354 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3355{
3356}
3357
3358wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3359 int flags) : wxLocale(language, flags)
3360{
3361}
3362
3363wxPyLocale::~wxPyLocale()
3364{
3365}
3366
3367const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3368 const wxChar *szDomain) const
3369{
3370 wxChar *str = GetSingularString(szOrigString, szDomain);
3371 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3372}
3373
3374const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3375 const wxChar *szOrigString2, size_t n,
3376 const wxChar *szDomain) const
3377{
3378 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3379 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3380}
3381
3382wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3383 const wxChar *szDomain) const
3384{
3385 bool found;
3386 static wxString str;
3387 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.
3388 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3389 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3390 PyObject* param1 = wx2PyString(szOrigString);
3391 PyObject* param2 = wx2PyString(szDomain);
3392 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3393 Py_DECREF(param1);
3394 Py_DECREF(param2);
3395 if (ret) {
3396 str = Py2wxString(ret);
3397 Py_DECREF(ret);
3398 }
3399 }
3400 wxPyEndBlockThreads(blocked);
3401 return (found ? (wxChar*)str.c_str() : NULL);
3402}
3403
3404wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3405 const wxChar *szOrigString2, size_t n,
3406 const wxChar *szDomain) const
3407{
3408 bool found;
3409 static wxString str;
3410 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.
3411 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3412 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3413 PyObject* param1 = wx2PyString(szOrigString);
3414 PyObject* param2 = wx2PyString(szOrigString2);
3415 PyObject* param4 = wx2PyString(szDomain);
3416 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3417 Py_DECREF(param1);
3418 Py_DECREF(param2);
3419 Py_DECREF(param4);
3420 if( ret) {
3421 str = Py2wxString(ret);
3422 Py_DECREF(ret);
3423 }
3424 }
3425 wxPyEndBlockThreads(blocked);
3426 return (found ? (wxChar*)str.c_str() : NULL);
3427}
3428
3429SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3430 wxPyLocale* loc;
3431 if (language == -1)
3432 loc = new wxPyLocale();
3433 else
3434 loc = new wxPyLocale(language, flags);
3435 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3436 // for the floating point conversions and such to work right.
3437#if PY_VERSION_HEX < 0x02040000
3438 setlocale(LC_NUMERIC, "C");
3439#endif
3440 return loc;
3441 }
3442
093d3ff1
RD
3443#include "wx/wxPython/pydrawxxx.h"
3444
0085ce49 3445SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3446 wxColour col;
3447 self->GetPixel(x, y, &col);
3448 return col;
3449 }
0085ce49 3450SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3451 wxColour col;
3452 self->GetPixel(pt, &col);
3453 return col;
3454 }
3455
3456SWIGINTERN int
0085ce49 3457SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3458{
3459 if (PyNumber_Check(obj)) {
3460 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3461 return SWIG_OK;
093d3ff1 3462 }
0085ce49 3463 return SWIG_TypeError;
093d3ff1
RD
3464}
3465
0085ce49 3466SWIGINTERN 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
3467 wxRect rv;
3468 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3469 return rv;
3470 }
0085ce49 3471SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3472 wxRect rect;
3473 self->GetClippingBox(rect);
3474 return rect;
3475 }
0085ce49 3476SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3477 wxArrayInt widths;
3478 self->GetPartialTextExtents(text, widths);
3479 return widths;
3480 }
3481
0085ce49 3482 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3483
0085ce49 3484SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3485 self->SetLogicalOrigin(point.x, point.y);
3486 }
0085ce49 3487SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3488 self->SetDeviceOrigin(point.x, point.y);
3489 }
0085ce49 3490SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3491 self->CalcBoundingBox(point.x, point.y);
3492 }
0085ce49 3493SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3494 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3495 }
0085ce49 3496SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3497 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3498 }
0085ce49 3499SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3500 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3501 }
0085ce49 3502SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3503 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3504 }
0085ce49 3505SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3506 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3507 }
0085ce49 3508SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3509 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3510 }
3511
3512static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3513 *x1 = dc->MinX();
3514 *y1 = dc->MinY();
3515 *x2 = dc->MaxX();
3516 *y2 = dc->MaxY();
3517}
3518
3519
3520#include <wx/dcbuffer.h>
3521
3522
3523#include <wx/dcps.h>
3524
3525
3526class wxMetaFile : public wxObject {
3527public:
3528 wxMetaFile(const wxString&)
3529 { wxPyRaiseNotImplemented(); }
3530};
3531
3532class wxMetaFileDC : public wxClientDC {
3533public:
3534 wxMetaFileDC(const wxString&, int, int, const wxString&)
3535 { wxPyRaiseNotImplemented(); }
3536};
3537
3538
3539
3540class wxPrinterDC : public wxClientDC {
3541public:
3542 wxPrinterDC(const wxPrintData&)
3543 { wxPyRaiseNotImplemented(); }
3544
3545};
3546
3547
3548
0085ce49 3549SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3550 self->AddColour(name, wxColour(red, green, blue));
3551 }
3552
50efceee
RD
3553 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3554 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3555 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3556 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3557
3558
093d3ff1
RD
3559#include <wx/effects.h>
3560
8d38bd1d
RD
3561
3562#include "wx/renderer.h"
3563
3564
32fe5131 3565SWIGINTERNINLINE PyObject*
0085ce49 3566 SWIG_From_bool (bool value)
8d38bd1d 3567{
0085ce49 3568 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3569}
3570
27e45892
RD
3571
3572#include "wx/wxPython/pseudodc.h"
3573
3574SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3575 wxRect rect;
3576 self->GetIdBounds(id, rect);
3577 return rect;
3578 }
093d3ff1
RD
3579#ifdef __cplusplus
3580extern "C" {
3581#endif
0085ce49
RD
3582SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3583 PyObject *resultobj = 0;
3584 wxGDIObject *result = 0 ;
3585
3586 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3587 {
3588 if (!wxPyCheckForApp()) SWIG_fail;
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (wxGDIObject *)new wxGDIObject();
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3595 return resultobj;
3596fail:
3597 return NULL;
093d3ff1
RD
3598}
3599
3600
0085ce49
RD
3601SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3602 PyObject *resultobj = 0;
3603 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3604 void *argp1 = 0 ;
3605 int res1 = 0 ;
3606 PyObject *swig_obj[1] ;
3607
3608 if (!args) SWIG_fail;
3609 swig_obj[0] = args;
3610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3611 if (!SWIG_IsOK(res1)) {
3612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3613 }
3614 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 delete arg1;
093d3ff1 3618
0085ce49
RD
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 resultobj = SWIG_Py_Void();
3623 return resultobj;
3624fail:
3625 return NULL;
d14a1e28
RD
3626}
3627
3628
0085ce49
RD
3629SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3630 PyObject *resultobj = 0;
3631 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3632 bool result;
3633 void *argp1 = 0 ;
3634 int res1 = 0 ;
3635 PyObject *swig_obj[1] ;
3636
3637 if (!args) SWIG_fail;
3638 swig_obj[0] = args;
3639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3640 if (!SWIG_IsOK(res1)) {
3641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3642 }
3643 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (bool)(arg1)->IsNull();
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 return resultobj;
3654fail:
3655 return NULL;
3656}
3657
3658
3659SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3660 PyObject *obj;
3661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3662 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3663 return SWIG_Py_Void();
3664}
3665
3666SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3667 return SWIG_Python_InitShadowInstance(args);
3668}
3669
3670SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj = 0;
3672 byte arg1 = (byte) 0 ;
3673 byte arg2 = (byte) 0 ;
3674 byte arg3 = (byte) 0 ;
fc46b7f3 3675 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
3676 wxColour *result = 0 ;
3677 unsigned char val1 ;
3678 int ecode1 = 0 ;
3679 unsigned char val2 ;
3680 int ecode2 = 0 ;
3681 unsigned char val3 ;
3682 int ecode3 = 0 ;
fc46b7f3
RD
3683 unsigned char val4 ;
3684 int ecode4 = 0 ;
0085ce49
RD
3685 PyObject * obj0 = 0 ;
3686 PyObject * obj1 = 0 ;
3687 PyObject * obj2 = 0 ;
fc46b7f3 3688 PyObject * obj3 = 0 ;
0085ce49 3689 char * kwnames[] = {
fc46b7f3 3690 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
3691 };
3692
fc46b7f3 3693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
3694 if (obj0) {
3695 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3696 if (!SWIG_IsOK(ecode1)) {
3697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3698 }
3699 arg1 = static_cast< byte >(val1);
3700 }
3701 if (obj1) {
3702 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3703 if (!SWIG_IsOK(ecode2)) {
3704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3705 }
3706 arg2 = static_cast< byte >(val2);
3707 }
3708 if (obj2) {
3709 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3710 if (!SWIG_IsOK(ecode3)) {
3711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3712 }
3713 arg3 = static_cast< byte >(val3);
3714 }
fc46b7f3
RD
3715 if (obj3) {
3716 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3717 if (!SWIG_IsOK(ecode4)) {
3718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3719 }
3720 arg4 = static_cast< byte >(val4);
3721 }
0085ce49
RD
3722 {
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3724 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
3725 wxPyEndAllowThreads(__tstate);
3726 if (PyErr_Occurred()) SWIG_fail;
3727 }
3728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3729 return resultobj;
3730fail:
3731 return NULL;
d14a1e28
RD
3732}
3733
3734
0085ce49
RD
3735SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3736 PyObject *resultobj = 0;
3737 wxString *arg1 = 0 ;
3738 wxColour *result = 0 ;
3739 bool temp1 = false ;
3740 PyObject * obj0 = 0 ;
3741 char * kwnames[] = {
3742 (char *) "colorName", NULL
3743 };
3744
3745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3746 {
3747 arg1 = wxString_in_helper(obj0);
3748 if (arg1 == NULL) SWIG_fail;
3749 temp1 = true;
3750 }
3751 {
3752 if (!wxPyCheckForApp()) SWIG_fail;
3753 PyThreadState* __tstate = wxPyBeginAllowThreads();
3754 result = (wxColour *)new wxColour((wxString const &)*arg1);
3755 wxPyEndAllowThreads(__tstate);
3756 if (PyErr_Occurred()) SWIG_fail;
3757 }
3758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3759 {
3760 if (temp1)
3761 delete arg1;
3762 }
3763 return resultobj;
3764fail:
3765 {
3766 if (temp1)
3767 delete arg1;
3768 }
3769 return NULL;
d14a1e28
RD
3770}
3771
3772
0085ce49
RD
3773SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3774 PyObject *resultobj = 0;
3775 unsigned long arg1 ;
3776 wxColour *result = 0 ;
3777 unsigned long val1 ;
3778 int ecode1 = 0 ;
3779 PyObject * obj0 = 0 ;
3780 char * kwnames[] = {
3781 (char *) "colRGB", NULL
3782 };
3783
3784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3785 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3786 if (!SWIG_IsOK(ecode1)) {
3787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3788 }
3789 arg1 = static_cast< unsigned long >(val1);
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 result = (wxColour *)new wxColour(arg1);
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3797 return resultobj;
3798fail:
3799 return NULL;
d14a1e28
RD
3800}
3801
3802
0085ce49
RD
3803SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3804 PyObject *resultobj = 0;
3805 wxColour *arg1 = (wxColour *) 0 ;
3806 void *argp1 = 0 ;
3807 int res1 = 0 ;
3808 PyObject *swig_obj[1] ;
3809
3810 if (!args) SWIG_fail;
3811 swig_obj[0] = args;
3812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3813 if (!SWIG_IsOK(res1)) {
3814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3815 }
3816 arg1 = reinterpret_cast< wxColour * >(argp1);
3817 {
3818 PyThreadState* __tstate = wxPyBeginAllowThreads();
3819 delete arg1;
d14a1e28 3820
0085ce49
RD
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 resultobj = SWIG_Py_Void();
3825 return resultobj;
3826fail:
3827 return NULL;
d14a1e28
RD
3828}
3829
3830
0085ce49
RD
3831SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3832 PyObject *resultobj = 0;
3833 wxColour *arg1 = (wxColour *) 0 ;
3834 byte result;
3835 void *argp1 = 0 ;
3836 int res1 = 0 ;
3837 PyObject *swig_obj[1] ;
3838
3839 if (!args) SWIG_fail;
3840 swig_obj[0] = args;
3841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3842 if (!SWIG_IsOK(res1)) {
3843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3844 }
3845 arg1 = reinterpret_cast< wxColour * >(argp1);
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (byte)(arg1)->Red();
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3853 return resultobj;
3854fail:
3855 return NULL;
d14a1e28
RD
3856}
3857
3858
0085ce49
RD
3859SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3860 PyObject *resultobj = 0;
3861 wxColour *arg1 = (wxColour *) 0 ;
3862 byte result;
3863 void *argp1 = 0 ;
3864 int res1 = 0 ;
3865 PyObject *swig_obj[1] ;
3866
3867 if (!args) SWIG_fail;
3868 swig_obj[0] = args;
3869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3870 if (!SWIG_IsOK(res1)) {
3871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3872 }
3873 arg1 = reinterpret_cast< wxColour * >(argp1);
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 result = (byte)(arg1)->Green();
3877 wxPyEndAllowThreads(__tstate);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 }
3880 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3881 return resultobj;
3882fail:
3883 return NULL;
5cbf236d
RD
3884}
3885
3886
0085ce49
RD
3887SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3888 PyObject *resultobj = 0;
3889 wxColour *arg1 = (wxColour *) 0 ;
3890 byte result;
3891 void *argp1 = 0 ;
3892 int res1 = 0 ;
3893 PyObject *swig_obj[1] ;
3894
3895 if (!args) SWIG_fail;
3896 swig_obj[0] = args;
3897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3898 if (!SWIG_IsOK(res1)) {
3899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3900 }
3901 arg1 = reinterpret_cast< wxColour * >(argp1);
3902 {
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 result = (byte)(arg1)->Blue();
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3909 return resultobj;
3910fail:
3911 return NULL;
d14a1e28
RD
3912}
3913
3914
fc46b7f3
RD
3915SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3916 PyObject *resultobj = 0;
3917 wxColour *arg1 = (wxColour *) 0 ;
3918 byte result;
3919 void *argp1 = 0 ;
3920 int res1 = 0 ;
3921 PyObject *swig_obj[1] ;
3922
3923 if (!args) SWIG_fail;
3924 swig_obj[0] = args;
3925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3926 if (!SWIG_IsOK(res1)) {
3927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3928 }
3929 arg1 = reinterpret_cast< wxColour * >(argp1);
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 result = (byte)(arg1)->Alpha();
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3937 return resultobj;
3938fail:
3939 return NULL;
3940}
3941
3942
0085ce49
RD
3943SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3944 PyObject *resultobj = 0;
3945 wxColour *arg1 = (wxColour *) 0 ;
3946 bool result;
3947 void *argp1 = 0 ;
3948 int res1 = 0 ;
3949 PyObject *swig_obj[1] ;
3950
3951 if (!args) SWIG_fail;
3952 swig_obj[0] = args;
3953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3954 if (!SWIG_IsOK(res1)) {
3955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3956 }
3957 arg1 = reinterpret_cast< wxColour * >(argp1);
3958 {
3959 PyThreadState* __tstate = wxPyBeginAllowThreads();
3960 result = (bool)(arg1)->Ok();
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 {
3965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3966 }
3967 return resultobj;
3968fail:
3969 return NULL;
3970}
3971
3972
3973SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj = 0;
3975 wxColour *arg1 = (wxColour *) 0 ;
3976 byte arg2 ;
3977 byte arg3 ;
3978 byte arg4 ;
fc46b7f3 3979 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 unsigned char val2 ;
3983 int ecode2 = 0 ;
3984 unsigned char val3 ;
3985 int ecode3 = 0 ;
3986 unsigned char val4 ;
3987 int ecode4 = 0 ;
fc46b7f3
RD
3988 unsigned char val5 ;
3989 int ecode5 = 0 ;
0085ce49
RD
3990 PyObject * obj0 = 0 ;
3991 PyObject * obj1 = 0 ;
3992 PyObject * obj2 = 0 ;
3993 PyObject * obj3 = 0 ;
fc46b7f3 3994 PyObject * obj4 = 0 ;
0085ce49 3995 char * kwnames[] = {
fc46b7f3 3996 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
3997 };
3998
fc46b7f3 3999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4001 if (!SWIG_IsOK(res1)) {
4002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4003 }
4004 arg1 = reinterpret_cast< wxColour * >(argp1);
4005 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4006 if (!SWIG_IsOK(ecode2)) {
4007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4008 }
4009 arg2 = static_cast< byte >(val2);
4010 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4011 if (!SWIG_IsOK(ecode3)) {
4012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4013 }
4014 arg3 = static_cast< byte >(val3);
4015 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4016 if (!SWIG_IsOK(ecode4)) {
4017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4018 }
4019 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4020 if (obj4) {
4021 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4022 if (!SWIG_IsOK(ecode5)) {
4023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4024 }
4025 arg5 = static_cast< byte >(val5);
4026 }
0085ce49
RD
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4029 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_Py_Void();
4034 return resultobj;
4035fail:
4036 return NULL;
4037}
4038
4039
4040SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj = 0;
4042 wxColour *arg1 = (wxColour *) 0 ;
4043 unsigned long arg2 ;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 unsigned long val2 ;
4047 int ecode2 = 0 ;
4048 PyObject * obj0 = 0 ;
4049 PyObject * obj1 = 0 ;
4050 char * kwnames[] = {
4051 (char *) "self",(char *) "colRGB", NULL
4052 };
4053
4054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4056 if (!SWIG_IsOK(res1)) {
4057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4058 }
4059 arg1 = reinterpret_cast< wxColour * >(argp1);
4060 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4061 if (!SWIG_IsOK(ecode2)) {
4062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4063 }
4064 arg2 = static_cast< unsigned long >(val2);
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 (arg1)->Set(arg2);
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 resultobj = SWIG_Py_Void();
4072 return resultobj;
4073fail:
4074 return NULL;
4075}
4076
4077
4078SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj = 0;
4080 wxColour *arg1 = (wxColour *) 0 ;
4081 wxString *arg2 = 0 ;
4082 void *argp1 = 0 ;
4083 int res1 = 0 ;
4084 bool temp2 = false ;
4085 PyObject * obj0 = 0 ;
4086 PyObject * obj1 = 0 ;
4087 char * kwnames[] = {
4088 (char *) "self",(char *) "colourName", NULL
4089 };
4090
4091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4093 if (!SWIG_IsOK(res1)) {
4094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4095 }
4096 arg1 = reinterpret_cast< wxColour * >(argp1);
4097 {
4098 arg2 = wxString_in_helper(obj1);
4099 if (arg2 == NULL) SWIG_fail;
4100 temp2 = true;
4101 }
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 (arg1)->InitFromName((wxString const &)*arg2);
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 resultobj = SWIG_Py_Void();
4109 {
4110 if (temp2)
4111 delete arg2;
4112 }
4113 return resultobj;
4114fail:
4115 {
4116 if (temp2)
4117 delete arg2;
4118 }
4119 return NULL;
d14a1e28
RD
4120}
4121
4122
01f6b6d3
RD
4123SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4124 PyObject *resultobj = 0;
4125 wxColour *arg1 = (wxColour *) 0 ;
4126 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4127 wxString result;
4128 void *argp1 = 0 ;
4129 int res1 = 0 ;
4130 long val2 ;
4131 int ecode2 = 0 ;
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 char * kwnames[] = {
4135 (char *) "self",(char *) "flags", NULL
4136 };
4137
4138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4140 if (!SWIG_IsOK(res1)) {
4141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4142 }
4143 arg1 = reinterpret_cast< wxColour * >(argp1);
4144 if (obj1) {
4145 ecode2 = SWIG_AsVal_long(obj1, &val2);
4146 if (!SWIG_IsOK(ecode2)) {
4147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4148 }
4149 arg2 = static_cast< long >(val2);
4150 }
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = ((wxColour const *)arg1)->GetAsString(arg2);
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158#if wxUSE_UNICODE
4159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4160#else
4161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4162#endif
4163 }
4164 return resultobj;
4165fail:
4166 return NULL;
4167}
4168
4169
0085ce49
RD
4170SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4171 PyObject *resultobj = 0;
4172 wxColour *arg1 = (wxColour *) 0 ;
4173 long result;
4174 void *argp1 = 0 ;
4175 int res1 = 0 ;
4176 PyObject *swig_obj[1] ;
4177
4178 if (!args) SWIG_fail;
4179 swig_obj[0] = args;
4180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4181 if (!SWIG_IsOK(res1)) {
4182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4183 }
4184 arg1 = reinterpret_cast< wxColour * >(argp1);
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (long)((wxColour const *)arg1)->GetPixel();
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
4191 resultobj = SWIG_From_long(static_cast< long >(result));
4192 return resultobj;
4193fail:
4194 return NULL;
4195}
4196
4197
4198SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj = 0;
4200 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4201 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4202 bool result;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
0085ce49
RD
4205 PyObject * obj0 = 0 ;
4206 PyObject * obj1 = 0 ;
4207 char * kwnames[] = {
e9d6f3a4 4208 (char *) "self",(char *) "other", NULL
0085ce49
RD
4209 };
4210
4211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4213 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4215 }
4216 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4217 arg2 = obj1;
0085ce49 4218 {
e9d6f3a4 4219 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 {
4223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4224 }
4225 return resultobj;
4226fail:
4227 return NULL;
4228}
4229
4230
4231SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj = 0;
4233 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4234 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4235 bool result;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
0085ce49
RD
4238 PyObject * obj0 = 0 ;
4239 PyObject * obj1 = 0 ;
4240 char * kwnames[] = {
e9d6f3a4 4241 (char *) "self",(char *) "other", NULL
0085ce49
RD
4242 };
4243
4244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4246 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4248 }
4249 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4250 arg2 = obj1;
0085ce49 4251 {
e9d6f3a4 4252 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4257 }
4258 return resultobj;
4259fail:
4260 return NULL;
d14a1e28
RD
4261}
4262
4263
fc46b7f3 4264SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4265 PyObject *resultobj = 0;
4266 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4267 bool arg2 = (bool) false ;
0085ce49
RD
4268 PyObject *result = 0 ;
4269 void *argp1 = 0 ;
4270 int res1 = 0 ;
fc46b7f3
RD
4271 bool val2 ;
4272 int ecode2 = 0 ;
4273 PyObject * obj0 = 0 ;
4274 PyObject * obj1 = 0 ;
4275 char * kwnames[] = {
4276 (char *) "self",(char *) "includeAlpha", NULL
4277 };
0085ce49 4278
fc46b7f3
RD
4279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4281 if (!SWIG_IsOK(res1)) {
4282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4283 }
4284 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4285 if (obj1) {
4286 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4287 if (!SWIG_IsOK(ecode2)) {
4288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4289 }
4290 arg2 = static_cast< bool >(val2);
4291 }
0085ce49 4292 {
fc46b7f3 4293 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 resultobj = result;
4297 return resultobj;
4298fail:
4299 return NULL;
d14a1e28
RD
4300}
4301
4302
0085ce49
RD
4303SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4304 PyObject *resultobj = 0;
4305 wxColour *arg1 = (wxColour *) 0 ;
4306 unsigned long result;
4307 void *argp1 = 0 ;
4308 int res1 = 0 ;
4309 PyObject *swig_obj[1] ;
4310
4311 if (!args) SWIG_fail;
4312 swig_obj[0] = args;
4313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4314 if (!SWIG_IsOK(res1)) {
4315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4316 }
4317 arg1 = reinterpret_cast< wxColour * >(argp1);
4318 {
0085ce49 4319 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4323 return resultobj;
4324fail:
4325 return NULL;
4326}
4327
4328
4329SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4330 PyObject *obj;
4331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4332 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4333 return SWIG_Py_Void();
4334}
4335
4336SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4337 return SWIG_Python_InitShadowInstance(args);
4338}
4339
4340SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj = 0;
4342 int arg1 ;
4343 unsigned char *arg2 = (unsigned char *) 0 ;
4344 unsigned char *arg3 = (unsigned char *) 0 ;
4345 unsigned char *arg4 = (unsigned char *) 0 ;
4346 wxPalette *result = 0 ;
4347 int val1 ;
4348 int ecode1 = 0 ;
4349 void *argp2 = 0 ;
4350 int res2 = 0 ;
4351 void *argp3 = 0 ;
4352 int res3 = 0 ;
4353 void *argp4 = 0 ;
4354 int res4 = 0 ;
4355 PyObject * obj0 = 0 ;
4356 PyObject * obj1 = 0 ;
4357 PyObject * obj2 = 0 ;
4358 PyObject * obj3 = 0 ;
4359 char * kwnames[] = {
4360 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4361 };
4362
4363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4364 ecode1 = SWIG_AsVal_int(obj0, &val1);
4365 if (!SWIG_IsOK(ecode1)) {
4366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4367 }
4368 arg1 = static_cast< int >(val1);
4369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4370 if (!SWIG_IsOK(res2)) {
4371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4372 }
4373 arg2 = reinterpret_cast< unsigned char * >(argp2);
4374 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4375 if (!SWIG_IsOK(res3)) {
4376 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4377 }
4378 arg3 = reinterpret_cast< unsigned char * >(argp3);
4379 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4380 if (!SWIG_IsOK(res4)) {
4381 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4382 }
4383 arg4 = reinterpret_cast< unsigned char * >(argp4);
4384 {
4385 if (!wxPyCheckForApp()) SWIG_fail;
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4392 return resultobj;
4393fail:
4394 return NULL;
d14a1e28
RD
4395}
4396
4397
0085ce49
RD
4398SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4399 PyObject *resultobj = 0;
4400 wxPalette *arg1 = (wxPalette *) 0 ;
4401 void *argp1 = 0 ;
4402 int res1 = 0 ;
4403 PyObject *swig_obj[1] ;
4404
4405 if (!args) SWIG_fail;
4406 swig_obj[0] = args;
4407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4408 if (!SWIG_IsOK(res1)) {
4409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4410 }
4411 arg1 = reinterpret_cast< wxPalette * >(argp1);
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 delete arg1;
d14a1e28 4415
0085ce49
RD
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 resultobj = SWIG_Py_Void();
4420 return resultobj;
4421fail:
4422 return NULL;
4423}
4424
4425
4426SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj = 0;
4428 wxPalette *arg1 = (wxPalette *) 0 ;
4429 byte arg2 ;
4430 byte arg3 ;
4431 byte arg4 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 unsigned char val2 ;
4436 int ecode2 = 0 ;
4437 unsigned char val3 ;
4438 int ecode3 = 0 ;
4439 unsigned char val4 ;
4440 int ecode4 = 0 ;
4441 PyObject * obj0 = 0 ;
4442 PyObject * obj1 = 0 ;
4443 PyObject * obj2 = 0 ;
4444 PyObject * obj3 = 0 ;
4445 char * kwnames[] = {
4446 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4447 };
4448
4449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4451 if (!SWIG_IsOK(res1)) {
4452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4453 }
4454 arg1 = reinterpret_cast< wxPalette * >(argp1);
4455 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4456 if (!SWIG_IsOK(ecode2)) {
4457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4458 }
4459 arg2 = static_cast< byte >(val2);
4460 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4461 if (!SWIG_IsOK(ecode3)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4463 }
4464 arg3 = static_cast< byte >(val3);
4465 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4466 if (!SWIG_IsOK(ecode4)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4468 }
4469 arg4 = static_cast< byte >(val4);
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_From_int(static_cast< int >(result));
4477 return resultobj;
4478fail:
4479 return NULL;
4480}
4481
4482
4483SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj = 0;
4485 wxPalette *arg1 = (wxPalette *) 0 ;
4486 int arg2 ;
4487 byte *arg3 = (byte *) 0 ;
4488 byte *arg4 = (byte *) 0 ;
4489 byte *arg5 = (byte *) 0 ;
4490 bool result;
4491 void *argp1 = 0 ;
4492 int res1 = 0 ;
4493 int val2 ;
4494 int ecode2 = 0 ;
4495 byte temp3 ;
4496 int res3 = SWIG_TMPOBJ ;
4497 byte temp4 ;
4498 int res4 = SWIG_TMPOBJ ;
4499 byte temp5 ;
4500 int res5 = SWIG_TMPOBJ ;
4501 PyObject * obj0 = 0 ;
4502 PyObject * obj1 = 0 ;
4503 char * kwnames[] = {
4504 (char *) "self",(char *) "pixel", NULL
4505 };
4506
4507 arg3 = &temp3;
4508 arg4 = &temp4;
4509 arg5 = &temp5;
4510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4512 if (!SWIG_IsOK(res1)) {
4513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4514 }
4515 arg1 = reinterpret_cast< wxPalette * >(argp1);
4516 ecode2 = SWIG_AsVal_int(obj1, &val2);
4517 if (!SWIG_IsOK(ecode2)) {
4518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4519 }
4520 arg2 = static_cast< int >(val2);
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 {
4528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4529 }
4530 if (SWIG_IsTmpObj(res3)) {
4531 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4532 } else {
4533 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4535 }
4536 if (SWIG_IsTmpObj(res4)) {
4537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4538 } else {
4539 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4541 }
4542 if (SWIG_IsTmpObj(res5)) {
4543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4544 } else {
4545 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4547 }
4548 return resultobj;
4549fail:
4550 return NULL;
d14a1e28
RD
4551}
4552
4553
0085ce49
RD
4554SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4555 PyObject *resultobj = 0;
4556 wxPalette *arg1 = (wxPalette *) 0 ;
4557 int result;
4558 void *argp1 = 0 ;
4559 int res1 = 0 ;
4560 PyObject *swig_obj[1] ;
4561
4562 if (!args) SWIG_fail;
4563 swig_obj[0] = args;
4564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4565 if (!SWIG_IsOK(res1)) {
4566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4567 }
4568 arg1 = reinterpret_cast< wxPalette * >(argp1);
4569 {
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 resultobj = SWIG_From_int(static_cast< int >(result));
4576 return resultobj;
4577fail:
4578 return NULL;
d14a1e28
RD
4579}
4580
4581
0085ce49
RD
4582SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4583 PyObject *resultobj = 0;
4584 wxPalette *arg1 = (wxPalette *) 0 ;
4585 bool result;
4586 void *argp1 = 0 ;
4587 int res1 = 0 ;
4588 PyObject *swig_obj[1] ;
4589
4590 if (!args) SWIG_fail;
4591 swig_obj[0] = args;
4592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4593 if (!SWIG_IsOK(res1)) {
4594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4595 }
4596 arg1 = reinterpret_cast< wxPalette * >(argp1);
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (bool)(arg1)->Ok();
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 {
4604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4605 }
4606 return resultobj;
4607fail:
4608 return NULL;
4609}
4610
4611
4612SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4613 PyObject *obj;
4614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4615 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4616 return SWIG_Py_Void();
4617}
4618
4619SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 return SWIG_Python_InitShadowInstance(args);
4621}
4622
4623SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj = 0;
4625 wxColour *arg1 = 0 ;
4626 int arg2 = (int) 1 ;
4627 int arg3 = (int) wxSOLID ;
4628 wxPen *result = 0 ;
4629 wxColour temp1 ;
4630 int val2 ;
4631 int ecode2 = 0 ;
4632 int val3 ;
4633 int ecode3 = 0 ;
4634 PyObject * obj0 = 0 ;
4635 PyObject * obj1 = 0 ;
4636 PyObject * obj2 = 0 ;
4637 char * kwnames[] = {
4638 (char *) "colour",(char *) "width",(char *) "style", NULL
4639 };
4640
4641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4642 {
4643 arg1 = &temp1;
4644 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4645 }
4646 if (obj1) {
4647 ecode2 = SWIG_AsVal_int(obj1, &val2);
4648 if (!SWIG_IsOK(ecode2)) {
4649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4650 }
4651 arg2 = static_cast< int >(val2);
4652 }
4653 if (obj2) {
4654 ecode3 = SWIG_AsVal_int(obj2, &val3);
4655 if (!SWIG_IsOK(ecode3)) {
4656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4657 }
4658 arg3 = static_cast< int >(val3);
4659 }
4660 {
4661 if (!wxPyCheckForApp()) SWIG_fail;
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4668 return resultobj;
4669fail:
4670 return NULL;
d14a1e28
RD
4671}
4672
4673
0085ce49
RD
4674SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4675 PyObject *resultobj = 0;
4676 wxPen *arg1 = (wxPen *) 0 ;
4677 void *argp1 = 0 ;
4678 int res1 = 0 ;
4679 PyObject *swig_obj[1] ;
4680
4681 if (!args) SWIG_fail;
4682 swig_obj[0] = args;
4683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4684 if (!SWIG_IsOK(res1)) {
4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4686 }
4687 arg1 = reinterpret_cast< wxPen * >(argp1);
4688 {
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 delete arg1;
d14a1e28 4691
0085ce49
RD
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 resultobj = SWIG_Py_Void();
4696 return resultobj;
4697fail:
4698 return NULL;
d14a1e28
RD
4699}
4700
4701
0085ce49
RD
4702SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4703 PyObject *resultobj = 0;
4704 wxPen *arg1 = (wxPen *) 0 ;
4705 int result;
4706 void *argp1 = 0 ;
4707 int res1 = 0 ;
4708 PyObject *swig_obj[1] ;
4709
4710 if (!args) SWIG_fail;
4711 swig_obj[0] = args;
4712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4713 if (!SWIG_IsOK(res1)) {
4714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4715 }
4716 arg1 = reinterpret_cast< wxPen * >(argp1);
4717 {
4718 PyThreadState* __tstate = wxPyBeginAllowThreads();
4719 result = (int)(arg1)->GetCap();
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 resultobj = SWIG_From_int(static_cast< int >(result));
4724 return resultobj;
4725fail:
4726 return NULL;
d14a1e28
RD
4727}
4728
4729
0085ce49
RD
4730SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731 PyObject *resultobj = 0;
4732 wxPen *arg1 = (wxPen *) 0 ;
4733 wxColour result;
4734 void *argp1 = 0 ;
4735 int res1 = 0 ;
4736 PyObject *swig_obj[1] ;
4737
4738 if (!args) SWIG_fail;
4739 swig_obj[0] = args;
4740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4741 if (!SWIG_IsOK(res1)) {
4742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4743 }
4744 arg1 = reinterpret_cast< wxPen * >(argp1);
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 result = (arg1)->GetColour();
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4752 return resultobj;
4753fail:
4754 return NULL;
d14a1e28
RD
4755}
4756
4757
0085ce49
RD
4758SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4759 PyObject *resultobj = 0;
4760 wxPen *arg1 = (wxPen *) 0 ;
4761 int result;
4762 void *argp1 = 0 ;
4763 int res1 = 0 ;
4764 PyObject *swig_obj[1] ;
4765
4766 if (!args) SWIG_fail;
4767 swig_obj[0] = args;
4768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4769 if (!SWIG_IsOK(res1)) {
4770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4771 }
4772 arg1 = reinterpret_cast< wxPen * >(argp1);
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (int)(arg1)->GetJoin();
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 resultobj = SWIG_From_int(static_cast< int >(result));
4780 return resultobj;
4781fail:
4782 return NULL;
d14a1e28
RD
4783}
4784
4785
0085ce49
RD
4786SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4787 PyObject *resultobj = 0;
4788 wxPen *arg1 = (wxPen *) 0 ;
4789 int result;
4790 void *argp1 = 0 ;
4791 int res1 = 0 ;
4792 PyObject *swig_obj[1] ;
4793
4794 if (!args) SWIG_fail;
4795 swig_obj[0] = args;
4796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4797 if (!SWIG_IsOK(res1)) {
4798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4799 }
4800 arg1 = reinterpret_cast< wxPen * >(argp1);
4801 {
4802 PyThreadState* __tstate = wxPyBeginAllowThreads();
4803 result = (int)(arg1)->GetStyle();
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 resultobj = SWIG_From_int(static_cast< int >(result));
4808 return resultobj;
4809fail:
4810 return NULL;
3adfb63b
RD
4811}
4812
4813
0085ce49
RD
4814SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4815 PyObject *resultobj = 0;
4816 wxPen *arg1 = (wxPen *) 0 ;
4817 int result;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 PyObject *swig_obj[1] ;
4821
4822 if (!args) SWIG_fail;
4823 swig_obj[0] = args;
4824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4825 if (!SWIG_IsOK(res1)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4827 }
4828 arg1 = reinterpret_cast< wxPen * >(argp1);
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (int)(arg1)->GetWidth();
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 resultobj = SWIG_From_int(static_cast< int >(result));
4836 return resultobj;
4837fail:
4838 return NULL;
d14a1e28
RD
4839}
4840
4841
0085ce49
RD
4842SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4843 PyObject *resultobj = 0;
4844 wxPen *arg1 = (wxPen *) 0 ;
4845 bool result;
4846 void *argp1 = 0 ;
4847 int res1 = 0 ;
4848 PyObject *swig_obj[1] ;
4849
4850 if (!args) SWIG_fail;
4851 swig_obj[0] = args;
4852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4853 if (!SWIG_IsOK(res1)) {
4854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4855 }
4856 arg1 = reinterpret_cast< wxPen * >(argp1);
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 result = (bool)(arg1)->Ok();
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 {
4864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4865 }
4866 return resultobj;
4867fail:
4868 return NULL;
4869}
4870
4871
4872SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4873 PyObject *resultobj = 0;
4874 wxPen *arg1 = (wxPen *) 0 ;
4875 int arg2 ;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 int val2 ;
4879 int ecode2 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 char * kwnames[] = {
4883 (char *) "self",(char *) "cap_style", NULL
4884 };
4885
4886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPen * >(argp1);
4892 ecode2 = SWIG_AsVal_int(obj1, &val2);
4893 if (!SWIG_IsOK(ecode2)) {
4894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4895 }
4896 arg2 = static_cast< int >(val2);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 (arg1)->SetCap(arg2);
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = SWIG_Py_Void();
4904 return resultobj;
4905fail:
4906 return NULL;
4907}
4908
4909
4910SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj = 0;
4912 wxPen *arg1 = (wxPen *) 0 ;
4913 wxColour *arg2 = 0 ;
4914 void *argp1 = 0 ;
4915 int res1 = 0 ;
4916 wxColour temp2 ;
4917 PyObject * obj0 = 0 ;
4918 PyObject * obj1 = 0 ;
4919 char * kwnames[] = {
4920 (char *) "self",(char *) "colour", NULL
4921 };
4922
4923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4925 if (!SWIG_IsOK(res1)) {
4926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4927 }
4928 arg1 = reinterpret_cast< wxPen * >(argp1);
4929 {
4930 arg2 = &temp2;
4931 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4932 }
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 (arg1)->SetColour(*arg2);
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 resultobj = SWIG_Py_Void();
4940 return resultobj;
4941fail:
4942 return NULL;
4943}
4944
4945
4946SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4947 PyObject *resultobj = 0;
4948 wxPen *arg1 = (wxPen *) 0 ;
4949 int arg2 ;
4950 void *argp1 = 0 ;
4951 int res1 = 0 ;
4952 int val2 ;
4953 int ecode2 = 0 ;
4954 PyObject * obj0 = 0 ;
4955 PyObject * obj1 = 0 ;
4956 char * kwnames[] = {
4957 (char *) "self",(char *) "join_style", NULL
4958 };
4959
4960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4964 }
4965 arg1 = reinterpret_cast< wxPen * >(argp1);
4966 ecode2 = SWIG_AsVal_int(obj1, &val2);
4967 if (!SWIG_IsOK(ecode2)) {
4968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4969 }
4970 arg2 = static_cast< int >(val2);
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 (arg1)->SetJoin(arg2);
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 }
4977 resultobj = SWIG_Py_Void();
4978 return resultobj;
4979fail:
4980 return NULL;
4981}
4982
4983
4984SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4985 PyObject *resultobj = 0;
4986 wxPen *arg1 = (wxPen *) 0 ;
4987 int arg2 ;
4988 void *argp1 = 0 ;
4989 int res1 = 0 ;
4990 int val2 ;
4991 int ecode2 = 0 ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 char * kwnames[] = {
4995 (char *) "self",(char *) "style", NULL
4996 };
4997
4998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPen * >(argp1);
5004 ecode2 = SWIG_AsVal_int(obj1, &val2);
5005 if (!SWIG_IsOK(ecode2)) {
5006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5007 }
5008 arg2 = static_cast< int >(val2);
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 (arg1)->SetStyle(arg2);
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = SWIG_Py_Void();
5016 return resultobj;
5017fail:
5018 return NULL;
5019}
5020
5021
5022SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5023 PyObject *resultobj = 0;
5024 wxPen *arg1 = (wxPen *) 0 ;
5025 int arg2 ;
5026 void *argp1 = 0 ;
5027 int res1 = 0 ;
5028 int val2 ;
5029 int ecode2 = 0 ;
5030 PyObject * obj0 = 0 ;
5031 PyObject * obj1 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "self",(char *) "width", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5038 if (!SWIG_IsOK(res1)) {
5039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5040 }
5041 arg1 = reinterpret_cast< wxPen * >(argp1);
5042 ecode2 = SWIG_AsVal_int(obj1, &val2);
5043 if (!SWIG_IsOK(ecode2)) {
5044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5045 }
5046 arg2 = static_cast< int >(val2);
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 (arg1)->SetWidth(arg2);
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_Py_Void();
5054 return resultobj;
5055fail:
5056 return NULL;
5057}
5058
5059
5060SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj = 0;
5062 wxPen *arg1 = (wxPen *) 0 ;
5063 int arg2 ;
5064 wxDash *arg3 = (wxDash *) 0 ;
5065 void *argp1 = 0 ;
5066 int res1 = 0 ;
5067 PyObject * obj0 = 0 ;
5068 PyObject * obj1 = 0 ;
5069 char * kwnames[] = {
5070 (char *) "self",(char *) "dashes", NULL
5071 };
5072
5073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5075 if (!SWIG_IsOK(res1)) {
5076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5077 }
5078 arg1 = reinterpret_cast< wxPen * >(argp1);
5079 {
5080 arg2 = PyList_Size(obj1);
5081 arg3 = (wxDash*)byte_LIST_helper(obj1);
5082 if (arg3 == NULL) SWIG_fail;
5083 }
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 (arg1)->SetDashes(arg2,arg3);
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_Py_Void();
5091 {
5092 if (arg3) delete [] arg3;
5093 }
5094 return resultobj;
5095fail:
5096 {
5097 if (arg3) delete [] arg3;
5098 }
5099 return NULL;
d14a1e28
RD
5100}
5101
5102
0085ce49
RD
5103SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5104 PyObject *resultobj = 0;
5105 wxPen *arg1 = (wxPen *) 0 ;
5106 PyObject *result = 0 ;
5107 void *argp1 = 0 ;
5108 int res1 = 0 ;
5109 PyObject *swig_obj[1] ;
5110
5111 if (!args) SWIG_fail;
5112 swig_obj[0] = args;
5113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5114 if (!SWIG_IsOK(res1)) {
5115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5116 }
5117 arg1 = reinterpret_cast< wxPen * >(argp1);
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 result = (PyObject *)wxPen_GetDashes(arg1);
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 resultobj = result;
5125 return resultobj;
5126fail:
5127 return NULL;
5128}
5129
5130
5131SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5132 PyObject *resultobj = 0;
5133 wxPen *arg1 = (wxPen *) 0 ;
5134 PyObject *arg2 = (PyObject *) 0 ;
5135 PyObject *arg3 = (PyObject *) 0 ;
5136 void *argp1 = 0 ;
5137 int res1 = 0 ;
5138 PyObject * obj0 = 0 ;
5139 PyObject * obj1 = 0 ;
5140 PyObject * obj2 = 0 ;
5141 char * kwnames[] = {
5142 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5143 };
5144
5145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5147 if (!SWIG_IsOK(res1)) {
5148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5149 }
5150 arg1 = reinterpret_cast< wxPen * >(argp1);
5151 arg2 = obj1;
5152 arg3 = obj2;
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 wxPen__SetDashes(arg1,arg2,arg3);
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_Py_Void();
5160 return resultobj;
5161fail:
5162 return NULL;
d14a1e28
RD
5163}
5164
5165
0085ce49
RD
5166SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 wxPen *arg1 = (wxPen *) 0 ;
5169 int result;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject *swig_obj[1] ;
5173
5174 if (!args) SWIG_fail;
5175 swig_obj[0] = args;
5176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5179 }
5180 arg1 = reinterpret_cast< wxPen * >(argp1);
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (int)((wxPen const *)arg1)->GetDashCount();
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 resultobj = SWIG_From_int(static_cast< int >(result));
5188 return resultobj;
5189fail:
5190 return NULL;
5191}
5192
5193
5194SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5195 PyObject *resultobj = 0;
5196 wxPen *arg1 = (wxPen *) 0 ;
5197 wxPen *arg2 = (wxPen *) 0 ;
5198 bool result;
5199 void *argp1 = 0 ;
5200 int res1 = 0 ;
5201 void *argp2 = 0 ;
5202 int res2 = 0 ;
5203 PyObject * obj0 = 0 ;
5204 PyObject * obj1 = 0 ;
5205 char * kwnames[] = {
5206 (char *) "self",(char *) "other", NULL
5207 };
5208
5209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5211 if (!SWIG_IsOK(res1)) {
5212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5213 }
5214 arg1 = reinterpret_cast< wxPen * >(argp1);
5215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5216 if (!SWIG_IsOK(res2)) {
5217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5218 }
5219 arg2 = reinterpret_cast< wxPen * >(argp2);
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5223 wxPyEndAllowThreads(__tstate);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 {
5227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5228 }
5229 return resultobj;
5230fail:
5231 return NULL;
5232}
5233
5234
5235SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5236 PyObject *resultobj = 0;
5237 wxPen *arg1 = (wxPen *) 0 ;
5238 wxPen *arg2 = (wxPen *) 0 ;
5239 bool result;
5240 void *argp1 = 0 ;
5241 int res1 = 0 ;
5242 void *argp2 = 0 ;
5243 int res2 = 0 ;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 char * kwnames[] = {
5247 (char *) "self",(char *) "other", NULL
5248 };
5249
5250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5252 if (!SWIG_IsOK(res1)) {
5253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5254 }
5255 arg1 = reinterpret_cast< wxPen * >(argp1);
5256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5257 if (!SWIG_IsOK(res2)) {
5258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5259 }
5260 arg2 = reinterpret_cast< wxPen * >(argp2);
5261 {
5262 PyThreadState* __tstate = wxPyBeginAllowThreads();
5263 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 {
5268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5269 }
5270 return resultobj;
5271fail:
5272 return NULL;
d14a1e28
RD
5273}
5274
5275
0085ce49
RD
5276SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5277 PyObject *obj;
5278 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5279 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5280 return SWIG_Py_Void();
d14a1e28
RD
5281}
5282
0085ce49
RD
5283SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5284 return SWIG_Python_InitShadowInstance(args);
5285}
d14a1e28 5286
0085ce49
RD
5287SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5288 PyObject *resultobj = 0;
5289 wxColour *arg1 = 0 ;
5290 int arg2 = (int) wxSOLID ;
5291 wxBrush *result = 0 ;
5292 wxColour temp1 ;
5293 int val2 ;
5294 int ecode2 = 0 ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 char * kwnames[] = {
5298 (char *) "colour",(char *) "style", NULL
5299 };
5300
5301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5302 {
5303 arg1 = &temp1;
5304 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5305 }
5306 if (obj1) {
5307 ecode2 = SWIG_AsVal_int(obj1, &val2);
5308 if (!SWIG_IsOK(ecode2)) {
5309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5310 }
5311 arg2 = static_cast< int >(val2);
5312 }
5313 {
5314 if (!wxPyCheckForApp()) SWIG_fail;
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5317 wxPyEndAllowThreads(__tstate);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5321 return resultobj;
5322fail:
5323 return NULL;
5324}
5325
5326
5327SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj = 0;
5329 wxBitmap *arg1 = 0 ;
5330 wxBrush *result = 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 PyObject * obj0 = 0 ;
5334 char * kwnames[] = {
5335 (char *) "stippleBitmap", NULL
5336 };
5337
5338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5339 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5340 if (!SWIG_IsOK(res1)) {
5341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5342 }
5343 if (!argp1) {
5344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5345 }
5346 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5347 {
5348 if (!wxPyCheckForApp()) SWIG_fail;
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5355 return resultobj;
5356fail:
5357 return NULL;
d14a1e28
RD
5358}
5359
5360
0085ce49
RD
5361SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5362 PyObject *resultobj = 0;
5363 wxBrush *arg1 = (wxBrush *) 0 ;
5364 void *argp1 = 0 ;
5365 int res1 = 0 ;
5366 PyObject *swig_obj[1] ;
5367
5368 if (!args) SWIG_fail;
5369 swig_obj[0] = args;
5370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5371 if (!SWIG_IsOK(res1)) {
5372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5373 }
5374 arg1 = reinterpret_cast< wxBrush * >(argp1);
5375 {
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 delete arg1;
d14a1e28 5378
0085ce49
RD
5379 wxPyEndAllowThreads(__tstate);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 }
5382 resultobj = SWIG_Py_Void();
5383 return resultobj;
5384fail:
5385 return NULL;
5386}
5387
5388
5389SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5390 PyObject *resultobj = 0;
5391 wxBrush *arg1 = (wxBrush *) 0 ;
5392 wxColour *arg2 = 0 ;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 wxColour temp2 ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "self",(char *) "col", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5406 }
5407 arg1 = reinterpret_cast< wxBrush * >(argp1);
5408 {
5409 arg2 = &temp2;
5410 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5411 }
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 (arg1)->SetColour((wxColour const &)*arg2);
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_Py_Void();
5419 return resultobj;
5420fail:
5421 return NULL;
5422}
5423
5424
5425SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5426 PyObject *resultobj = 0;
5427 wxBrush *arg1 = (wxBrush *) 0 ;
5428 int arg2 ;
5429 void *argp1 = 0 ;
5430 int res1 = 0 ;
5431 int val2 ;
5432 int ecode2 = 0 ;
5433 PyObject * obj0 = 0 ;
5434 PyObject * obj1 = 0 ;
5435 char * kwnames[] = {
5436 (char *) "self",(char *) "style", NULL
5437 };
5438
5439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5441 if (!SWIG_IsOK(res1)) {
5442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5443 }
5444 arg1 = reinterpret_cast< wxBrush * >(argp1);
5445 ecode2 = SWIG_AsVal_int(obj1, &val2);
5446 if (!SWIG_IsOK(ecode2)) {
5447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5448 }
5449 arg2 = static_cast< int >(val2);
5450 {
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 (arg1)->SetStyle(arg2);
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_Py_Void();
5457 return resultobj;
5458fail:
5459 return NULL;
5460}
5461
5462
5463SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj = 0;
5465 wxBrush *arg1 = (wxBrush *) 0 ;
5466 wxBitmap *arg2 = 0 ;
5467 void *argp1 = 0 ;
5468 int res1 = 0 ;
5469 void *argp2 = 0 ;
5470 int res2 = 0 ;
5471 PyObject * obj0 = 0 ;
5472 PyObject * obj1 = 0 ;
5473 char * kwnames[] = {
5474 (char *) "self",(char *) "stipple", NULL
5475 };
5476
5477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5479 if (!SWIG_IsOK(res1)) {
5480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5481 }
5482 arg1 = reinterpret_cast< wxBrush * >(argp1);
5483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5484 if (!SWIG_IsOK(res2)) {
5485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5486 }
5487 if (!argp2) {
5488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5489 }
5490 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 (arg1)->SetStipple((wxBitmap const &)*arg2);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_Py_Void();
5498 return resultobj;
5499fail:
5500 return NULL;
d14a1e28
RD
5501}
5502
5503
0085ce49
RD
5504SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5505 PyObject *resultobj = 0;
5506 wxBrush *arg1 = (wxBrush *) 0 ;
5507 wxColour result;
5508 void *argp1 = 0 ;
5509 int res1 = 0 ;
5510 PyObject *swig_obj[1] ;
5511
5512 if (!args) SWIG_fail;
5513 swig_obj[0] = args;
5514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5515 if (!SWIG_IsOK(res1)) {
5516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5517 }
5518 arg1 = reinterpret_cast< wxBrush * >(argp1);
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 result = ((wxBrush const *)arg1)->GetColour();
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5526 return resultobj;
5527fail:
5528 return NULL;
d14a1e28
RD
5529}
5530
5531
0085ce49
RD
5532SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5533 PyObject *resultobj = 0;
5534 wxBrush *arg1 = (wxBrush *) 0 ;
5535 int result;
5536 void *argp1 = 0 ;
5537 int res1 = 0 ;
5538 PyObject *swig_obj[1] ;
5539
5540 if (!args) SWIG_fail;
5541 swig_obj[0] = args;
5542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5543 if (!SWIG_IsOK(res1)) {
5544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5545 }
5546 arg1 = reinterpret_cast< wxBrush * >(argp1);
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = (int)((wxBrush const *)arg1)->GetStyle();
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 resultobj = SWIG_From_int(static_cast< int >(result));
5554 return resultobj;
5555fail:
5556 return NULL;
d14a1e28
RD
5557}
5558
5559
0085ce49
RD
5560SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5561 PyObject *resultobj = 0;
5562 wxBrush *arg1 = (wxBrush *) 0 ;
5563 wxBitmap *result = 0 ;
5564 void *argp1 = 0 ;
5565 int res1 = 0 ;
5566 PyObject *swig_obj[1] ;
5567
5568 if (!args) SWIG_fail;
5569 swig_obj[0] = args;
5570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5571 if (!SWIG_IsOK(res1)) {
5572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5573 }
5574 arg1 = reinterpret_cast< wxBrush * >(argp1);
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5582 return resultobj;
5583fail:
5584 return NULL;
d14a1e28
RD
5585}
5586
5587
0085ce49
RD
5588SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5589 PyObject *resultobj = 0;
5590 wxBrush *arg1 = (wxBrush *) 0 ;
5591 bool result;
5592 void *argp1 = 0 ;
5593 int res1 = 0 ;
5594 PyObject *swig_obj[1] ;
5595
5596 if (!args) SWIG_fail;
5597 swig_obj[0] = args;
5598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5599 if (!SWIG_IsOK(res1)) {
5600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5601 }
5602 arg1 = reinterpret_cast< wxBrush * >(argp1);
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (bool)((wxBrush const *)arg1)->IsHatch();
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 {
5610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5611 }
5612 return resultobj;
5613fail:
5614 return NULL;
f78cc896
RD
5615}
5616
5617
0085ce49
RD
5618SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5619 PyObject *resultobj = 0;
5620 wxBrush *arg1 = (wxBrush *) 0 ;
5621 bool result;
5622 void *argp1 = 0 ;
5623 int res1 = 0 ;
5624 PyObject *swig_obj[1] ;
5625
5626 if (!args) SWIG_fail;
5627 swig_obj[0] = args;
5628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5629 if (!SWIG_IsOK(res1)) {
5630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5631 }
5632 arg1 = reinterpret_cast< wxBrush * >(argp1);
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 result = (bool)(arg1)->Ok();
5636 wxPyEndAllowThreads(__tstate);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 }
5639 {
5640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5641 }
5642 return resultobj;
5643fail:
5644 return NULL;
d14a1e28
RD
5645}
5646
5647
0085ce49
RD
5648SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5649 PyObject *obj;
5650 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5651 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5652 return SWIG_Py_Void();
d14a1e28
RD
5653}
5654
0085ce49
RD
5655SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 return SWIG_Python_InitShadowInstance(args);
5657}
d14a1e28 5658
0085ce49
RD
5659SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj = 0;
5661 wxString *arg1 = 0 ;
5662 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5663 wxBitmap *result = 0 ;
5664 bool temp1 = false ;
5665 int val2 ;
5666 int ecode2 = 0 ;
5667 PyObject * obj0 = 0 ;
5668 PyObject * obj1 = 0 ;
5669 char * kwnames[] = {
5670 (char *) "name",(char *) "type", NULL
5671 };
5672
5673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5674 {
5675 arg1 = wxString_in_helper(obj0);
5676 if (arg1 == NULL) SWIG_fail;
5677 temp1 = true;
5678 }
5679 if (obj1) {
5680 ecode2 = SWIG_AsVal_int(obj1, &val2);
5681 if (!SWIG_IsOK(ecode2)) {
5682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5683 }
5684 arg2 = static_cast< wxBitmapType >(val2);
5685 }
5686 {
5687 if (!wxPyCheckForApp()) SWIG_fail;
5688 PyThreadState* __tstate = wxPyBeginAllowThreads();
5689 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5690 wxPyEndAllowThreads(__tstate);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 }
5693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5694 {
5695 if (temp1)
5696 delete arg1;
5697 }
5698 return resultobj;
5699fail:
5700 {
5701 if (temp1)
5702 delete arg1;
5703 }
5704 return NULL;
d14a1e28
RD
5705}
5706
5707
0085ce49
RD
5708SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5709 PyObject *resultobj = 0;
5710 wxBitmap *arg1 = (wxBitmap *) 0 ;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5722 {
0085ce49 5723 delete arg1;
66c033b4 5724
0085ce49
RD
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_Py_Void();
5728 return resultobj;
5729fail:
5730 return NULL;
5731}
5732
5733
5734SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj = 0;
5736 int arg1 ;
5737 int arg2 ;
5738 int arg3 = (int) -1 ;
5739 wxBitmap *result = 0 ;
5740 int val1 ;
5741 int ecode1 = 0 ;
5742 int val2 ;
5743 int ecode2 = 0 ;
5744 int val3 ;
5745 int ecode3 = 0 ;
5746 PyObject * obj0 = 0 ;
5747 PyObject * obj1 = 0 ;
5748 PyObject * obj2 = 0 ;
5749 char * kwnames[] = {
5750 (char *) "width",(char *) "height",(char *) "depth", NULL
5751 };
5752
5753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5754 ecode1 = SWIG_AsVal_int(obj0, &val1);
5755 if (!SWIG_IsOK(ecode1)) {
5756 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5757 }
5758 arg1 = static_cast< int >(val1);
5759 ecode2 = SWIG_AsVal_int(obj1, &val2);
5760 if (!SWIG_IsOK(ecode2)) {
5761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5762 }
5763 arg2 = static_cast< int >(val2);
5764 if (obj2) {
5765 ecode3 = SWIG_AsVal_int(obj2, &val3);
5766 if (!SWIG_IsOK(ecode3)) {
5767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5768 }
5769 arg3 = static_cast< int >(val3);
5770 }
5771 {
5772 if (!wxPyCheckForApp()) SWIG_fail;
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5779 return resultobj;
5780fail:
5781 return NULL;
5782}
5783
5784
5785SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj = 0;
5787 wxIcon *arg1 = 0 ;
5788 wxBitmap *result = 0 ;
5789 void *argp1 = 0 ;
5790 int res1 = 0 ;
5791 PyObject * obj0 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "icon", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5797 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5798 if (!SWIG_IsOK(res1)) {
5799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5800 }
5801 if (!argp1) {
5802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5803 }
5804 arg1 = reinterpret_cast< wxIcon * >(argp1);
5805 {
5806 if (!wxPyCheckForApp()) SWIG_fail;
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5809 wxPyEndAllowThreads(__tstate);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 }
5812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5813 return resultobj;
5814fail:
5815 return NULL;
5816}
5817
5818
5819SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj = 0;
5821 wxImage *arg1 = 0 ;
5822 int arg2 = (int) -1 ;
5823 wxBitmap *result = 0 ;
5824 void *argp1 = 0 ;
5825 int res1 = 0 ;
5826 int val2 ;
5827 int ecode2 = 0 ;
5828 PyObject * obj0 = 0 ;
5829 PyObject * obj1 = 0 ;
5830 char * kwnames[] = {
5831 (char *) "image",(char *) "depth", NULL
5832 };
5833
5834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5835 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5836 if (!SWIG_IsOK(res1)) {
5837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5838 }
5839 if (!argp1) {
5840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5841 }
5842 arg1 = reinterpret_cast< wxImage * >(argp1);
5843 if (obj1) {
5844 ecode2 = SWIG_AsVal_int(obj1, &val2);
5845 if (!SWIG_IsOK(ecode2)) {
5846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5847 }
5848 arg2 = static_cast< int >(val2);
5849 }
5850 {
5851 if (!wxPyCheckForApp()) SWIG_fail;
5852 PyThreadState* __tstate = wxPyBeginAllowThreads();
5853 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5858 return resultobj;
5859fail:
5860 return NULL;
66c033b4
RD
5861}
5862
5863
0085ce49
RD
5864SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj = 0;
5866 PyObject *arg1 = (PyObject *) 0 ;
5867 wxBitmap *result = 0 ;
5868 PyObject * obj0 = 0 ;
5869 char * kwnames[] = {
5870 (char *) "listOfStrings", NULL
5871 };
5872
5873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5874 arg1 = obj0;
5875 {
5876 if (!wxPyCheckForApp()) SWIG_fail;
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 result = (wxBitmap *)new_wxBitmap(arg1);
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5883 return resultobj;
5884fail:
5885 return NULL;
5886}
5887
5888
5889SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5890 PyObject *resultobj = 0;
5891 PyObject *arg1 = (PyObject *) 0 ;
5892 int arg2 ;
5893 int arg3 ;
5894 int arg4 = (int) 1 ;
5895 wxBitmap *result = 0 ;
5896 int val2 ;
5897 int ecode2 = 0 ;
5898 int val3 ;
5899 int ecode3 = 0 ;
5900 int val4 ;
5901 int ecode4 = 0 ;
5902 PyObject * obj0 = 0 ;
5903 PyObject * obj1 = 0 ;
5904 PyObject * obj2 = 0 ;
5905 PyObject * obj3 = 0 ;
5906 char * kwnames[] = {
5907 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5908 };
5909
5910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5911 arg1 = obj0;
5912 ecode2 = SWIG_AsVal_int(obj1, &val2);
5913 if (!SWIG_IsOK(ecode2)) {
5914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5915 }
5916 arg2 = static_cast< int >(val2);
5917 ecode3 = SWIG_AsVal_int(obj2, &val3);
5918 if (!SWIG_IsOK(ecode3)) {
5919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5920 }
5921 arg3 = static_cast< int >(val3);
5922 if (obj3) {
5923 ecode4 = SWIG_AsVal_int(obj3, &val4);
5924 if (!SWIG_IsOK(ecode4)) {
5925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5926 }
5927 arg4 = static_cast< int >(val4);
5928 }
5929 {
5930 if (!wxPyCheckForApp()) SWIG_fail;
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5937 return resultobj;
5938fail:
5939 return NULL;
d14a1e28
RD
5940}
5941
5942
0085ce49
RD
5943SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5944 PyObject *resultobj = 0;
5945 wxBitmap *arg1 = (wxBitmap *) 0 ;
5946 bool result;
5947 void *argp1 = 0 ;
5948 int res1 = 0 ;
5949 PyObject *swig_obj[1] ;
5950
5951 if (!args) SWIG_fail;
5952 swig_obj[0] = args;
5953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5954 if (!SWIG_IsOK(res1)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5956 }
5957 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5958 {
0085ce49 5959 result = (bool)(arg1)->Ok();
0085ce49
RD
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 {
5963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5964 }
5965 return resultobj;
5966fail:
5967 return NULL;
d14a1e28
RD
5968}
5969
5970
0085ce49
RD
5971SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5972 PyObject *resultobj = 0;
5973 wxBitmap *arg1 = (wxBitmap *) 0 ;
5974 int result;
5975 void *argp1 = 0 ;
5976 int res1 = 0 ;
5977 PyObject *swig_obj[1] ;
5978
5979 if (!args) SWIG_fail;
5980 swig_obj[0] = args;
5981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5984 }
5985 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5986 {
0085ce49 5987 result = (int)(arg1)->GetWidth();
0085ce49
RD
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 resultobj = SWIG_From_int(static_cast< int >(result));
5991 return resultobj;
5992fail:
5993 return NULL;
d14a1e28
RD
5994}
5995
5996
0085ce49
RD
5997SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5998 PyObject *resultobj = 0;
5999 wxBitmap *arg1 = (wxBitmap *) 0 ;
6000 int result;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 PyObject *swig_obj[1] ;
6004
6005 if (!args) SWIG_fail;
6006 swig_obj[0] = args;
6007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6012 {
0085ce49 6013 result = (int)(arg1)->GetHeight();
0085ce49
RD
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_From_int(static_cast< int >(result));
6017 return resultobj;
6018fail:
6019 return NULL;
d14a1e28
RD
6020}
6021
6022
0085ce49
RD
6023SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6024 PyObject *resultobj = 0;
6025 wxBitmap *arg1 = (wxBitmap *) 0 ;
6026 int result;
6027 void *argp1 = 0 ;
6028 int res1 = 0 ;
6029 PyObject *swig_obj[1] ;
6030
6031 if (!args) SWIG_fail;
6032 swig_obj[0] = args;
6033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6036 }
6037 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6038 {
0085ce49 6039 result = (int)(arg1)->GetDepth();
0085ce49
RD
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_From_int(static_cast< int >(result));
6043 return resultobj;
6044fail:
6045 return NULL;
d14a1e28
RD
6046}
6047
6048
0085ce49
RD
6049SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050 PyObject *resultobj = 0;
6051 wxBitmap *arg1 = (wxBitmap *) 0 ;
6052 wxSize result;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 PyObject *swig_obj[1] ;
6056
6057 if (!args) SWIG_fail;
6058 swig_obj[0] = args;
6059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6060 if (!SWIG_IsOK(res1)) {
6061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6062 }
6063 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6064 {
0085ce49 6065 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6069 return resultobj;
6070fail:
6071 return NULL;
d14a1e28
RD
6072}
6073
6074
0085ce49
RD
6075SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6076 PyObject *resultobj = 0;
6077 wxBitmap *arg1 = (wxBitmap *) 0 ;
6078 SwigValueWrapper<wxImage > result;
6079 void *argp1 = 0 ;
6080 int res1 = 0 ;
6081 PyObject *swig_obj[1] ;
6082
6083 if (!args) SWIG_fail;
6084 swig_obj[0] = args;
6085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6086 if (!SWIG_IsOK(res1)) {
6087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6088 }
6089 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6090 {
0085ce49 6091 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6095 return resultobj;
6096fail:
6097 return NULL;
d14a1e28
RD
6098}
6099
6100
0085ce49
RD
6101SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6102 PyObject *resultobj = 0;
6103 wxBitmap *arg1 = (wxBitmap *) 0 ;
6104 wxMask *result = 0 ;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6114 }
6115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6116 {
0085ce49 6117 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6121 return resultobj;
6122fail:
6123 return NULL;
6124}
6125
6126
6127SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj = 0;
6129 wxBitmap *arg1 = (wxBitmap *) 0 ;
6130 wxMask *arg2 = (wxMask *) 0 ;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 int res2 = 0 ;
6134 PyObject * obj0 = 0 ;
6135 PyObject * obj1 = 0 ;
6136 char * kwnames[] = {
6137 (char *) "self",(char *) "mask", NULL
6138 };
6139
6140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6142 if (!SWIG_IsOK(res1)) {
6143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6144 }
6145 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6146 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6147 if (!SWIG_IsOK(res2)) {
6148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6149 }
6150 {
0085ce49 6151 (arg1)->SetMask(arg2);
0085ce49
RD
6152 if (PyErr_Occurred()) SWIG_fail;
6153 }
6154 resultobj = SWIG_Py_Void();
6155 return resultobj;
6156fail:
6157 return NULL;
6158}
6159
6160
6161SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6162 PyObject *resultobj = 0;
6163 wxBitmap *arg1 = (wxBitmap *) 0 ;
6164 wxColour *arg2 = 0 ;
6165 void *argp1 = 0 ;
6166 int res1 = 0 ;
6167 wxColour temp2 ;
6168 PyObject * obj0 = 0 ;
6169 PyObject * obj1 = 0 ;
6170 char * kwnames[] = {
6171 (char *) "self",(char *) "colour", NULL
6172 };
6173
6174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6178 }
6179 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6180 {
6181 arg2 = &temp2;
6182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6183 }
6184 {
0085ce49 6185 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_Py_Void();
6189 return resultobj;
6190fail:
6191 return NULL;
6192}
6193
6194
6195SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj = 0;
6197 wxBitmap *arg1 = (wxBitmap *) 0 ;
6198 wxRect *arg2 = 0 ;
6199 SwigValueWrapper<wxBitmap > result;
6200 void *argp1 = 0 ;
6201 int res1 = 0 ;
6202 wxRect temp2 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 char * kwnames[] = {
6206 (char *) "self",(char *) "rect", NULL
6207 };
6208
6209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6211 if (!SWIG_IsOK(res1)) {
6212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6213 }
6214 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6215 {
6216 arg2 = &temp2;
6217 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6218 }
6219 {
0085ce49 6220 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6224 return resultobj;
6225fail:
6226 return NULL;
6227}
6228
6229
6230SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj = 0;
6232 wxBitmap *arg1 = (wxBitmap *) 0 ;
6233 wxString *arg2 = 0 ;
6234 wxBitmapType arg3 ;
6235 wxPalette *arg4 = (wxPalette *) NULL ;
6236 bool result;
6237 void *argp1 = 0 ;
6238 int res1 = 0 ;
6239 bool temp2 = false ;
6240 int val3 ;
6241 int ecode3 = 0 ;
6242 void *argp4 = 0 ;
6243 int res4 = 0 ;
6244 PyObject * obj0 = 0 ;
6245 PyObject * obj1 = 0 ;
6246 PyObject * obj2 = 0 ;
6247 PyObject * obj3 = 0 ;
6248 char * kwnames[] = {
6249 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6250 };
6251
6252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 arg2 = wxString_in_helper(obj1);
6260 if (arg2 == NULL) SWIG_fail;
6261 temp2 = true;
6262 }
6263 ecode3 = SWIG_AsVal_int(obj2, &val3);
6264 if (!SWIG_IsOK(ecode3)) {
6265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6266 }
6267 arg3 = static_cast< wxBitmapType >(val3);
6268 if (obj3) {
6269 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6270 if (!SWIG_IsOK(res4)) {
6271 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6272 }
0085ce49
RD
6273 arg4 = reinterpret_cast< wxPalette * >(argp4);
6274 }
6275 {
0085ce49 6276 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 {
6280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6281 }
6282 {
6283 if (temp2)
6284 delete arg2;
6285 }
6286 return resultobj;
6287fail:
6288 {
6289 if (temp2)
6290 delete arg2;
6291 }
6292 return NULL;
6293}
6294
6295
6296SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj = 0;
6298 wxBitmap *arg1 = (wxBitmap *) 0 ;
6299 wxString *arg2 = 0 ;
6300 wxBitmapType arg3 ;
6301 bool result;
6302 void *argp1 = 0 ;
6303 int res1 = 0 ;
6304 bool temp2 = false ;
6305 int val3 ;
6306 int ecode3 = 0 ;
6307 PyObject * obj0 = 0 ;
6308 PyObject * obj1 = 0 ;
6309 PyObject * obj2 = 0 ;
6310 char * kwnames[] = {
6311 (char *) "self",(char *) "name",(char *) "type", NULL
6312 };
6313
6314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6316 if (!SWIG_IsOK(res1)) {
6317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6318 }
6319 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6320 {
6321 arg2 = wxString_in_helper(obj1);
6322 if (arg2 == NULL) SWIG_fail;
6323 temp2 = true;
6324 }
6325 ecode3 = SWIG_AsVal_int(obj2, &val3);
6326 if (!SWIG_IsOK(ecode3)) {
6327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6328 }
6329 arg3 = static_cast< wxBitmapType >(val3);
6330 {
0085ce49 6331 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 {
6335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6336 }
6337 {
6338 if (temp2)
6339 delete arg2;
6340 }
6341 return resultobj;
6342fail:
6343 {
6344 if (temp2)
6345 delete arg2;
6346 }
6347 return NULL;
d04418a7
RD
6348}
6349
6350
0085ce49
RD
6351SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6352 PyObject *resultobj = 0;
6353 wxBitmap *arg1 = (wxBitmap *) 0 ;
6354 wxPalette *result = 0 ;
6355 void *argp1 = 0 ;
6356 int res1 = 0 ;
6357 PyObject *swig_obj[1] ;
6358
6359 if (!args) SWIG_fail;
6360 swig_obj[0] = args;
6361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6362 if (!SWIG_IsOK(res1)) {
6363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6364 }
6365 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6366 {
0085ce49 6367 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6371 return resultobj;
6372fail:
6373 return NULL;
6374}
6375
6376
6377SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj = 0;
6379 wxBitmap *arg1 = (wxBitmap *) 0 ;
6380 wxIcon *arg2 = 0 ;
6381 bool result;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 void *argp2 = 0 ;
6385 int res2 = 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6388 char * kwnames[] = {
6389 (char *) "self",(char *) "icon", NULL
6390 };
6391
6392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6394 if (!SWIG_IsOK(res1)) {
6395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6396 }
6397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6399 if (!SWIG_IsOK(res2)) {
6400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6401 }
6402 if (!argp2) {
6403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6404 }
6405 arg2 = reinterpret_cast< wxIcon * >(argp2);
6406 {
0085ce49 6407 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 {
6411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6412 }
6413 return resultobj;
6414fail:
6415 return NULL;
6416}
6417
6418
6419SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 int arg2 ;
6423 void *argp1 = 0 ;
6424 int res1 = 0 ;
6425 int val2 ;
6426 int ecode2 = 0 ;
6427 PyObject * obj0 = 0 ;
6428 PyObject * obj1 = 0 ;
6429 char * kwnames[] = {
6430 (char *) "self",(char *) "height", NULL
6431 };
6432
6433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6435 if (!SWIG_IsOK(res1)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6437 }
6438 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6439 ecode2 = SWIG_AsVal_int(obj1, &val2);
6440 if (!SWIG_IsOK(ecode2)) {
6441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6442 }
6443 arg2 = static_cast< int >(val2);
6444 {
0085ce49 6445 (arg1)->SetHeight(arg2);
0085ce49
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_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 int arg2 ;
6459 void *argp1 = 0 ;
6460 int res1 = 0 ;
6461 int val2 ;
6462 int ecode2 = 0 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char * kwnames[] = {
6466 (char *) "self",(char *) "width", NULL
6467 };
6468
6469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",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_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6473 }
6474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6475 ecode2 = SWIG_AsVal_int(obj1, &val2);
6476 if (!SWIG_IsOK(ecode2)) {
6477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6478 }
6479 arg2 = static_cast< int >(val2);
6480 {
0085ce49 6481 (arg1)->SetWidth(arg2);
0085ce49
RD
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_Py_Void();
6485 return resultobj;
6486fail:
6487 return NULL;
6488}
6489
6490
6491SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj = 0;
6493 wxBitmap *arg1 = (wxBitmap *) 0 ;
6494 int arg2 ;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 int val2 ;
6498 int ecode2 = 0 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 char * kwnames[] = {
6502 (char *) "self",(char *) "depth", NULL
6503 };
6504
6505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 ecode2 = SWIG_AsVal_int(obj1, &val2);
6512 if (!SWIG_IsOK(ecode2)) {
6513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6514 }
6515 arg2 = static_cast< int >(val2);
6516 {
0085ce49 6517 (arg1)->SetDepth(arg2);
0085ce49
RD
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522fail:
6523 return NULL;
6524}
6525
6526
6527SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj = 0;
6529 wxBitmap *arg1 = (wxBitmap *) 0 ;
6530 wxSize *arg2 = 0 ;
6531 void *argp1 = 0 ;
6532 int res1 = 0 ;
6533 wxSize temp2 ;
6534 PyObject * obj0 = 0 ;
6535 PyObject * obj1 = 0 ;
6536 char * kwnames[] = {
6537 (char *) "self",(char *) "size", NULL
6538 };
6539
6540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6542 if (!SWIG_IsOK(res1)) {
6543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6544 }
6545 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6546 {
6547 arg2 = &temp2;
6548 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6549 }
6550 {
0085ce49 6551 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_Py_Void();
6555 return resultobj;
6556fail:
6557 return NULL;
6558}
6559
6560
6561SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 wxBitmap *arg2 = (wxBitmap *) 0 ;
6565 bool result;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 void *argp2 = 0 ;
6569 int res2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "other", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6583 if (!SWIG_IsOK(res2)) {
6584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6585 }
6586 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6587 {
0085ce49 6588 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 {
fc46b7f3
RD
6592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6593 }
6594 return resultobj;
6595fail:
6596 return NULL;
6597}
6598
6599
6600SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj = 0;
6602 wxBitmap *arg1 = (wxBitmap *) 0 ;
6603 wxBitmap *arg2 = (wxBitmap *) 0 ;
6604 bool result;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 void *argp2 = 0 ;
6608 int res2 = 0 ;
6609 PyObject * obj0 = 0 ;
6610 PyObject * obj1 = 0 ;
6611 char * kwnames[] = {
6612 (char *) "self",(char *) "other", NULL
6613 };
6614
6615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6617 if (!SWIG_IsOK(res1)) {
6618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6619 }
6620 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6622 if (!SWIG_IsOK(res2)) {
6623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6624 }
6625 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6626 {
6627 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 {
6631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6632 }
6633 return resultobj;
6634fail:
6635 return NULL;
6636}
6637
6638
6639SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6640 PyObject *obj;
6641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6642 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6643 return SWIG_Py_Void();
6644}
6645
6646SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6647 return SWIG_Python_InitShadowInstance(args);
6648}
6649
6650SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj = 0;
6652 int arg1 ;
6653 int arg2 ;
6654 buffer arg3 ;
6655 int arg4 ;
6656 buffer arg5 ;
6657 int arg6 ;
6658 wxBitmap *result = 0 ;
6659 int val1 ;
6660 int ecode1 = 0 ;
6661 int val2 ;
6662 int ecode2 = 0 ;
c79fdf86
RD
6663 Py_ssize_t temp3 ;
6664 Py_ssize_t temp5 ;
fc46b7f3
RD
6665 PyObject * obj0 = 0 ;
6666 PyObject * obj1 = 0 ;
6667 PyObject * obj2 = 0 ;
6668 PyObject * obj3 = 0 ;
6669 char * kwnames[] = {
6670 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6671 };
6672
6673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6674 ecode1 = SWIG_AsVal_int(obj0, &val1);
6675 if (!SWIG_IsOK(ecode1)) {
6676 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6677 }
6678 arg1 = static_cast< int >(val1);
6679 ecode2 = SWIG_AsVal_int(obj1, &val2);
6680 if (!SWIG_IsOK(ecode2)) {
6681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6682 }
6683 arg2 = static_cast< int >(val2);
6684 {
c79fdf86
RD
6685 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6686 arg4 = (int)temp3;
fc46b7f3
RD
6687 }
6688 {
6689 if (obj3 != Py_None) {
c79fdf86
RD
6690 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6691 arg6 = (int)temp5;
fc46b7f3
RD
6692 }
6693 }
6694 {
6695 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6699 return resultobj;
6700fail:
6701 return NULL;
6702}
6703
6704
6705SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj = 0;
6707 int arg1 ;
6708 int arg2 ;
6709 buffer arg3 ;
6710 int arg4 ;
6711 wxBitmap *result = 0 ;
6712 int val1 ;
6713 int ecode1 = 0 ;
6714 int val2 ;
6715 int ecode2 = 0 ;
c79fdf86 6716 Py_ssize_t temp3 ;
fc46b7f3
RD
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 PyObject * obj2 = 0 ;
6720 char * kwnames[] = {
6721 (char *) "width",(char *) "height",(char *) "data", NULL
6722 };
6723
6724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6725 ecode1 = SWIG_AsVal_int(obj0, &val1);
6726 if (!SWIG_IsOK(ecode1)) {
6727 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6728 }
6729 arg1 = static_cast< int >(val1);
6730 ecode2 = SWIG_AsVal_int(obj1, &val2);
6731 if (!SWIG_IsOK(ecode2)) {
6732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6733 }
6734 arg2 = static_cast< int >(val2);
6735 {
c79fdf86
RD
6736 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6737 arg4 = (int)temp3;
fc46b7f3
RD
6738 }
6739 {
6740 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6744 return resultobj;
6745fail:
6746 return NULL;
6747}
6748
6749
6750SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6751 PyObject *resultobj = 0;
6752 int arg1 ;
6753 int arg2 ;
6754 buffer arg3 ;
6755 int arg4 ;
6756 wxBitmap *result = 0 ;
6757 int val1 ;
6758 int ecode1 = 0 ;
6759 int val2 ;
6760 int ecode2 = 0 ;
c79fdf86 6761 Py_ssize_t temp3 ;
fc46b7f3
RD
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 PyObject * obj2 = 0 ;
6765 char * kwnames[] = {
6766 (char *) "width",(char *) "height",(char *) "data", NULL
6767 };
6768
6769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6770 ecode1 = SWIG_AsVal_int(obj0, &val1);
6771 if (!SWIG_IsOK(ecode1)) {
6772 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6773 }
6774 arg1 = static_cast< int >(val1);
6775 ecode2 = SWIG_AsVal_int(obj1, &val2);
6776 if (!SWIG_IsOK(ecode2)) {
6777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6778 }
6779 arg2 = static_cast< int >(val2);
6780 {
c79fdf86
RD
6781 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6782 arg4 = (int)temp3;
fc46b7f3
RD
6783 }
6784 {
6785 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6789 return resultobj;
6790fail:
6791 return NULL;
6792}
6793
6794
6795SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6796 PyObject *resultobj = 0;
6797 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6798 wxPoint result;
6799 void *argp1 = 0 ;
6800 int res1 = 0 ;
6801 PyObject *swig_obj[1] ;
6802
6803 if (!args) SWIG_fail;
6804 swig_obj[0] = args;
6805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6806 if (!SWIG_IsOK(res1)) {
6807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6808 }
6809 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6810 {
6811 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6815 return resultobj;
6816fail:
6817 return NULL;
6818}
6819
6820
6821SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6822 PyObject *resultobj = 0;
6823 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6824 int result;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 PyObject *swig_obj[1] ;
6828
6829 if (!args) SWIG_fail;
6830 swig_obj[0] = args;
6831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6832 if (!SWIG_IsOK(res1)) {
6833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6834 }
6835 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6836 {
6837 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 resultobj = SWIG_From_int(static_cast< int >(result));
6841 return resultobj;
6842fail:
6843 return NULL;
6844}
6845
6846
6847SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6848 PyObject *resultobj = 0;
6849 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6850 int result;
6851 void *argp1 = 0 ;
6852 int res1 = 0 ;
6853 PyObject *swig_obj[1] ;
6854
6855 if (!args) SWIG_fail;
6856 swig_obj[0] = args;
6857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6858 if (!SWIG_IsOK(res1)) {
6859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6860 }
6861 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6862 {
6863 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 resultobj = SWIG_From_int(static_cast< int >(result));
6867 return resultobj;
6868fail:
6869 return NULL;
6870}
6871
6872
6873SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6874 PyObject *resultobj = 0;
6875 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6876 wxSize result;
6877 void *argp1 = 0 ;
6878 int res1 = 0 ;
6879 PyObject *swig_obj[1] ;
6880
6881 if (!args) SWIG_fail;
6882 swig_obj[0] = args;
6883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6884 if (!SWIG_IsOK(res1)) {
6885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6886 }
6887 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6888 {
6889 result = ((wxPixelDataBase const *)arg1)->GetSize();
6890 if (PyErr_Occurred()) SWIG_fail;
6891 }
6892 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6893 return resultobj;
6894fail:
6895 return NULL;
6896}
6897
6898
6899SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6900 PyObject *resultobj = 0;
6901 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6902 int result;
6903 void *argp1 = 0 ;
6904 int res1 = 0 ;
6905 PyObject *swig_obj[1] ;
6906
6907 if (!args) SWIG_fail;
6908 swig_obj[0] = args;
6909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6910 if (!SWIG_IsOK(res1)) {
6911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6912 }
6913 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6914 {
6915 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 resultobj = SWIG_From_int(static_cast< int >(result));
6919 return resultobj;
6920fail:
6921 return NULL;
6922}
6923
6924
6925SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6926 PyObject *obj;
6927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6928 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6929 return SWIG_Py_Void();
6930}
6931
6932SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6933 PyObject *resultobj = 0;
6934 wxBitmap *arg1 = 0 ;
6935 wxNativePixelData *result = 0 ;
6936 void *argp1 = 0 ;
6937 int res1 = 0 ;
6938
6939 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6941 if (!SWIG_IsOK(res1)) {
6942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6943 }
6944 if (!argp1) {
6945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6946 }
6947 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6948 {
6949 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6950 if (PyErr_Occurred()) SWIG_fail;
6951 }
6952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6953 return resultobj;
6954fail:
6955 return NULL;
6956}
6957
6958
6959SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6960 PyObject *resultobj = 0;
6961 wxBitmap *arg1 = 0 ;
6962 wxRect *arg2 = 0 ;
6963 wxNativePixelData *result = 0 ;
6964 void *argp1 = 0 ;
6965 int res1 = 0 ;
6966 wxRect temp2 ;
6967
6968 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6970 if (!SWIG_IsOK(res1)) {
6971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6972 }
6973 if (!argp1) {
6974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6975 }
6976 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6977 {
6978 arg2 = &temp2;
6979 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
6980 }
6981 {
6982 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6986 return resultobj;
6987fail:
6988 return NULL;
6989}
6990
6991
6992SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6993 PyObject *resultobj = 0;
6994 wxBitmap *arg1 = 0 ;
6995 wxPoint *arg2 = 0 ;
6996 wxSize *arg3 = 0 ;
6997 wxNativePixelData *result = 0 ;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 wxPoint temp2 ;
7001 wxSize temp3 ;
7002
7003 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7005 if (!SWIG_IsOK(res1)) {
7006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7007 }
7008 if (!argp1) {
7009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7010 }
7011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7012 {
7013 arg2 = &temp2;
7014 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7015 }
7016 {
7017 arg3 = &temp3;
7018 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7019 }
7020 {
7021 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7025 return resultobj;
7026fail:
7027 return NULL;
7028}
7029
7030
7031SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7032 int argc;
7033 PyObject *argv[4];
7034
7035 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7036 --argc;
7037 if (argc == 1) {
7038 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7039 }
7040 if (argc == 2) {
7041 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7042 }
7043 if (argc == 3) {
7044 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7045 }
7046
7047fail:
7048 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7049 return NULL;
7050}
7051
7052
7053SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7054 PyObject *resultobj = 0;
7055 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7056 void *argp1 = 0 ;
7057 int res1 = 0 ;
7058 PyObject *swig_obj[1] ;
7059
7060 if (!args) SWIG_fail;
7061 swig_obj[0] = args;
7062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7063 if (!SWIG_IsOK(res1)) {
7064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7065 }
7066 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7067 {
7068 delete arg1;
7069
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_Py_Void();
7073 return resultobj;
7074fail:
7075 return NULL;
7076}
7077
7078
7079SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7080 PyObject *resultobj = 0;
7081 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7082 wxNativePixelData_Accessor result;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085 PyObject *swig_obj[1] ;
7086
7087 if (!args) SWIG_fail;
7088 swig_obj[0] = args;
7089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7092 }
7093 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7094 {
7095 result = ((wxNativePixelData const *)arg1)->GetPixels();
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7099 return resultobj;
7100fail:
7101 return NULL;
7102}
7103
7104
7105SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7106 PyObject *resultobj = 0;
7107 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7108 void *argp1 = 0 ;
7109 int res1 = 0 ;
7110 PyObject *swig_obj[1] ;
7111
7112 if (!args) SWIG_fail;
7113 swig_obj[0] = args;
7114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7115 if (!SWIG_IsOK(res1)) {
7116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7117 }
7118 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7119 {
7120 (arg1)->UseAlpha();
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_Py_Void();
7124 return resultobj;
7125fail:
7126 return NULL;
7127}
7128
7129
7130SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7131 PyObject *resultobj = 0;
7132 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7133 bool result;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 PyObject *swig_obj[1] ;
7137
7138 if (!args) SWIG_fail;
7139 swig_obj[0] = args;
7140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7141 if (!SWIG_IsOK(res1)) {
7142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7143 }
7144 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7145 {
7146 result = (bool)wxNativePixelData___nonzero__(arg1);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 {
7150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7151 }
7152 return resultobj;
7153fail:
7154 return NULL;
7155}
7156
7157
7158SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7159 PyObject *obj;
7160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7161 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7162 return SWIG_Py_Void();
7163}
7164
7165SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7166 return SWIG_Python_InitShadowInstance(args);
7167}
7168
7169SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7170 PyObject *resultobj = 0;
7171 wxNativePixelData *arg1 = 0 ;
7172 wxNativePixelData_Accessor *result = 0 ;
7173 void *argp1 = 0 ;
7174 int res1 = 0 ;
7175
7176 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7178 if (!SWIG_IsOK(res1)) {
7179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7180 }
7181 if (!argp1) {
7182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7183 }
7184 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7185 {
7186 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7190 return resultobj;
7191fail:
7192 return NULL;
7193}
7194
7195
7196SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7197 PyObject *resultobj = 0;
7198 wxBitmap *arg1 = 0 ;
7199 wxNativePixelData *arg2 = 0 ;
7200 wxNativePixelData_Accessor *result = 0 ;
7201 void *argp1 = 0 ;
7202 int res1 = 0 ;
7203 void *argp2 = 0 ;
7204 int res2 = 0 ;
7205
7206 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7208 if (!SWIG_IsOK(res1)) {
7209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7210 }
7211 if (!argp1) {
7212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7213 }
7214 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7215 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7216 if (!SWIG_IsOK(res2)) {
7217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7218 }
7219 if (!argp2) {
7220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7221 }
7222 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7223 {
7224 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7228 return resultobj;
7229fail:
7230 return NULL;
7231}
7232
7233
7234SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7235 PyObject *resultobj = 0;
7236 wxNativePixelData_Accessor *result = 0 ;
7237
7238 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7239 {
7240 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7244 return resultobj;
7245fail:
7246 return NULL;
7247}
7248
7249
7250SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7251 int argc;
7252 PyObject *argv[3];
7253
7254 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7255 --argc;
7256 if (argc == 0) {
7257 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7258 }
7259 if (argc == 1) {
7260 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7261 }
7262 if (argc == 2) {
7263 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7264 }
7265
7266fail:
7267 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7268 return NULL;
7269}
7270
7271
7272SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7273 PyObject *resultobj = 0;
7274 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7275 void *argp1 = 0 ;
7276 int res1 = 0 ;
7277 PyObject *swig_obj[1] ;
7278
7279 if (!args) SWIG_fail;
7280 swig_obj[0] = args;
7281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7282 if (!SWIG_IsOK(res1)) {
7283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7284 }
7285 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7286 {
7287 delete arg1;
7288
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 resultobj = SWIG_Py_Void();
7292 return resultobj;
7293fail:
7294 return NULL;
7295}
7296
7297
7298SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7299 PyObject *resultobj = 0;
7300 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7301 wxNativePixelData *arg2 = 0 ;
7302 void *argp1 = 0 ;
7303 int res1 = 0 ;
7304 void *argp2 = 0 ;
7305 int res2 = 0 ;
7306 PyObject * obj0 = 0 ;
7307 PyObject * obj1 = 0 ;
7308 char * kwnames[] = {
7309 (char *) "self",(char *) "data", NULL
7310 };
7311
7312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7314 if (!SWIG_IsOK(res1)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7316 }
7317 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7319 if (!SWIG_IsOK(res2)) {
7320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7321 }
7322 if (!argp2) {
7323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7324 }
7325 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7326 {
7327 (arg1)->Reset((wxNativePixelData const &)*arg2);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_Py_Void();
7331 return resultobj;
7332fail:
7333 return NULL;
7334}
7335
7336
7337SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7338 PyObject *resultobj = 0;
7339 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7340 bool result;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 PyObject *swig_obj[1] ;
7344
7345 if (!args) SWIG_fail;
7346 swig_obj[0] = args;
7347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7348 if (!SWIG_IsOK(res1)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7350 }
7351 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7352 {
7353 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 {
7357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7358 }
7359 return resultobj;
7360fail:
7361 return NULL;
7362}
7363
7364
7365SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7366 PyObject *resultobj = 0;
7367 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370 PyObject *swig_obj[1] ;
7371
7372 if (!args) SWIG_fail;
7373 swig_obj[0] = args;
7374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7375 if (!SWIG_IsOK(res1)) {
7376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7377 }
7378 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7379 {
7380 wxNativePixelData_Accessor_nextPixel(arg1);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = SWIG_Py_Void();
7384 return resultobj;
7385fail:
7386 return NULL;
7387}
7388
7389
7390SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7391 PyObject *resultobj = 0;
7392 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7393 wxNativePixelData *arg2 = 0 ;
7394 int arg3 ;
7395 int arg4 ;
7396 void *argp1 = 0 ;
7397 int res1 = 0 ;
7398 void *argp2 = 0 ;
7399 int res2 = 0 ;
7400 int val3 ;
7401 int ecode3 = 0 ;
7402 int val4 ;
7403 int ecode4 = 0 ;
7404 PyObject * obj0 = 0 ;
7405 PyObject * obj1 = 0 ;
7406 PyObject * obj2 = 0 ;
7407 PyObject * obj3 = 0 ;
7408 char * kwnames[] = {
7409 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7410 };
7411
7412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7414 if (!SWIG_IsOK(res1)) {
7415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7416 }
7417 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7419 if (!SWIG_IsOK(res2)) {
7420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7421 }
7422 if (!argp2) {
7423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7424 }
7425 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7426 ecode3 = SWIG_AsVal_int(obj2, &val3);
7427 if (!SWIG_IsOK(ecode3)) {
7428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7429 }
7430 arg3 = static_cast< int >(val3);
7431 ecode4 = SWIG_AsVal_int(obj3, &val4);
7432 if (!SWIG_IsOK(ecode4)) {
7433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7434 }
7435 arg4 = static_cast< int >(val4);
7436 {
7437 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_Py_Void();
7441 return resultobj;
7442fail:
7443 return NULL;
7444}
7445
7446
7447SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj = 0;
7449 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7450 wxNativePixelData *arg2 = 0 ;
7451 int arg3 ;
7452 void *argp1 = 0 ;
7453 int res1 = 0 ;
7454 void *argp2 = 0 ;
7455 int res2 = 0 ;
7456 int val3 ;
7457 int ecode3 = 0 ;
7458 PyObject * obj0 = 0 ;
7459 PyObject * obj1 = 0 ;
7460 PyObject * obj2 = 0 ;
7461 char * kwnames[] = {
7462 (char *) "self",(char *) "data",(char *) "x", NULL
7463 };
7464
7465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7467 if (!SWIG_IsOK(res1)) {
7468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7469 }
7470 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7472 if (!SWIG_IsOK(res2)) {
7473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7474 }
7475 if (!argp2) {
7476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7477 }
7478 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7479 ecode3 = SWIG_AsVal_int(obj2, &val3);
7480 if (!SWIG_IsOK(ecode3)) {
7481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7482 }
7483 arg3 = static_cast< int >(val3);
7484 {
7485 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 resultobj = SWIG_Py_Void();
7489 return resultobj;
7490fail:
7491 return NULL;
7492}
7493
7494
7495SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj = 0;
7497 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7498 wxNativePixelData *arg2 = 0 ;
7499 int arg3 ;
7500 void *argp1 = 0 ;
7501 int res1 = 0 ;
7502 void *argp2 = 0 ;
7503 int res2 = 0 ;
7504 int val3 ;
7505 int ecode3 = 0 ;
7506 PyObject * obj0 = 0 ;
7507 PyObject * obj1 = 0 ;
7508 PyObject * obj2 = 0 ;
7509 char * kwnames[] = {
7510 (char *) "self",(char *) "data",(char *) "y", NULL
7511 };
7512
7513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7515 if (!SWIG_IsOK(res1)) {
7516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7517 }
7518 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7520 if (!SWIG_IsOK(res2)) {
7521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7522 }
7523 if (!argp2) {
7524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7525 }
7526 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7527 ecode3 = SWIG_AsVal_int(obj2, &val3);
7528 if (!SWIG_IsOK(ecode3)) {
7529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7530 }
7531 arg3 = static_cast< int >(val3);
7532 {
7533 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_Py_Void();
7537 return resultobj;
7538fail:
7539 return NULL;
7540}
7541
7542
7543SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj = 0;
7545 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7546 wxNativePixelData *arg2 = 0 ;
7547 int arg3 ;
7548 int arg4 ;
7549 void *argp1 = 0 ;
7550 int res1 = 0 ;
7551 void *argp2 = 0 ;
7552 int res2 = 0 ;
7553 int val3 ;
7554 int ecode3 = 0 ;
7555 int val4 ;
7556 int ecode4 = 0 ;
7557 PyObject * obj0 = 0 ;
7558 PyObject * obj1 = 0 ;
7559 PyObject * obj2 = 0 ;
7560 PyObject * obj3 = 0 ;
7561 char * kwnames[] = {
7562 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7563 };
7564
7565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7567 if (!SWIG_IsOK(res1)) {
7568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7569 }
7570 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7572 if (!SWIG_IsOK(res2)) {
7573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7574 }
7575 if (!argp2) {
7576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7577 }
7578 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7579 ecode3 = SWIG_AsVal_int(obj2, &val3);
7580 if (!SWIG_IsOK(ecode3)) {
7581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7582 }
7583 arg3 = static_cast< int >(val3);
7584 ecode4 = SWIG_AsVal_int(obj3, &val4);
7585 if (!SWIG_IsOK(ecode4)) {
7586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7587 }
7588 arg4 = static_cast< int >(val4);
7589 {
7590 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 resultobj = SWIG_Py_Void();
7594 return resultobj;
7595fail:
7596 return NULL;
7597}
7598
7599
7600SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj = 0;
7602 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7603 byte arg2 ;
7604 byte arg3 ;
7605 byte arg4 ;
7606 void *argp1 = 0 ;
7607 int res1 = 0 ;
7608 unsigned char val2 ;
7609 int ecode2 = 0 ;
7610 unsigned char val3 ;
7611 int ecode3 = 0 ;
7612 unsigned char val4 ;
7613 int ecode4 = 0 ;
7614 PyObject * obj0 = 0 ;
7615 PyObject * obj1 = 0 ;
7616 PyObject * obj2 = 0 ;
7617 PyObject * obj3 = 0 ;
7618 char * kwnames[] = {
7619 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7620 };
7621
7622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7624 if (!SWIG_IsOK(res1)) {
7625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7626 }
7627 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7628 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7629 if (!SWIG_IsOK(ecode2)) {
7630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7631 }
7632 arg2 = static_cast< byte >(val2);
7633 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7634 if (!SWIG_IsOK(ecode3)) {
7635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7636 }
7637 arg3 = static_cast< byte >(val3);
7638 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7639 if (!SWIG_IsOK(ecode4)) {
7640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7641 }
7642 arg4 = static_cast< byte >(val4);
7643 {
7644 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = SWIG_Py_Void();
7648 return resultobj;
7649fail:
7650 return NULL;
7651}
7652
7653
7654SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7655 PyObject *resultobj = 0;
7656 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7657 PyObject *result = 0 ;
7658 void *argp1 = 0 ;
7659 int res1 = 0 ;
7660 PyObject *swig_obj[1] ;
7661
7662 if (!args) SWIG_fail;
7663 swig_obj[0] = args;
7664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7665 if (!SWIG_IsOK(res1)) {
7666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7667 }
7668 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7669 {
7670 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 resultobj = result;
7674 return resultobj;
7675fail:
7676 return NULL;
7677}
7678
7679
7680SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7681 PyObject *obj;
7682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7683 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7684 return SWIG_Py_Void();
7685}
7686
7687SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7688 return SWIG_Python_InitShadowInstance(args);
7689}
7690
7691SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7692 PyObject *resultobj = 0;
7693 wxBitmap *arg1 = 0 ;
7694 wxAlphaPixelData *result = 0 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697
7698 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7700 if (!SWIG_IsOK(res1)) {
7701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7702 }
7703 if (!argp1) {
7704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7705 }
7706 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7707 {
7708 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7712 return resultobj;
7713fail:
7714 return NULL;
7715}
7716
7717
7718SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7719 PyObject *resultobj = 0;
7720 wxBitmap *arg1 = 0 ;
7721 wxRect *arg2 = 0 ;
7722 wxAlphaPixelData *result = 0 ;
7723 void *argp1 = 0 ;
7724 int res1 = 0 ;
7725 wxRect temp2 ;
7726
7727 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7729 if (!SWIG_IsOK(res1)) {
7730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7731 }
7732 if (!argp1) {
7733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7734 }
7735 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7736 {
7737 arg2 = &temp2;
7738 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7739 }
7740 {
7741 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7742 if (PyErr_Occurred()) SWIG_fail;
7743 }
7744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7745 return resultobj;
7746fail:
7747 return NULL;
7748}
7749
7750
7751SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7752 PyObject *resultobj = 0;
7753 wxBitmap *arg1 = 0 ;
7754 wxPoint *arg2 = 0 ;
7755 wxSize *arg3 = 0 ;
7756 wxAlphaPixelData *result = 0 ;
7757 void *argp1 = 0 ;
7758 int res1 = 0 ;
7759 wxPoint temp2 ;
7760 wxSize temp3 ;
7761
7762 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7764 if (!SWIG_IsOK(res1)) {
7765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7766 }
7767 if (!argp1) {
7768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7769 }
7770 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7771 {
7772 arg2 = &temp2;
7773 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7774 }
7775 {
7776 arg3 = &temp3;
7777 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7778 }
7779 {
7780 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7784 return resultobj;
7785fail:
7786 return NULL;
7787}
7788
7789
7790SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7791 int argc;
7792 PyObject *argv[4];
7793
7794 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7795 --argc;
7796 if (argc == 1) {
7797 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7798 }
7799 if (argc == 2) {
7800 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7801 }
7802 if (argc == 3) {
7803 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7804 }
7805
7806fail:
7807 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7808 return NULL;
7809}
7810
7811
7812SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7813 PyObject *resultobj = 0;
7814 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7815 void *argp1 = 0 ;
7816 int res1 = 0 ;
7817 PyObject *swig_obj[1] ;
7818
7819 if (!args) SWIG_fail;
7820 swig_obj[0] = args;
7821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7822 if (!SWIG_IsOK(res1)) {
7823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7824 }
7825 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7826 {
7827 delete arg1;
7828
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_Py_Void();
7832 return resultobj;
7833fail:
7834 return NULL;
7835}
7836
7837
7838SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7839 PyObject *resultobj = 0;
7840 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7841 wxAlphaPixelData_Accessor result;
7842 void *argp1 = 0 ;
7843 int res1 = 0 ;
7844 PyObject *swig_obj[1] ;
7845
7846 if (!args) SWIG_fail;
7847 swig_obj[0] = args;
7848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7849 if (!SWIG_IsOK(res1)) {
7850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7851 }
7852 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7853 {
7854 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 PyObject *resultobj = 0;
7866 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7867 void *argp1 = 0 ;
7868 int res1 = 0 ;
7869 PyObject *swig_obj[1] ;
7870
7871 if (!args) SWIG_fail;
7872 swig_obj[0] = args;
7873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7876 }
7877 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7878 {
7879 (arg1)->UseAlpha();
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 resultobj = SWIG_Py_Void();
7883 return resultobj;
7884fail:
7885 return NULL;
7886}
7887
7888
7889SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7890 PyObject *resultobj = 0;
7891 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7892 bool result;
7893 void *argp1 = 0 ;
7894 int res1 = 0 ;
7895 PyObject *swig_obj[1] ;
7896
7897 if (!args) SWIG_fail;
7898 swig_obj[0] = args;
7899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7900 if (!SWIG_IsOK(res1)) {
7901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7902 }
7903 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7904 {
7905 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 {
7909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7910 }
7911 return resultobj;
7912fail:
7913 return NULL;
7914}
7915
7916
7917SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7918 PyObject *obj;
7919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7920 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7921 return SWIG_Py_Void();
7922}
7923
7924SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7925 return SWIG_Python_InitShadowInstance(args);
7926}
7927
7928SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7929 PyObject *resultobj = 0;
7930 wxAlphaPixelData *arg1 = 0 ;
7931 wxAlphaPixelData_Accessor *result = 0 ;
7932 void *argp1 = 0 ;
7933 int res1 = 0 ;
7934
7935 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7937 if (!SWIG_IsOK(res1)) {
7938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7939 }
7940 if (!argp1) {
7941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7942 }
7943 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7944 {
7945 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7949 return resultobj;
7950fail:
7951 return NULL;
7952}
7953
7954
7955SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7956 PyObject *resultobj = 0;
7957 wxBitmap *arg1 = 0 ;
7958 wxAlphaPixelData *arg2 = 0 ;
7959 wxAlphaPixelData_Accessor *result = 0 ;
7960 void *argp1 = 0 ;
7961 int res1 = 0 ;
7962 void *argp2 = 0 ;
7963 int res2 = 0 ;
7964
7965 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7967 if (!SWIG_IsOK(res1)) {
7968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7969 }
7970 if (!argp1) {
7971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7972 }
7973 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7974 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
7975 if (!SWIG_IsOK(res2)) {
7976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
7977 }
7978 if (!argp2) {
7979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
7980 }
7981 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
7982 {
7983 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7987 return resultobj;
7988fail:
7989 return NULL;
7990}
7991
7992
7993SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7994 PyObject *resultobj = 0;
7995 wxAlphaPixelData_Accessor *result = 0 ;
7996
7997 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7998 {
7999 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8003 return resultobj;
8004fail:
8005 return NULL;
8006}
8007
8008
8009SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8010 int argc;
8011 PyObject *argv[3];
8012
8013 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8014 --argc;
8015 if (argc == 0) {
8016 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8017 }
8018 if (argc == 1) {
8019 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8020 }
8021 if (argc == 2) {
8022 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8023 }
8024
8025fail:
8026 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8027 return NULL;
8028}
8029
8030
8031SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *resultobj = 0;
8033 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8034 void *argp1 = 0 ;
8035 int res1 = 0 ;
8036 PyObject *swig_obj[1] ;
8037
8038 if (!args) SWIG_fail;
8039 swig_obj[0] = args;
8040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8041 if (!SWIG_IsOK(res1)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8043 }
8044 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8045 {
8046 delete arg1;
8047
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 resultobj = SWIG_Py_Void();
8051 return resultobj;
8052fail:
8053 return NULL;
8054}
8055
8056
8057SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8058 PyObject *resultobj = 0;
8059 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8060 wxAlphaPixelData *arg2 = 0 ;
8061 void *argp1 = 0 ;
8062 int res1 = 0 ;
8063 void *argp2 = 0 ;
8064 int res2 = 0 ;
8065 PyObject * obj0 = 0 ;
8066 PyObject * obj1 = 0 ;
8067 char * kwnames[] = {
8068 (char *) "self",(char *) "data", NULL
8069 };
8070
8071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8073 if (!SWIG_IsOK(res1)) {
8074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8075 }
8076 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8078 if (!SWIG_IsOK(res2)) {
8079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8080 }
8081 if (!argp2) {
8082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8083 }
8084 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8085 {
8086 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8087 if (PyErr_Occurred()) SWIG_fail;
8088 }
8089 resultobj = SWIG_Py_Void();
8090 return resultobj;
8091fail:
8092 return NULL;
8093}
8094
8095
8096SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8097 PyObject *resultobj = 0;
8098 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8099 bool result;
8100 void *argp1 = 0 ;
8101 int res1 = 0 ;
8102 PyObject *swig_obj[1] ;
8103
8104 if (!args) SWIG_fail;
8105 swig_obj[0] = args;
8106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8107 if (!SWIG_IsOK(res1)) {
8108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8109 }
8110 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8111 {
8112 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 {
8116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8117 }
8118 return resultobj;
8119fail:
8120 return NULL;
8121}
8122
8123
8124SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8125 PyObject *resultobj = 0;
8126 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8127 void *argp1 = 0 ;
8128 int res1 = 0 ;
8129 PyObject *swig_obj[1] ;
8130
8131 if (!args) SWIG_fail;
8132 swig_obj[0] = args;
8133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8134 if (!SWIG_IsOK(res1)) {
8135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8136 }
8137 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8138 {
8139 wxAlphaPixelData_Accessor_nextPixel(arg1);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 }
8142 resultobj = SWIG_Py_Void();
8143 return resultobj;
8144fail:
8145 return NULL;
8146}
8147
8148
8149SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj = 0;
8151 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8152 wxAlphaPixelData *arg2 = 0 ;
8153 int arg3 ;
8154 int arg4 ;
8155 void *argp1 = 0 ;
8156 int res1 = 0 ;
8157 void *argp2 = 0 ;
8158 int res2 = 0 ;
8159 int val3 ;
8160 int ecode3 = 0 ;
8161 int val4 ;
8162 int ecode4 = 0 ;
8163 PyObject * obj0 = 0 ;
8164 PyObject * obj1 = 0 ;
8165 PyObject * obj2 = 0 ;
8166 PyObject * obj3 = 0 ;
8167 char * kwnames[] = {
8168 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8169 };
8170
8171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8173 if (!SWIG_IsOK(res1)) {
8174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8175 }
8176 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8178 if (!SWIG_IsOK(res2)) {
8179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8180 }
8181 if (!argp2) {
8182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8183 }
8184 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8185 ecode3 = SWIG_AsVal_int(obj2, &val3);
8186 if (!SWIG_IsOK(ecode3)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8188 }
8189 arg3 = static_cast< int >(val3);
8190 ecode4 = SWIG_AsVal_int(obj3, &val4);
8191 if (!SWIG_IsOK(ecode4)) {
8192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8193 }
8194 arg4 = static_cast< int >(val4);
8195 {
8196 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8197 if (PyErr_Occurred()) SWIG_fail;
8198 }
8199 resultobj = SWIG_Py_Void();
8200 return resultobj;
8201fail:
8202 return NULL;
8203}
8204
8205
8206SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj = 0;
8208 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8209 wxAlphaPixelData *arg2 = 0 ;
8210 int arg3 ;
8211 void *argp1 = 0 ;
8212 int res1 = 0 ;
8213 void *argp2 = 0 ;
8214 int res2 = 0 ;
8215 int val3 ;
8216 int ecode3 = 0 ;
8217 PyObject * obj0 = 0 ;
8218 PyObject * obj1 = 0 ;
8219 PyObject * obj2 = 0 ;
8220 char * kwnames[] = {
8221 (char *) "self",(char *) "data",(char *) "x", NULL
8222 };
8223
8224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8226 if (!SWIG_IsOK(res1)) {
8227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8228 }
8229 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8231 if (!SWIG_IsOK(res2)) {
8232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8233 }
8234 if (!argp2) {
8235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8236 }
8237 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8238 ecode3 = SWIG_AsVal_int(obj2, &val3);
8239 if (!SWIG_IsOK(ecode3)) {
8240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8241 }
8242 arg3 = static_cast< int >(val3);
8243 {
8244 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 resultobj = SWIG_Py_Void();
8248 return resultobj;
8249fail:
8250 return NULL;
8251}
8252
8253
8254SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj = 0;
8256 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8257 wxAlphaPixelData *arg2 = 0 ;
8258 int arg3 ;
8259 void *argp1 = 0 ;
8260 int res1 = 0 ;
8261 void *argp2 = 0 ;
8262 int res2 = 0 ;
8263 int val3 ;
8264 int ecode3 = 0 ;
8265 PyObject * obj0 = 0 ;
8266 PyObject * obj1 = 0 ;
8267 PyObject * obj2 = 0 ;
8268 char * kwnames[] = {
8269 (char *) "self",(char *) "data",(char *) "y", NULL
8270 };
8271
8272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8274 if (!SWIG_IsOK(res1)) {
8275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8276 }
8277 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8279 if (!SWIG_IsOK(res2)) {
8280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8281 }
8282 if (!argp2) {
8283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8284 }
8285 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8286 ecode3 = SWIG_AsVal_int(obj2, &val3);
8287 if (!SWIG_IsOK(ecode3)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8289 }
8290 arg3 = static_cast< int >(val3);
8291 {
8292 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 resultobj = SWIG_Py_Void();
8296 return resultobj;
8297fail:
8298 return NULL;
8299}
8300
8301
8302SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8303 PyObject *resultobj = 0;
8304 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8305 wxAlphaPixelData *arg2 = 0 ;
8306 int arg3 ;
8307 int arg4 ;
8308 void *argp1 = 0 ;
8309 int res1 = 0 ;
8310 void *argp2 = 0 ;
8311 int res2 = 0 ;
8312 int val3 ;
8313 int ecode3 = 0 ;
8314 int val4 ;
8315 int ecode4 = 0 ;
8316 PyObject * obj0 = 0 ;
8317 PyObject * obj1 = 0 ;
8318 PyObject * obj2 = 0 ;
8319 PyObject * obj3 = 0 ;
8320 char * kwnames[] = {
8321 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8322 };
8323
8324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8326 if (!SWIG_IsOK(res1)) {
8327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8328 }
8329 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8331 if (!SWIG_IsOK(res2)) {
8332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8333 }
8334 if (!argp2) {
8335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8336 }
8337 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8338 ecode3 = SWIG_AsVal_int(obj2, &val3);
8339 if (!SWIG_IsOK(ecode3)) {
8340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8341 }
8342 arg3 = static_cast< int >(val3);
8343 ecode4 = SWIG_AsVal_int(obj3, &val4);
8344 if (!SWIG_IsOK(ecode4)) {
8345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8346 }
8347 arg4 = static_cast< int >(val4);
8348 {
8349 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 resultobj = SWIG_Py_Void();
8353 return resultobj;
8354fail:
8355 return NULL;
8356}
8357
8358
8359SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj = 0;
8361 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8362 byte arg2 ;
8363 byte arg3 ;
8364 byte arg4 ;
8365 byte arg5 ;
8366 void *argp1 = 0 ;
8367 int res1 = 0 ;
8368 unsigned char val2 ;
8369 int ecode2 = 0 ;
8370 unsigned char val3 ;
8371 int ecode3 = 0 ;
8372 unsigned char val4 ;
8373 int ecode4 = 0 ;
8374 unsigned char val5 ;
8375 int ecode5 = 0 ;
8376 PyObject * obj0 = 0 ;
8377 PyObject * obj1 = 0 ;
8378 PyObject * obj2 = 0 ;
8379 PyObject * obj3 = 0 ;
8380 PyObject * obj4 = 0 ;
8381 char * kwnames[] = {
8382 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8383 };
8384
8385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8387 if (!SWIG_IsOK(res1)) {
8388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8389 }
8390 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8391 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8392 if (!SWIG_IsOK(ecode2)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8394 }
8395 arg2 = static_cast< byte >(val2);
8396 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8397 if (!SWIG_IsOK(ecode3)) {
8398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8399 }
8400 arg3 = static_cast< byte >(val3);
8401 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8402 if (!SWIG_IsOK(ecode4)) {
8403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8404 }
8405 arg4 = static_cast< byte >(val4);
8406 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8407 if (!SWIG_IsOK(ecode5)) {
8408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8409 }
8410 arg5 = static_cast< byte >(val5);
8411 {
8412 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8413 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8414 }
fc46b7f3 8415 resultobj = SWIG_Py_Void();
0085ce49
RD
8416 return resultobj;
8417fail:
8418 return NULL;
8419}
8420
8421
fc46b7f3 8422SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8423 PyObject *resultobj = 0;
fc46b7f3
RD
8424 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8425 PyObject *result = 0 ;
0085ce49
RD
8426 void *argp1 = 0 ;
8427 int res1 = 0 ;
fc46b7f3 8428 PyObject *swig_obj[1] ;
0085ce49 8429
fc46b7f3
RD
8430 if (!args) SWIG_fail;
8431 swig_obj[0] = args;
8432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8433 if (!SWIG_IsOK(res1)) {
fc46b7f3 8434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8435 }
fc46b7f3 8436 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8437 {
fc46b7f3 8438 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
fc46b7f3 8441 resultobj = result;
0085ce49
RD
8442 return resultobj;
8443fail:
8444 return NULL;
d14a1e28
RD
8445}
8446
8447
fc46b7f3 8448SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8449 PyObject *obj;
8450 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8451 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8452 return SWIG_Py_Void();
b2df227b
RD
8453}
8454
fc46b7f3 8455SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8456 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8457}
8458
0085ce49
RD
8459SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj = 0;
8461 wxBitmap *arg1 = 0 ;
8462 wxColour const &arg2_defvalue = wxNullColour ;
8463 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8464 wxMask *result = 0 ;
8465 void *argp1 = 0 ;
8466 int res1 = 0 ;
8467 wxColour temp2 ;
8468 PyObject * obj0 = 0 ;
8469 PyObject * obj1 = 0 ;
8470 char * kwnames[] = {
8471 (char *) "bitmap",(char *) "colour", NULL
8472 };
8473
8474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8475 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8476 if (!SWIG_IsOK(res1)) {
8477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8478 }
8479 if (!argp1) {
8480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8481 }
8482 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8483 if (obj1) {
d14a1e28 8484 {
0085ce49
RD
8485 arg2 = &temp2;
8486 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8487 }
0085ce49
RD
8488 }
8489 {
8490 if (!wxPyCheckForApp()) SWIG_fail;
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8493 wxPyEndAllowThreads(__tstate);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
8496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8497 return resultobj;
8498fail:
8499 return NULL;
d14a1e28
RD
8500}
8501
8502
0085ce49
RD
8503SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8504 PyObject *resultobj = 0;
8505 wxMask *arg1 = (wxMask *) 0 ;
8506 void *argp1 = 0 ;
8507 int res1 = 0 ;
8508 PyObject *swig_obj[1] ;
8509
8510 if (!args) SWIG_fail;
8511 swig_obj[0] = args;
8512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8513 if (!SWIG_IsOK(res1)) {
8514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8515 }
8516 arg1 = reinterpret_cast< wxMask * >(argp1);
8517 {
0085ce49 8518 delete arg1;
d14a1e28 8519
0085ce49
RD
8520 if (PyErr_Occurred()) SWIG_fail;
8521 }
8522 resultobj = SWIG_Py_Void();
8523 return resultobj;
8524fail:
8525 return NULL;
8526}
8527
8528
8529SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8530 PyObject *obj;
8531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8532 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8533 return SWIG_Py_Void();
8534}
8535
8536SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8537 return SWIG_Python_InitShadowInstance(args);
8538}
8539
8540SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj = 0;
8542 wxString *arg1 = 0 ;
8543 wxBitmapType arg2 ;
8544 int arg3 = (int) -1 ;
8545 int arg4 = (int) -1 ;
8546 wxIcon *result = 0 ;
8547 bool temp1 = false ;
8548 int val2 ;
8549 int ecode2 = 0 ;
8550 int val3 ;
8551 int ecode3 = 0 ;
8552 int val4 ;
8553 int ecode4 = 0 ;
8554 PyObject * obj0 = 0 ;
8555 PyObject * obj1 = 0 ;
8556 PyObject * obj2 = 0 ;
8557 PyObject * obj3 = 0 ;
8558 char * kwnames[] = {
8559 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8560 };
8561
8562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8563 {
8564 arg1 = wxString_in_helper(obj0);
8565 if (arg1 == NULL) SWIG_fail;
8566 temp1 = true;
8567 }
8568 ecode2 = SWIG_AsVal_int(obj1, &val2);
8569 if (!SWIG_IsOK(ecode2)) {
8570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8571 }
8572 arg2 = static_cast< wxBitmapType >(val2);
8573 if (obj2) {
8574 ecode3 = SWIG_AsVal_int(obj2, &val3);
8575 if (!SWIG_IsOK(ecode3)) {
8576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8577 }
8578 arg3 = static_cast< int >(val3);
8579 }
8580 if (obj3) {
8581 ecode4 = SWIG_AsVal_int(obj3, &val4);
8582 if (!SWIG_IsOK(ecode4)) {
8583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8584 }
8585 arg4 = static_cast< int >(val4);
8586 }
8587 {
8588 if (!wxPyCheckForApp()) SWIG_fail;
8589 PyThreadState* __tstate = wxPyBeginAllowThreads();
8590 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8595 {
8596 if (temp1)
8597 delete arg1;
8598 }
8599 return resultobj;
8600fail:
8601 {
8602 if (temp1)
8603 delete arg1;
8604 }
8605 return NULL;
d14a1e28
RD
8606}
8607
8608
0085ce49
RD
8609SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8610 PyObject *resultobj = 0;
8611 wxIcon *arg1 = (wxIcon *) 0 ;
8612 void *argp1 = 0 ;
8613 int res1 = 0 ;
8614 PyObject *swig_obj[1] ;
8615
8616 if (!args) SWIG_fail;
8617 swig_obj[0] = args;
8618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8619 if (!SWIG_IsOK(res1)) {
8620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8621 }
8622 arg1 = reinterpret_cast< wxIcon * >(argp1);
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 delete arg1;
d14a1e28 8626
0085ce49
RD
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 resultobj = SWIG_Py_Void();
8631 return resultobj;
8632fail:
8633 return NULL;
d14a1e28
RD
8634}
8635
8636
0085ce49
RD
8637SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8638 PyObject *resultobj = 0;
8639 wxIcon *result = 0 ;
8640
8641 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8642 {
8643 if (!wxPyCheckForApp()) SWIG_fail;
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 result = (wxIcon *)new wxIcon();
8646 wxPyEndAllowThreads(__tstate);
8647 if (PyErr_Occurred()) SWIG_fail;
8648 }
8649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8650 return resultobj;
8651fail:
8652 return NULL;
8653}
8654
8655
8656SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8657 PyObject *resultobj = 0;
8658 wxIconLocation *arg1 = 0 ;
8659 wxIcon *result = 0 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 PyObject * obj0 = 0 ;
8663 char * kwnames[] = {
8664 (char *) "loc", NULL
8665 };
8666
8667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8668 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8669 if (!SWIG_IsOK(res1)) {
8670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8671 }
8672 if (!argp1) {
8673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8674 }
8675 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8676 {
8677 if (!wxPyCheckForApp()) SWIG_fail;
8678 PyThreadState* __tstate = wxPyBeginAllowThreads();
8679 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8680 wxPyEndAllowThreads(__tstate);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8684 return resultobj;
8685fail:
8686 return NULL;
8687}
8688
8689
8690SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8691 PyObject *resultobj = 0;
8692 wxBitmap *arg1 = 0 ;
8693 wxIcon *result = 0 ;
8694 void *argp1 = 0 ;
8695 int res1 = 0 ;
8696 PyObject * obj0 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "bmp", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8705 }
8706 if (!argp1) {
8707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8708 }
8709 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8710 {
8711 if (!wxPyCheckForApp()) SWIG_fail;
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8718 return resultobj;
8719fail:
8720 return NULL;
d14a1e28
RD
8721}
8722
8723
0085ce49
RD
8724SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj = 0;
8726 PyObject *arg1 = (PyObject *) 0 ;
8727 wxIcon *result = 0 ;
8728 PyObject * obj0 = 0 ;
8729 char * kwnames[] = {
8730 (char *) "listOfStrings", NULL
8731 };
8732
8733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8734 arg1 = obj0;
8735 {
8736 if (!wxPyCheckForApp()) SWIG_fail;
8737 PyThreadState* __tstate = wxPyBeginAllowThreads();
8738 result = (wxIcon *)new_wxIcon(arg1);
8739 wxPyEndAllowThreads(__tstate);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8743 return resultobj;
8744fail:
8745 return NULL;
8746}
8747
8748
8749SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj = 0;
8751 wxIcon *arg1 = (wxIcon *) 0 ;
8752 wxString *arg2 = 0 ;
8753 wxBitmapType arg3 ;
8754 bool result;
8755 void *argp1 = 0 ;
8756 int res1 = 0 ;
8757 bool temp2 = false ;
8758 int val3 ;
8759 int ecode3 = 0 ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 PyObject * obj2 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "name",(char *) "type", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8771 }
8772 arg1 = reinterpret_cast< wxIcon * >(argp1);
8773 {
8774 arg2 = wxString_in_helper(obj1);
8775 if (arg2 == NULL) SWIG_fail;
8776 temp2 = true;
8777 }
8778 ecode3 = SWIG_AsVal_int(obj2, &val3);
8779 if (!SWIG_IsOK(ecode3)) {
8780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8781 }
8782 arg3 = static_cast< wxBitmapType >(val3);
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8791 }
8792 {
8793 if (temp2)
8794 delete arg2;
8795 }
8796 return resultobj;
8797fail:
8798 {
8799 if (temp2)
8800 delete arg2;
8801 }
8802 return NULL;
d14a1e28
RD
8803}
8804
8805
0085ce49
RD
8806SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8807 PyObject *resultobj = 0;
8808 wxIcon *arg1 = (wxIcon *) 0 ;
8809 bool result;
8810 void *argp1 = 0 ;
8811 int res1 = 0 ;
8812 PyObject *swig_obj[1] ;
8813
8814 if (!args) SWIG_fail;
8815 swig_obj[0] = args;
8816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8817 if (!SWIG_IsOK(res1)) {
8818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8819 }
8820 arg1 = reinterpret_cast< wxIcon * >(argp1);
8821 {
8822 PyThreadState* __tstate = wxPyBeginAllowThreads();
8823 result = (bool)(arg1)->Ok();
8824 wxPyEndAllowThreads(__tstate);
8825 if (PyErr_Occurred()) SWIG_fail;
8826 }
8827 {
8828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8829 }
8830 return resultobj;
8831fail:
8832 return NULL;
d14a1e28
RD
8833}
8834
8835
0085ce49
RD
8836SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8837 PyObject *resultobj = 0;
8838 wxIcon *arg1 = (wxIcon *) 0 ;
8839 int result;
8840 void *argp1 = 0 ;
8841 int res1 = 0 ;
8842 PyObject *swig_obj[1] ;
8843
8844 if (!args) SWIG_fail;
8845 swig_obj[0] = args;
8846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8847 if (!SWIG_IsOK(res1)) {
8848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8849 }
8850 arg1 = reinterpret_cast< wxIcon * >(argp1);
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (int)(arg1)->GetWidth();
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_From_int(static_cast< int >(result));
8858 return resultobj;
8859fail:
8860 return NULL;
d3b6e4ff
RD
8861}
8862
8863
0085ce49
RD
8864SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8865 PyObject *resultobj = 0;
8866 wxIcon *arg1 = (wxIcon *) 0 ;
8867 int result;
8868 void *argp1 = 0 ;
8869 int res1 = 0 ;
8870 PyObject *swig_obj[1] ;
8871
8872 if (!args) SWIG_fail;
8873 swig_obj[0] = args;
8874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8875 if (!SWIG_IsOK(res1)) {
8876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8877 }
8878 arg1 = reinterpret_cast< wxIcon * >(argp1);
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 result = (int)(arg1)->GetHeight();
8882 wxPyEndAllowThreads(__tstate);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 resultobj = SWIG_From_int(static_cast< int >(result));
8886 return resultobj;
8887fail:
8888 return NULL;
d14a1e28
RD
8889}
8890
8891
0085ce49
RD
8892SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8893 PyObject *resultobj = 0;
8894 wxIcon *arg1 = (wxIcon *) 0 ;
8895 int result;
8896 void *argp1 = 0 ;
8897 int res1 = 0 ;
8898 PyObject *swig_obj[1] ;
8899
8900 if (!args) SWIG_fail;
8901 swig_obj[0] = args;
8902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8903 if (!SWIG_IsOK(res1)) {
8904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8905 }
8906 arg1 = reinterpret_cast< wxIcon * >(argp1);
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (int)(arg1)->GetDepth();
8910 wxPyEndAllowThreads(__tstate);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 }
8913 resultobj = SWIG_From_int(static_cast< int >(result));
8914 return resultobj;
8915fail:
8916 return NULL;
8917}
8918
8919
8920SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj = 0;
8922 wxIcon *arg1 = (wxIcon *) 0 ;
8923 int arg2 ;
8924 void *argp1 = 0 ;
8925 int res1 = 0 ;
8926 int val2 ;
8927 int ecode2 = 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 char * kwnames[] = {
8931 (char *) "self",(char *) "w", NULL
8932 };
8933
8934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8936 if (!SWIG_IsOK(res1)) {
8937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8938 }
8939 arg1 = reinterpret_cast< wxIcon * >(argp1);
8940 ecode2 = SWIG_AsVal_int(obj1, &val2);
8941 if (!SWIG_IsOK(ecode2)) {
8942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8943 }
8944 arg2 = static_cast< int >(val2);
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 (arg1)->SetWidth(arg2);
8948 wxPyEndAllowThreads(__tstate);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 }
8951 resultobj = SWIG_Py_Void();
8952 return resultobj;
8953fail:
8954 return NULL;
8955}
8956
8957
8958SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8959 PyObject *resultobj = 0;
8960 wxIcon *arg1 = (wxIcon *) 0 ;
8961 int arg2 ;
8962 void *argp1 = 0 ;
8963 int res1 = 0 ;
8964 int val2 ;
8965 int ecode2 = 0 ;
8966 PyObject * obj0 = 0 ;
8967 PyObject * obj1 = 0 ;
8968 char * kwnames[] = {
8969 (char *) "self",(char *) "h", NULL
8970 };
8971
8972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8974 if (!SWIG_IsOK(res1)) {
8975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8976 }
8977 arg1 = reinterpret_cast< wxIcon * >(argp1);
8978 ecode2 = SWIG_AsVal_int(obj1, &val2);
8979 if (!SWIG_IsOK(ecode2)) {
8980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8981 }
8982 arg2 = static_cast< int >(val2);
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 (arg1)->SetHeight(arg2);
8986 wxPyEndAllowThreads(__tstate);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 }
8989 resultobj = SWIG_Py_Void();
8990 return resultobj;
8991fail:
8992 return NULL;
8993}
8994
8995
8996SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8997 PyObject *resultobj = 0;
8998 wxIcon *arg1 = (wxIcon *) 0 ;
8999 int arg2 ;
9000 void *argp1 = 0 ;
9001 int res1 = 0 ;
9002 int val2 ;
9003 int ecode2 = 0 ;
9004 PyObject * obj0 = 0 ;
9005 PyObject * obj1 = 0 ;
9006 char * kwnames[] = {
9007 (char *) "self",(char *) "d", NULL
9008 };
9009
9010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9012 if (!SWIG_IsOK(res1)) {
9013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9014 }
9015 arg1 = reinterpret_cast< wxIcon * >(argp1);
9016 ecode2 = SWIG_AsVal_int(obj1, &val2);
9017 if (!SWIG_IsOK(ecode2)) {
9018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9019 }
9020 arg2 = static_cast< int >(val2);
9021 {
9022 PyThreadState* __tstate = wxPyBeginAllowThreads();
9023 (arg1)->SetDepth(arg2);
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029fail:
9030 return NULL;
9031}
9032
9033
9034SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9035 PyObject *resultobj = 0;
9036 wxIcon *arg1 = (wxIcon *) 0 ;
9037 wxBitmap *arg2 = 0 ;
9038 void *argp1 = 0 ;
9039 int res1 = 0 ;
9040 void *argp2 = 0 ;
9041 int res2 = 0 ;
9042 PyObject * obj0 = 0 ;
9043 PyObject * obj1 = 0 ;
9044 char * kwnames[] = {
9045 (char *) "self",(char *) "bmp", NULL
9046 };
9047
9048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9050 if (!SWIG_IsOK(res1)) {
9051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9052 }
9053 arg1 = reinterpret_cast< wxIcon * >(argp1);
9054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9055 if (!SWIG_IsOK(res2)) {
9056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9057 }
9058 if (!argp2) {
9059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9060 }
9061 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9062 {
9063 PyThreadState* __tstate = wxPyBeginAllowThreads();
9064 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 resultobj = SWIG_Py_Void();
9069 return resultobj;
9070fail:
9071 return NULL;
d14a1e28
RD
9072}
9073
9074
0085ce49
RD
9075SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9076 PyObject *obj;
9077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9078 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9079 return SWIG_Py_Void();
d14a1e28
RD
9080}
9081
0085ce49
RD
9082SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9083 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9084}
9085
0085ce49
RD
9086SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9089 int arg2 = (int) 0 ;
9090 wxIconLocation *result = 0 ;
9091 bool temp1 = false ;
9092 int val2 ;
9093 int ecode2 = 0 ;
9094 PyObject * obj0 = 0 ;
9095 PyObject * obj1 = 0 ;
9096 char * kwnames[] = {
9097 (char *) "filename",(char *) "num", NULL
9098 };
9099
9100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9101 if (obj0) {
b2df227b 9102 {
0085ce49
RD
9103 arg1 = wxString_in_helper(obj0);
9104 if (arg1 == NULL) SWIG_fail;
9105 temp1 = true;
b2df227b 9106 }
0085ce49
RD
9107 }
9108 if (obj1) {
9109 ecode2 = SWIG_AsVal_int(obj1, &val2);
9110 if (!SWIG_IsOK(ecode2)) {
9111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9112 }
9113 arg2 = static_cast< int >(val2);
9114 }
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9122 {
9123 if (temp1)
9124 delete arg1;
9125 }
9126 return resultobj;
9127fail:
9128 {
9129 if (temp1)
9130 delete arg1;
9131 }
9132 return NULL;
b2df227b
RD
9133}
9134
9135
0085ce49
RD
9136SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9137 PyObject *resultobj = 0;
9138 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9139 void *argp1 = 0 ;
9140 int res1 = 0 ;
9141 PyObject *swig_obj[1] ;
9142
9143 if (!args) SWIG_fail;
9144 swig_obj[0] = args;
9145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9146 if (!SWIG_IsOK(res1)) {
9147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9148 }
9149 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 delete arg1;
4276dc52 9153
0085ce49
RD
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = SWIG_Py_Void();
9158 return resultobj;
9159fail:
9160 return NULL;
4276dc52
RD
9161}
9162
9163
0085ce49
RD
9164SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9165 PyObject *resultobj = 0;
9166 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9167 bool result;
9168 void *argp1 = 0 ;
9169 int res1 = 0 ;
9170 PyObject *swig_obj[1] ;
9171
9172 if (!args) SWIG_fail;
9173 swig_obj[0] = args;
9174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9175 if (!SWIG_IsOK(res1)) {
9176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9177 }
9178 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9179 {
9180 PyThreadState* __tstate = wxPyBeginAllowThreads();
9181 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 {
9186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9187 }
9188 return resultobj;
9189fail:
9190 return NULL;
9191}
9192
9193
9194SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9195 PyObject *resultobj = 0;
9196 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9197 wxString *arg2 = 0 ;
9198 void *argp1 = 0 ;
9199 int res1 = 0 ;
9200 bool temp2 = false ;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char * kwnames[] = {
9204 (char *) "self",(char *) "filename", NULL
9205 };
9206
9207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9211 }
9212 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9213 {
9214 arg2 = wxString_in_helper(obj1);
9215 if (arg2 == NULL) SWIG_fail;
9216 temp2 = true;
9217 }
9218 {
9219 PyThreadState* __tstate = wxPyBeginAllowThreads();
9220 (arg1)->SetFileName((wxString const &)*arg2);
9221 wxPyEndAllowThreads(__tstate);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 }
9224 resultobj = SWIG_Py_Void();
9225 {
9226 if (temp2)
9227 delete arg2;
9228 }
9229 return resultobj;
9230fail:
9231 {
9232 if (temp2)
9233 delete arg2;
9234 }
9235 return NULL;
4276dc52
RD
9236}
9237
9238
0085ce49
RD
9239SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9240 PyObject *resultobj = 0;
9241 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9242 wxString *result = 0 ;
9243 void *argp1 = 0 ;
9244 int res1 = 0 ;
9245 PyObject *swig_obj[1] ;
9246
9247 if (!args) SWIG_fail;
9248 swig_obj[0] = args;
9249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9252 }
9253 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9256 {
0085ce49
RD
9257 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9258 result = (wxString *) &_result_ref;
093d3ff1 9259 }
0085ce49
RD
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 {
9264#if wxUSE_UNICODE
9265 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9266#else
9267 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9268#endif
9269 }
9270 return resultobj;
9271fail:
9272 return NULL;
9273}
9274
9275
9276SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9277 PyObject *resultobj = 0;
9278 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9279 int arg2 ;
9280 void *argp1 = 0 ;
9281 int res1 = 0 ;
9282 int val2 ;
9283 int ecode2 = 0 ;
9284 PyObject * obj0 = 0 ;
9285 PyObject * obj1 = 0 ;
9286 char * kwnames[] = {
9287 (char *) "self",(char *) "num", NULL
9288 };
9289
9290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9292 if (!SWIG_IsOK(res1)) {
9293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9294 }
9295 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9296 ecode2 = SWIG_AsVal_int(obj1, &val2);
9297 if (!SWIG_IsOK(ecode2)) {
9298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9299 }
9300 arg2 = static_cast< int >(val2);
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 wxIconLocation_SetIndex(arg1,arg2);
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_Py_Void();
9308 return resultobj;
9309fail:
9310 return NULL;
d14a1e28
RD
9311}
9312
9313
0085ce49
RD
9314SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9315 PyObject *resultobj = 0;
9316 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9317 int result;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 PyObject *swig_obj[1] ;
9321
9322 if (!args) SWIG_fail;
9323 swig_obj[0] = args;
9324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9327 }
9328 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 result = (int)wxIconLocation_GetIndex(arg1);
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 resultobj = SWIG_From_int(static_cast< int >(result));
9336 return resultobj;
9337fail:
9338 return NULL;
d14a1e28
RD
9339}
9340
9341
0085ce49
RD
9342SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9343 PyObject *obj;
9344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9345 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9346 return SWIG_Py_Void();
d14a1e28
RD
9347}
9348
0085ce49
RD
9349SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9350 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9351}
9352
0085ce49
RD
9353SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 PyObject *resultobj = 0;
9355 wxIconBundle *result = 0 ;
9356
9357 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 result = (wxIconBundle *)new wxIconBundle();
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9365 return resultobj;
9366fail:
9367 return NULL;
9368}
9369
9370
9371SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9372 PyObject *resultobj = 0;
9373 wxString *arg1 = 0 ;
9374 long arg2 ;
9375 wxIconBundle *result = 0 ;
9376 bool temp1 = false ;
9377 long val2 ;
9378 int ecode2 = 0 ;
9379 PyObject * obj0 = 0 ;
9380 PyObject * obj1 = 0 ;
9381 char * kwnames[] = {
9382 (char *) "file",(char *) "type", NULL
9383 };
9384
9385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9386 {
9387 arg1 = wxString_in_helper(obj0);
9388 if (arg1 == NULL) SWIG_fail;
9389 temp1 = true;
9390 }
9391 ecode2 = SWIG_AsVal_long(obj1, &val2);
9392 if (!SWIG_IsOK(ecode2)) {
9393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9394 }
9395 arg2 = static_cast< long >(val2);
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9403 {
9404 if (temp1)
9405 delete arg1;
9406 }
9407 return resultobj;
9408fail:
9409 {
9410 if (temp1)
9411 delete arg1;
9412 }
9413 return NULL;
d14a1e28
RD
9414}
9415
9416
0085ce49
RD
9417SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj = 0;
9419 wxIcon *arg1 = 0 ;
9420 wxIconBundle *result = 0 ;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 char * kwnames[] = {
9425 (char *) "icon", NULL
9426 };
9427
9428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9429 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9430 if (!SWIG_IsOK(res1)) {
9431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9432 }
9433 if (!argp1) {
9434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9435 }
9436 arg1 = reinterpret_cast< wxIcon * >(argp1);
9437 {
9438 PyThreadState* __tstate = wxPyBeginAllowThreads();
9439 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9440 wxPyEndAllowThreads(__tstate);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9444 return resultobj;
9445fail:
9446 return NULL;
d14a1e28
RD
9447}
9448
9449
0085ce49
RD
9450SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9451 PyObject *resultobj = 0;
9452 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9453 void *argp1 = 0 ;
9454 int res1 = 0 ;
9455 PyObject *swig_obj[1] ;
9456
9457 if (!args) SWIG_fail;
9458 swig_obj[0] = args;
9459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9460 if (!SWIG_IsOK(res1)) {
9461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9462 }
9463 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 delete arg1;
d14a1e28 9467
0085ce49
RD
9468 wxPyEndAllowThreads(__tstate);
9469 if (PyErr_Occurred()) SWIG_fail;
9470 }
9471 resultobj = SWIG_Py_Void();
9472 return resultobj;
9473fail:
9474 return NULL;
9475}
9476
9477
9478SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9479 PyObject *resultobj = 0;
9480 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9481 wxIcon *arg2 = 0 ;
9482 void *argp1 = 0 ;
9483 int res1 = 0 ;
9484 void *argp2 = 0 ;
9485 int res2 = 0 ;
9486 PyObject * obj0 = 0 ;
9487 PyObject * obj1 = 0 ;
9488 char * kwnames[] = {
9489 (char *) "self",(char *) "icon", NULL
9490 };
9491
9492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9494 if (!SWIG_IsOK(res1)) {
9495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9496 }
9497 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9499 if (!SWIG_IsOK(res2)) {
9500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9501 }
9502 if (!argp2) {
9503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9504 }
9505 arg2 = reinterpret_cast< wxIcon * >(argp2);
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 (arg1)->AddIcon((wxIcon const &)*arg2);
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 resultobj = SWIG_Py_Void();
9513 return resultobj;
9514fail:
9515 return NULL;
9516}
9517
9518
9519SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj = 0;
9521 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9522 wxString *arg2 = 0 ;
9523 long arg3 ;
9524 void *argp1 = 0 ;
9525 int res1 = 0 ;
9526 bool temp2 = false ;
9527 long val3 ;
9528 int ecode3 = 0 ;
9529 PyObject * obj0 = 0 ;
9530 PyObject * obj1 = 0 ;
9531 PyObject * obj2 = 0 ;
9532 char * kwnames[] = {
9533 (char *) "self",(char *) "file",(char *) "type", NULL
9534 };
9535
9536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9540 }
9541 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9542 {
9543 arg2 = wxString_in_helper(obj1);
9544 if (arg2 == NULL) SWIG_fail;
9545 temp2 = true;
9546 }
9547 ecode3 = SWIG_AsVal_long(obj2, &val3);
9548 if (!SWIG_IsOK(ecode3)) {
9549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9550 }
9551 arg3 = static_cast< long >(val3);
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 resultobj = SWIG_Py_Void();
9559 {
9560 if (temp2)
9561 delete arg2;
9562 }
9563 return resultobj;
9564fail:
9565 {
9566 if (temp2)
9567 delete arg2;
9568 }
9569 return NULL;
9570}
9571
9572
9573SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj = 0;
9575 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9576 wxSize *arg2 = 0 ;
9577 wxIcon *result = 0 ;
9578 void *argp1 = 0 ;
9579 int res1 = 0 ;
9580 wxSize temp2 ;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 char * kwnames[] = {
9584 (char *) "self",(char *) "size", NULL
9585 };
9586
9587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9591 }
9592 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9593 {
9594 arg2 = &temp2;
9595 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9596 }
9597 {
9598 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 9599 {
0085ce49
RD
9600 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9601 result = (wxIcon *) &_result_ref;
d14a1e28 9602 }
0085ce49
RD
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 {
9607 wxIcon* resultptr = new wxIcon(*result);
9608 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9609 }
9610 return resultobj;
9611fail:
9612 return NULL;
9613}
9614
9615
9616SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9617 PyObject *obj;
9618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9619 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9620 return SWIG_Py_Void();
9621}
9622
9623SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9624 return SWIG_Python_InitShadowInstance(args);
9625}
9626
9627SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxString *arg1 = 0 ;
9630 long arg2 ;
9631 int arg3 = (int) 0 ;
9632 int arg4 = (int) 0 ;
9633 wxCursor *result = 0 ;
9634 bool temp1 = false ;
9635 long val2 ;
9636 int ecode2 = 0 ;
9637 int val3 ;
9638 int ecode3 = 0 ;
9639 int val4 ;
9640 int ecode4 = 0 ;
9641 PyObject * obj0 = 0 ;
9642 PyObject * obj1 = 0 ;
9643 PyObject * obj2 = 0 ;
9644 PyObject * obj3 = 0 ;
9645 char * kwnames[] = {
9646 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9647 };
9648
9649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9650 {
9651 arg1 = wxString_in_helper(obj0);
9652 if (arg1 == NULL) SWIG_fail;
9653 temp1 = true;
9654 }
9655 ecode2 = SWIG_AsVal_long(obj1, &val2);
9656 if (!SWIG_IsOK(ecode2)) {
9657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9658 }
9659 arg2 = static_cast< long >(val2);
9660 if (obj2) {
9661 ecode3 = SWIG_AsVal_int(obj2, &val3);
9662 if (!SWIG_IsOK(ecode3)) {
9663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9664 }
9665 arg3 = static_cast< int >(val3);
9666 }
9667 if (obj3) {
9668 ecode4 = SWIG_AsVal_int(obj3, &val4);
9669 if (!SWIG_IsOK(ecode4)) {
9670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9671 }
9672 arg4 = static_cast< int >(val4);
9673 }
9674 {
9675 if (!wxPyCheckForApp()) SWIG_fail;
9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
9677 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9682 {
9683 if (temp1)
9684 delete arg1;
9685 }
9686 return resultobj;
9687fail:
9688 {
9689 if (temp1)
9690 delete arg1;
9691 }
9692 return NULL;
d14a1e28
RD
9693}
9694
9695
0085ce49
RD
9696SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9697 PyObject *resultobj = 0;
9698 wxCursor *arg1 = (wxCursor *) 0 ;
9699 void *argp1 = 0 ;
9700 int res1 = 0 ;
9701 PyObject *swig_obj[1] ;
9702
9703 if (!args) SWIG_fail;
9704 swig_obj[0] = args;
9705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9706 if (!SWIG_IsOK(res1)) {
9707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9708 }
9709 arg1 = reinterpret_cast< wxCursor * >(argp1);
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 delete arg1;
093d3ff1 9713
0085ce49
RD
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) SWIG_fail;
9716 }
9717 resultobj = SWIG_Py_Void();
9718 return resultobj;
9719fail:
9720 return NULL;
9721}
9722
9723
9724SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9725 PyObject *resultobj = 0;
9726 int arg1 ;
9727 wxCursor *result = 0 ;
9728 int val1 ;
9729 int ecode1 = 0 ;
9730 PyObject * obj0 = 0 ;
9731 char * kwnames[] = {
9732 (char *) "id", NULL
9733 };
9734
9735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9736 ecode1 = SWIG_AsVal_int(obj0, &val1);
9737 if (!SWIG_IsOK(ecode1)) {
9738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9739 }
9740 arg1 = static_cast< int >(val1);
9741 {
9742 if (!wxPyCheckForApp()) SWIG_fail;
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (wxCursor *)new wxCursor(arg1);
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9749 return resultobj;
9750fail:
9751 return NULL;
9752}
9753
9754
9755SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj = 0;
9757 wxImage *arg1 = 0 ;
9758 wxCursor *result = 0 ;
9759 void *argp1 = 0 ;
9760 int res1 = 0 ;
9761 PyObject * obj0 = 0 ;
9762 char * kwnames[] = {
9763 (char *) "image", NULL
9764 };
9765
9766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9767 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9768 if (!SWIG_IsOK(res1)) {
9769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9770 }
9771 if (!argp1) {
9772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9773 }
9774 arg1 = reinterpret_cast< wxImage * >(argp1);
9775 {
9776 if (!wxPyCheckForApp()) SWIG_fail;
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9783 return resultobj;
9784fail:
9785 return NULL;
093d3ff1
RD
9786}
9787
9788
0085ce49
RD
9789SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9790 PyObject *resultobj = 0;
9791 wxCursor *arg1 = (wxCursor *) 0 ;
9792 bool result;
9793 void *argp1 = 0 ;
9794 int res1 = 0 ;
9795 PyObject *swig_obj[1] ;
9796
9797 if (!args) SWIG_fail;
9798 swig_obj[0] = args;
9799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9800 if (!SWIG_IsOK(res1)) {
9801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9802 }
9803 arg1 = reinterpret_cast< wxCursor * >(argp1);
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (bool)(arg1)->Ok();
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 {
9811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9812 }
9813 return resultobj;
9814fail:
9815 return NULL;
9816}
9817
9818
9819SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9820 PyObject *obj;
9821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9822 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9823 return SWIG_Py_Void();
9824}
9825
9826SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9827 return SWIG_Python_InitShadowInstance(args);
9828}
9829
9830SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9831 PyObject *resultobj = 0;
9832 int arg1 = (int) 0 ;
9833 int arg2 = (int) 0 ;
9834 int arg3 = (int) 0 ;
9835 int arg4 = (int) 0 ;
9836 wxRegion *result = 0 ;
9837 int val1 ;
9838 int ecode1 = 0 ;
9839 int val2 ;
9840 int ecode2 = 0 ;
9841 int val3 ;
9842 int ecode3 = 0 ;
9843 int val4 ;
9844 int ecode4 = 0 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 PyObject * obj2 = 0 ;
9848 PyObject * obj3 = 0 ;
9849 char * kwnames[] = {
9850 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9851 };
9852
9853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9854 if (obj0) {
9855 ecode1 = SWIG_AsVal_int(obj0, &val1);
9856 if (!SWIG_IsOK(ecode1)) {
9857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9858 }
9859 arg1 = static_cast< int >(val1);
9860 }
9861 if (obj1) {
9862 ecode2 = SWIG_AsVal_int(obj1, &val2);
9863 if (!SWIG_IsOK(ecode2)) {
9864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9865 }
9866 arg2 = static_cast< int >(val2);
9867 }
9868 if (obj2) {
9869 ecode3 = SWIG_AsVal_int(obj2, &val3);
9870 if (!SWIG_IsOK(ecode3)) {
9871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9872 }
9873 arg3 = static_cast< int >(val3);
9874 }
9875 if (obj3) {
9876 ecode4 = SWIG_AsVal_int(obj3, &val4);
9877 if (!SWIG_IsOK(ecode4)) {
9878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9879 }
9880 arg4 = static_cast< int >(val4);
9881 }
9882 {
9883 if (!wxPyCheckForApp()) SWIG_fail;
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9886 wxPyEndAllowThreads(__tstate);
9887 if (PyErr_Occurred()) SWIG_fail;
9888 }
9889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9890 return resultobj;
9891fail:
9892 return NULL;
9893}
9894
9895
9896SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9897 PyObject *resultobj = 0;
9898 wxBitmap *arg1 = 0 ;
9899 wxRegion *result = 0 ;
9900 void *argp1 = 0 ;
9901 int res1 = 0 ;
9902 PyObject * obj0 = 0 ;
9903 char * kwnames[] = {
9904 (char *) "bmp", NULL
9905 };
9906
9907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9908 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9909 if (!SWIG_IsOK(res1)) {
9910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9911 }
9912 if (!argp1) {
9913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9914 }
9915 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9916 {
9917 if (!wxPyCheckForApp()) SWIG_fail;
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9924 return resultobj;
9925fail:
9926 return NULL;
9927}
9928
9929
9930SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj = 0;
9932 wxBitmap *arg1 = 0 ;
9933 wxColour *arg2 = 0 ;
9934 int arg3 = (int) 0 ;
9935 wxRegion *result = 0 ;
9936 void *argp1 = 0 ;
9937 int res1 = 0 ;
9938 wxColour temp2 ;
9939 int val3 ;
9940 int ecode3 = 0 ;
9941 PyObject * obj0 = 0 ;
9942 PyObject * obj1 = 0 ;
9943 PyObject * obj2 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9949 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9950 if (!SWIG_IsOK(res1)) {
9951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9952 }
9953 if (!argp1) {
9954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9955 }
9956 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9957 {
9958 arg2 = &temp2;
9959 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9960 }
9961 if (obj2) {
9962 ecode3 = SWIG_AsVal_int(obj2, &val3);
9963 if (!SWIG_IsOK(ecode3)) {
9964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9965 }
9966 arg3 = static_cast< int >(val3);
9967 }
9968 {
9969 if (!wxPyCheckForApp()) SWIG_fail;
9970 PyThreadState* __tstate = wxPyBeginAllowThreads();
9971 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9976 return resultobj;
9977fail:
9978 return NULL;
9979}
9980
9981
9982SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9983 PyObject *resultobj = 0;
9984 int arg1 ;
9985 wxPoint *arg2 = (wxPoint *) 0 ;
9986 int arg3 = (int) wxWINDING_RULE ;
9987 wxRegion *result = 0 ;
9988 int val3 ;
9989 int ecode3 = 0 ;
9990 PyObject * obj0 = 0 ;
9991 PyObject * obj1 = 0 ;
9992 char * kwnames[] = {
9993 (char *) "points",(char *) "fillStyle", NULL
9994 };
9995
9996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9997 {
9998 arg2 = wxPoint_LIST_helper(obj0, &arg1);
9999 if (arg2 == NULL) SWIG_fail;
10000 }
10001 if (obj1) {
10002 ecode3 = SWIG_AsVal_int(obj1, &val3);
10003 if (!SWIG_IsOK(ecode3)) {
10004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10005 }
10006 arg3 = static_cast< int >(val3);
10007 }
10008 {
10009 if (!wxPyCheckForApp()) SWIG_fail;
10010 PyThreadState* __tstate = wxPyBeginAllowThreads();
10011 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10016 {
10017 if (arg2) delete [] arg2;
10018 }
10019 return resultobj;
10020fail:
10021 {
10022 if (arg2) delete [] arg2;
10023 }
10024 return NULL;
d14a1e28
RD
10025}
10026
10027
0085ce49
RD
10028SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10029 PyObject *resultobj = 0;
10030 wxRegion *arg1 = (wxRegion *) 0 ;
10031 void *argp1 = 0 ;
10032 int res1 = 0 ;
10033 PyObject *swig_obj[1] ;
10034
10035 if (!args) SWIG_fail;
10036 swig_obj[0] = args;
10037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10038 if (!SWIG_IsOK(res1)) {
10039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10040 }
10041 arg1 = reinterpret_cast< wxRegion * >(argp1);
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 delete arg1;
d14a1e28 10045
0085ce49
RD
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 resultobj = SWIG_Py_Void();
10050 return resultobj;
10051fail:
10052 return NULL;
d14a1e28
RD
10053}
10054
10055
0085ce49
RD
10056SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10057 PyObject *resultobj = 0;
10058 wxRegion *arg1 = (wxRegion *) 0 ;
10059 void *argp1 = 0 ;
10060 int res1 = 0 ;
10061 PyObject *swig_obj[1] ;
10062
10063 if (!args) SWIG_fail;
10064 swig_obj[0] = args;
10065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10066 if (!SWIG_IsOK(res1)) {
10067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10068 }
10069 arg1 = reinterpret_cast< wxRegion * >(argp1);
10070 {
10071 PyThreadState* __tstate = wxPyBeginAllowThreads();
10072 (arg1)->Clear();
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 resultobj = SWIG_Py_Void();
10077 return resultobj;
10078fail:
10079 return NULL;
10080}
10081
10082
10083SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10084 PyObject *resultobj = 0;
10085 wxRegion *arg1 = (wxRegion *) 0 ;
10086 int arg2 ;
10087 int arg3 ;
10088 bool result;
10089 void *argp1 = 0 ;
10090 int res1 = 0 ;
10091 int val2 ;
10092 int ecode2 = 0 ;
10093 int val3 ;
10094 int ecode3 = 0 ;
10095 PyObject * obj0 = 0 ;
10096 PyObject * obj1 = 0 ;
10097 PyObject * obj2 = 0 ;
10098 char * kwnames[] = {
10099 (char *) "self",(char *) "x",(char *) "y", NULL
10100 };
10101
10102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10104 if (!SWIG_IsOK(res1)) {
10105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10106 }
10107 arg1 = reinterpret_cast< wxRegion * >(argp1);
10108 ecode2 = SWIG_AsVal_int(obj1, &val2);
10109 if (!SWIG_IsOK(ecode2)) {
10110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10111 }
10112 arg2 = static_cast< int >(val2);
10113 ecode3 = SWIG_AsVal_int(obj2, &val3);
10114 if (!SWIG_IsOK(ecode3)) {
10115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10116 }
10117 arg3 = static_cast< int >(val3);
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (bool)(arg1)->Offset(arg2,arg3);
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 {
10125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10126 }
10127 return resultobj;
10128fail:
10129 return NULL;
10130}
10131
10132
10133SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj = 0;
10135 wxRegion *arg1 = (wxRegion *) 0 ;
10136 int arg2 ;
10137 int arg3 ;
10138 wxRegionContain result;
10139 void *argp1 = 0 ;
10140 int res1 = 0 ;
10141 int val2 ;
10142 int ecode2 = 0 ;
10143 int val3 ;
10144 int ecode3 = 0 ;
10145 PyObject * obj0 = 0 ;
10146 PyObject * obj1 = 0 ;
10147 PyObject * obj2 = 0 ;
10148 char * kwnames[] = {
10149 (char *) "self",(char *) "x",(char *) "y", NULL
10150 };
10151
10152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10154 if (!SWIG_IsOK(res1)) {
10155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10156 }
10157 arg1 = reinterpret_cast< wxRegion * >(argp1);
10158 ecode2 = SWIG_AsVal_int(obj1, &val2);
10159 if (!SWIG_IsOK(ecode2)) {
10160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10161 }
10162 arg2 = static_cast< int >(val2);
10163 ecode3 = SWIG_AsVal_int(obj2, &val3);
10164 if (!SWIG_IsOK(ecode3)) {
10165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10166 }
10167 arg3 = static_cast< int >(val3);
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10171 wxPyEndAllowThreads(__tstate);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 }
10174 resultobj = SWIG_From_int(static_cast< int >(result));
10175 return resultobj;
10176fail:
10177 return NULL;
10178}
10179
10180
10181SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10182 PyObject *resultobj = 0;
10183 wxRegion *arg1 = (wxRegion *) 0 ;
10184 wxPoint *arg2 = 0 ;
10185 wxRegionContain result;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 wxPoint temp2 ;
10189 PyObject * obj0 = 0 ;
10190 PyObject * obj1 = 0 ;
10191 char * kwnames[] = {
10192 (char *) "self",(char *) "pt", NULL
10193 };
10194
10195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10197 if (!SWIG_IsOK(res1)) {
10198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10199 }
10200 arg1 = reinterpret_cast< wxRegion * >(argp1);
10201 {
10202 arg2 = &temp2;
10203 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10204 }
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10208 wxPyEndAllowThreads(__tstate);
10209 if (PyErr_Occurred()) SWIG_fail;
10210 }
10211 resultobj = SWIG_From_int(static_cast< int >(result));
10212 return resultobj;
10213fail:
10214 return NULL;
10215}
10216
10217
10218SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10219 PyObject *resultobj = 0;
10220 wxRegion *arg1 = (wxRegion *) 0 ;
10221 wxRect *arg2 = 0 ;
10222 wxRegionContain result;
10223 void *argp1 = 0 ;
10224 int res1 = 0 ;
10225 wxRect temp2 ;
10226 PyObject * obj0 = 0 ;
10227 PyObject * obj1 = 0 ;
10228 char * kwnames[] = {
10229 (char *) "self",(char *) "rect", NULL
10230 };
10231
10232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10234 if (!SWIG_IsOK(res1)) {
10235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10236 }
10237 arg1 = reinterpret_cast< wxRegion * >(argp1);
10238 {
10239 arg2 = &temp2;
10240 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10241 }
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_From_int(static_cast< int >(result));
10249 return resultobj;
10250fail:
10251 return NULL;
10252}
10253
10254
10255SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj = 0;
10257 wxRegion *arg1 = (wxRegion *) 0 ;
10258 int arg2 ;
10259 int arg3 ;
10260 int arg4 ;
10261 int arg5 ;
10262 wxRegionContain result;
10263 void *argp1 = 0 ;
10264 int res1 = 0 ;
10265 int val2 ;
10266 int ecode2 = 0 ;
10267 int val3 ;
10268 int ecode3 = 0 ;
10269 int val4 ;
10270 int ecode4 = 0 ;
10271 int val5 ;
10272 int ecode5 = 0 ;
10273 PyObject * obj0 = 0 ;
10274 PyObject * obj1 = 0 ;
10275 PyObject * obj2 = 0 ;
10276 PyObject * obj3 = 0 ;
10277 PyObject * obj4 = 0 ;
10278 char * kwnames[] = {
10279 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10280 };
10281
10282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10284 if (!SWIG_IsOK(res1)) {
10285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10286 }
10287 arg1 = reinterpret_cast< wxRegion * >(argp1);
10288 ecode2 = SWIG_AsVal_int(obj1, &val2);
10289 if (!SWIG_IsOK(ecode2)) {
10290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10291 }
10292 arg2 = static_cast< int >(val2);
10293 ecode3 = SWIG_AsVal_int(obj2, &val3);
10294 if (!SWIG_IsOK(ecode3)) {
10295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10296 }
10297 arg3 = static_cast< int >(val3);
10298 ecode4 = SWIG_AsVal_int(obj3, &val4);
10299 if (!SWIG_IsOK(ecode4)) {
10300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10301 }
10302 arg4 = static_cast< int >(val4);
10303 ecode5 = SWIG_AsVal_int(obj4, &val5);
10304 if (!SWIG_IsOK(ecode5)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10306 }
10307 arg5 = static_cast< int >(val5);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 resultobj = SWIG_From_int(static_cast< int >(result));
10315 return resultobj;
10316fail:
10317 return NULL;
d14a1e28
RD
10318}
10319
10320
0085ce49
RD
10321SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10322 PyObject *resultobj = 0;
10323 wxRegion *arg1 = (wxRegion *) 0 ;
10324 wxRect result;
10325 void *argp1 = 0 ;
10326 int res1 = 0 ;
10327 PyObject *swig_obj[1] ;
10328
10329 if (!args) SWIG_fail;
10330 swig_obj[0] = args;
10331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10332 if (!SWIG_IsOK(res1)) {
10333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10334 }
10335 arg1 = reinterpret_cast< wxRegion * >(argp1);
10336 {
10337 PyThreadState* __tstate = wxPyBeginAllowThreads();
10338 result = (arg1)->GetBox();
10339 wxPyEndAllowThreads(__tstate);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10343 return resultobj;
10344fail:
10345 return NULL;
10346}
10347
10348
10349SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj = 0;
10351 wxRegion *arg1 = (wxRegion *) 0 ;
10352 int arg2 ;
10353 int arg3 ;
10354 int arg4 ;
10355 int arg5 ;
10356 bool result;
10357 void *argp1 = 0 ;
10358 int res1 = 0 ;
10359 int val2 ;
10360 int ecode2 = 0 ;
10361 int val3 ;
10362 int ecode3 = 0 ;
10363 int val4 ;
10364 int ecode4 = 0 ;
10365 int val5 ;
10366 int ecode5 = 0 ;
10367 PyObject * obj0 = 0 ;
10368 PyObject * obj1 = 0 ;
10369 PyObject * obj2 = 0 ;
10370 PyObject * obj3 = 0 ;
10371 PyObject * obj4 = 0 ;
10372 char * kwnames[] = {
10373 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10374 };
10375
10376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10378 if (!SWIG_IsOK(res1)) {
10379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10380 }
10381 arg1 = reinterpret_cast< wxRegion * >(argp1);
10382 ecode2 = SWIG_AsVal_int(obj1, &val2);
10383 if (!SWIG_IsOK(ecode2)) {
10384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10385 }
10386 arg2 = static_cast< int >(val2);
10387 ecode3 = SWIG_AsVal_int(obj2, &val3);
10388 if (!SWIG_IsOK(ecode3)) {
10389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10390 }
10391 arg3 = static_cast< int >(val3);
10392 ecode4 = SWIG_AsVal_int(obj3, &val4);
10393 if (!SWIG_IsOK(ecode4)) {
10394 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10395 }
10396 arg4 = static_cast< int >(val4);
10397 ecode5 = SWIG_AsVal_int(obj4, &val5);
10398 if (!SWIG_IsOK(ecode5)) {
10399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10400 }
10401 arg5 = static_cast< int >(val5);
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
10404 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10405 wxPyEndAllowThreads(__tstate);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
10408 {
10409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10410 }
10411 return resultobj;
10412fail:
10413 return NULL;
10414}
10415
10416
10417SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj = 0;
10419 wxRegion *arg1 = (wxRegion *) 0 ;
10420 wxRect *arg2 = 0 ;
10421 bool result;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 wxRect temp2 ;
10425 PyObject * obj0 = 0 ;
10426 PyObject * obj1 = 0 ;
10427 char * kwnames[] = {
10428 (char *) "self",(char *) "rect", NULL
10429 };
10430
10431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10433 if (!SWIG_IsOK(res1)) {
10434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10435 }
10436 arg1 = reinterpret_cast< wxRegion * >(argp1);
10437 {
10438 arg2 = &temp2;
10439 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10440 }
10441 {
10442 PyThreadState* __tstate = wxPyBeginAllowThreads();
10443 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10444 wxPyEndAllowThreads(__tstate);
10445 if (PyErr_Occurred()) SWIG_fail;
10446 }
10447 {
10448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10449 }
10450 return resultobj;
10451fail:
10452 return NULL;
10453}
10454
10455
10456SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10457 PyObject *resultobj = 0;
10458 wxRegion *arg1 = (wxRegion *) 0 ;
10459 wxRegion *arg2 = 0 ;
10460 bool result;
10461 void *argp1 = 0 ;
10462 int res1 = 0 ;
10463 void *argp2 = 0 ;
10464 int res2 = 0 ;
10465 PyObject * obj0 = 0 ;
10466 PyObject * obj1 = 0 ;
10467 char * kwnames[] = {
10468 (char *) "self",(char *) "region", NULL
10469 };
10470
10471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10473 if (!SWIG_IsOK(res1)) {
10474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10475 }
10476 arg1 = reinterpret_cast< wxRegion * >(argp1);
10477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10478 if (!SWIG_IsOK(res2)) {
10479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10480 }
10481 if (!argp2) {
10482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10483 }
10484 arg2 = reinterpret_cast< wxRegion * >(argp2);
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 {
10492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10493 }
10494 return resultobj;
10495fail:
10496 return NULL;
d14a1e28
RD
10497}
10498
10499
0085ce49
RD
10500SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10501 PyObject *resultobj = 0;
10502 wxRegion *arg1 = (wxRegion *) 0 ;
10503 bool result;
10504 void *argp1 = 0 ;
10505 int res1 = 0 ;
10506 PyObject *swig_obj[1] ;
10507
10508 if (!args) SWIG_fail;
10509 swig_obj[0] = args;
10510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10511 if (!SWIG_IsOK(res1)) {
10512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10513 }
10514 arg1 = reinterpret_cast< wxRegion * >(argp1);
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 result = (bool)(arg1)->IsEmpty();
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 {
10522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10523 }
10524 return resultobj;
10525fail:
10526 return NULL;
10527}
10528
10529
10530SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10531 PyObject *resultobj = 0;
10532 wxRegion *arg1 = (wxRegion *) 0 ;
10533 int arg2 ;
10534 int arg3 ;
10535 int arg4 ;
10536 int arg5 ;
10537 bool result;
10538 void *argp1 = 0 ;
10539 int res1 = 0 ;
10540 int val2 ;
10541 int ecode2 = 0 ;
10542 int val3 ;
10543 int ecode3 = 0 ;
10544 int val4 ;
10545 int ecode4 = 0 ;
10546 int val5 ;
10547 int ecode5 = 0 ;
10548 PyObject * obj0 = 0 ;
10549 PyObject * obj1 = 0 ;
10550 PyObject * obj2 = 0 ;
10551 PyObject * obj3 = 0 ;
10552 PyObject * obj4 = 0 ;
10553 char * kwnames[] = {
10554 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10555 };
10556
10557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10559 if (!SWIG_IsOK(res1)) {
10560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10561 }
10562 arg1 = reinterpret_cast< wxRegion * >(argp1);
10563 ecode2 = SWIG_AsVal_int(obj1, &val2);
10564 if (!SWIG_IsOK(ecode2)) {
10565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10566 }
10567 arg2 = static_cast< int >(val2);
10568 ecode3 = SWIG_AsVal_int(obj2, &val3);
10569 if (!SWIG_IsOK(ecode3)) {
10570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10571 }
10572 arg3 = static_cast< int >(val3);
10573 ecode4 = SWIG_AsVal_int(obj3, &val4);
10574 if (!SWIG_IsOK(ecode4)) {
10575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10576 }
10577 arg4 = static_cast< int >(val4);
10578 ecode5 = SWIG_AsVal_int(obj4, &val5);
10579 if (!SWIG_IsOK(ecode5)) {
10580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10581 }
10582 arg5 = static_cast< int >(val5);
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 {
10590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10591 }
10592 return resultobj;
10593fail:
10594 return NULL;
10595}
10596
10597
10598SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxRegion *arg1 = (wxRegion *) 0 ;
10601 wxRect *arg2 = 0 ;
10602 bool result;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 wxRect temp2 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 char * kwnames[] = {
10609 (char *) "self",(char *) "rect", NULL
10610 };
10611
10612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10614 if (!SWIG_IsOK(res1)) {
10615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10616 }
10617 arg1 = reinterpret_cast< wxRegion * >(argp1);
10618 {
10619 arg2 = &temp2;
10620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10621 }
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 {
10629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10630 }
10631 return resultobj;
10632fail:
10633 return NULL;
10634}
10635
10636
10637SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10638 PyObject *resultobj = 0;
10639 wxRegion *arg1 = (wxRegion *) 0 ;
10640 wxRegion *arg2 = 0 ;
10641 bool result;
10642 void *argp1 = 0 ;
10643 int res1 = 0 ;
10644 void *argp2 = 0 ;
10645 int res2 = 0 ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj1 = 0 ;
10648 char * kwnames[] = {
10649 (char *) "self",(char *) "region", NULL
10650 };
10651
10652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10654 if (!SWIG_IsOK(res1)) {
10655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10656 }
10657 arg1 = reinterpret_cast< wxRegion * >(argp1);
10658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10659 if (!SWIG_IsOK(res2)) {
10660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10661 }
10662 if (!argp2) {
10663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10664 }
10665 arg2 = reinterpret_cast< wxRegion * >(argp2);
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10669 wxPyEndAllowThreads(__tstate);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 {
10673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10674 }
10675 return resultobj;
10676fail:
10677 return NULL;
10678}
10679
10680
10681SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj = 0;
10683 wxRegion *arg1 = (wxRegion *) 0 ;
10684 int arg2 ;
10685 int arg3 ;
10686 int arg4 ;
10687 int arg5 ;
10688 bool result;
10689 void *argp1 = 0 ;
10690 int res1 = 0 ;
10691 int val2 ;
10692 int ecode2 = 0 ;
10693 int val3 ;
10694 int ecode3 = 0 ;
10695 int val4 ;
10696 int ecode4 = 0 ;
10697 int val5 ;
10698 int ecode5 = 0 ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 PyObject * obj2 = 0 ;
10702 PyObject * obj3 = 0 ;
10703 PyObject * obj4 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10712 }
10713 arg1 = reinterpret_cast< wxRegion * >(argp1);
10714 ecode2 = SWIG_AsVal_int(obj1, &val2);
10715 if (!SWIG_IsOK(ecode2)) {
10716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10717 }
10718 arg2 = static_cast< int >(val2);
10719 ecode3 = SWIG_AsVal_int(obj2, &val3);
10720 if (!SWIG_IsOK(ecode3)) {
10721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10722 }
10723 arg3 = static_cast< int >(val3);
10724 ecode4 = SWIG_AsVal_int(obj3, &val4);
10725 if (!SWIG_IsOK(ecode4)) {
10726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10727 }
10728 arg4 = static_cast< int >(val4);
10729 ecode5 = SWIG_AsVal_int(obj4, &val5);
10730 if (!SWIG_IsOK(ecode5)) {
10731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10732 }
10733 arg5 = static_cast< int >(val5);
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 {
10741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10742 }
10743 return resultobj;
10744fail:
10745 return NULL;
10746}
10747
10748
10749SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj = 0;
10751 wxRegion *arg1 = (wxRegion *) 0 ;
10752 wxRect *arg2 = 0 ;
10753 bool result;
10754 void *argp1 = 0 ;
10755 int res1 = 0 ;
10756 wxRect temp2 ;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char * kwnames[] = {
10760 (char *) "self",(char *) "rect", NULL
10761 };
10762
10763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10765 if (!SWIG_IsOK(res1)) {
10766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10767 }
10768 arg1 = reinterpret_cast< wxRegion * >(argp1);
10769 {
10770 arg2 = &temp2;
10771 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10772 }
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10776 wxPyEndAllowThreads(__tstate);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 }
10779 {
10780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10781 }
10782 return resultobj;
10783fail:
10784 return NULL;
10785}
10786
10787
10788SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj = 0;
10790 wxRegion *arg1 = (wxRegion *) 0 ;
10791 wxRegion *arg2 = 0 ;
10792 bool result;
10793 void *argp1 = 0 ;
10794 int res1 = 0 ;
10795 void *argp2 = 0 ;
10796 int res2 = 0 ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 char * kwnames[] = {
10800 (char *) "self",(char *) "region", NULL
10801 };
10802
10803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10805 if (!SWIG_IsOK(res1)) {
10806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10807 }
10808 arg1 = reinterpret_cast< wxRegion * >(argp1);
10809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10810 if (!SWIG_IsOK(res2)) {
10811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10812 }
10813 if (!argp2) {
10814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10815 }
10816 arg2 = reinterpret_cast< wxRegion * >(argp2);
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 {
10824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10825 }
10826 return resultobj;
10827fail:
10828 return NULL;
10829}
10830
10831
10832SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10833 PyObject *resultobj = 0;
10834 wxRegion *arg1 = (wxRegion *) 0 ;
10835 int arg2 ;
10836 int arg3 ;
10837 int arg4 ;
10838 int arg5 ;
10839 bool result;
10840 void *argp1 = 0 ;
10841 int res1 = 0 ;
10842 int val2 ;
10843 int ecode2 = 0 ;
10844 int val3 ;
10845 int ecode3 = 0 ;
10846 int val4 ;
10847 int ecode4 = 0 ;
10848 int val5 ;
10849 int ecode5 = 0 ;
10850 PyObject * obj0 = 0 ;
10851 PyObject * obj1 = 0 ;
10852 PyObject * obj2 = 0 ;
10853 PyObject * obj3 = 0 ;
10854 PyObject * obj4 = 0 ;
10855 char * kwnames[] = {
10856 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10857 };
10858
10859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10861 if (!SWIG_IsOK(res1)) {
10862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10863 }
10864 arg1 = reinterpret_cast< wxRegion * >(argp1);
10865 ecode2 = SWIG_AsVal_int(obj1, &val2);
10866 if (!SWIG_IsOK(ecode2)) {
10867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10868 }
10869 arg2 = static_cast< int >(val2);
10870 ecode3 = SWIG_AsVal_int(obj2, &val3);
10871 if (!SWIG_IsOK(ecode3)) {
10872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10873 }
10874 arg3 = static_cast< int >(val3);
10875 ecode4 = SWIG_AsVal_int(obj3, &val4);
10876 if (!SWIG_IsOK(ecode4)) {
10877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10878 }
10879 arg4 = static_cast< int >(val4);
10880 ecode5 = SWIG_AsVal_int(obj4, &val5);
10881 if (!SWIG_IsOK(ecode5)) {
10882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10883 }
10884 arg5 = static_cast< int >(val5);
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 {
10892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10893 }
10894 return resultobj;
10895fail:
10896 return NULL;
10897}
10898
10899
10900SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10901 PyObject *resultobj = 0;
10902 wxRegion *arg1 = (wxRegion *) 0 ;
10903 wxRect *arg2 = 0 ;
10904 bool result;
10905 void *argp1 = 0 ;
10906 int res1 = 0 ;
10907 wxRect temp2 ;
10908 PyObject * obj0 = 0 ;
10909 PyObject * obj1 = 0 ;
10910 char * kwnames[] = {
10911 (char *) "self",(char *) "rect", NULL
10912 };
10913
10914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10916 if (!SWIG_IsOK(res1)) {
10917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10918 }
10919 arg1 = reinterpret_cast< wxRegion * >(argp1);
10920 {
10921 arg2 = &temp2;
10922 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10923 }
10924 {
10925 PyThreadState* __tstate = wxPyBeginAllowThreads();
10926 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 {
10931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10932 }
10933 return resultobj;
10934fail:
10935 return NULL;
10936}
10937
10938
10939SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10940 PyObject *resultobj = 0;
10941 wxRegion *arg1 = (wxRegion *) 0 ;
10942 wxRegion *arg2 = 0 ;
10943 bool result;
10944 void *argp1 = 0 ;
10945 int res1 = 0 ;
10946 void *argp2 = 0 ;
10947 int res2 = 0 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 char * kwnames[] = {
10951 (char *) "self",(char *) "region", NULL
10952 };
10953
10954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10956 if (!SWIG_IsOK(res1)) {
10957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10958 }
10959 arg1 = reinterpret_cast< wxRegion * >(argp1);
10960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10961 if (!SWIG_IsOK(res2)) {
10962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10963 }
10964 if (!argp2) {
10965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10966 }
10967 arg2 = reinterpret_cast< wxRegion * >(argp2);
10968 {
10969 PyThreadState* __tstate = wxPyBeginAllowThreads();
10970 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 {
10975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10976 }
10977 return resultobj;
10978fail:
10979 return NULL;
d14a1e28
RD
10980}
10981
10982
0085ce49
RD
10983SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10984 PyObject *resultobj = 0;
10985 wxRegion *arg1 = (wxRegion *) 0 ;
10986 SwigValueWrapper<wxBitmap > result;
10987 void *argp1 = 0 ;
10988 int res1 = 0 ;
10989 PyObject *swig_obj[1] ;
10990
10991 if (!args) SWIG_fail;
10992 swig_obj[0] = args;
10993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10994 if (!SWIG_IsOK(res1)) {
10995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
10996 }
10997 arg1 = reinterpret_cast< wxRegion * >(argp1);
10998 {
10999 PyThreadState* __tstate = wxPyBeginAllowThreads();
11000 result = (arg1)->ConvertToBitmap();
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11005 return resultobj;
11006fail:
11007 return NULL;
11008}
11009
11010
11011SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11012 PyObject *resultobj = 0;
11013 wxRegion *arg1 = (wxRegion *) 0 ;
11014 wxBitmap *arg2 = 0 ;
11015 bool result;
11016 void *argp1 = 0 ;
11017 int res1 = 0 ;
11018 void *argp2 = 0 ;
11019 int res2 = 0 ;
11020 PyObject * obj0 = 0 ;
11021 PyObject * obj1 = 0 ;
11022 char * kwnames[] = {
11023 (char *) "self",(char *) "bmp", NULL
11024 };
11025
11026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11028 if (!SWIG_IsOK(res1)) {
11029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11030 }
11031 arg1 = reinterpret_cast< wxRegion * >(argp1);
11032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11033 if (!SWIG_IsOK(res2)) {
11034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11035 }
11036 if (!argp2) {
11037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11038 }
11039 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11043 wxPyEndAllowThreads(__tstate);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 {
11047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11048 }
11049 return resultobj;
11050fail:
11051 return NULL;
11052}
11053
11054
11055SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11056 PyObject *resultobj = 0;
11057 wxRegion *arg1 = (wxRegion *) 0 ;
11058 wxBitmap *arg2 = 0 ;
11059 wxColour *arg3 = 0 ;
11060 int arg4 = (int) 0 ;
11061 bool result;
11062 void *argp1 = 0 ;
11063 int res1 = 0 ;
11064 void *argp2 = 0 ;
11065 int res2 = 0 ;
11066 wxColour temp3 ;
11067 int val4 ;
11068 int ecode4 = 0 ;
11069 PyObject * obj0 = 0 ;
11070 PyObject * obj1 = 0 ;
11071 PyObject * obj2 = 0 ;
11072 PyObject * obj3 = 0 ;
11073 char * kwnames[] = {
11074 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11075 };
11076
11077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11079 if (!SWIG_IsOK(res1)) {
11080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11081 }
11082 arg1 = reinterpret_cast< wxRegion * >(argp1);
11083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11084 if (!SWIG_IsOK(res2)) {
11085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11086 }
11087 if (!argp2) {
11088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11089 }
11090 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11091 {
11092 arg3 = &temp3;
11093 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11094 }
11095 if (obj3) {
11096 ecode4 = SWIG_AsVal_int(obj3, &val4);
11097 if (!SWIG_IsOK(ecode4)) {
11098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11099 }
11100 arg4 = static_cast< int >(val4);
11101 }
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11105 wxPyEndAllowThreads(__tstate);
11106 if (PyErr_Occurred()) SWIG_fail;
11107 }
11108 {
11109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11110 }
11111 return resultobj;
11112fail:
11113 return NULL;
d14a1e28
RD
11114}
11115
11116
0085ce49
RD
11117SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11118 PyObject *obj;
11119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11120 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11121 return SWIG_Py_Void();
d14a1e28
RD
11122}
11123
0085ce49
RD
11124SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11125 return SWIG_Python_InitShadowInstance(args);
11126}
d14a1e28 11127
0085ce49
RD
11128SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj = 0;
11130 wxRegion *arg1 = 0 ;
11131 wxRegionIterator *result = 0 ;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 PyObject * obj0 = 0 ;
11135 char * kwnames[] = {
11136 (char *) "region", NULL
11137 };
11138
11139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11140 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11141 if (!SWIG_IsOK(res1)) {
11142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11143 }
11144 if (!argp1) {
11145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11146 }
11147 arg1 = reinterpret_cast< wxRegion * >(argp1);
11148 {
11149 if (!wxPyCheckForApp()) SWIG_fail;
11150 PyThreadState* __tstate = wxPyBeginAllowThreads();
11151 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11156 return resultobj;
11157fail:
11158 return NULL;
d14a1e28
RD
11159}
11160
11161
0085ce49
RD
11162SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11163 PyObject *resultobj = 0;
11164 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11165 void *argp1 = 0 ;
11166 int res1 = 0 ;
11167 PyObject *swig_obj[1] ;
11168
11169 if (!args) SWIG_fail;
11170 swig_obj[0] = args;
11171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11172 if (!SWIG_IsOK(res1)) {
11173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11174 }
11175 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11176 {
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 delete arg1;
d14a1e28 11179
0085ce49
RD
11180 wxPyEndAllowThreads(__tstate);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 }
11183 resultobj = SWIG_Py_Void();
11184 return resultobj;
11185fail:
11186 return NULL;
d14a1e28
RD
11187}
11188
11189
0085ce49
RD
11190SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11191 PyObject *resultobj = 0;
11192 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11193 int result;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 PyObject *swig_obj[1] ;
11197
11198 if (!args) SWIG_fail;
11199 swig_obj[0] = args;
11200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11203 }
11204 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 result = (int)(arg1)->GetX();
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 resultobj = SWIG_From_int(static_cast< int >(result));
11212 return resultobj;
11213fail:
11214 return NULL;
d14a1e28
RD
11215}
11216
11217
0085ce49
RD
11218SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11219 PyObject *resultobj = 0;
11220 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11221 int result;
11222 void *argp1 = 0 ;
11223 int res1 = 0 ;
11224 PyObject *swig_obj[1] ;
11225
11226 if (!args) SWIG_fail;
11227 swig_obj[0] = args;
11228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11229 if (!SWIG_IsOK(res1)) {
11230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11231 }
11232 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 result = (int)(arg1)->GetY();
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_From_int(static_cast< int >(result));
11240 return resultobj;
11241fail:
11242 return NULL;
d14a1e28
RD
11243}
11244
11245
0085ce49
RD
11246SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11249 int result;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11259 }
11260 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 result = (int)(arg1)->GetW();
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 resultobj = SWIG_From_int(static_cast< int >(result));
11268 return resultobj;
11269fail:
11270 return NULL;
d14a1e28
RD
11271}
11272
11273
0085ce49
RD
11274SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11275 PyObject *resultobj = 0;
11276 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11277 int result;
11278 void *argp1 = 0 ;
11279 int res1 = 0 ;
11280 PyObject *swig_obj[1] ;
11281
11282 if (!args) SWIG_fail;
11283 swig_obj[0] = args;
11284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11285 if (!SWIG_IsOK(res1)) {
11286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11287 }
11288 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 result = (int)(arg1)->GetWidth();
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 resultobj = SWIG_From_int(static_cast< int >(result));
11296 return resultobj;
11297fail:
11298 return NULL;
093d3ff1
RD
11299}
11300
11301
0085ce49
RD
11302SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11303 PyObject *resultobj = 0;
11304 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11305 int result;
11306 void *argp1 = 0 ;
11307 int res1 = 0 ;
11308 PyObject *swig_obj[1] ;
11309
11310 if (!args) SWIG_fail;
11311 swig_obj[0] = args;
11312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11315 }
11316 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (int)(arg1)->GetH();
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 resultobj = SWIG_From_int(static_cast< int >(result));
11324 return resultobj;
11325fail:
11326 return NULL;
d14a1e28
RD
11327}
11328
11329
0085ce49
RD
11330SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11331 PyObject *resultobj = 0;
11332 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11333 int result;
11334 void *argp1 = 0 ;
11335 int res1 = 0 ;
11336 PyObject *swig_obj[1] ;
11337
11338 if (!args) SWIG_fail;
11339 swig_obj[0] = args;
11340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11343 }
11344 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 result = (int)(arg1)->GetHeight();
11348 wxPyEndAllowThreads(__tstate);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 resultobj = SWIG_From_int(static_cast< int >(result));
11352 return resultobj;
11353fail:
11354 return NULL;
093d3ff1
RD
11355}
11356
11357
0085ce49
RD
11358SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11359 PyObject *resultobj = 0;
11360 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11361 wxRect result;
11362 void *argp1 = 0 ;
11363 int res1 = 0 ;
11364 PyObject *swig_obj[1] ;
11365
11366 if (!args) SWIG_fail;
11367 swig_obj[0] = args;
11368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11369 if (!SWIG_IsOK(res1)) {
11370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11371 }
11372 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11373 {
11374 PyThreadState* __tstate = wxPyBeginAllowThreads();
11375 result = (arg1)->GetRect();
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11380 return resultobj;
11381fail:
11382 return NULL;
d14a1e28
RD
11383}
11384
11385
0085ce49
RD
11386SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11387 PyObject *resultobj = 0;
11388 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11389 bool result;
11390 void *argp1 = 0 ;
11391 int res1 = 0 ;
11392 PyObject *swig_obj[1] ;
11393
11394 if (!args) SWIG_fail;
11395 swig_obj[0] = args;
11396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11397 if (!SWIG_IsOK(res1)) {
11398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11399 }
11400 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11401 {
11402 PyThreadState* __tstate = wxPyBeginAllowThreads();
11403 result = (bool)(arg1)->HaveRects();
11404 wxPyEndAllowThreads(__tstate);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 {
11408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11409 }
11410 return resultobj;
11411fail:
11412 return NULL;
093d3ff1
RD
11413}
11414
11415
0085ce49
RD
11416SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11417 PyObject *resultobj = 0;
11418 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11419 void *argp1 = 0 ;
11420 int res1 = 0 ;
11421 PyObject *swig_obj[1] ;
11422
11423 if (!args) SWIG_fail;
11424 swig_obj[0] = args;
11425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11426 if (!SWIG_IsOK(res1)) {
11427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11428 }
11429 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 (arg1)->Reset();
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 resultobj = SWIG_Py_Void();
11437 return resultobj;
11438fail:
11439 return NULL;
d14a1e28
RD
11440}
11441
11442
0085ce49
RD
11443SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11444 PyObject *resultobj = 0;
11445 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 PyObject *swig_obj[1] ;
11449
11450 if (!args) SWIG_fail;
11451 swig_obj[0] = args;
11452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11453 if (!SWIG_IsOK(res1)) {
11454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11455 }
11456 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 wxRegionIterator_Next(arg1);
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 resultobj = SWIG_Py_Void();
11464 return resultobj;
11465fail:
11466 return NULL;
d14a1e28
RD
11467}
11468
11469
0085ce49
RD
11470SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11471 PyObject *resultobj = 0;
11472 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11473 bool result;
11474 void *argp1 = 0 ;
11475 int res1 = 0 ;
11476 PyObject *swig_obj[1] ;
11477
11478 if (!args) SWIG_fail;
11479 swig_obj[0] = args;
11480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11481 if (!SWIG_IsOK(res1)) {
11482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11483 }
11484 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 result = (bool)wxRegionIterator___nonzero__(arg1);
11488 wxPyEndAllowThreads(__tstate);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 }
11491 {
11492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11493 }
11494 return resultobj;
11495fail:
11496 return NULL;
d14a1e28
RD
11497}
11498
11499
0085ce49
RD
11500SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11501 PyObject *obj;
11502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11503 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11504 return SWIG_Py_Void();
d14a1e28
RD
11505}
11506
0085ce49
RD
11507SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11508 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
11509}
11510
0085ce49
RD
11511SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11512 PyObject *resultobj = 0;
11513 wxNativeFontInfo *result = 0 ;
11514
11515 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11523 return resultobj;
11524fail:
11525 return NULL;
d14a1e28
RD
11526}
11527
11528
0085ce49
RD
11529SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11530 PyObject *resultobj = 0;
11531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11532 void *argp1 = 0 ;
11533 int res1 = 0 ;
11534 PyObject *swig_obj[1] ;
11535
11536 if (!args) SWIG_fail;
11537 swig_obj[0] = args;
11538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11539 if (!SWIG_IsOK(res1)) {
11540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11541 }
11542 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 delete arg1;
d14a1e28 11546
0085ce49
RD
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 resultobj = SWIG_Py_Void();
11551 return resultobj;
11552fail:
11553 return NULL;
d14a1e28
RD
11554}
11555
11556
0085ce49
RD
11557SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11558 PyObject *resultobj = 0;
11559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11560 void *argp1 = 0 ;
11561 int res1 = 0 ;
11562 PyObject *swig_obj[1] ;
11563
11564 if (!args) SWIG_fail;
11565 swig_obj[0] = args;
11566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11567 if (!SWIG_IsOK(res1)) {
11568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11569 }
11570 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11571 {
11572 PyThreadState* __tstate = wxPyBeginAllowThreads();
11573 (arg1)->Init();
11574 wxPyEndAllowThreads(__tstate);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 }
11577 resultobj = SWIG_Py_Void();
11578 return resultobj;
11579fail:
11580 return NULL;
11581}
11582
11583
11584SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11585 PyObject *resultobj = 0;
11586 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11587 wxFont *arg2 = 0 ;
11588 void *argp1 = 0 ;
11589 int res1 = 0 ;
11590 void *argp2 = 0 ;
11591 int res2 = 0 ;
11592 PyObject * obj0 = 0 ;
11593 PyObject * obj1 = 0 ;
11594 char * kwnames[] = {
11595 (char *) "self",(char *) "font", NULL
11596 };
11597
11598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11600 if (!SWIG_IsOK(res1)) {
11601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11602 }
11603 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11605 if (!SWIG_IsOK(res2)) {
11606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11607 }
11608 if (!argp2) {
11609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11610 }
11611 arg2 = reinterpret_cast< wxFont * >(argp2);
11612 {
11613 PyThreadState* __tstate = wxPyBeginAllowThreads();
11614 (arg1)->InitFromFont((wxFont const &)*arg2);
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 resultobj = SWIG_Py_Void();
11619 return resultobj;
11620fail:
11621 return NULL;
e6ffcedd
RD
11622}
11623
11624
0085ce49
RD
11625SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11626 PyObject *resultobj = 0;
11627 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11628 int result;
11629 void *argp1 = 0 ;
11630 int res1 = 0 ;
11631 PyObject *swig_obj[1] ;
11632
11633 if (!args) SWIG_fail;
11634 swig_obj[0] = args;
11635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11636 if (!SWIG_IsOK(res1)) {
11637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11638 }
11639 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 resultobj = SWIG_From_int(static_cast< int >(result));
11647 return resultobj;
11648fail:
11649 return NULL;
d14a1e28
RD
11650}
11651
11652
0085ce49
RD
11653SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11654 PyObject *resultobj = 0;
11655 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11656 wxFontStyle result;
11657 void *argp1 = 0 ;
11658 int res1 = 0 ;
11659 PyObject *swig_obj[1] ;
11660
11661 if (!args) SWIG_fail;
11662 swig_obj[0] = args;
11663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11664 if (!SWIG_IsOK(res1)) {
11665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11666 }
11667 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11671 wxPyEndAllowThreads(__tstate);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 resultobj = SWIG_From_int(static_cast< int >(result));
11675 return resultobj;
11676fail:
11677 return NULL;
d14a1e28
RD
11678}
11679
11680
0085ce49
RD
11681SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11682 PyObject *resultobj = 0;
11683 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11684 wxFontWeight result;
11685 void *argp1 = 0 ;
11686 int res1 = 0 ;
11687 PyObject *swig_obj[1] ;
11688
11689 if (!args) SWIG_fail;
11690 swig_obj[0] = args;
11691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11692 if (!SWIG_IsOK(res1)) {
11693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11694 }
11695 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11696 {
11697 PyThreadState* __tstate = wxPyBeginAllowThreads();
11698 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 }
11702 resultobj = SWIG_From_int(static_cast< int >(result));
11703 return resultobj;
11704fail:
11705 return NULL;
d14a1e28
RD
11706}
11707
11708
0085ce49
RD
11709SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11710 PyObject *resultobj = 0;
11711 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11712 bool result;
11713 void *argp1 = 0 ;
11714 int res1 = 0 ;
11715 PyObject *swig_obj[1] ;
11716
11717 if (!args) SWIG_fail;
11718 swig_obj[0] = args;
11719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11720 if (!SWIG_IsOK(res1)) {
11721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11722 }
11723 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 {
11731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11732 }
11733 return resultobj;
11734fail:
11735 return NULL;
d14a1e28
RD
11736}
11737
11738
0085ce49
RD
11739SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11740 PyObject *resultobj = 0;
11741 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11742 wxString result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 PyObject *swig_obj[1] ;
11746
11747 if (!args) SWIG_fail;
11748 swig_obj[0] = args;
11749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11750 if (!SWIG_IsOK(res1)) {
11751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11752 }
11753 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 {
11761#if wxUSE_UNICODE
11762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11763#else
11764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11765#endif
11766 }
11767 return resultobj;
11768fail:
11769 return NULL;
d14a1e28
RD
11770}
11771
11772
0085ce49
RD
11773SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11774 PyObject *resultobj = 0;
11775 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11776 wxFontFamily result;
11777 void *argp1 = 0 ;
11778 int res1 = 0 ;
11779 PyObject *swig_obj[1] ;
11780
11781 if (!args) SWIG_fail;
11782 swig_obj[0] = args;
11783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11784 if (!SWIG_IsOK(res1)) {
11785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11786 }
11787 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11788 {
11789 PyThreadState* __tstate = wxPyBeginAllowThreads();
11790 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 resultobj = SWIG_From_int(static_cast< int >(result));
11795 return resultobj;
11796fail:
11797 return NULL;
d14a1e28
RD
11798}
11799
11800
0085ce49
RD
11801SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11802 PyObject *resultobj = 0;
11803 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11804 wxFontEncoding result;
11805 void *argp1 = 0 ;
11806 int res1 = 0 ;
11807 PyObject *swig_obj[1] ;
11808
11809 if (!args) SWIG_fail;
11810 swig_obj[0] = args;
11811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11814 }
11815 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 }
11822 resultobj = SWIG_From_int(static_cast< int >(result));
11823 return resultobj;
11824fail:
11825 return NULL;
11826}
11827
11828
11829SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11830 PyObject *resultobj = 0;
11831 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11832 int arg2 ;
11833 void *argp1 = 0 ;
11834 int res1 = 0 ;
11835 int val2 ;
11836 int ecode2 = 0 ;
11837 PyObject * obj0 = 0 ;
11838 PyObject * obj1 = 0 ;
11839 char * kwnames[] = {
11840 (char *) "self",(char *) "pointsize", NULL
11841 };
11842
11843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11845 if (!SWIG_IsOK(res1)) {
11846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11847 }
11848 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11849 ecode2 = SWIG_AsVal_int(obj1, &val2);
11850 if (!SWIG_IsOK(ecode2)) {
11851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11852 }
11853 arg2 = static_cast< int >(val2);
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 (arg1)->SetPointSize(arg2);
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 resultobj = SWIG_Py_Void();
11861 return resultobj;
11862fail:
11863 return NULL;
11864}
11865
11866
11867SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj = 0;
11869 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11870 wxFontStyle arg2 ;
11871 void *argp1 = 0 ;
11872 int res1 = 0 ;
11873 int val2 ;
11874 int ecode2 = 0 ;
11875 PyObject * obj0 = 0 ;
11876 PyObject * obj1 = 0 ;
11877 char * kwnames[] = {
11878 (char *) "self",(char *) "style", NULL
11879 };
11880
11881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11883 if (!SWIG_IsOK(res1)) {
11884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11885 }
11886 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11887 ecode2 = SWIG_AsVal_int(obj1, &val2);
11888 if (!SWIG_IsOK(ecode2)) {
11889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11890 }
11891 arg2 = static_cast< wxFontStyle >(val2);
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 (arg1)->SetStyle(arg2);
11895 wxPyEndAllowThreads(__tstate);
11896 if (PyErr_Occurred()) SWIG_fail;
11897 }
11898 resultobj = SWIG_Py_Void();
11899 return resultobj;
11900fail:
11901 return NULL;
11902}
11903
11904
11905SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11906 PyObject *resultobj = 0;
11907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11908 wxFontWeight arg2 ;
11909 void *argp1 = 0 ;
11910 int res1 = 0 ;
11911 int val2 ;
11912 int ecode2 = 0 ;
11913 PyObject * obj0 = 0 ;
11914 PyObject * obj1 = 0 ;
11915 char * kwnames[] = {
11916 (char *) "self",(char *) "weight", NULL
11917 };
11918
11919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11921 if (!SWIG_IsOK(res1)) {
11922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11923 }
11924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11925 ecode2 = SWIG_AsVal_int(obj1, &val2);
11926 if (!SWIG_IsOK(ecode2)) {
11927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11928 }
11929 arg2 = static_cast< wxFontWeight >(val2);
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 (arg1)->SetWeight(arg2);
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 resultobj = SWIG_Py_Void();
11937 return resultobj;
11938fail:
11939 return NULL;
11940}
11941
11942
11943SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11944 PyObject *resultobj = 0;
11945 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11946 bool arg2 ;
11947 void *argp1 = 0 ;
11948 int res1 = 0 ;
11949 bool val2 ;
11950 int ecode2 = 0 ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 char * kwnames[] = {
11954 (char *) "self",(char *) "underlined", NULL
11955 };
11956
11957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
11958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11961 }
11962 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11963 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11964 if (!SWIG_IsOK(ecode2)) {
11965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
11966 }
11967 arg2 = static_cast< bool >(val2);
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 (arg1)->SetUnderlined(arg2);
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = SWIG_Py_Void();
11975 return resultobj;
11976fail:
11977 return NULL;
11978}
11979
11980
11981SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11982 PyObject *resultobj = 0;
11983 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11984 wxString arg2 ;
704eda0c 11985 bool result;
0085ce49
RD
11986 void *argp1 = 0 ;
11987 int res1 = 0 ;
11988 PyObject * obj0 = 0 ;
11989 PyObject * obj1 = 0 ;
11990 char * kwnames[] = {
11991 (char *) "self",(char *) "facename", NULL
11992 };
11993
11994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
11995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11996 if (!SWIG_IsOK(res1)) {
11997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11998 }
11999 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12000 {
12001 wxString* sptr = wxString_in_helper(obj1);
12002 if (sptr == NULL) SWIG_fail;
12003 arg2 = *sptr;
12004 delete sptr;
12005 }
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12008 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
704eda0c
RD
12012 {
12013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12014 }
0085ce49
RD
12015 return resultobj;
12016fail:
12017 return NULL;
12018}
12019
12020
12021SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12022 PyObject *resultobj = 0;
12023 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12024 wxFontFamily arg2 ;
12025 void *argp1 = 0 ;
12026 int res1 = 0 ;
12027 int val2 ;
12028 int ecode2 = 0 ;
12029 PyObject * obj0 = 0 ;
12030 PyObject * obj1 = 0 ;
12031 char * kwnames[] = {
12032 (char *) "self",(char *) "family", NULL
12033 };
12034
12035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12037 if (!SWIG_IsOK(res1)) {
12038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12039 }
12040 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12041 ecode2 = SWIG_AsVal_int(obj1, &val2);
12042 if (!SWIG_IsOK(ecode2)) {
12043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12044 }
12045 arg2 = static_cast< wxFontFamily >(val2);
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 (arg1)->SetFamily(arg2);
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 resultobj = SWIG_Py_Void();
12053 return resultobj;
12054fail:
12055 return NULL;
12056}
12057
12058
12059SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12060 PyObject *resultobj = 0;
12061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12062 wxFontEncoding arg2 ;
12063 void *argp1 = 0 ;
12064 int res1 = 0 ;
12065 int val2 ;
12066 int ecode2 = 0 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 char * kwnames[] = {
12070 (char *) "self",(char *) "encoding", NULL
12071 };
12072
12073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12075 if (!SWIG_IsOK(res1)) {
12076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12077 }
12078 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12079 ecode2 = SWIG_AsVal_int(obj1, &val2);
12080 if (!SWIG_IsOK(ecode2)) {
12081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12082 }
12083 arg2 = static_cast< wxFontEncoding >(val2);
12084 {
12085 PyThreadState* __tstate = wxPyBeginAllowThreads();
12086 (arg1)->SetEncoding(arg2);
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 resultobj = SWIG_Py_Void();
12091 return resultobj;
12092fail:
12093 return NULL;
12094}
12095
12096
12097SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12098 PyObject *resultobj = 0;
12099 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12100 wxString *arg2 = 0 ;
12101 bool result;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 bool temp2 = false ;
12105 PyObject * obj0 = 0 ;
12106 PyObject * obj1 = 0 ;
12107 char * kwnames[] = {
12108 (char *) "self",(char *) "s", NULL
12109 };
12110
12111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12113 if (!SWIG_IsOK(res1)) {
12114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12115 }
12116 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12117 {
12118 arg2 = wxString_in_helper(obj1);
12119 if (arg2 == NULL) SWIG_fail;
12120 temp2 = true;
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12125 wxPyEndAllowThreads(__tstate);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 {
12129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12130 }
12131 {
12132 if (temp2)
12133 delete arg2;
12134 }
12135 return resultobj;
12136fail:
12137 {
12138 if (temp2)
12139 delete arg2;
12140 }
12141 return NULL;
d14a1e28
RD
12142}
12143
12144
0085ce49
RD
12145SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12148 wxString 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_wxNativeFontInfo, 0 | 0 );
12156 if (!SWIG_IsOK(res1)) {
12157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12158 }
12159 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 result = ((wxNativeFontInfo const *)arg1)->ToString();
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 {
12167#if wxUSE_UNICODE
12168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12169#else
12170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12171#endif
12172 }
12173 return resultobj;
12174fail:
12175 return NULL;
d14a1e28
RD
12176}
12177
12178
0085ce49
RD
12179SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12180 PyObject *resultobj = 0;
12181 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12182 wxString result;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 PyObject *swig_obj[1] ;
12186
12187 if (!args) SWIG_fail;
12188 swig_obj[0] = args;
12189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12190 if (!SWIG_IsOK(res1)) {
12191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12192 }
12193 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 result = wxNativeFontInfo___str__(arg1);
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 {
12201#if wxUSE_UNICODE
12202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12203#else
12204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12205#endif
12206 }
12207 return resultobj;
12208fail:
12209 return NULL;
12210}
12211
12212
12213SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj = 0;
12215 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12216 wxString *arg2 = 0 ;
12217 bool result;
12218 void *argp1 = 0 ;
12219 int res1 = 0 ;
12220 bool temp2 = false ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 char * kwnames[] = {
12224 (char *) "self",(char *) "s", NULL
12225 };
12226
12227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12229 if (!SWIG_IsOK(res1)) {
12230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12231 }
12232 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12233 {
12234 arg2 = wxString_in_helper(obj1);
12235 if (arg2 == NULL) SWIG_fail;
12236 temp2 = true;
12237 }
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12246 }
12247 {
12248 if (temp2)
12249 delete arg2;
12250 }
12251 return resultobj;
12252fail:
12253 {
12254 if (temp2)
12255 delete arg2;
12256 }
12257 return NULL;
d14a1e28
RD
12258}
12259
12260
0085ce49
RD
12261SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12262 PyObject *resultobj = 0;
12263 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12264 wxString result;
12265 void *argp1 = 0 ;
12266 int res1 = 0 ;
12267 PyObject *swig_obj[1] ;
12268
12269 if (!args) SWIG_fail;
12270 swig_obj[0] = args;
12271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12272 if (!SWIG_IsOK(res1)) {
12273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12274 }
12275 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12276 {
12277 PyThreadState* __tstate = wxPyBeginAllowThreads();
12278 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283#if wxUSE_UNICODE
12284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12285#else
12286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12287#endif
12288 }
12289 return resultobj;
12290fail:
12291 return NULL;
d14a1e28
RD
12292}
12293
12294
0085ce49
RD
12295SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12296 PyObject *obj;
12297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12298 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12299 return SWIG_Py_Void();
d14a1e28
RD
12300}
12301
0085ce49
RD
12302SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12303 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12304}
12305
0085ce49
RD
12306SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 PyObject *resultobj = 0;
12308 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12309 wxString *arg2 = (wxString *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 bool temp2 = false ;
12313 PyObject *swig_obj[2] ;
12314
12315 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12319 }
12320 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12321 {
12322 arg2 = wxString_in_helper(swig_obj[1]);
12323 if (arg2 == NULL) SWIG_fail;
12324 temp2 = true;
12325 }
12326 if (arg1) (arg1)->facename = *arg2;
12327
12328 resultobj = SWIG_Py_Void();
12329 {
12330 if (temp2)
12331 delete arg2;
12332 }
12333 return resultobj;
12334fail:
12335 {
12336 if (temp2)
12337 delete arg2;
12338 }
12339 return NULL;
d14a1e28
RD
12340}
12341
12342
0085ce49
RD
12343SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12344 PyObject *resultobj = 0;
12345 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12346 wxString *result = 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_wxNativeEncodingInfo, 0 | 0 );
12354 if (!SWIG_IsOK(res1)) {
12355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12356 }
12357 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12358 result = (wxString *)& ((arg1)->facename);
12359 {
12360#if wxUSE_UNICODE
12361 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12362#else
12363 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12364#endif
12365 }
12366 return resultobj;
12367fail:
12368 return NULL;
d14a1e28
RD
12369}
12370
12371
0085ce49
RD
12372SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12373 PyObject *resultobj = 0;
12374 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12375 wxFontEncoding arg2 ;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 int val2 ;
12379 int ecode2 = 0 ;
12380 PyObject *swig_obj[2] ;
12381
12382 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12386 }
12387 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12388 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12389 if (!SWIG_IsOK(ecode2)) {
12390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12391 }
12392 arg2 = static_cast< wxFontEncoding >(val2);
12393 if (arg1) (arg1)->encoding = arg2;
12394
12395 resultobj = SWIG_Py_Void();
12396 return resultobj;
12397fail:
12398 return NULL;
d14a1e28
RD
12399}
12400
12401
0085ce49
RD
12402SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12403 PyObject *resultobj = 0;
12404 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12405 wxFontEncoding result;
12406 void *argp1 = 0 ;
12407 int res1 = 0 ;
12408 PyObject *swig_obj[1] ;
12409
12410 if (!args) SWIG_fail;
12411 swig_obj[0] = args;
12412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12415 }
12416 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12417 result = (wxFontEncoding) ((arg1)->encoding);
12418 resultobj = SWIG_From_int(static_cast< int >(result));
12419 return resultobj;
12420fail:
12421 return NULL;
d14a1e28
RD
12422}
12423
12424
0085ce49
RD
12425SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12426 PyObject *resultobj = 0;
12427 wxNativeEncodingInfo *result = 0 ;
12428
12429 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12437 return resultobj;
12438fail:
12439 return NULL;
d14a1e28
RD
12440}
12441
12442
0085ce49
RD
12443SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12444 PyObject *resultobj = 0;
12445 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12446 void *argp1 = 0 ;
12447 int res1 = 0 ;
12448 PyObject *swig_obj[1] ;
12449
12450 if (!args) SWIG_fail;
12451 swig_obj[0] = args;
12452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12453 if (!SWIG_IsOK(res1)) {
12454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12455 }
12456 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 delete arg1;
d14a1e28 12460
0085ce49
RD
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_Py_Void();
12465 return resultobj;
12466fail:
12467 return NULL;
12468}
12469
12470
12471SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj = 0;
12473 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12474 wxString *arg2 = 0 ;
12475 bool result;
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 bool temp2 = false ;
12479 PyObject * obj0 = 0 ;
12480 PyObject * obj1 = 0 ;
12481 char * kwnames[] = {
12482 (char *) "self",(char *) "s", NULL
12483 };
12484
12485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12487 if (!SWIG_IsOK(res1)) {
12488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12489 }
12490 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12491 {
12492 arg2 = wxString_in_helper(obj1);
12493 if (arg2 == NULL) SWIG_fail;
12494 temp2 = true;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 {
12503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12504 }
12505 {
12506 if (temp2)
12507 delete arg2;
12508 }
12509 return resultobj;
12510fail:
12511 {
12512 if (temp2)
12513 delete arg2;
12514 }
12515 return NULL;
d14a1e28
RD
12516}
12517
12518
0085ce49
RD
12519SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12520 PyObject *resultobj = 0;
12521 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12522 wxString result;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 {
12541#if wxUSE_UNICODE
12542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12543#else
12544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12545#endif
12546 }
12547 return resultobj;
12548fail:
12549 return NULL;
d14a1e28
RD
12550}
12551
12552
0085ce49
RD
12553SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12554 PyObject *obj;
12555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12556 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12557 return SWIG_Py_Void();
d14a1e28
RD
12558}
12559
0085ce49
RD
12560SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12561 return SWIG_Python_InitShadowInstance(args);
12562}
d14a1e28 12563
0085ce49
RD
12564SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12565 PyObject *resultobj = 0;
12566 wxFontEncoding arg1 ;
12567 wxNativeEncodingInfo *result = 0 ;
12568 int val1 ;
12569 int ecode1 = 0 ;
12570 PyObject * obj0 = 0 ;
12571 char * kwnames[] = {
12572 (char *) "encoding", NULL
12573 };
12574
12575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12576 ecode1 = SWIG_AsVal_int(obj0, &val1);
12577 if (!SWIG_IsOK(ecode1)) {
12578 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12579 }
12580 arg1 = static_cast< wxFontEncoding >(val1);
12581 {
12582 PyThreadState* __tstate = wxPyBeginAllowThreads();
12583 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12584 wxPyEndAllowThreads(__tstate);
12585 if (PyErr_Occurred()) SWIG_fail;
12586 }
12587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12588 return resultobj;
12589fail:
12590 return NULL;
12591}
12592
12593
12594SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12595 PyObject *resultobj = 0;
12596 wxNativeEncodingInfo *arg1 = 0 ;
12597 bool result;
12598 void *argp1 = 0 ;
12599 int res1 = 0 ;
12600 PyObject * obj0 = 0 ;
12601 char * kwnames[] = {
12602 (char *) "info", NULL
12603 };
12604
12605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12606 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12607 if (!SWIG_IsOK(res1)) {
12608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12609 }
12610 if (!argp1) {
12611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12612 }
12613 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12614 {
12615 PyThreadState* __tstate = wxPyBeginAllowThreads();
12616 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 {
12621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12622 }
12623 return resultobj;
12624fail:
12625 return NULL;
d14a1e28
RD
12626}
12627
12628
0085ce49
RD
12629SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12630 PyObject *resultobj = 0;
12631 wxFontMapper *result = 0 ;
12632
12633 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 result = (wxFontMapper *)new wxFontMapper();
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12641 return resultobj;
12642fail:
12643 return NULL;
d14a1e28
RD
12644}
12645
12646
0085ce49
RD
12647SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12648 PyObject *resultobj = 0;
12649 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12650 void *argp1 = 0 ;
12651 int res1 = 0 ;
12652 PyObject *swig_obj[1] ;
12653
12654 if (!args) SWIG_fail;
12655 swig_obj[0] = args;
12656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12657 if (!SWIG_IsOK(res1)) {
12658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12659 }
12660 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 delete arg1;
d14a1e28 12664
0085ce49
RD
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 resultobj = SWIG_Py_Void();
12669 return resultobj;
12670fail:
12671 return NULL;
d14a1e28
RD
12672}
12673
12674
0085ce49
RD
12675SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12676 PyObject *resultobj = 0;
12677 wxFontMapper *result = 0 ;
12678
12679 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 result = (wxFontMapper *)wxFontMapper::Get();
12683 wxPyEndAllowThreads(__tstate);
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12687 return resultobj;
12688fail:
12689 return NULL;
12690}
12691
12692
12693SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12694 PyObject *resultobj = 0;
12695 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12696 wxFontMapper *result = 0 ;
12697 void *argp1 = 0 ;
12698 int res1 = 0 ;
12699 PyObject * obj0 = 0 ;
12700 char * kwnames[] = {
12701 (char *) "mapper", NULL
12702 };
12703
12704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12706 if (!SWIG_IsOK(res1)) {
12707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12708 }
12709 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12710 {
12711 PyThreadState* __tstate = wxPyBeginAllowThreads();
12712 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12717 return resultobj;
12718fail:
12719 return NULL;
12720}
12721
12722
12723SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj = 0;
12725 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12726 wxString *arg2 = 0 ;
12727 bool arg3 = (bool) true ;
12728 wxFontEncoding result;
12729 void *argp1 = 0 ;
12730 int res1 = 0 ;
12731 bool temp2 = false ;
12732 bool val3 ;
12733 int ecode3 = 0 ;
12734 PyObject * obj0 = 0 ;
12735 PyObject * obj1 = 0 ;
12736 PyObject * obj2 = 0 ;
12737 char * kwnames[] = {
12738 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12739 };
12740
12741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12743 if (!SWIG_IsOK(res1)) {
12744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12745 }
12746 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12747 {
12748 arg2 = wxString_in_helper(obj1);
12749 if (arg2 == NULL) SWIG_fail;
12750 temp2 = true;
12751 }
12752 if (obj2) {
12753 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12754 if (!SWIG_IsOK(ecode3)) {
12755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12756 }
12757 arg3 = static_cast< bool >(val3);
12758 }
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 resultobj = SWIG_From_int(static_cast< int >(result));
12766 {
12767 if (temp2)
12768 delete arg2;
12769 }
12770 return resultobj;
12771fail:
12772 {
12773 if (temp2)
12774 delete arg2;
12775 }
12776 return NULL;
e6ffcedd
RD
12777}
12778
12779
0085ce49
RD
12780SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12781 PyObject *resultobj = 0;
12782 size_t result;
12783
12784 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12792 return resultobj;
12793fail:
12794 return NULL;
12795}
12796
12797
12798SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj = 0;
12800 size_t arg1 ;
12801 wxFontEncoding result;
12802 size_t val1 ;
12803 int ecode1 = 0 ;
12804 PyObject * obj0 = 0 ;
12805 char * kwnames[] = {
12806 (char *) "n", NULL
12807 };
12808
12809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12810 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12811 if (!SWIG_IsOK(ecode1)) {
12812 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12813 }
12814 arg1 = static_cast< size_t >(val1);
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_From_int(static_cast< int >(result));
12822 return resultobj;
12823fail:
12824 return NULL;
12825}
12826
12827
12828SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj = 0;
12830 wxFontEncoding arg1 ;
12831 wxString result;
12832 int val1 ;
12833 int ecode1 = 0 ;
12834 PyObject * obj0 = 0 ;
12835 char * kwnames[] = {
12836 (char *) "encoding", NULL
12837 };
12838
12839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12840 ecode1 = SWIG_AsVal_int(obj0, &val1);
12841 if (!SWIG_IsOK(ecode1)) {
12842 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12843 }
12844 arg1 = static_cast< wxFontEncoding >(val1);
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 result = wxFontMapper::GetEncodingName(arg1);
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 {
12852#if wxUSE_UNICODE
12853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12854#else
12855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12856#endif
12857 }
12858 return resultobj;
12859fail:
12860 return NULL;
d14a1e28
RD
12861}
12862
12863
0085ce49
RD
12864SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxFontEncoding arg1 ;
12867 wxString result;
12868 int val1 ;
12869 int ecode1 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 char * kwnames[] = {
12872 (char *) "encoding", NULL
12873 };
12874
12875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12876 ecode1 = SWIG_AsVal_int(obj0, &val1);
12877 if (!SWIG_IsOK(ecode1)) {
12878 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12879 }
12880 arg1 = static_cast< wxFontEncoding >(val1);
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = wxFontMapper::GetEncodingDescription(arg1);
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 {
12888#if wxUSE_UNICODE
12889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12890#else
12891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12892#endif
12893 }
12894 return resultobj;
12895fail:
12896 return NULL;
d14a1e28
RD
12897}
12898
12899
0085ce49
RD
12900SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12901 PyObject *resultobj = 0;
12902 wxString *arg1 = 0 ;
12903 wxFontEncoding result;
12904 bool temp1 = false ;
12905 PyObject * obj0 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "name", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12911 {
12912 arg1 = wxString_in_helper(obj0);
12913 if (arg1 == NULL) SWIG_fail;
12914 temp1 = true;
12915 }
12916 {
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
12918 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12919 wxPyEndAllowThreads(__tstate);
12920 if (PyErr_Occurred()) SWIG_fail;
12921 }
12922 resultobj = SWIG_From_int(static_cast< int >(result));
12923 {
12924 if (temp1)
12925 delete arg1;
12926 }
12927 return resultobj;
12928fail:
12929 {
12930 if (temp1)
12931 delete arg1;
12932 }
12933 return NULL;
d14a1e28
RD
12934}
12935
12936
0085ce49
RD
12937SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12938 PyObject *resultobj = 0;
12939 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12940 wxString *arg2 = 0 ;
12941 void *argp1 = 0 ;
12942 int res1 = 0 ;
12943 bool temp2 = false ;
12944 PyObject * obj0 = 0 ;
12945 PyObject * obj1 = 0 ;
12946 char * kwnames[] = {
12947 (char *) "self",(char *) "prefix", NULL
12948 };
12949
12950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12952 if (!SWIG_IsOK(res1)) {
12953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12954 }
12955 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12956 {
12957 arg2 = wxString_in_helper(obj1);
12958 if (arg2 == NULL) SWIG_fail;
12959 temp2 = true;
12960 }
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 (arg1)->SetConfigPath((wxString const &)*arg2);
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_Py_Void();
12968 {
12969 if (temp2)
12970 delete arg2;
12971 }
12972 return resultobj;
12973fail:
12974 {
12975 if (temp2)
12976 delete arg2;
12977 }
12978 return NULL;
d14a1e28
RD
12979}
12980
12981
0085ce49
RD
12982SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12983 PyObject *resultobj = 0;
12984 wxString result;
12985
12986 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = wxFontMapper::GetDefaultConfigPath();
12990 wxPyEndAllowThreads(__tstate);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 {
12994#if wxUSE_UNICODE
12995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12996#else
12997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12998#endif
12999 }
13000 return resultobj;
13001fail:
13002 return NULL;
13003}
13004
13005
13006SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13007 PyObject *resultobj = 0;
13008 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13009 wxFontEncoding arg2 ;
13010 wxString const &arg3_defvalue = wxPyEmptyString ;
13011 wxString *arg3 = (wxString *) &arg3_defvalue ;
13012 bool arg4 = (bool) true ;
13013 PyObject *result = 0 ;
13014 void *argp1 = 0 ;
13015 int res1 = 0 ;
13016 int val2 ;
13017 int ecode2 = 0 ;
13018 bool temp3 = false ;
13019 bool val4 ;
13020 int ecode4 = 0 ;
13021 PyObject * obj0 = 0 ;
13022 PyObject * obj1 = 0 ;
13023 PyObject * obj2 = 0 ;
13024 PyObject * obj3 = 0 ;
13025 char * kwnames[] = {
13026 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13027 };
13028
13029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13031 if (!SWIG_IsOK(res1)) {
13032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13033 }
13034 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13035 ecode2 = SWIG_AsVal_int(obj1, &val2);
13036 if (!SWIG_IsOK(ecode2)) {
13037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13038 }
13039 arg2 = static_cast< wxFontEncoding >(val2);
13040 if (obj2) {
093d3ff1 13041 {
0085ce49
RD
13042 arg3 = wxString_in_helper(obj2);
13043 if (arg3 == NULL) SWIG_fail;
13044 temp3 = true;
093d3ff1 13045 }
0085ce49
RD
13046 }
13047 if (obj3) {
13048 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13049 if (!SWIG_IsOK(ecode4)) {
13050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13051 }
13052 arg4 = static_cast< bool >(val4);
13053 }
13054 {
13055 PyThreadState* __tstate = wxPyBeginAllowThreads();
13056 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 resultobj = result;
13061 {
13062 if (temp3)
13063 delete arg3;
13064 }
13065 return resultobj;
13066fail:
13067 {
13068 if (temp3)
13069 delete arg3;
13070 }
13071 return NULL;
13072}
13073
13074
13075SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13076 PyObject *resultobj = 0;
13077 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13078 wxFontEncoding arg2 ;
13079 wxString const &arg3_defvalue = wxPyEmptyString ;
13080 wxString *arg3 = (wxString *) &arg3_defvalue ;
13081 bool result;
13082 void *argp1 = 0 ;
13083 int res1 = 0 ;
13084 int val2 ;
13085 int ecode2 = 0 ;
13086 bool temp3 = false ;
13087 PyObject * obj0 = 0 ;
13088 PyObject * obj1 = 0 ;
13089 PyObject * obj2 = 0 ;
13090 char * kwnames[] = {
13091 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13092 };
13093
13094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13096 if (!SWIG_IsOK(res1)) {
13097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13098 }
13099 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13100 ecode2 = SWIG_AsVal_int(obj1, &val2);
13101 if (!SWIG_IsOK(ecode2)) {
13102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13103 }
13104 arg2 = static_cast< wxFontEncoding >(val2);
13105 if (obj2) {
d14a1e28 13106 {
0085ce49
RD
13107 arg3 = wxString_in_helper(obj2);
13108 if (arg3 == NULL) SWIG_fail;
13109 temp3 = true;
d14a1e28 13110 }
0085ce49
RD
13111 }
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 {
13119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13120 }
13121 {
13122 if (temp3)
13123 delete arg3;
13124 }
13125 return resultobj;
13126fail:
13127 {
13128 if (temp3)
13129 delete arg3;
13130 }
13131 return NULL;
13132}
13133
13134
13135SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj = 0;
13137 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13138 wxWindow *arg2 = (wxWindow *) 0 ;
13139 void *argp1 = 0 ;
13140 int res1 = 0 ;
13141 void *argp2 = 0 ;
13142 int res2 = 0 ;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char * kwnames[] = {
13146 (char *) "self",(char *) "parent", NULL
13147 };
13148
13149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13151 if (!SWIG_IsOK(res1)) {
13152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13153 }
13154 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13156 if (!SWIG_IsOK(res2)) {
13157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13158 }
13159 arg2 = reinterpret_cast< wxWindow * >(argp2);
13160 {
13161 PyThreadState* __tstate = wxPyBeginAllowThreads();
13162 (arg1)->SetDialogParent(arg2);
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 resultobj = SWIG_Py_Void();
13167 return resultobj;
13168fail:
13169 return NULL;
13170}
13171
13172
13173SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj = 0;
13175 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13176 wxString *arg2 = 0 ;
13177 void *argp1 = 0 ;
13178 int res1 = 0 ;
13179 bool temp2 = false ;
13180 PyObject * obj0 = 0 ;
13181 PyObject * obj1 = 0 ;
13182 char * kwnames[] = {
13183 (char *) "self",(char *) "title", NULL
13184 };
13185
13186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13188 if (!SWIG_IsOK(res1)) {
13189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13190 }
13191 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13192 {
13193 arg2 = wxString_in_helper(obj1);
13194 if (arg2 == NULL) SWIG_fail;
13195 temp2 = true;
13196 }
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 (arg1)->SetDialogTitle((wxString const &)*arg2);
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 resultobj = SWIG_Py_Void();
13204 {
13205 if (temp2)
13206 delete arg2;
13207 }
13208 return resultobj;
13209fail:
13210 {
13211 if (temp2)
13212 delete arg2;
13213 }
13214 return NULL;
13215}
13216
13217
13218SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13219 PyObject *obj;
13220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13221 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13222 return SWIG_Py_Void();
13223}
13224
13225SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13226 return SWIG_Python_InitShadowInstance(args);
13227}
13228
13229SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13230 PyObject *resultobj = 0;
13231 int arg1 ;
13232 int arg2 ;
13233 int arg3 ;
13234 int arg4 ;
13235 bool arg5 = (bool) false ;
13236 wxString const &arg6_defvalue = wxPyEmptyString ;
13237 wxString *arg6 = (wxString *) &arg6_defvalue ;
13238 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13239 wxFont *result = 0 ;
13240 int val1 ;
13241 int ecode1 = 0 ;
13242 int val2 ;
13243 int ecode2 = 0 ;
13244 int val3 ;
13245 int ecode3 = 0 ;
13246 int val4 ;
13247 int ecode4 = 0 ;
13248 bool val5 ;
13249 int ecode5 = 0 ;
13250 bool temp6 = false ;
13251 int val7 ;
13252 int ecode7 = 0 ;
13253 PyObject * obj0 = 0 ;
13254 PyObject * obj1 = 0 ;
13255 PyObject * obj2 = 0 ;
13256 PyObject * obj3 = 0 ;
13257 PyObject * obj4 = 0 ;
13258 PyObject * obj5 = 0 ;
13259 PyObject * obj6 = 0 ;
13260 char * kwnames[] = {
13261 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13262 };
13263
13264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13265 ecode1 = SWIG_AsVal_int(obj0, &val1);
13266 if (!SWIG_IsOK(ecode1)) {
13267 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13268 }
13269 arg1 = static_cast< int >(val1);
13270 ecode2 = SWIG_AsVal_int(obj1, &val2);
13271 if (!SWIG_IsOK(ecode2)) {
13272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13273 }
13274 arg2 = static_cast< int >(val2);
13275 ecode3 = SWIG_AsVal_int(obj2, &val3);
13276 if (!SWIG_IsOK(ecode3)) {
13277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13278 }
13279 arg3 = static_cast< int >(val3);
13280 ecode4 = SWIG_AsVal_int(obj3, &val4);
13281 if (!SWIG_IsOK(ecode4)) {
13282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13283 }
13284 arg4 = static_cast< int >(val4);
13285 if (obj4) {
13286 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13287 if (!SWIG_IsOK(ecode5)) {
13288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13289 }
13290 arg5 = static_cast< bool >(val5);
13291 }
13292 if (obj5) {
093d3ff1 13293 {
0085ce49
RD
13294 arg6 = wxString_in_helper(obj5);
13295 if (arg6 == NULL) SWIG_fail;
13296 temp6 = true;
093d3ff1 13297 }
0085ce49
RD
13298 }
13299 if (obj6) {
13300 ecode7 = SWIG_AsVal_int(obj6, &val7);
13301 if (!SWIG_IsOK(ecode7)) {
13302 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13303 }
13304 arg7 = static_cast< wxFontEncoding >(val7);
13305 }
13306 {
13307 if (!wxPyCheckForApp()) SWIG_fail;
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13314 {
13315 if (temp6)
13316 delete arg6;
13317 }
13318 return resultobj;
13319fail:
13320 {
13321 if (temp6)
13322 delete arg6;
13323 }
13324 return NULL;
d14a1e28
RD
13325}
13326
13327
0085ce49
RD
13328SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13329 PyObject *resultobj = 0;
13330 wxFont *arg1 = (wxFont *) 0 ;
13331 void *argp1 = 0 ;
13332 int res1 = 0 ;
13333 PyObject *swig_obj[1] ;
13334
13335 if (!args) SWIG_fail;
13336 swig_obj[0] = args;
13337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13338 if (!SWIG_IsOK(res1)) {
13339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13340 }
13341 arg1 = reinterpret_cast< wxFont * >(argp1);
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 delete arg1;
d14a1e28 13345
0085ce49
RD
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 resultobj = SWIG_Py_Void();
13350 return resultobj;
13351fail:
13352 return NULL;
13353}
13354
13355
13356SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13357 PyObject *resultobj = 0;
13358 wxNativeFontInfo *arg1 = 0 ;
13359 wxFont *result = 0 ;
13360 void *argp1 = 0 ;
13361 int res1 = 0 ;
13362 PyObject * obj0 = 0 ;
13363 char * kwnames[] = {
13364 (char *) "info", NULL
13365 };
13366
13367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13368 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13369 if (!SWIG_IsOK(res1)) {
13370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13371 }
13372 if (!argp1) {
13373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13374 }
13375 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13376 {
13377 if (!wxPyCheckForApp()) SWIG_fail;
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
13379 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13384 return resultobj;
13385fail:
13386 return NULL;
d14a1e28
RD
13387}
13388
13389
0085ce49
RD
13390SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj = 0;
13392 wxString *arg1 = 0 ;
13393 wxFont *result = 0 ;
13394 bool temp1 = false ;
13395 PyObject * obj0 = 0 ;
13396 char * kwnames[] = {
13397 (char *) "info", NULL
13398 };
13399
13400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13401 {
13402 arg1 = wxString_in_helper(obj0);
13403 if (arg1 == NULL) SWIG_fail;
13404 temp1 = true;
13405 }
13406 {
13407 if (!wxPyCheckForApp()) SWIG_fail;
13408 PyThreadState* __tstate = wxPyBeginAllowThreads();
13409 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13410 wxPyEndAllowThreads(__tstate);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
13413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13414 {
13415 if (temp1)
13416 delete arg1;
13417 }
13418 return resultobj;
13419fail:
13420 {
13421 if (temp1)
13422 delete arg1;
13423 }
13424 return NULL;
13425}
13426
13427
13428SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13429 PyObject *resultobj = 0;
13430 int arg1 ;
13431 wxFontFamily arg2 ;
13432 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13433 wxString const &arg4_defvalue = wxPyEmptyString ;
13434 wxString *arg4 = (wxString *) &arg4_defvalue ;
13435 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13436 wxFont *result = 0 ;
13437 int val1 ;
13438 int ecode1 = 0 ;
13439 int val2 ;
13440 int ecode2 = 0 ;
13441 int val3 ;
13442 int ecode3 = 0 ;
13443 bool temp4 = false ;
13444 int val5 ;
13445 int ecode5 = 0 ;
13446 PyObject * obj0 = 0 ;
13447 PyObject * obj1 = 0 ;
13448 PyObject * obj2 = 0 ;
13449 PyObject * obj3 = 0 ;
13450 PyObject * obj4 = 0 ;
13451 char * kwnames[] = {
13452 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13453 };
13454
13455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13456 ecode1 = SWIG_AsVal_int(obj0, &val1);
13457 if (!SWIG_IsOK(ecode1)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13459 }
13460 arg1 = static_cast< int >(val1);
13461 ecode2 = SWIG_AsVal_int(obj1, &val2);
13462 if (!SWIG_IsOK(ecode2)) {
13463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13464 }
13465 arg2 = static_cast< wxFontFamily >(val2);
13466 if (obj2) {
13467 ecode3 = SWIG_AsVal_int(obj2, &val3);
13468 if (!SWIG_IsOK(ecode3)) {
13469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13470 }
13471 arg3 = static_cast< int >(val3);
13472 }
13473 if (obj3) {
093d3ff1 13474 {
0085ce49
RD
13475 arg4 = wxString_in_helper(obj3);
13476 if (arg4 == NULL) SWIG_fail;
13477 temp4 = true;
093d3ff1 13478 }
0085ce49
RD
13479 }
13480 if (obj4) {
13481 ecode5 = SWIG_AsVal_int(obj4, &val5);
13482 if (!SWIG_IsOK(ecode5)) {
13483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13484 }
13485 arg5 = static_cast< wxFontEncoding >(val5);
13486 }
13487 {
13488 if (!wxPyCheckForApp()) SWIG_fail;
13489 PyThreadState* __tstate = wxPyBeginAllowThreads();
13490 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13495 {
13496 if (temp4)
13497 delete arg4;
13498 }
13499 return resultobj;
13500fail:
13501 {
13502 if (temp4)
13503 delete arg4;
13504 }
13505 return NULL;
13506}
13507
13508
13509SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13510 PyObject *resultobj = 0;
13511 wxSize *arg1 = 0 ;
13512 int arg2 ;
13513 int arg3 ;
13514 int arg4 ;
13515 bool arg5 = (bool) false ;
13516 wxString const &arg6_defvalue = wxEmptyString ;
13517 wxString *arg6 = (wxString *) &arg6_defvalue ;
13518 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13519 wxFont *result = 0 ;
13520 wxSize temp1 ;
13521 int val2 ;
13522 int ecode2 = 0 ;
13523 int val3 ;
13524 int ecode3 = 0 ;
13525 int val4 ;
13526 int ecode4 = 0 ;
13527 bool val5 ;
13528 int ecode5 = 0 ;
13529 bool temp6 = false ;
13530 int val7 ;
13531 int ecode7 = 0 ;
13532 PyObject * obj0 = 0 ;
13533 PyObject * obj1 = 0 ;
13534 PyObject * obj2 = 0 ;
13535 PyObject * obj3 = 0 ;
13536 PyObject * obj4 = 0 ;
13537 PyObject * obj5 = 0 ;
13538 PyObject * obj6 = 0 ;
13539 char * kwnames[] = {
13540 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13541 };
13542
13543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13544 {
13545 arg1 = &temp1;
13546 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13547 }
13548 ecode2 = SWIG_AsVal_int(obj1, &val2);
13549 if (!SWIG_IsOK(ecode2)) {
13550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13551 }
13552 arg2 = static_cast< int >(val2);
13553 ecode3 = SWIG_AsVal_int(obj2, &val3);
13554 if (!SWIG_IsOK(ecode3)) {
13555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13556 }
13557 arg3 = static_cast< int >(val3);
13558 ecode4 = SWIG_AsVal_int(obj3, &val4);
13559 if (!SWIG_IsOK(ecode4)) {
13560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13561 }
13562 arg4 = static_cast< int >(val4);
13563 if (obj4) {
13564 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13565 if (!SWIG_IsOK(ecode5)) {
13566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13567 }
13568 arg5 = static_cast< bool >(val5);
13569 }
13570 if (obj5) {
d14a1e28 13571 {
0085ce49
RD
13572 arg6 = wxString_in_helper(obj5);
13573 if (arg6 == NULL) SWIG_fail;
13574 temp6 = true;
d14a1e28 13575 }
0085ce49
RD
13576 }
13577 if (obj6) {
13578 ecode7 = SWIG_AsVal_int(obj6, &val7);
13579 if (!SWIG_IsOK(ecode7)) {
13580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13581 }
13582 arg7 = static_cast< wxFontEncoding >(val7);
13583 }
13584 {
13585 if (!wxPyCheckForApp()) SWIG_fail;
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13592 {
13593 if (temp6)
13594 delete arg6;
13595 }
13596 return resultobj;
13597fail:
13598 {
13599 if (temp6)
13600 delete arg6;
13601 }
13602 return NULL;
13603}
13604
13605
13606SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13607 PyObject *resultobj = 0;
13608 wxSize *arg1 = 0 ;
13609 wxFontFamily arg2 ;
13610 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13611 wxString const &arg4_defvalue = wxEmptyString ;
13612 wxString *arg4 = (wxString *) &arg4_defvalue ;
13613 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13614 wxFont *result = 0 ;
13615 wxSize temp1 ;
13616 int val2 ;
13617 int ecode2 = 0 ;
13618 int val3 ;
13619 int ecode3 = 0 ;
13620 bool temp4 = false ;
13621 int val5 ;
13622 int ecode5 = 0 ;
13623 PyObject * obj0 = 0 ;
13624 PyObject * obj1 = 0 ;
13625 PyObject * obj2 = 0 ;
13626 PyObject * obj3 = 0 ;
13627 PyObject * obj4 = 0 ;
13628 char * kwnames[] = {
13629 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13630 };
13631
13632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13633 {
13634 arg1 = &temp1;
13635 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13636 }
13637 ecode2 = SWIG_AsVal_int(obj1, &val2);
13638 if (!SWIG_IsOK(ecode2)) {
13639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13640 }
13641 arg2 = static_cast< wxFontFamily >(val2);
13642 if (obj2) {
13643 ecode3 = SWIG_AsVal_int(obj2, &val3);
13644 if (!SWIG_IsOK(ecode3)) {
13645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13646 }
13647 arg3 = static_cast< int >(val3);
13648 }
13649 if (obj3) {
093d3ff1 13650 {
0085ce49
RD
13651 arg4 = wxString_in_helper(obj3);
13652 if (arg4 == NULL) SWIG_fail;
13653 temp4 = true;
093d3ff1 13654 }
0085ce49
RD
13655 }
13656 if (obj4) {
13657 ecode5 = SWIG_AsVal_int(obj4, &val5);
13658 if (!SWIG_IsOK(ecode5)) {
13659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13660 }
13661 arg5 = static_cast< wxFontEncoding >(val5);
13662 }
13663 {
13664 if (!wxPyCheckForApp()) SWIG_fail;
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13671 {
13672 if (temp4)
13673 delete arg4;
13674 }
13675 return resultobj;
13676fail:
13677 {
13678 if (temp4)
13679 delete arg4;
13680 }
13681 return NULL;
d14a1e28
RD
13682}
13683
13684
0085ce49
RD
13685SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13686 PyObject *resultobj = 0;
13687 wxFont *arg1 = (wxFont *) 0 ;
13688 bool result;
13689 void *argp1 = 0 ;
13690 int res1 = 0 ;
13691 PyObject *swig_obj[1] ;
13692
13693 if (!args) SWIG_fail;
13694 swig_obj[0] = args;
13695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13698 }
13699 arg1 = reinterpret_cast< wxFont * >(argp1);
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 result = (bool)((wxFont const *)arg1)->Ok();
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 {
13707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13708 }
13709 return resultobj;
13710fail:
13711 return NULL;
13712}
13713
13714
13715SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxFont *arg1 = (wxFont *) 0 ;
13718 wxFont *arg2 = (wxFont *) 0 ;
13719 bool result;
13720 void *argp1 = 0 ;
13721 int res1 = 0 ;
13722 void *argp2 = 0 ;
13723 int res2 = 0 ;
13724 PyObject * obj0 = 0 ;
13725 PyObject * obj1 = 0 ;
13726 char * kwnames[] = {
13727 (char *) "self",(char *) "other", NULL
13728 };
13729
13730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13732 if (!SWIG_IsOK(res1)) {
13733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13734 }
13735 arg1 = reinterpret_cast< wxFont * >(argp1);
13736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13737 if (!SWIG_IsOK(res2)) {
13738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13739 }
13740 arg2 = reinterpret_cast< wxFont * >(argp2);
13741 {
13742 PyThreadState* __tstate = wxPyBeginAllowThreads();
13743 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13744 wxPyEndAllowThreads(__tstate);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 {
13748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13749 }
13750 return resultobj;
13751fail:
13752 return NULL;
13753}
13754
13755
13756SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13757 PyObject *resultobj = 0;
13758 wxFont *arg1 = (wxFont *) 0 ;
13759 wxFont *arg2 = (wxFont *) 0 ;
13760 bool result;
13761 void *argp1 = 0 ;
13762 int res1 = 0 ;
13763 void *argp2 = 0 ;
13764 int res2 = 0 ;
13765 PyObject * obj0 = 0 ;
13766 PyObject * obj1 = 0 ;
13767 char * kwnames[] = {
13768 (char *) "self",(char *) "other", NULL
13769 };
13770
13771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13773 if (!SWIG_IsOK(res1)) {
13774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13775 }
13776 arg1 = reinterpret_cast< wxFont * >(argp1);
13777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13778 if (!SWIG_IsOK(res2)) {
13779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13780 }
13781 arg2 = reinterpret_cast< wxFont * >(argp2);
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 {
13789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13790 }
13791 return resultobj;
13792fail:
13793 return NULL;
d14a1e28
RD
13794}
13795
13796
0085ce49
RD
13797SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13798 PyObject *resultobj = 0;
13799 wxFont *arg1 = (wxFont *) 0 ;
13800 int result;
13801 void *argp1 = 0 ;
13802 int res1 = 0 ;
13803 PyObject *swig_obj[1] ;
13804
13805 if (!args) SWIG_fail;
13806 swig_obj[0] = args;
13807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13808 if (!SWIG_IsOK(res1)) {
13809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13810 }
13811 arg1 = reinterpret_cast< wxFont * >(argp1);
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (int)((wxFont const *)arg1)->GetPointSize();
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 resultobj = SWIG_From_int(static_cast< int >(result));
13819 return resultobj;
13820fail:
13821 return NULL;
d14a1e28
RD
13822}
13823
13824
0085ce49
RD
13825SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13826 PyObject *resultobj = 0;
13827 wxFont *arg1 = (wxFont *) 0 ;
13828 wxSize result;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 PyObject *swig_obj[1] ;
13832
13833 if (!args) SWIG_fail;
13834 swig_obj[0] = args;
13835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13836 if (!SWIG_IsOK(res1)) {
13837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13838 }
13839 arg1 = reinterpret_cast< wxFont * >(argp1);
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 result = ((wxFont const *)arg1)->GetPixelSize();
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13847 return resultobj;
13848fail:
13849 return NULL;
d14a1e28
RD
13850}
13851
13852
0085ce49
RD
13853SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13854 PyObject *resultobj = 0;
13855 wxFont *arg1 = (wxFont *) 0 ;
13856 bool result;
13857 void *argp1 = 0 ;
13858 int res1 = 0 ;
13859 PyObject *swig_obj[1] ;
13860
13861 if (!args) SWIG_fail;
13862 swig_obj[0] = args;
13863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13864 if (!SWIG_IsOK(res1)) {
13865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13866 }
13867 arg1 = reinterpret_cast< wxFont * >(argp1);
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 {
13875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13876 }
13877 return resultobj;
13878fail:
13879 return NULL;
d14a1e28
RD
13880}
13881
13882
0085ce49
RD
13883SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13884 PyObject *resultobj = 0;
13885 wxFont *arg1 = (wxFont *) 0 ;
13886 int result;
13887 void *argp1 = 0 ;
13888 int res1 = 0 ;
13889 PyObject *swig_obj[1] ;
13890
13891 if (!args) SWIG_fail;
13892 swig_obj[0] = args;
13893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13894 if (!SWIG_IsOK(res1)) {
13895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13896 }
13897 arg1 = reinterpret_cast< wxFont * >(argp1);
13898 {
13899 PyThreadState* __tstate = wxPyBeginAllowThreads();
13900 result = (int)((wxFont const *)arg1)->GetFamily();
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 resultobj = SWIG_From_int(static_cast< int >(result));
13905 return resultobj;
13906fail:
13907 return NULL;
d14a1e28
RD
13908}
13909
13910
0085ce49
RD
13911SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13912 PyObject *resultobj = 0;
13913 wxFont *arg1 = (wxFont *) 0 ;
13914 int result;
13915 void *argp1 = 0 ;
13916 int res1 = 0 ;
13917 PyObject *swig_obj[1] ;
13918
13919 if (!args) SWIG_fail;
13920 swig_obj[0] = args;
13921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13922 if (!SWIG_IsOK(res1)) {
13923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13924 }
13925 arg1 = reinterpret_cast< wxFont * >(argp1);
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (int)((wxFont const *)arg1)->GetStyle();
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_From_int(static_cast< int >(result));
13933 return resultobj;
13934fail:
13935 return NULL;
d14a1e28
RD
13936}
13937
13938
0085ce49
RD
13939SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940 PyObject *resultobj = 0;
13941 wxFont *arg1 = (wxFont *) 0 ;
13942 int result;
13943 void *argp1 = 0 ;
13944 int res1 = 0 ;
13945 PyObject *swig_obj[1] ;
13946
13947 if (!args) SWIG_fail;
13948 swig_obj[0] = args;
13949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13950 if (!SWIG_IsOK(res1)) {
13951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13952 }
13953 arg1 = reinterpret_cast< wxFont * >(argp1);
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (int)((wxFont const *)arg1)->GetWeight();
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_From_int(static_cast< int >(result));
13961 return resultobj;
13962fail:
13963 return NULL;
d14a1e28
RD
13964}
13965
13966
0085ce49
RD
13967SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13968 PyObject *resultobj = 0;
13969 wxFont *arg1 = (wxFont *) 0 ;
13970 bool result;
13971 void *argp1 = 0 ;
13972 int res1 = 0 ;
13973 PyObject *swig_obj[1] ;
13974
13975 if (!args) SWIG_fail;
13976 swig_obj[0] = args;
13977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13978 if (!SWIG_IsOK(res1)) {
13979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
13980 }
13981 arg1 = reinterpret_cast< wxFont * >(argp1);
13982 {
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = (bool)((wxFont const *)arg1)->GetUnderlined();
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 {
13989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13990 }
13991 return resultobj;
13992fail:
13993 return NULL;
d14a1e28
RD
13994}
13995
13996
0085ce49
RD
13997SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13998 PyObject *resultobj = 0;
13999 wxFont *arg1 = (wxFont *) 0 ;
14000 wxString result;
14001 void *argp1 = 0 ;
14002 int res1 = 0 ;
14003 PyObject *swig_obj[1] ;
14004
14005 if (!args) SWIG_fail;
14006 swig_obj[0] = args;
14007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14008 if (!SWIG_IsOK(res1)) {
14009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14010 }
14011 arg1 = reinterpret_cast< wxFont * >(argp1);
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = ((wxFont const *)arg1)->GetFaceName();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 {
14019#if wxUSE_UNICODE
14020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14021#else
14022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14023#endif
14024 }
14025 return resultobj;
14026fail:
14027 return NULL;
d14a1e28
RD
14028}
14029
14030
0085ce49
RD
14031SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14032 PyObject *resultobj = 0;
14033 wxFont *arg1 = (wxFont *) 0 ;
14034 wxFontEncoding result;
14035 void *argp1 = 0 ;
14036 int res1 = 0 ;
14037 PyObject *swig_obj[1] ;
14038
14039 if (!args) SWIG_fail;
14040 swig_obj[0] = args;
14041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14042 if (!SWIG_IsOK(res1)) {
14043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14044 }
14045 arg1 = reinterpret_cast< wxFont * >(argp1);
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 resultobj = SWIG_From_int(static_cast< int >(result));
14053 return resultobj;
14054fail:
14055 return NULL;
d14a1e28
RD
14056}
14057
14058
0085ce49
RD
14059SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14060 PyObject *resultobj = 0;
14061 wxFont *arg1 = (wxFont *) 0 ;
14062 wxNativeFontInfo *result = 0 ;
14063 void *argp1 = 0 ;
14064 int res1 = 0 ;
14065 PyObject *swig_obj[1] ;
14066
14067 if (!args) SWIG_fail;
14068 swig_obj[0] = args;
14069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14070 if (!SWIG_IsOK(res1)) {
14071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14072 }
14073 arg1 = reinterpret_cast< wxFont * >(argp1);
14074 {
14075 PyThreadState* __tstate = wxPyBeginAllowThreads();
14076 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14081 return resultobj;
14082fail:
14083 return NULL;
d14a1e28
RD
14084}
14085
14086
0085ce49
RD
14087SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14088 PyObject *resultobj = 0;
14089 wxFont *arg1 = (wxFont *) 0 ;
14090 bool result;
14091 void *argp1 = 0 ;
14092 int res1 = 0 ;
14093 PyObject *swig_obj[1] ;
14094
14095 if (!args) SWIG_fail;
14096 swig_obj[0] = args;
14097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14098 if (!SWIG_IsOK(res1)) {
14099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14100 }
14101 arg1 = reinterpret_cast< wxFont * >(argp1);
14102 {
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 {
14109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14110 }
14111 return resultobj;
14112fail:
14113 return NULL;
d14a1e28
RD
14114}
14115
14116
0085ce49
RD
14117SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14118 PyObject *resultobj = 0;
14119 wxFont *arg1 = (wxFont *) 0 ;
14120 wxString result;
14121 void *argp1 = 0 ;
14122 int res1 = 0 ;
14123 PyObject *swig_obj[1] ;
14124
14125 if (!args) SWIG_fail;
14126 swig_obj[0] = args;
14127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14128 if (!SWIG_IsOK(res1)) {
14129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14130 }
14131 arg1 = reinterpret_cast< wxFont * >(argp1);
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 {
14139#if wxUSE_UNICODE
14140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14141#else
14142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14143#endif
14144 }
14145 return resultobj;
14146fail:
14147 return NULL;
d14a1e28
RD
14148}
14149
14150
0085ce49
RD
14151SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14152 PyObject *resultobj = 0;
14153 wxFont *arg1 = (wxFont *) 0 ;
14154 wxString result;
14155 void *argp1 = 0 ;
14156 int res1 = 0 ;
14157 PyObject *swig_obj[1] ;
14158
14159 if (!args) SWIG_fail;
14160 swig_obj[0] = args;
14161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14162 if (!SWIG_IsOK(res1)) {
14163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14164 }
14165 arg1 = reinterpret_cast< wxFont * >(argp1);
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 {
14173#if wxUSE_UNICODE
14174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14175#else
14176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14177#endif
14178 }
14179 return resultobj;
14180fail:
14181 return NULL;
14182}
14183
14184
14185SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14186 PyObject *resultobj = 0;
14187 wxFont *arg1 = (wxFont *) 0 ;
14188 int arg2 ;
14189 void *argp1 = 0 ;
14190 int res1 = 0 ;
14191 int val2 ;
14192 int ecode2 = 0 ;
14193 PyObject * obj0 = 0 ;
14194 PyObject * obj1 = 0 ;
14195 char * kwnames[] = {
14196 (char *) "self",(char *) "pointSize", NULL
14197 };
14198
14199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14201 if (!SWIG_IsOK(res1)) {
14202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14203 }
14204 arg1 = reinterpret_cast< wxFont * >(argp1);
14205 ecode2 = SWIG_AsVal_int(obj1, &val2);
14206 if (!SWIG_IsOK(ecode2)) {
14207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14208 }
14209 arg2 = static_cast< int >(val2);
14210 {
14211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14212 (arg1)->SetPointSize(arg2);
14213 wxPyEndAllowThreads(__tstate);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 }
14216 resultobj = SWIG_Py_Void();
14217 return resultobj;
14218fail:
14219 return NULL;
14220}
14221
14222
14223SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14224 PyObject *resultobj = 0;
14225 wxFont *arg1 = (wxFont *) 0 ;
14226 wxSize *arg2 = 0 ;
14227 void *argp1 = 0 ;
14228 int res1 = 0 ;
14229 wxSize temp2 ;
14230 PyObject * obj0 = 0 ;
14231 PyObject * obj1 = 0 ;
14232 char * kwnames[] = {
14233 (char *) "self",(char *) "pixelSize", NULL
14234 };
14235
14236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14238 if (!SWIG_IsOK(res1)) {
14239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14240 }
14241 arg1 = reinterpret_cast< wxFont * >(argp1);
14242 {
14243 arg2 = &temp2;
14244 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14245 }
14246 {
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 (arg1)->SetPixelSize((wxSize const &)*arg2);
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 resultobj = SWIG_Py_Void();
14253 return resultobj;
14254fail:
14255 return NULL;
14256}
14257
14258
14259SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14260 PyObject *resultobj = 0;
14261 wxFont *arg1 = (wxFont *) 0 ;
14262 int arg2 ;
14263 void *argp1 = 0 ;
14264 int res1 = 0 ;
14265 int val2 ;
14266 int ecode2 = 0 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 char * kwnames[] = {
14270 (char *) "self",(char *) "family", NULL
14271 };
14272
14273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14275 if (!SWIG_IsOK(res1)) {
14276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14277 }
14278 arg1 = reinterpret_cast< wxFont * >(argp1);
14279 ecode2 = SWIG_AsVal_int(obj1, &val2);
14280 if (!SWIG_IsOK(ecode2)) {
14281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14282 }
14283 arg2 = static_cast< int >(val2);
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 (arg1)->SetFamily(arg2);
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 resultobj = SWIG_Py_Void();
14291 return resultobj;
14292fail:
14293 return NULL;
14294}
14295
14296
14297SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14298 PyObject *resultobj = 0;
14299 wxFont *arg1 = (wxFont *) 0 ;
14300 int arg2 ;
14301 void *argp1 = 0 ;
14302 int res1 = 0 ;
14303 int val2 ;
14304 int ecode2 = 0 ;
14305 PyObject * obj0 = 0 ;
14306 PyObject * obj1 = 0 ;
14307 char * kwnames[] = {
14308 (char *) "self",(char *) "style", NULL
14309 };
14310
14311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14313 if (!SWIG_IsOK(res1)) {
14314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14315 }
14316 arg1 = reinterpret_cast< wxFont * >(argp1);
14317 ecode2 = SWIG_AsVal_int(obj1, &val2);
14318 if (!SWIG_IsOK(ecode2)) {
14319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14320 }
14321 arg2 = static_cast< int >(val2);
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 (arg1)->SetStyle(arg2);
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = SWIG_Py_Void();
14329 return resultobj;
14330fail:
14331 return NULL;
14332}
14333
14334
14335SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14336 PyObject *resultobj = 0;
14337 wxFont *arg1 = (wxFont *) 0 ;
14338 int arg2 ;
14339 void *argp1 = 0 ;
14340 int res1 = 0 ;
14341 int val2 ;
14342 int ecode2 = 0 ;
14343 PyObject * obj0 = 0 ;
14344 PyObject * obj1 = 0 ;
14345 char * kwnames[] = {
14346 (char *) "self",(char *) "weight", NULL
14347 };
14348
14349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14351 if (!SWIG_IsOK(res1)) {
14352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14353 }
14354 arg1 = reinterpret_cast< wxFont * >(argp1);
14355 ecode2 = SWIG_AsVal_int(obj1, &val2);
14356 if (!SWIG_IsOK(ecode2)) {
14357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14358 }
14359 arg2 = static_cast< int >(val2);
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 (arg1)->SetWeight(arg2);
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 resultobj = SWIG_Py_Void();
14367 return resultobj;
14368fail:
14369 return NULL;
14370}
14371
14372
14373SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14374 PyObject *resultobj = 0;
14375 wxFont *arg1 = (wxFont *) 0 ;
14376 wxString *arg2 = 0 ;
704eda0c 14377 bool result;
0085ce49
RD
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 bool temp2 = false ;
14381 PyObject * obj0 = 0 ;
14382 PyObject * obj1 = 0 ;
14383 char * kwnames[] = {
14384 (char *) "self",(char *) "faceName", NULL
14385 };
14386
14387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14389 if (!SWIG_IsOK(res1)) {
14390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14391 }
14392 arg1 = reinterpret_cast< wxFont * >(argp1);
14393 {
14394 arg2 = wxString_in_helper(obj1);
14395 if (arg2 == NULL) SWIG_fail;
14396 temp2 = true;
14397 }
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14400 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
704eda0c
RD
14404 {
14405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14406 }
0085ce49
RD
14407 {
14408 if (temp2)
14409 delete arg2;
14410 }
14411 return resultobj;
14412fail:
14413 {
14414 if (temp2)
14415 delete arg2;
14416 }
14417 return NULL;
14418}
14419
14420
14421SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj = 0;
14423 wxFont *arg1 = (wxFont *) 0 ;
14424 bool arg2 ;
14425 void *argp1 = 0 ;
14426 int res1 = 0 ;
14427 bool val2 ;
14428 int ecode2 = 0 ;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14431 char * kwnames[] = {
14432 (char *) "self",(char *) "underlined", NULL
14433 };
14434
14435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14437 if (!SWIG_IsOK(res1)) {
14438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14439 }
14440 arg1 = reinterpret_cast< wxFont * >(argp1);
14441 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14442 if (!SWIG_IsOK(ecode2)) {
14443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14444 }
14445 arg2 = static_cast< bool >(val2);
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 (arg1)->SetUnderlined(arg2);
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 resultobj = SWIG_Py_Void();
14453 return resultobj;
14454fail:
14455 return NULL;
14456}
14457
14458
14459SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14460 PyObject *resultobj = 0;
14461 wxFont *arg1 = (wxFont *) 0 ;
14462 wxFontEncoding arg2 ;
14463 void *argp1 = 0 ;
14464 int res1 = 0 ;
14465 int val2 ;
14466 int ecode2 = 0 ;
14467 PyObject * obj0 = 0 ;
14468 PyObject * obj1 = 0 ;
14469 char * kwnames[] = {
14470 (char *) "self",(char *) "encoding", NULL
14471 };
14472
14473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14475 if (!SWIG_IsOK(res1)) {
14476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14477 }
14478 arg1 = reinterpret_cast< wxFont * >(argp1);
14479 ecode2 = SWIG_AsVal_int(obj1, &val2);
14480 if (!SWIG_IsOK(ecode2)) {
14481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14482 }
14483 arg2 = static_cast< wxFontEncoding >(val2);
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 (arg1)->SetEncoding(arg2);
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 resultobj = SWIG_Py_Void();
14491 return resultobj;
14492fail:
14493 return NULL;
14494}
14495
14496
14497SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14498 PyObject *resultobj = 0;
14499 wxFont *arg1 = (wxFont *) 0 ;
14500 wxNativeFontInfo *arg2 = 0 ;
14501 void *argp1 = 0 ;
14502 int res1 = 0 ;
14503 void *argp2 = 0 ;
14504 int res2 = 0 ;
14505 PyObject * obj0 = 0 ;
14506 PyObject * obj1 = 0 ;
14507 char * kwnames[] = {
14508 (char *) "self",(char *) "info", NULL
14509 };
14510
14511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14513 if (!SWIG_IsOK(res1)) {
14514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14515 }
14516 arg1 = reinterpret_cast< wxFont * >(argp1);
14517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14518 if (!SWIG_IsOK(res2)) {
14519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14520 }
14521 if (!argp2) {
14522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14523 }
14524 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 resultobj = SWIG_Py_Void();
14532 return resultobj;
14533fail:
14534 return NULL;
14535}
14536
14537
14538SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj = 0;
14540 wxFont *arg1 = (wxFont *) 0 ;
14541 wxString *arg2 = 0 ;
704eda0c 14542 bool result;
0085ce49
RD
14543 void *argp1 = 0 ;
14544 int res1 = 0 ;
14545 bool temp2 = false ;
14546 PyObject * obj0 = 0 ;
14547 PyObject * obj1 = 0 ;
14548 char * kwnames[] = {
14549 (char *) "self",(char *) "info", NULL
14550 };
14551
14552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14554 if (!SWIG_IsOK(res1)) {
14555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14556 }
14557 arg1 = reinterpret_cast< wxFont * >(argp1);
14558 {
14559 arg2 = wxString_in_helper(obj1);
14560 if (arg2 == NULL) SWIG_fail;
14561 temp2 = true;
14562 }
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14565 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
704eda0c
RD
14569 {
14570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14571 }
0085ce49
RD
14572 {
14573 if (temp2)
14574 delete arg2;
14575 }
14576 return resultobj;
14577fail:
14578 {
14579 if (temp2)
14580 delete arg2;
14581 }
14582 return NULL;
d14a1e28
RD
14583}
14584
14585
0085ce49
RD
14586SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj = 0;
14588 wxFont *arg1 = (wxFont *) 0 ;
14589 wxString *arg2 = 0 ;
704eda0c 14590 bool result;
0085ce49
RD
14591 void *argp1 = 0 ;
14592 int res1 = 0 ;
14593 bool temp2 = false ;
14594 PyObject * obj0 = 0 ;
14595 PyObject * obj1 = 0 ;
14596 char * kwnames[] = {
14597 (char *) "self",(char *) "info", NULL
14598 };
14599
14600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14602 if (!SWIG_IsOK(res1)) {
14603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14604 }
14605 arg1 = reinterpret_cast< wxFont * >(argp1);
14606 {
14607 arg2 = wxString_in_helper(obj1);
14608 if (arg2 == NULL) SWIG_fail;
14609 temp2 = true;
14610 }
14611 {
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14613 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
704eda0c
RD
14617 {
14618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14619 }
0085ce49
RD
14620 {
14621 if (temp2)
14622 delete arg2;
14623 }
14624 return resultobj;
14625fail:
14626 {
14627 if (temp2)
14628 delete arg2;
14629 }
14630 return NULL;
d14a1e28
RD
14631}
14632
14633
0085ce49
RD
14634SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14635 PyObject *resultobj = 0;
14636 wxFont *arg1 = (wxFont *) 0 ;
14637 wxString result;
14638 void *argp1 = 0 ;
14639 int res1 = 0 ;
14640 PyObject *swig_obj[1] ;
14641
14642 if (!args) SWIG_fail;
14643 swig_obj[0] = args;
14644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14645 if (!SWIG_IsOK(res1)) {
14646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14647 }
14648 arg1 = reinterpret_cast< wxFont * >(argp1);
14649 {
14650 PyThreadState* __tstate = wxPyBeginAllowThreads();
14651 result = ((wxFont const *)arg1)->GetFamilyString();
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 {
14656#if wxUSE_UNICODE
14657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14658#else
14659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14660#endif
14661 }
14662 return resultobj;
14663fail:
14664 return NULL;
d14a1e28
RD
14665}
14666
14667
0085ce49
RD
14668SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14669 PyObject *resultobj = 0;
14670 wxFont *arg1 = (wxFont *) 0 ;
14671 wxString result;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 PyObject *swig_obj[1] ;
14675
14676 if (!args) SWIG_fail;
14677 swig_obj[0] = args;
14678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14679 if (!SWIG_IsOK(res1)) {
14680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14681 }
14682 arg1 = reinterpret_cast< wxFont * >(argp1);
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 result = ((wxFont const *)arg1)->GetStyleString();
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 {
14690#if wxUSE_UNICODE
14691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14692#else
14693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14694#endif
14695 }
14696 return resultobj;
14697fail:
14698 return NULL;
d14a1e28
RD
14699}
14700
14701
0085ce49
RD
14702SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14703 PyObject *resultobj = 0;
14704 wxFont *arg1 = (wxFont *) 0 ;
14705 wxString result;
14706 void *argp1 = 0 ;
14707 int res1 = 0 ;
14708 PyObject *swig_obj[1] ;
14709
14710 if (!args) SWIG_fail;
14711 swig_obj[0] = args;
14712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14713 if (!SWIG_IsOK(res1)) {
14714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14715 }
14716 arg1 = reinterpret_cast< wxFont * >(argp1);
14717 {
14718 PyThreadState* __tstate = wxPyBeginAllowThreads();
14719 result = ((wxFont const *)arg1)->GetWeightString();
14720 wxPyEndAllowThreads(__tstate);
14721 if (PyErr_Occurred()) SWIG_fail;
14722 }
14723 {
d14a1e28 14724#if wxUSE_UNICODE
0085ce49 14725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 14726#else
0085ce49 14727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 14728#endif
0085ce49
RD
14729 }
14730 return resultobj;
14731fail:
14732 return NULL;
14733}
14734
14735
14736SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14737 PyObject *resultobj = 0;
14738 wxFont *arg1 = (wxFont *) 0 ;
14739 bool arg2 = (bool) true ;
14740 void *argp1 = 0 ;
14741 int res1 = 0 ;
14742 bool val2 ;
14743 int ecode2 = 0 ;
14744 PyObject * obj0 = 0 ;
14745 PyObject * obj1 = 0 ;
14746 char * kwnames[] = {
14747 (char *) "self",(char *) "no", NULL
14748 };
14749
14750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14752 if (!SWIG_IsOK(res1)) {
14753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14754 }
14755 arg1 = reinterpret_cast< wxFont * >(argp1);
14756 if (obj1) {
14757 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14758 if (!SWIG_IsOK(ecode2)) {
14759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14760 }
14761 arg2 = static_cast< bool >(val2);
14762 }
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 (arg1)->SetNoAntiAliasing(arg2);
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_Py_Void();
14770 return resultobj;
14771fail:
14772 return NULL;
d14a1e28
RD
14773}
14774
14775
0085ce49
RD
14776SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14777 PyObject *resultobj = 0;
14778 wxFont *arg1 = (wxFont *) 0 ;
14779 bool result;
14780 void *argp1 = 0 ;
14781 int res1 = 0 ;
14782 PyObject *swig_obj[1] ;
14783
14784 if (!args) SWIG_fail;
14785 swig_obj[0] = args;
14786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14787 if (!SWIG_IsOK(res1)) {
14788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14789 }
14790 arg1 = reinterpret_cast< wxFont * >(argp1);
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 {
14798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14799 }
14800 return resultobj;
14801fail:
14802 return NULL;
d14a1e28
RD
14803}
14804
14805
0085ce49
RD
14806SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14807 PyObject *resultobj = 0;
14808 wxFontEncoding result;
14809
14810 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14811 {
14812 if (!wxPyCheckForApp()) SWIG_fail;
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 resultobj = SWIG_From_int(static_cast< int >(result));
14819 return resultobj;
14820fail:
14821 return NULL;
d14a1e28
RD
14822}
14823
14824
0085ce49
RD
14825SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14826 PyObject *resultobj = 0;
14827 wxFontEncoding arg1 ;
14828 int val1 ;
14829 int ecode1 = 0 ;
14830 PyObject * obj0 = 0 ;
14831 char * kwnames[] = {
14832 (char *) "encoding", NULL
14833 };
14834
14835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14836 ecode1 = SWIG_AsVal_int(obj0, &val1);
14837 if (!SWIG_IsOK(ecode1)) {
14838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14839 }
14840 arg1 = static_cast< wxFontEncoding >(val1);
14841 {
14842 if (!wxPyCheckForApp()) SWIG_fail;
14843 PyThreadState* __tstate = wxPyBeginAllowThreads();
14844 wxFont::SetDefaultEncoding(arg1);
14845 wxPyEndAllowThreads(__tstate);
14846 if (PyErr_Occurred()) SWIG_fail;
14847 }
14848 resultobj = SWIG_Py_Void();
14849 return resultobj;
14850fail:
14851 return NULL;
d14a1e28
RD
14852}
14853
14854
0085ce49
RD
14855SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14856 PyObject *obj;
14857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14858 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14859 return SWIG_Py_Void();
d14a1e28
RD
14860}
14861
0085ce49
RD
14862SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14863 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
14864}
14865
0085ce49
RD
14866SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14867 PyObject *resultobj = 0;
14868 wxPyFontEnumerator *result = 0 ;
14869
14870 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14871 {
14872 if (!wxPyCheckForApp()) SWIG_fail;
14873 PyThreadState* __tstate = wxPyBeginAllowThreads();
14874 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14879 return resultobj;
14880fail:
14881 return NULL;
d14a1e28
RD
14882}
14883
14884
0085ce49
RD
14885SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14886 PyObject *resultobj = 0;
14887 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 PyObject *swig_obj[1] ;
14891
14892 if (!args) SWIG_fail;
14893 swig_obj[0] = args;
14894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14895 if (!SWIG_IsOK(res1)) {
14896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14897 }
14898 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 delete arg1;
d14a1e28 14902
0085ce49
RD
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 resultobj = SWIG_Py_Void();
14907 return resultobj;
14908fail:
14909 return NULL;
14910}
14911
14912
14913SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj = 0;
14915 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14916 PyObject *arg2 = (PyObject *) 0 ;
14917 PyObject *arg3 = (PyObject *) 0 ;
14918 bool arg4 ;
14919 void *argp1 = 0 ;
14920 int res1 = 0 ;
14921 bool val4 ;
14922 int ecode4 = 0 ;
14923 PyObject * obj0 = 0 ;
14924 PyObject * obj1 = 0 ;
14925 PyObject * obj2 = 0 ;
14926 PyObject * obj3 = 0 ;
14927 char * kwnames[] = {
14928 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14929 };
14930
14931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14933 if (!SWIG_IsOK(res1)) {
14934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14935 }
14936 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14937 arg2 = obj1;
14938 arg3 = obj2;
14939 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14940 if (!SWIG_IsOK(ecode4)) {
14941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14942 }
14943 arg4 = static_cast< bool >(val4);
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 resultobj = SWIG_Py_Void();
14951 return resultobj;
14952fail:
14953 return NULL;
14954}
14955
14956
14957SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj = 0;
14959 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14960 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
14961 bool arg3 = (bool) false ;
14962 bool result;
14963 void *argp1 = 0 ;
14964 int res1 = 0 ;
14965 int val2 ;
14966 int ecode2 = 0 ;
14967 bool val3 ;
14968 int ecode3 = 0 ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 PyObject * obj2 = 0 ;
14972 char * kwnames[] = {
14973 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
14974 };
14975
14976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14980 }
14981 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14982 if (obj1) {
14983 ecode2 = SWIG_AsVal_int(obj1, &val2);
14984 if (!SWIG_IsOK(ecode2)) {
14985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14986 }
14987 arg2 = static_cast< wxFontEncoding >(val2);
14988 }
14989 if (obj2) {
14990 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14991 if (!SWIG_IsOK(ecode3)) {
14992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
14993 }
14994 arg3 = static_cast< bool >(val3);
14995 }
14996 {
14997 PyThreadState* __tstate = wxPyBeginAllowThreads();
14998 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
14999 wxPyEndAllowThreads(__tstate);
15000 if (PyErr_Occurred()) SWIG_fail;
15001 }
15002 {
15003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15004 }
15005 return resultobj;
15006fail:
15007 return NULL;
15008}
15009
15010
15011SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj = 0;
15013 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15014 wxString const &arg2_defvalue = wxPyEmptyString ;
15015 wxString *arg2 = (wxString *) &arg2_defvalue ;
15016 bool result;
15017 void *argp1 = 0 ;
15018 int res1 = 0 ;
15019 bool temp2 = false ;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 char * kwnames[] = {
15023 (char *) "self",(char *) "facename", NULL
15024 };
15025
15026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15028 if (!SWIG_IsOK(res1)) {
15029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15030 }
15031 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15032 if (obj1) {
d14a1e28 15033 {
0085ce49
RD
15034 arg2 = wxString_in_helper(obj1);
15035 if (arg2 == NULL) SWIG_fail;
15036 temp2 = true;
d14a1e28 15037 }
0085ce49
RD
15038 }
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 {
15046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15047 }
15048 {
15049 if (temp2)
15050 delete arg2;
15051 }
15052 return resultobj;
15053fail:
15054 {
15055 if (temp2)
15056 delete arg2;
15057 }
15058 return NULL;
d14a1e28
RD
15059}
15060
15061
0085ce49
RD
15062SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15063 PyObject *resultobj = 0;
0085ce49 15064 PyObject *result = 0 ;
0085ce49 15065
704eda0c 15066 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15067 {
15068 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15069 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15070 wxPyEndAllowThreads(__tstate);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 }
15073 resultobj = result;
15074 return resultobj;
15075fail:
15076 return NULL;
d14a1e28
RD
15077}
15078
15079
0085ce49
RD
15080SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15081 PyObject *resultobj = 0;
0085ce49 15082 PyObject *result = 0 ;
0085ce49 15083
704eda0c 15084 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15087 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 resultobj = result;
15092 return resultobj;
15093fail:
15094 return NULL;
d14a1e28
RD
15095}
15096
15097
704eda0c
RD
15098SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj = 0;
15100 wxString *arg1 = 0 ;
15101 bool result;
15102 bool temp1 = false ;
15103 PyObject * obj0 = 0 ;
15104 char * kwnames[] = {
15105 (char *) "str", NULL
15106 };
15107
15108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15109 {
15110 arg1 = wxString_in_helper(obj0);
15111 if (arg1 == NULL) SWIG_fail;
15112 temp1 = true;
15113 }
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15117 wxPyEndAllowThreads(__tstate);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 {
15121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15122 }
15123 {
15124 if (temp1)
15125 delete arg1;
15126 }
15127 return resultobj;
15128fail:
15129 {
15130 if (temp1)
15131 delete arg1;
15132 }
15133 return NULL;
15134}
15135
15136
0085ce49
RD
15137SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15138 PyObject *obj;
15139 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15140 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15141 return SWIG_Py_Void();
d14a1e28
RD
15142}
15143
0085ce49
RD
15144SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15145 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15146}
15147
0085ce49
RD
15148SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15149 PyObject *resultobj = 0;
15150 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15151 int arg2 ;
15152 void *argp1 = 0 ;
15153 int res1 = 0 ;
15154 int val2 ;
15155 int ecode2 = 0 ;
15156 PyObject *swig_obj[2] ;
15157
15158 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15160 if (!SWIG_IsOK(res1)) {
15161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15162 }
15163 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15164 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15165 if (!SWIG_IsOK(ecode2)) {
15166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15167 }
15168 arg2 = static_cast< int >(val2);
15169 if (arg1) (arg1)->Language = arg2;
15170
15171 resultobj = SWIG_Py_Void();
15172 return resultobj;
15173fail:
15174 return NULL;
d14a1e28
RD
15175}
15176
15177
0085ce49
RD
15178SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15179 PyObject *resultobj = 0;
15180 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15181 int result;
15182 void *argp1 = 0 ;
15183 int res1 = 0 ;
15184 PyObject *swig_obj[1] ;
15185
15186 if (!args) SWIG_fail;
15187 swig_obj[0] = args;
15188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15189 if (!SWIG_IsOK(res1)) {
15190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15191 }
15192 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15193 result = (int) ((arg1)->Language);
15194 resultobj = SWIG_From_int(static_cast< int >(result));
15195 return resultobj;
15196fail:
15197 return NULL;
15198}
15199
15200
15201SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15202 PyObject *resultobj = 0;
15203 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15204 wxString *arg2 = (wxString *) 0 ;
15205 void *argp1 = 0 ;
15206 int res1 = 0 ;
15207 bool temp2 = false ;
15208 PyObject *swig_obj[2] ;
15209
15210 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15212 if (!SWIG_IsOK(res1)) {
15213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15214 }
15215 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15216 {
15217 arg2 = wxString_in_helper(swig_obj[1]);
15218 if (arg2 == NULL) SWIG_fail;
15219 temp2 = true;
15220 }
15221 if (arg1) (arg1)->CanonicalName = *arg2;
15222
15223 resultobj = SWIG_Py_Void();
15224 {
15225 if (temp2)
15226 delete arg2;
15227 }
15228 return resultobj;
15229fail:
15230 {
15231 if (temp2)
15232 delete arg2;
15233 }
15234 return NULL;
d14a1e28
RD
15235}
15236
15237
0085ce49
RD
15238SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15239 PyObject *resultobj = 0;
15240 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15241 wxString *result = 0 ;
15242 void *argp1 = 0 ;
15243 int res1 = 0 ;
15244 PyObject *swig_obj[1] ;
15245
15246 if (!args) SWIG_fail;
15247 swig_obj[0] = args;
15248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15249 if (!SWIG_IsOK(res1)) {
15250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15251 }
15252 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15253 result = (wxString *)& ((arg1)->CanonicalName);
15254 {
093d3ff1 15255#if wxUSE_UNICODE
0085ce49 15256 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15257#else
0085ce49 15258 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15259#endif
0085ce49
RD
15260 }
15261 return resultobj;
15262fail:
15263 return NULL;
d14a1e28
RD
15264}
15265
15266
0085ce49
RD
15267SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15268 PyObject *resultobj = 0;
15269 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15270 wxString *arg2 = (wxString *) 0 ;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 bool temp2 = false ;
15274 PyObject *swig_obj[2] ;
15275
15276 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15278 if (!SWIG_IsOK(res1)) {
15279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15280 }
15281 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15282 {
15283 arg2 = wxString_in_helper(swig_obj[1]);
15284 if (arg2 == NULL) SWIG_fail;
15285 temp2 = true;
15286 }
15287 if (arg1) (arg1)->Description = *arg2;
15288
15289 resultobj = SWIG_Py_Void();
15290 {
15291 if (temp2)
15292 delete arg2;
15293 }
15294 return resultobj;
15295fail:
15296 {
15297 if (temp2)
15298 delete arg2;
15299 }
15300 return NULL;
d14a1e28
RD
15301}
15302
15303
0085ce49
RD
15304SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15305 PyObject *resultobj = 0;
15306 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15307 wxString *result = 0 ;
15308 void *argp1 = 0 ;
15309 int res1 = 0 ;
15310 PyObject *swig_obj[1] ;
15311
15312 if (!args) SWIG_fail;
15313 swig_obj[0] = args;
15314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15315 if (!SWIG_IsOK(res1)) {
15316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15317 }
15318 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15319 result = (wxString *)& ((arg1)->Description);
15320 {
d14a1e28 15321#if wxUSE_UNICODE
0085ce49 15322 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15323#else
0085ce49 15324 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15325#endif
0085ce49
RD
15326 }
15327 return resultobj;
15328fail:
15329 return NULL;
15330}
15331
15332
15333SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15334 PyObject *obj;
15335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15336 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15337 return SWIG_Py_Void();
15338}
15339
15340SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15341 PyObject *resultobj = 0;
15342 int arg1 = (int) -1 ;
15343 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15344 wxLocale *result = 0 ;
15345 int val1 ;
15346 int ecode1 = 0 ;
15347 int val2 ;
15348 int ecode2 = 0 ;
15349 PyObject * obj0 = 0 ;
15350 PyObject * obj1 = 0 ;
15351 char * kwnames[] = {
15352 (char *) "language",(char *) "flags", NULL
15353 };
15354
15355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15356 if (obj0) {
15357 ecode1 = SWIG_AsVal_int(obj0, &val1);
15358 if (!SWIG_IsOK(ecode1)) {
15359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15360 }
15361 arg1 = static_cast< int >(val1);
15362 }
15363 if (obj1) {
15364 ecode2 = SWIG_AsVal_int(obj1, &val2);
15365 if (!SWIG_IsOK(ecode2)) {
15366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15367 }
15368 arg2 = static_cast< int >(val2);
15369 }
15370 {
15371 PyThreadState* __tstate = wxPyBeginAllowThreads();
15372 result = (wxLocale *)new_wxLocale(arg1,arg2);
15373 wxPyEndAllowThreads(__tstate);
15374 if (PyErr_Occurred()) SWIG_fail;
15375 }
15376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15377 return resultobj;
15378fail:
15379 return NULL;
d14a1e28
RD
15380}
15381
15382
0085ce49
RD
15383SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15384 PyObject *resultobj = 0;
15385 wxLocale *arg1 = (wxLocale *) 0 ;
15386 void *argp1 = 0 ;
15387 int res1 = 0 ;
15388 PyObject *swig_obj[1] ;
15389
15390 if (!args) SWIG_fail;
15391 swig_obj[0] = args;
15392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15393 if (!SWIG_IsOK(res1)) {
15394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15395 }
15396 arg1 = reinterpret_cast< wxLocale * >(argp1);
15397 {
15398 PyThreadState* __tstate = wxPyBeginAllowThreads();
15399 delete arg1;
d14a1e28 15400
0085ce49
RD
15401 wxPyEndAllowThreads(__tstate);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 resultobj = SWIG_Py_Void();
15405 return resultobj;
15406fail:
15407 return NULL;
15408}
15409
15410
15411SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj = 0;
15413 wxLocale *arg1 = (wxLocale *) 0 ;
15414 wxString *arg2 = 0 ;
15415 wxString const &arg3_defvalue = wxPyEmptyString ;
15416 wxString *arg3 = (wxString *) &arg3_defvalue ;
15417 wxString const &arg4_defvalue = wxPyEmptyString ;
15418 wxString *arg4 = (wxString *) &arg4_defvalue ;
15419 bool arg5 = (bool) true ;
15420 bool arg6 = (bool) false ;
15421 bool result;
15422 void *argp1 = 0 ;
15423 int res1 = 0 ;
15424 bool temp2 = false ;
15425 bool temp3 = false ;
15426 bool temp4 = false ;
15427 bool val5 ;
15428 int ecode5 = 0 ;
15429 bool val6 ;
15430 int ecode6 = 0 ;
15431 PyObject * obj0 = 0 ;
15432 PyObject * obj1 = 0 ;
15433 PyObject * obj2 = 0 ;
15434 PyObject * obj3 = 0 ;
15435 PyObject * obj4 = 0 ;
15436 PyObject * obj5 = 0 ;
15437 char * kwnames[] = {
15438 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15439 };
15440
15441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15445 }
15446 arg1 = reinterpret_cast< wxLocale * >(argp1);
15447 {
15448 arg2 = wxString_in_helper(obj1);
15449 if (arg2 == NULL) SWIG_fail;
15450 temp2 = true;
15451 }
15452 if (obj2) {
d14a1e28 15453 {
0085ce49
RD
15454 arg3 = wxString_in_helper(obj2);
15455 if (arg3 == NULL) SWIG_fail;
15456 temp3 = true;
d14a1e28 15457 }
0085ce49
RD
15458 }
15459 if (obj3) {
093d3ff1 15460 {
0085ce49
RD
15461 arg4 = wxString_in_helper(obj3);
15462 if (arg4 == NULL) SWIG_fail;
15463 temp4 = true;
093d3ff1 15464 }
0085ce49
RD
15465 }
15466 if (obj4) {
15467 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15468 if (!SWIG_IsOK(ecode5)) {
15469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15470 }
15471 arg5 = static_cast< bool >(val5);
15472 }
15473 if (obj5) {
15474 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15475 if (!SWIG_IsOK(ecode6)) {
15476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15477 }
15478 arg6 = static_cast< bool >(val6);
15479 }
15480 {
15481 PyThreadState* __tstate = wxPyBeginAllowThreads();
15482 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 {
15487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15488 }
15489 {
15490 if (temp2)
15491 delete arg2;
15492 }
15493 {
15494 if (temp3)
15495 delete arg3;
15496 }
15497 {
15498 if (temp4)
15499 delete arg4;
15500 }
15501 return resultobj;
15502fail:
15503 {
15504 if (temp2)
15505 delete arg2;
15506 }
15507 {
15508 if (temp3)
15509 delete arg3;
15510 }
15511 {
15512 if (temp4)
15513 delete arg4;
15514 }
15515 return NULL;
15516}
15517
15518
15519SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj = 0;
15521 wxLocale *arg1 = (wxLocale *) 0 ;
15522 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15523 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15524 bool result;
15525 void *argp1 = 0 ;
15526 int res1 = 0 ;
15527 int val2 ;
15528 int ecode2 = 0 ;
15529 int val3 ;
15530 int ecode3 = 0 ;
15531 PyObject * obj0 = 0 ;
15532 PyObject * obj1 = 0 ;
15533 PyObject * obj2 = 0 ;
15534 char * kwnames[] = {
15535 (char *) "self",(char *) "language",(char *) "flags", NULL
15536 };
15537
15538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15540 if (!SWIG_IsOK(res1)) {
15541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15542 }
15543 arg1 = reinterpret_cast< wxLocale * >(argp1);
15544 if (obj1) {
15545 ecode2 = SWIG_AsVal_int(obj1, &val2);
15546 if (!SWIG_IsOK(ecode2)) {
15547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15548 }
15549 arg2 = static_cast< int >(val2);
15550 }
15551 if (obj2) {
15552 ecode3 = SWIG_AsVal_int(obj2, &val3);
15553 if (!SWIG_IsOK(ecode3)) {
15554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15555 }
15556 arg3 = static_cast< int >(val3);
15557 }
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15561 wxPyEndAllowThreads(__tstate);
15562 if (PyErr_Occurred()) SWIG_fail;
15563 }
15564 {
15565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15566 }
15567 return resultobj;
15568fail:
15569 return NULL;
093d3ff1
RD
15570}
15571
15572
0085ce49
RD
15573SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15574 PyObject *resultobj = 0;
15575 int result;
15576
15577 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (int)wxLocale::GetSystemLanguage();
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 resultobj = SWIG_From_int(static_cast< int >(result));
15585 return resultobj;
15586fail:
15587 return NULL;
d14a1e28
RD
15588}
15589
15590
0085ce49
RD
15591SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15592 PyObject *resultobj = 0;
15593 wxFontEncoding result;
15594
15595 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15596 {
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 resultobj = SWIG_From_int(static_cast< int >(result));
15603 return resultobj;
15604fail:
15605 return NULL;
d14a1e28
RD
15606}
15607
15608
0085ce49
RD
15609SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15610 PyObject *resultobj = 0;
15611 wxString result;
15612
15613 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 result = wxLocale::GetSystemEncodingName();
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 {
d14a1e28 15621#if wxUSE_UNICODE
0085ce49 15622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15623#else
0085ce49 15624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15625#endif
0085ce49
RD
15626 }
15627 return resultobj;
15628fail:
15629 return NULL;
d14a1e28
RD
15630}
15631
15632
0085ce49
RD
15633SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15634 PyObject *resultobj = 0;
15635 wxLocale *arg1 = (wxLocale *) 0 ;
15636 bool result;
15637 void *argp1 = 0 ;
15638 int res1 = 0 ;
15639 PyObject *swig_obj[1] ;
15640
15641 if (!args) SWIG_fail;
15642 swig_obj[0] = args;
15643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15644 if (!SWIG_IsOK(res1)) {
15645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15646 }
15647 arg1 = reinterpret_cast< wxLocale * >(argp1);
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 result = (bool)((wxLocale const *)arg1)->IsOk();
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 {
15655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15656 }
15657 return resultobj;
15658fail:
15659 return NULL;
093d3ff1 15660}
0085ce49
RD
15661
15662
15663SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15664 PyObject *resultobj = 0;
15665 wxLocale *arg1 = (wxLocale *) 0 ;
15666 wxString result;
15667 void *argp1 = 0 ;
15668 int res1 = 0 ;
15669 PyObject *swig_obj[1] ;
15670
15671 if (!args) SWIG_fail;
15672 swig_obj[0] = args;
15673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15674 if (!SWIG_IsOK(res1)) {
15675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15676 }
15677 arg1 = reinterpret_cast< wxLocale * >(argp1);
15678 {
15679 PyThreadState* __tstate = wxPyBeginAllowThreads();
15680 result = ((wxLocale const *)arg1)->GetLocale();
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
15684 {
15685#if wxUSE_UNICODE
15686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15687#else
15688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15689#endif
15690 }
15691 return resultobj;
15692fail:
15693 return NULL;
d14a1e28
RD
15694}
15695
15696
0085ce49
RD
15697SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15698 PyObject *resultobj = 0;
15699 wxLocale *arg1 = (wxLocale *) 0 ;
15700 int result;
15701 void *argp1 = 0 ;
15702 int res1 = 0 ;
15703 PyObject *swig_obj[1] ;
15704
15705 if (!args) SWIG_fail;
15706 swig_obj[0] = args;
15707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15708 if (!SWIG_IsOK(res1)) {
15709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15710 }
15711 arg1 = reinterpret_cast< wxLocale * >(argp1);
15712 {
15713 PyThreadState* __tstate = wxPyBeginAllowThreads();
15714 result = (int)((wxLocale const *)arg1)->GetLanguage();
15715 wxPyEndAllowThreads(__tstate);
15716 if (PyErr_Occurred()) SWIG_fail;
15717 }
15718 resultobj = SWIG_From_int(static_cast< int >(result));
15719 return resultobj;
15720fail:
15721 return NULL;
d14a1e28
RD
15722}
15723
15724
0085ce49
RD
15725SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15726 PyObject *resultobj = 0;
15727 wxLocale *arg1 = (wxLocale *) 0 ;
15728 wxString result;
15729 void *argp1 = 0 ;
15730 int res1 = 0 ;
15731 PyObject *swig_obj[1] ;
15732
15733 if (!args) SWIG_fail;
15734 swig_obj[0] = args;
15735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15736 if (!SWIG_IsOK(res1)) {
15737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15738 }
15739 arg1 = reinterpret_cast< wxLocale * >(argp1);
15740 {
15741 PyThreadState* __tstate = wxPyBeginAllowThreads();
15742 result = ((wxLocale const *)arg1)->GetSysName();
15743 wxPyEndAllowThreads(__tstate);
15744 if (PyErr_Occurred()) SWIG_fail;
15745 }
15746 {
15747#if wxUSE_UNICODE
15748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15749#else
15750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15751#endif
15752 }
15753 return resultobj;
15754fail:
15755 return NULL;
d14a1e28
RD
15756}
15757
15758
0085ce49
RD
15759SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15760 PyObject *resultobj = 0;
15761 wxLocale *arg1 = (wxLocale *) 0 ;
15762 wxString result;
15763 void *argp1 = 0 ;
15764 int res1 = 0 ;
15765 PyObject *swig_obj[1] ;
15766
15767 if (!args) SWIG_fail;
15768 swig_obj[0] = args;
15769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15770 if (!SWIG_IsOK(res1)) {
15771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15772 }
15773 arg1 = reinterpret_cast< wxLocale * >(argp1);
15774 {
15775 PyThreadState* __tstate = wxPyBeginAllowThreads();
15776 result = ((wxLocale const *)arg1)->GetCanonicalName();
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 {
15781#if wxUSE_UNICODE
15782 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15783#else
15784 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15785#endif
15786 }
15787 return resultobj;
15788fail:
15789 return NULL;
d14a1e28
RD
15790}
15791
15792
0085ce49
RD
15793SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15794 PyObject *resultobj = 0;
15795 wxString *arg1 = 0 ;
15796 bool temp1 = false ;
15797 PyObject * obj0 = 0 ;
15798 char * kwnames[] = {
15799 (char *) "prefix", NULL
15800 };
15801
15802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15803 {
15804 arg1 = wxString_in_helper(obj0);
15805 if (arg1 == NULL) SWIG_fail;
15806 temp1 = true;
15807 }
15808 {
15809 PyThreadState* __tstate = wxPyBeginAllowThreads();
15810 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15811 wxPyEndAllowThreads(__tstate);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 }
15814 resultobj = SWIG_Py_Void();
15815 {
15816 if (temp1)
15817 delete arg1;
15818 }
15819 return resultobj;
15820fail:
15821 {
15822 if (temp1)
15823 delete arg1;
15824 }
15825 return NULL;
15826}
15827
15828
15829SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15830 PyObject *resultobj = 0;
15831 wxLocale *arg1 = (wxLocale *) 0 ;
15832 wxString *arg2 = 0 ;
15833 bool result;
15834 void *argp1 = 0 ;
15835 int res1 = 0 ;
15836 bool temp2 = false ;
15837 PyObject * obj0 = 0 ;
15838 PyObject * obj1 = 0 ;
15839 char * kwnames[] = {
15840 (char *) "self",(char *) "szDomain", NULL
15841 };
15842
15843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15845 if (!SWIG_IsOK(res1)) {
15846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15847 }
15848 arg1 = reinterpret_cast< wxLocale * >(argp1);
15849 {
15850 arg2 = wxString_in_helper(obj1);
15851 if (arg2 == NULL) SWIG_fail;
15852 temp2 = true;
15853 }
15854 {
15855 PyThreadState* __tstate = wxPyBeginAllowThreads();
15856 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15862 }
15863 {
15864 if (temp2)
15865 delete arg2;
15866 }
15867 return resultobj;
15868fail:
15869 {
15870 if (temp2)
15871 delete arg2;
15872 }
15873 return NULL;
15874}
15875
15876
15877SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj = 0;
15879 wxLocale *arg1 = (wxLocale *) 0 ;
15880 wxString *arg2 = 0 ;
15881 bool result;
15882 void *argp1 = 0 ;
15883 int res1 = 0 ;
15884 bool temp2 = false ;
15885 PyObject * obj0 = 0 ;
15886 PyObject * obj1 = 0 ;
15887 char * kwnames[] = {
15888 (char *) "self",(char *) "szDomain", NULL
15889 };
15890
15891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15893 if (!SWIG_IsOK(res1)) {
15894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15895 }
15896 arg1 = reinterpret_cast< wxLocale * >(argp1);
15897 {
15898 arg2 = wxString_in_helper(obj1);
15899 if (arg2 == NULL) SWIG_fail;
15900 temp2 = true;
15901 }
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 {
15909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15910 }
15911 {
15912 if (temp2)
15913 delete arg2;
15914 }
15915 return resultobj;
15916fail:
15917 {
15918 if (temp2)
15919 delete arg2;
15920 }
15921 return NULL;
d14a1e28
RD
15922}
15923
15924
0085ce49
RD
15925SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15926 PyObject *resultobj = 0;
15927 int arg1 ;
15928 wxLanguageInfo *result = 0 ;
15929 int val1 ;
15930 int ecode1 = 0 ;
15931 PyObject * obj0 = 0 ;
15932 char * kwnames[] = {
15933 (char *) "lang", NULL
15934 };
15935
15936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
15937 ecode1 = SWIG_AsVal_int(obj0, &val1);
15938 if (!SWIG_IsOK(ecode1)) {
15939 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
15940 }
15941 arg1 = static_cast< int >(val1);
15942 {
15943 PyThreadState* __tstate = wxPyBeginAllowThreads();
15944 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
15945 wxPyEndAllowThreads(__tstate);
15946 if (PyErr_Occurred()) SWIG_fail;
15947 }
15948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15949 return resultobj;
15950fail:
15951 return NULL;
15952}
15953
15954
15955SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15956 PyObject *resultobj = 0;
15957 int arg1 ;
15958 wxString result;
15959 int val1 ;
15960 int ecode1 = 0 ;
15961 PyObject * obj0 = 0 ;
15962 char * kwnames[] = {
15963 (char *) "lang", NULL
15964 };
15965
15966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
15967 ecode1 = SWIG_AsVal_int(obj0, &val1);
15968 if (!SWIG_IsOK(ecode1)) {
15969 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
15970 }
15971 arg1 = static_cast< int >(val1);
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 result = wxLocale::GetLanguageName(arg1);
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 {
15979#if wxUSE_UNICODE
15980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15981#else
15982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15983#endif
15984 }
15985 return resultobj;
15986fail:
15987 return NULL;
d14a1e28
RD
15988}
15989
15990
0085ce49
RD
15991SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15992 PyObject *resultobj = 0;
15993 wxString *arg1 = 0 ;
15994 wxLanguageInfo *result = 0 ;
15995 bool temp1 = false ;
15996 PyObject * obj0 = 0 ;
15997 char * kwnames[] = {
15998 (char *) "locale", NULL
15999 };
16000
16001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16002 {
16003 arg1 = wxString_in_helper(obj0);
16004 if (arg1 == NULL) SWIG_fail;
16005 temp1 = true;
16006 }
16007 {
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16009 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16010 wxPyEndAllowThreads(__tstate);
16011 if (PyErr_Occurred()) SWIG_fail;
16012 }
16013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16014 {
16015 if (temp1)
16016 delete arg1;
16017 }
16018 return resultobj;
16019fail:
16020 {
16021 if (temp1)
16022 delete arg1;
16023 }
16024 return NULL;
16025}
16026
16027
16028SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16029 PyObject *resultobj = 0;
16030 wxLanguageInfo *arg1 = 0 ;
16031 void *argp1 = 0 ;
16032 int res1 = 0 ;
16033 PyObject * obj0 = 0 ;
16034 char * kwnames[] = {
16035 (char *) "info", NULL
16036 };
16037
16038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16039 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16040 if (!SWIG_IsOK(res1)) {
16041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16042 }
16043 if (!argp1) {
16044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16045 }
16046 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16047 {
16048 PyThreadState* __tstate = wxPyBeginAllowThreads();
16049 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16050 wxPyEndAllowThreads(__tstate);
16051 if (PyErr_Occurred()) SWIG_fail;
16052 }
16053 resultobj = SWIG_Py_Void();
16054 return resultobj;
16055fail:
16056 return NULL;
16057}
16058
16059
16060SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16061 PyObject *resultobj = 0;
16062 wxLocale *arg1 = (wxLocale *) 0 ;
16063 wxString *arg2 = 0 ;
16064 wxString const &arg3_defvalue = wxPyEmptyString ;
16065 wxString *arg3 = (wxString *) &arg3_defvalue ;
16066 wxString result;
16067 void *argp1 = 0 ;
16068 int res1 = 0 ;
16069 bool temp2 = false ;
16070 bool temp3 = false ;
16071 PyObject * obj0 = 0 ;
16072 PyObject * obj1 = 0 ;
16073 PyObject * obj2 = 0 ;
16074 char * kwnames[] = {
16075 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16076 };
16077
16078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16080 if (!SWIG_IsOK(res1)) {
16081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16082 }
16083 arg1 = reinterpret_cast< wxLocale * >(argp1);
16084 {
16085 arg2 = wxString_in_helper(obj1);
16086 if (arg2 == NULL) SWIG_fail;
16087 temp2 = true;
16088 }
16089 if (obj2) {
16090 {
16091 arg3 = wxString_in_helper(obj2);
16092 if (arg3 == NULL) SWIG_fail;
16093 temp3 = true;
16094 }
16095 }
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 {
16103#if wxUSE_UNICODE
16104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16105#else
16106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16107#endif
16108 }
16109 {
16110 if (temp2)
16111 delete arg2;
16112 }
16113 {
16114 if (temp3)
16115 delete arg3;
16116 }
16117 return resultobj;
16118fail:
16119 {
16120 if (temp2)
16121 delete arg2;
16122 }
16123 {
16124 if (temp3)
16125 delete arg3;
16126 }
16127 return NULL;
16128}
16129
16130
16131SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16132 PyObject *resultobj = 0;
16133 wxLocale *arg1 = (wxLocale *) 0 ;
16134 wxString *result = 0 ;
16135 void *argp1 = 0 ;
16136 int res1 = 0 ;
16137 PyObject *swig_obj[1] ;
16138
16139 if (!args) SWIG_fail;
16140 swig_obj[0] = args;
16141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16142 if (!SWIG_IsOK(res1)) {
16143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16144 }
16145 arg1 = reinterpret_cast< wxLocale * >(argp1);
16146 {
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 {
16149 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16150 result = (wxString *) &_result_ref;
16151 }
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
16155 {
16156#if wxUSE_UNICODE
16157 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16158#else
16159 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16160#endif
16161 }
16162 return resultobj;
16163fail:
16164 return NULL;
16165}
16166
16167
16168SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16169 PyObject *obj;
16170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16171 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16172 return SWIG_Py_Void();
16173}
16174
16175SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16176 return SWIG_Python_InitShadowInstance(args);
16177}
16178
16179SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16180 PyObject *resultobj = 0;
16181 int arg1 = (int) -1 ;
16182 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16183 wxPyLocale *result = 0 ;
16184 int val1 ;
16185 int ecode1 = 0 ;
16186 int val2 ;
16187 int ecode2 = 0 ;
16188 PyObject * obj0 = 0 ;
16189 PyObject * obj1 = 0 ;
16190 char * kwnames[] = {
16191 (char *) "language",(char *) "flags", NULL
16192 };
16193
16194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16195 if (obj0) {
16196 ecode1 = SWIG_AsVal_int(obj0, &val1);
16197 if (!SWIG_IsOK(ecode1)) {
16198 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16199 }
16200 arg1 = static_cast< int >(val1);
16201 }
16202 if (obj1) {
16203 ecode2 = SWIG_AsVal_int(obj1, &val2);
16204 if (!SWIG_IsOK(ecode2)) {
16205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16206 }
16207 arg2 = static_cast< int >(val2);
16208 }
16209 {
16210 PyThreadState* __tstate = wxPyBeginAllowThreads();
16211 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16212 wxPyEndAllowThreads(__tstate);
16213 if (PyErr_Occurred()) SWIG_fail;
16214 }
16215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16216 return resultobj;
16217fail:
16218 return NULL;
16219}
16220
16221
16222SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16223 PyObject *resultobj = 0;
16224 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16225 void *argp1 = 0 ;
16226 int res1 = 0 ;
16227 PyObject *swig_obj[1] ;
16228
16229 if (!args) SWIG_fail;
16230 swig_obj[0] = args;
16231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16232 if (!SWIG_IsOK(res1)) {
16233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16234 }
16235 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 delete arg1;
16239
0085ce49
RD
16240 wxPyEndAllowThreads(__tstate);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 }
fc46b7f3 16243 resultobj = SWIG_Py_Void();
0085ce49
RD
16244 return resultobj;
16245fail:
0085ce49 16246 return NULL;
d14a1e28
RD
16247}
16248
16249
fc46b7f3 16250SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16251 PyObject *resultobj = 0;
fc46b7f3
RD
16252 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16253 PyObject *arg2 = (PyObject *) 0 ;
16254 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16255 void *argp1 = 0 ;
16256 int res1 = 0 ;
16257 PyObject * obj0 = 0 ;
fc46b7f3
RD
16258 PyObject * obj1 = 0 ;
16259 PyObject * obj2 = 0 ;
0085ce49 16260 char * kwnames[] = {
fc46b7f3 16261 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16262 };
16263
fc46b7f3
RD
16264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16266 if (!SWIG_IsOK(res1)) {
fc46b7f3 16267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16268 }
fc46b7f3
RD
16269 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16270 arg2 = obj1;
16271 arg3 = obj2;
0085ce49
RD
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16274 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 resultobj = SWIG_Py_Void();
16279 return resultobj;
16280fail:
16281 return NULL;
16282}
16283
16284
fc46b7f3 16285SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16286 PyObject *resultobj = 0;
fc46b7f3
RD
16287 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16288 wxChar *arg2 = (wxChar *) 0 ;
16289 wxChar *arg3 = (wxChar *) NULL ;
16290 wxChar *result = 0 ;
0085ce49
RD
16291 void *argp1 = 0 ;
16292 int res1 = 0 ;
fc46b7f3
RD
16293 void *argp2 = 0 ;
16294 int res2 = 0 ;
16295 void *argp3 = 0 ;
16296 int res3 = 0 ;
0085ce49
RD
16297 PyObject * obj0 = 0 ;
16298 PyObject * obj1 = 0 ;
16299 PyObject * obj2 = 0 ;
16300 char * kwnames[] = {
16301 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16302 };
16303
fc46b7f3
RD
16304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16306 if (!SWIG_IsOK(res1)) {
fc46b7f3 16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16308 }
fc46b7f3
RD
16309 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16310 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16311 if (!SWIG_IsOK(res2)) {
16312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16313 }
fc46b7f3 16314 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16315 if (obj2) {
fc46b7f3
RD
16316 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16317 if (!SWIG_IsOK(res3)) {
16318 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16319 }
fc46b7f3 16320 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16321 }
16322 {
16323 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16324 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16325 wxPyEndAllowThreads(__tstate);
16326 if (PyErr_Occurred()) SWIG_fail;
16327 }
fc46b7f3 16328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16329 return resultobj;
16330fail:
0085ce49 16331 return NULL;
b6294124
RD
16332}
16333
16334
fc46b7f3 16335SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16336 PyObject *resultobj = 0;
fc46b7f3
RD
16337 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16338 wxChar *arg2 = (wxChar *) 0 ;
16339 wxChar *arg3 = (wxChar *) 0 ;
16340 size_t arg4 ;
16341 wxChar *arg5 = (wxChar *) NULL ;
16342 wxChar *result = 0 ;
0085ce49
RD
16343 void *argp1 = 0 ;
16344 int res1 = 0 ;
fc46b7f3
RD
16345 void *argp2 = 0 ;
16346 int res2 = 0 ;
16347 void *argp3 = 0 ;
16348 int res3 = 0 ;
16349 size_t val4 ;
16350 int ecode4 = 0 ;
16351 void *argp5 = 0 ;
16352 int res5 = 0 ;
16353 PyObject * obj0 = 0 ;
16354 PyObject * obj1 = 0 ;
16355 PyObject * obj2 = 0 ;
16356 PyObject * obj3 = 0 ;
16357 PyObject * obj4 = 0 ;
16358 char * kwnames[] = {
16359 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16360 };
0085ce49 16361
fc46b7f3
RD
16362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16364 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16366 }
16367 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16369 if (!SWIG_IsOK(res2)) {
16370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16371 }
16372 arg2 = reinterpret_cast< wxChar * >(argp2);
16373 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16374 if (!SWIG_IsOK(res3)) {
16375 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16376 }
16377 arg3 = reinterpret_cast< wxChar * >(argp3);
16378 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16379 if (!SWIG_IsOK(ecode4)) {
16380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16381 }
16382 arg4 = static_cast< size_t >(val4);
16383 if (obj4) {
16384 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16385 if (!SWIG_IsOK(res5)) {
16386 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16387 }
16388 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16389 }
0085ce49
RD
16390 {
16391 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16392 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16393 wxPyEndAllowThreads(__tstate);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
fc46b7f3 16396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16397 return resultobj;
16398fail:
16399 return NULL;
d14a1e28
RD
16400}
16401
16402
fc46b7f3 16403SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16404 PyObject *obj;
16405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16406 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16407 return SWIG_Py_Void();
d14a1e28
RD
16408}
16409
fc46b7f3 16410SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16411 return SWIG_Python_InitShadowInstance(args);
16412}
d14a1e28 16413
0085ce49
RD
16414SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16415 PyObject *resultobj = 0;
16416 wxLocale *result = 0 ;
16417
16418 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 result = (wxLocale *)wxGetLocale();
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16426 return resultobj;
16427fail:
16428 return NULL;
d14a1e28
RD
16429}
16430
16431
0085ce49
RD
16432SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16433 PyObject *resultobj = 0;
16434 wxString *arg1 = 0 ;
16435 wxString result;
16436 bool temp1 = false ;
16437
16438 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16439 {
16440 arg1 = wxString_in_helper(swig_obj[0]);
16441 if (arg1 == NULL) SWIG_fail;
16442 temp1 = true;
16443 }
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = wxGetTranslation((wxString const &)*arg1);
16447 wxPyEndAllowThreads(__tstate);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 {
093d3ff1 16451#if wxUSE_UNICODE
0085ce49 16452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16453#else
0085ce49 16454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16455#endif
0085ce49
RD
16456 }
16457 {
16458 if (temp1)
16459 delete arg1;
16460 }
16461 return resultobj;
16462fail:
16463 {
16464 if (temp1)
16465 delete arg1;
16466 }
16467 return NULL;
b6294124
RD
16468}
16469
16470
0085ce49 16471SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16472 PyObject *resultobj = 0;
16473 wxString *arg1 = 0 ;
16474 wxString *arg2 = 0 ;
16475 wxString result;
16476 bool temp1 = false ;
16477 bool temp2 = false ;
16478
16479 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16480 {
16481 arg1 = wxString_in_helper(swig_obj[0]);
16482 if (arg1 == NULL) SWIG_fail;
16483 temp1 = true;
16484 }
16485 {
16486 arg2 = wxString_in_helper(swig_obj[1]);
16487 if (arg2 == NULL) SWIG_fail;
16488 temp2 = true;
16489 }
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 {
16497#if wxUSE_UNICODE
16498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16499#else
16500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16501#endif
16502 }
16503 {
16504 if (temp1)
16505 delete arg1;
16506 }
16507 {
16508 if (temp2)
16509 delete arg2;
16510 }
16511 return resultobj;
16512fail:
16513 {
16514 if (temp1)
16515 delete arg1;
16516 }
16517 {
16518 if (temp2)
16519 delete arg2;
16520 }
16521 return NULL;
16522}
16523
16524
16525SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
16526 PyObject *resultobj = 0;
16527 wxString *arg1 = 0 ;
16528 wxString *arg2 = 0 ;
16529 size_t arg3 ;
16530 wxString result;
16531 bool temp1 = false ;
16532 bool temp2 = false ;
16533 size_t val3 ;
16534 int ecode3 = 0 ;
16535
16536 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16537 {
16538 arg1 = wxString_in_helper(swig_obj[0]);
16539 if (arg1 == NULL) SWIG_fail;
16540 temp1 = true;
16541 }
16542 {
16543 arg2 = wxString_in_helper(swig_obj[1]);
16544 if (arg2 == NULL) SWIG_fail;
16545 temp2 = true;
16546 }
16547 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16548 if (!SWIG_IsOK(ecode3)) {
16549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16550 }
16551 arg3 = static_cast< size_t >(val3);
16552 {
16553 PyThreadState* __tstate = wxPyBeginAllowThreads();
16554 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16555 wxPyEndAllowThreads(__tstate);
16556 if (PyErr_Occurred()) SWIG_fail;
16557 }
16558 {
16559#if wxUSE_UNICODE
16560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16561#else
16562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16563#endif
16564 }
16565 {
16566 if (temp1)
16567 delete arg1;
16568 }
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 return resultobj;
16574fail:
16575 {
16576 if (temp1)
16577 delete arg1;
16578 }
16579 {
16580 if (temp2)
16581 delete arg2;
16582 }
16583 return NULL;
d14a1e28
RD
16584}
16585
16586
fc46b7f3
RD
16587SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16588 PyObject *resultobj = 0;
16589 wxString *arg1 = 0 ;
16590 wxString *arg2 = 0 ;
16591 size_t arg3 ;
16592 wxString *arg4 = 0 ;
16593 wxString result;
16594 bool temp1 = false ;
16595 bool temp2 = false ;
16596 size_t val3 ;
16597 int ecode3 = 0 ;
16598 bool temp4 = false ;
16599
16600 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16601 {
16602 arg1 = wxString_in_helper(swig_obj[0]);
16603 if (arg1 == NULL) SWIG_fail;
16604 temp1 = true;
16605 }
16606 {
16607 arg2 = wxString_in_helper(swig_obj[1]);
16608 if (arg2 == NULL) SWIG_fail;
16609 temp2 = true;
16610 }
16611 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16612 if (!SWIG_IsOK(ecode3)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16614 }
16615 arg3 = static_cast< size_t >(val3);
16616 {
16617 arg4 = wxString_in_helper(swig_obj[3]);
16618 if (arg4 == NULL) SWIG_fail;
16619 temp4 = true;
16620 }
16621 {
16622 PyThreadState* __tstate = wxPyBeginAllowThreads();
16623 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16624 wxPyEndAllowThreads(__tstate);
16625 if (PyErr_Occurred()) SWIG_fail;
16626 }
16627 {
16628#if wxUSE_UNICODE
16629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16630#else
16631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16632#endif
16633 }
16634 {
16635 if (temp1)
16636 delete arg1;
16637 }
16638 {
16639 if (temp2)
16640 delete arg2;
16641 }
16642 {
16643 if (temp4)
16644 delete arg4;
16645 }
16646 return resultobj;
16647fail:
16648 {
16649 if (temp1)
16650 delete arg1;
16651 }
16652 {
16653 if (temp2)
16654 delete arg2;
16655 }
16656 {
16657 if (temp4)
16658 delete arg4;
16659 }
16660 return NULL;
16661}
16662
16663
0085ce49
RD
16664SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16665 int argc;
fc46b7f3 16666 PyObject *argv[5];
0085ce49 16667
fc46b7f3 16668 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
16669 --argc;
16670 if (argc == 1) {
16671 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16672 }
fc46b7f3 16673 if (argc == 2) {
0085ce49
RD
16674 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16675 }
fc46b7f3
RD
16676 if (argc == 3) {
16677 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16678 }
16679 if (argc == 4) {
16680 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16681 }
0085ce49
RD
16682
16683fail:
16684 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16685 return NULL;
d14a1e28
RD
16686}
16687
16688
0085ce49
RD
16689SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16690 PyObject *resultobj = 0;
16691 wxEncodingConverter *result = 0 ;
16692
16693 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16694 {
16695 PyThreadState* __tstate = wxPyBeginAllowThreads();
16696 result = (wxEncodingConverter *)new wxEncodingConverter();
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16701 return resultobj;
16702fail:
16703 return NULL;
d14a1e28
RD
16704}
16705
16706
0085ce49
RD
16707SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16708 PyObject *resultobj = 0;
16709 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16710 void *argp1 = 0 ;
16711 int res1 = 0 ;
16712 PyObject *swig_obj[1] ;
16713
16714 if (!args) SWIG_fail;
16715 swig_obj[0] = args;
16716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16717 if (!SWIG_IsOK(res1)) {
16718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16719 }
16720 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 delete arg1;
d14a1e28 16724
0085ce49
RD
16725 wxPyEndAllowThreads(__tstate);
16726 if (PyErr_Occurred()) SWIG_fail;
16727 }
16728 resultobj = SWIG_Py_Void();
16729 return resultobj;
16730fail:
16731 return NULL;
16732}
16733
16734
16735SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16736 PyObject *resultobj = 0;
16737 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16738 wxFontEncoding arg2 ;
16739 wxFontEncoding arg3 ;
16740 int arg4 = (int) wxCONVERT_STRICT ;
16741 bool result;
16742 void *argp1 = 0 ;
16743 int res1 = 0 ;
16744 int val2 ;
16745 int ecode2 = 0 ;
16746 int val3 ;
16747 int ecode3 = 0 ;
16748 int val4 ;
16749 int ecode4 = 0 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 PyObject * obj2 = 0 ;
16753 PyObject * obj3 = 0 ;
16754 char * kwnames[] = {
16755 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16756 };
16757
16758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16760 if (!SWIG_IsOK(res1)) {
16761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16762 }
16763 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16764 ecode2 = SWIG_AsVal_int(obj1, &val2);
16765 if (!SWIG_IsOK(ecode2)) {
16766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16767 }
16768 arg2 = static_cast< wxFontEncoding >(val2);
16769 ecode3 = SWIG_AsVal_int(obj2, &val3);
16770 if (!SWIG_IsOK(ecode3)) {
16771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16772 }
16773 arg3 = static_cast< wxFontEncoding >(val3);
16774 if (obj3) {
16775 ecode4 = SWIG_AsVal_int(obj3, &val4);
16776 if (!SWIG_IsOK(ecode4)) {
16777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16778 }
16779 arg4 = static_cast< int >(val4);
16780 }
16781 {
16782 PyThreadState* __tstate = wxPyBeginAllowThreads();
16783 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 {
16788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16789 }
16790 return resultobj;
16791fail:
16792 return NULL;
16793}
16794
16795
16796SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16797 PyObject *resultobj = 0;
16798 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16799 wxString *arg2 = 0 ;
16800 wxString result;
16801 void *argp1 = 0 ;
16802 int res1 = 0 ;
16803 bool temp2 = false ;
16804 PyObject * obj0 = 0 ;
16805 PyObject * obj1 = 0 ;
16806 char * kwnames[] = {
16807 (char *) "self",(char *) "input", NULL
16808 };
16809
16810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16814 }
16815 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16816 {
16817 arg2 = wxString_in_helper(obj1);
16818 if (arg2 == NULL) SWIG_fail;
16819 temp2 = true;
16820 }
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (arg1)->Convert((wxString const &)*arg2);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 {
16828#if wxUSE_UNICODE
16829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16830#else
16831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16832#endif
16833 }
16834 {
16835 if (temp2)
16836 delete arg2;
16837 }
16838 return resultobj;
16839fail:
16840 {
16841 if (temp2)
16842 delete arg2;
16843 }
16844 return NULL;
16845}
16846
16847
16848SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16849 PyObject *resultobj = 0;
16850 wxFontEncoding arg1 ;
16851 int arg2 = (int) wxPLATFORM_CURRENT ;
16852 wxFontEncodingArray result;
16853 int val1 ;
16854 int ecode1 = 0 ;
16855 int val2 ;
16856 int ecode2 = 0 ;
16857 PyObject * obj0 = 0 ;
16858 PyObject * obj1 = 0 ;
16859 char * kwnames[] = {
16860 (char *) "enc",(char *) "platform", NULL
16861 };
16862
16863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16864 ecode1 = SWIG_AsVal_int(obj0, &val1);
16865 if (!SWIG_IsOK(ecode1)) {
16866 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16867 }
16868 arg1 = static_cast< wxFontEncoding >(val1);
16869 if (obj1) {
16870 ecode2 = SWIG_AsVal_int(obj1, &val2);
16871 if (!SWIG_IsOK(ecode2)) {
16872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16873 }
16874 arg2 = static_cast< int >(val2);
16875 }
16876 {
16877 PyThreadState* __tstate = wxPyBeginAllowThreads();
16878 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16879 wxPyEndAllowThreads(__tstate);
16880 if (PyErr_Occurred()) SWIG_fail;
16881 }
16882 {
16883 resultobj = PyList_New(0);
16884 for (size_t i=0; i < (&result)->GetCount(); i++) {
16885 PyObject* number = PyInt_FromLong((&result)->Item(i));
16886 PyList_Append(resultobj, number);
16887 Py_DECREF(number);
093d3ff1 16888 }
0085ce49
RD
16889 }
16890 return resultobj;
16891fail:
16892 return NULL;
d14a1e28
RD
16893}
16894
16895
0085ce49
RD
16896SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16897 PyObject *resultobj = 0;
16898 wxFontEncoding arg1 ;
16899 wxFontEncodingArray result;
16900 int val1 ;
16901 int ecode1 = 0 ;
16902 PyObject * obj0 = 0 ;
16903 char * kwnames[] = {
16904 (char *) "enc", NULL
16905 };
16906
16907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16908 ecode1 = SWIG_AsVal_int(obj0, &val1);
16909 if (!SWIG_IsOK(ecode1)) {
16910 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16911 }
16912 arg1 = static_cast< wxFontEncoding >(val1);
16913 {
16914 PyThreadState* __tstate = wxPyBeginAllowThreads();
16915 result = wxEncodingConverter::GetAllEquivalents(arg1);
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 {
16920 resultobj = PyList_New(0);
16921 for (size_t i=0; i < (&result)->GetCount(); i++) {
16922 PyObject* number = PyInt_FromLong((&result)->Item(i));
16923 PyList_Append(resultobj, number);
16924 Py_DECREF(number);
093d3ff1 16925 }
0085ce49
RD
16926 }
16927 return resultobj;
16928fail:
16929 return NULL;
16930}
16931
16932
16933SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16934 PyObject *resultobj = 0;
16935 wxFontEncoding arg1 ;
16936 wxFontEncoding arg2 ;
16937 bool result;
16938 int val1 ;
16939 int ecode1 = 0 ;
16940 int val2 ;
16941 int ecode2 = 0 ;
16942 PyObject * obj0 = 0 ;
16943 PyObject * obj1 = 0 ;
16944 char * kwnames[] = {
16945 (char *) "encIn",(char *) "encOut", NULL
16946 };
16947
16948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
16949 ecode1 = SWIG_AsVal_int(obj0, &val1);
16950 if (!SWIG_IsOK(ecode1)) {
16951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16952 }
16953 arg1 = static_cast< wxFontEncoding >(val1);
16954 ecode2 = SWIG_AsVal_int(obj1, &val2);
16955 if (!SWIG_IsOK(ecode2)) {
16956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16957 }
16958 arg2 = static_cast< wxFontEncoding >(val2);
16959 {
16960 PyThreadState* __tstate = wxPyBeginAllowThreads();
16961 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
16962 wxPyEndAllowThreads(__tstate);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 }
16965 {
16966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16967 }
16968 return resultobj;
16969fail:
16970 return NULL;
d14a1e28
RD
16971}
16972
16973
0085ce49
RD
16974SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16975 PyObject *obj;
16976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16977 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
16978 return SWIG_Py_Void();
d14a1e28
RD
16979}
16980
0085ce49
RD
16981SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16982 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
16983}
16984
0085ce49
RD
16985SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16986 PyObject *resultobj = 0;
16987 wxDC *arg1 = (wxDC *) 0 ;
16988 void *argp1 = 0 ;
16989 int res1 = 0 ;
16990 PyObject *swig_obj[1] ;
16991
16992 if (!args) SWIG_fail;
16993 swig_obj[0] = args;
16994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
16995 if (!SWIG_IsOK(res1)) {
16996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
16997 }
16998 arg1 = reinterpret_cast< wxDC * >(argp1);
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
17001 delete arg1;
d14a1e28 17002
0085ce49
RD
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 resultobj = SWIG_Py_Void();
17007 return resultobj;
17008fail:
17009 return NULL;
17010}
17011
17012
17013SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17014 PyObject *resultobj = 0;
17015 wxDC *arg1 = (wxDC *) 0 ;
17016 int arg2 ;
17017 int arg3 ;
17018 wxColour *arg4 = 0 ;
17019 int arg5 = (int) wxFLOOD_SURFACE ;
17020 bool result;
17021 void *argp1 = 0 ;
17022 int res1 = 0 ;
17023 int val2 ;
17024 int ecode2 = 0 ;
17025 int val3 ;
17026 int ecode3 = 0 ;
17027 wxColour temp4 ;
17028 int val5 ;
17029 int ecode5 = 0 ;
17030 PyObject * obj0 = 0 ;
17031 PyObject * obj1 = 0 ;
17032 PyObject * obj2 = 0 ;
17033 PyObject * obj3 = 0 ;
17034 PyObject * obj4 = 0 ;
17035 char * kwnames[] = {
17036 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17037 };
17038
17039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17041 if (!SWIG_IsOK(res1)) {
17042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17043 }
17044 arg1 = reinterpret_cast< wxDC * >(argp1);
17045 ecode2 = SWIG_AsVal_int(obj1, &val2);
17046 if (!SWIG_IsOK(ecode2)) {
17047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17048 }
17049 arg2 = static_cast< int >(val2);
17050 ecode3 = SWIG_AsVal_int(obj2, &val3);
17051 if (!SWIG_IsOK(ecode3)) {
17052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17053 }
17054 arg3 = static_cast< int >(val3);
17055 {
17056 arg4 = &temp4;
17057 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17058 }
17059 if (obj4) {
17060 ecode5 = SWIG_AsVal_int(obj4, &val5);
17061 if (!SWIG_IsOK(ecode5)) {
17062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17063 }
17064 arg5 = static_cast< int >(val5);
17065 }
17066 {
17067 PyThreadState* __tstate = wxPyBeginAllowThreads();
17068 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17069 wxPyEndAllowThreads(__tstate);
17070 if (PyErr_Occurred()) SWIG_fail;
17071 }
17072 {
17073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17074 }
17075 return resultobj;
17076fail:
17077 return NULL;
17078}
17079
17080
17081SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17082 PyObject *resultobj = 0;
17083 wxDC *arg1 = (wxDC *) 0 ;
17084 wxPoint *arg2 = 0 ;
17085 wxColour *arg3 = 0 ;
17086 int arg4 = (int) wxFLOOD_SURFACE ;
17087 bool result;
17088 void *argp1 = 0 ;
17089 int res1 = 0 ;
17090 wxPoint temp2 ;
17091 wxColour temp3 ;
17092 int val4 ;
17093 int ecode4 = 0 ;
17094 PyObject * obj0 = 0 ;
17095 PyObject * obj1 = 0 ;
17096 PyObject * obj2 = 0 ;
17097 PyObject * obj3 = 0 ;
17098 char * kwnames[] = {
17099 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17100 };
17101
17102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17104 if (!SWIG_IsOK(res1)) {
17105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17106 }
17107 arg1 = reinterpret_cast< wxDC * >(argp1);
17108 {
17109 arg2 = &temp2;
17110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17111 }
17112 {
17113 arg3 = &temp3;
17114 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17115 }
17116 if (obj3) {
17117 ecode4 = SWIG_AsVal_int(obj3, &val4);
17118 if (!SWIG_IsOK(ecode4)) {
17119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17120 }
17121 arg4 = static_cast< int >(val4);
17122 }
17123 {
17124 PyThreadState* __tstate = wxPyBeginAllowThreads();
17125 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17126 wxPyEndAllowThreads(__tstate);
17127 if (PyErr_Occurred()) SWIG_fail;
17128 }
17129 {
17130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17131 }
17132 return resultobj;
17133fail:
17134 return NULL;
17135}
17136
17137
17138SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17139 PyObject *resultobj = 0;
17140 wxDC *arg1 = (wxDC *) 0 ;
17141 wxRect *arg2 = 0 ;
17142 wxColour *arg3 = 0 ;
17143 wxColour *arg4 = 0 ;
17144 wxPoint *arg5 = 0 ;
17145 void *argp1 = 0 ;
17146 int res1 = 0 ;
17147 wxRect temp2 ;
17148 wxColour temp3 ;
17149 wxColour temp4 ;
17150 wxPoint temp5 ;
17151 PyObject * obj0 = 0 ;
17152 PyObject * obj1 = 0 ;
17153 PyObject * obj2 = 0 ;
17154 PyObject * obj3 = 0 ;
17155 PyObject * obj4 = 0 ;
17156 char * kwnames[] = {
17157 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17158 };
17159
17160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17162 if (!SWIG_IsOK(res1)) {
17163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17164 }
17165 arg1 = reinterpret_cast< wxDC * >(argp1);
17166 {
17167 arg2 = &temp2;
17168 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17169 }
17170 {
17171 arg3 = &temp3;
17172 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17173 }
17174 {
17175 arg4 = &temp4;
17176 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17177 }
17178 {
17179 arg5 = &temp5;
17180 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17181 }
17182 {
17183 PyThreadState* __tstate = wxPyBeginAllowThreads();
17184 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17185 wxPyEndAllowThreads(__tstate);
17186 if (PyErr_Occurred()) SWIG_fail;
17187 }
17188 resultobj = SWIG_Py_Void();
17189 return resultobj;
17190fail:
17191 return NULL;
17192}
17193
17194
17195SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17196 PyObject *resultobj = 0;
17197 wxDC *arg1 = (wxDC *) 0 ;
17198 wxRect *arg2 = 0 ;
17199 wxColour *arg3 = 0 ;
17200 wxColour *arg4 = 0 ;
17201 wxDirection arg5 = (wxDirection) wxEAST ;
17202 void *argp1 = 0 ;
17203 int res1 = 0 ;
17204 wxRect temp2 ;
17205 wxColour temp3 ;
17206 wxColour temp4 ;
17207 int val5 ;
17208 int ecode5 = 0 ;
17209 PyObject * obj0 = 0 ;
17210 PyObject * obj1 = 0 ;
17211 PyObject * obj2 = 0 ;
17212 PyObject * obj3 = 0 ;
17213 PyObject * obj4 = 0 ;
17214 char * kwnames[] = {
17215 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17216 };
17217
17218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17220 if (!SWIG_IsOK(res1)) {
17221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17222 }
17223 arg1 = reinterpret_cast< wxDC * >(argp1);
17224 {
17225 arg2 = &temp2;
17226 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17227 }
17228 {
17229 arg3 = &temp3;
17230 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17231 }
17232 {
17233 arg4 = &temp4;
17234 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17235 }
17236 if (obj4) {
17237 ecode5 = SWIG_AsVal_int(obj4, &val5);
17238 if (!SWIG_IsOK(ecode5)) {
17239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17240 }
17241 arg5 = static_cast< wxDirection >(val5);
17242 }
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17246 wxPyEndAllowThreads(__tstate);
17247 if (PyErr_Occurred()) SWIG_fail;
17248 }
17249 resultobj = SWIG_Py_Void();
17250 return resultobj;
17251fail:
17252 return NULL;
17253}
17254
17255
17256SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17257 PyObject *resultobj = 0;
17258 wxDC *arg1 = (wxDC *) 0 ;
17259 int arg2 ;
17260 int arg3 ;
17261 wxColour result;
17262 void *argp1 = 0 ;
17263 int res1 = 0 ;
17264 int val2 ;
17265 int ecode2 = 0 ;
17266 int val3 ;
17267 int ecode3 = 0 ;
17268 PyObject * obj0 = 0 ;
17269 PyObject * obj1 = 0 ;
17270 PyObject * obj2 = 0 ;
17271 char * kwnames[] = {
17272 (char *) "self",(char *) "x",(char *) "y", NULL
17273 };
17274
17275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17277 if (!SWIG_IsOK(res1)) {
17278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17279 }
17280 arg1 = reinterpret_cast< wxDC * >(argp1);
17281 ecode2 = SWIG_AsVal_int(obj1, &val2);
17282 if (!SWIG_IsOK(ecode2)) {
17283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17284 }
17285 arg2 = static_cast< int >(val2);
17286 ecode3 = SWIG_AsVal_int(obj2, &val3);
17287 if (!SWIG_IsOK(ecode3)) {
17288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17289 }
17290 arg3 = static_cast< int >(val3);
17291 {
17292 PyThreadState* __tstate = wxPyBeginAllowThreads();
17293 result = wxDC_GetPixel(arg1,arg2,arg3);
17294 wxPyEndAllowThreads(__tstate);
17295 if (PyErr_Occurred()) SWIG_fail;
17296 }
17297 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17298 return resultobj;
17299fail:
17300 return NULL;
17301}
17302
17303
17304SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17305 PyObject *resultobj = 0;
17306 wxDC *arg1 = (wxDC *) 0 ;
17307 wxPoint *arg2 = 0 ;
17308 wxColour result;
17309 void *argp1 = 0 ;
17310 int res1 = 0 ;
17311 wxPoint temp2 ;
17312 PyObject * obj0 = 0 ;
17313 PyObject * obj1 = 0 ;
17314 char * kwnames[] = {
17315 (char *) "self",(char *) "pt", NULL
17316 };
17317
17318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17320 if (!SWIG_IsOK(res1)) {
17321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17322 }
17323 arg1 = reinterpret_cast< wxDC * >(argp1);
17324 {
17325 arg2 = &temp2;
17326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17327 }
17328 {
17329 PyThreadState* __tstate = wxPyBeginAllowThreads();
17330 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17331 wxPyEndAllowThreads(__tstate);
17332 if (PyErr_Occurred()) SWIG_fail;
17333 }
17334 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17335 return resultobj;
17336fail:
17337 return NULL;
17338}
17339
17340
17341SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj = 0;
17343 wxDC *arg1 = (wxDC *) 0 ;
17344 int arg2 ;
17345 int arg3 ;
17346 int arg4 ;
17347 int arg5 ;
17348 void *argp1 = 0 ;
17349 int res1 = 0 ;
17350 int val2 ;
17351 int ecode2 = 0 ;
17352 int val3 ;
17353 int ecode3 = 0 ;
17354 int val4 ;
17355 int ecode4 = 0 ;
17356 int val5 ;
17357 int ecode5 = 0 ;
17358 PyObject * obj0 = 0 ;
17359 PyObject * obj1 = 0 ;
17360 PyObject * obj2 = 0 ;
17361 PyObject * obj3 = 0 ;
17362 PyObject * obj4 = 0 ;
17363 char * kwnames[] = {
17364 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17365 };
17366
17367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17369 if (!SWIG_IsOK(res1)) {
17370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17371 }
17372 arg1 = reinterpret_cast< wxDC * >(argp1);
17373 ecode2 = SWIG_AsVal_int(obj1, &val2);
17374 if (!SWIG_IsOK(ecode2)) {
17375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17376 }
17377 arg2 = static_cast< int >(val2);
17378 ecode3 = SWIG_AsVal_int(obj2, &val3);
17379 if (!SWIG_IsOK(ecode3)) {
17380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17381 }
17382 arg3 = static_cast< int >(val3);
17383 ecode4 = SWIG_AsVal_int(obj3, &val4);
17384 if (!SWIG_IsOK(ecode4)) {
17385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17386 }
17387 arg4 = static_cast< int >(val4);
17388 ecode5 = SWIG_AsVal_int(obj4, &val5);
17389 if (!SWIG_IsOK(ecode5)) {
17390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17391 }
17392 arg5 = static_cast< int >(val5);
17393 {
17394 PyThreadState* __tstate = wxPyBeginAllowThreads();
17395 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17396 wxPyEndAllowThreads(__tstate);
17397 if (PyErr_Occurred()) SWIG_fail;
17398 }
17399 resultobj = SWIG_Py_Void();
17400 return resultobj;
17401fail:
17402 return NULL;
17403}
17404
17405
17406SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17407 PyObject *resultobj = 0;
17408 wxDC *arg1 = (wxDC *) 0 ;
17409 wxPoint *arg2 = 0 ;
17410 wxPoint *arg3 = 0 ;
17411 void *argp1 = 0 ;
17412 int res1 = 0 ;
17413 wxPoint temp2 ;
17414 wxPoint temp3 ;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17417 PyObject * obj2 = 0 ;
17418 char * kwnames[] = {
17419 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17420 };
17421
17422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17424 if (!SWIG_IsOK(res1)) {
17425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17426 }
17427 arg1 = reinterpret_cast< wxDC * >(argp1);
17428 {
17429 arg2 = &temp2;
17430 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17431 }
17432 {
17433 arg3 = &temp3;
17434 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17435 }
17436 {
17437 PyThreadState* __tstate = wxPyBeginAllowThreads();
17438 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17439 wxPyEndAllowThreads(__tstate);
17440 if (PyErr_Occurred()) SWIG_fail;
17441 }
17442 resultobj = SWIG_Py_Void();
17443 return resultobj;
17444fail:
17445 return NULL;
17446}
17447
17448
17449SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17450 PyObject *resultobj = 0;
17451 wxDC *arg1 = (wxDC *) 0 ;
17452 int arg2 ;
17453 int arg3 ;
17454 void *argp1 = 0 ;
17455 int res1 = 0 ;
17456 int val2 ;
17457 int ecode2 = 0 ;
17458 int val3 ;
17459 int ecode3 = 0 ;
17460 PyObject * obj0 = 0 ;
17461 PyObject * obj1 = 0 ;
17462 PyObject * obj2 = 0 ;
17463 char * kwnames[] = {
17464 (char *) "self",(char *) "x",(char *) "y", NULL
17465 };
17466
17467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17469 if (!SWIG_IsOK(res1)) {
17470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17471 }
17472 arg1 = reinterpret_cast< wxDC * >(argp1);
17473 ecode2 = SWIG_AsVal_int(obj1, &val2);
17474 if (!SWIG_IsOK(ecode2)) {
17475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17476 }
17477 arg2 = static_cast< int >(val2);
17478 ecode3 = SWIG_AsVal_int(obj2, &val3);
17479 if (!SWIG_IsOK(ecode3)) {
17480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17481 }
17482 arg3 = static_cast< int >(val3);
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 (arg1)->CrossHair(arg2,arg3);
17486 wxPyEndAllowThreads(__tstate);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 }
17489 resultobj = SWIG_Py_Void();
17490 return resultobj;
17491fail:
17492 return NULL;
17493}
17494
17495
17496SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17497 PyObject *resultobj = 0;
17498 wxDC *arg1 = (wxDC *) 0 ;
17499 wxPoint *arg2 = 0 ;
17500 void *argp1 = 0 ;
17501 int res1 = 0 ;
17502 wxPoint temp2 ;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 char * kwnames[] = {
17506 (char *) "self",(char *) "pt", NULL
17507 };
17508
17509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17511 if (!SWIG_IsOK(res1)) {
17512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17513 }
17514 arg1 = reinterpret_cast< wxDC * >(argp1);
17515 {
17516 arg2 = &temp2;
17517 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17518 }
17519 {
17520 PyThreadState* __tstate = wxPyBeginAllowThreads();
17521 (arg1)->CrossHair((wxPoint const &)*arg2);
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 resultobj = SWIG_Py_Void();
17526 return resultobj;
17527fail:
17528 return NULL;
17529}
17530
17531
17532SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj = 0;
17534 wxDC *arg1 = (wxDC *) 0 ;
17535 int arg2 ;
17536 int arg3 ;
17537 int arg4 ;
17538 int arg5 ;
17539 int arg6 ;
17540 int arg7 ;
17541 void *argp1 = 0 ;
17542 int res1 = 0 ;
17543 int val2 ;
17544 int ecode2 = 0 ;
17545 int val3 ;
17546 int ecode3 = 0 ;
17547 int val4 ;
17548 int ecode4 = 0 ;
17549 int val5 ;
17550 int ecode5 = 0 ;
17551 int val6 ;
17552 int ecode6 = 0 ;
17553 int val7 ;
17554 int ecode7 = 0 ;
17555 PyObject * obj0 = 0 ;
17556 PyObject * obj1 = 0 ;
17557 PyObject * obj2 = 0 ;
17558 PyObject * obj3 = 0 ;
17559 PyObject * obj4 = 0 ;
17560 PyObject * obj5 = 0 ;
17561 PyObject * obj6 = 0 ;
17562 char * kwnames[] = {
17563 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17564 };
17565
17566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17568 if (!SWIG_IsOK(res1)) {
17569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17570 }
17571 arg1 = reinterpret_cast< wxDC * >(argp1);
17572 ecode2 = SWIG_AsVal_int(obj1, &val2);
17573 if (!SWIG_IsOK(ecode2)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17575 }
17576 arg2 = static_cast< int >(val2);
17577 ecode3 = SWIG_AsVal_int(obj2, &val3);
17578 if (!SWIG_IsOK(ecode3)) {
17579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17580 }
17581 arg3 = static_cast< int >(val3);
17582 ecode4 = SWIG_AsVal_int(obj3, &val4);
17583 if (!SWIG_IsOK(ecode4)) {
17584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17585 }
17586 arg4 = static_cast< int >(val4);
17587 ecode5 = SWIG_AsVal_int(obj4, &val5);
17588 if (!SWIG_IsOK(ecode5)) {
17589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17590 }
17591 arg5 = static_cast< int >(val5);
17592 ecode6 = SWIG_AsVal_int(obj5, &val6);
17593 if (!SWIG_IsOK(ecode6)) {
17594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17595 }
17596 arg6 = static_cast< int >(val6);
17597 ecode7 = SWIG_AsVal_int(obj6, &val7);
17598 if (!SWIG_IsOK(ecode7)) {
17599 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17600 }
17601 arg7 = static_cast< int >(val7);
17602 {
17603 PyThreadState* __tstate = wxPyBeginAllowThreads();
17604 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17605 wxPyEndAllowThreads(__tstate);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 resultobj = SWIG_Py_Void();
17609 return resultobj;
17610fail:
17611 return NULL;
17612}
17613
17614
17615SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17616 PyObject *resultobj = 0;
17617 wxDC *arg1 = (wxDC *) 0 ;
17618 wxPoint *arg2 = 0 ;
17619 wxPoint *arg3 = 0 ;
17620 wxPoint *arg4 = 0 ;
17621 void *argp1 = 0 ;
17622 int res1 = 0 ;
17623 wxPoint temp2 ;
17624 wxPoint temp3 ;
17625 wxPoint temp4 ;
17626 PyObject * obj0 = 0 ;
17627 PyObject * obj1 = 0 ;
17628 PyObject * obj2 = 0 ;
17629 PyObject * obj3 = 0 ;
17630 char * kwnames[] = {
17631 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17632 };
17633
17634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17636 if (!SWIG_IsOK(res1)) {
17637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17638 }
17639 arg1 = reinterpret_cast< wxDC * >(argp1);
17640 {
17641 arg2 = &temp2;
17642 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17643 }
17644 {
17645 arg3 = &temp3;
17646 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17647 }
17648 {
17649 arg4 = &temp4;
17650 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17651 }
17652 {
17653 PyThreadState* __tstate = wxPyBeginAllowThreads();
17654 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17655 wxPyEndAllowThreads(__tstate);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 resultobj = SWIG_Py_Void();
17659 return resultobj;
17660fail:
17661 return NULL;
17662}
17663
17664
17665SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj = 0;
17667 wxDC *arg1 = (wxDC *) 0 ;
17668 int arg2 ;
17669 int arg3 ;
17670 int arg4 ;
17671 int arg5 ;
17672 void *argp1 = 0 ;
17673 int res1 = 0 ;
17674 int val2 ;
17675 int ecode2 = 0 ;
17676 int val3 ;
17677 int ecode3 = 0 ;
17678 int val4 ;
17679 int ecode4 = 0 ;
17680 int val5 ;
17681 int ecode5 = 0 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 PyObject * obj2 = 0 ;
17685 PyObject * obj3 = 0 ;
17686 PyObject * obj4 = 0 ;
17687 char * kwnames[] = {
17688 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17689 };
17690
17691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17693 if (!SWIG_IsOK(res1)) {
17694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17695 }
17696 arg1 = reinterpret_cast< wxDC * >(argp1);
17697 ecode2 = SWIG_AsVal_int(obj1, &val2);
17698 if (!SWIG_IsOK(ecode2)) {
17699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17700 }
17701 arg2 = static_cast< int >(val2);
17702 ecode3 = SWIG_AsVal_int(obj2, &val3);
17703 if (!SWIG_IsOK(ecode3)) {
17704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17705 }
17706 arg3 = static_cast< int >(val3);
17707 ecode4 = SWIG_AsVal_int(obj3, &val4);
17708 if (!SWIG_IsOK(ecode4)) {
17709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17710 }
17711 arg4 = static_cast< int >(val4);
17712 ecode5 = SWIG_AsVal_int(obj4, &val5);
17713 if (!SWIG_IsOK(ecode5)) {
17714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17715 }
17716 arg5 = static_cast< int >(val5);
17717 {
17718 PyThreadState* __tstate = wxPyBeginAllowThreads();
17719 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17720 wxPyEndAllowThreads(__tstate);
17721 if (PyErr_Occurred()) SWIG_fail;
17722 }
17723 resultobj = SWIG_Py_Void();
17724 return resultobj;
17725fail:
17726 return NULL;
17727}
17728
17729
17730SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17731 PyObject *resultobj = 0;
17732 wxDC *arg1 = (wxDC *) 0 ;
17733 wxRect *arg2 = 0 ;
17734 void *argp1 = 0 ;
17735 int res1 = 0 ;
17736 wxRect temp2 ;
17737 PyObject * obj0 = 0 ;
17738 PyObject * obj1 = 0 ;
17739 char * kwnames[] = {
17740 (char *) "self",(char *) "rect", NULL
17741 };
17742
17743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17745 if (!SWIG_IsOK(res1)) {
17746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17747 }
17748 arg1 = reinterpret_cast< wxDC * >(argp1);
17749 {
17750 arg2 = &temp2;
17751 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17752 }
17753 {
17754 PyThreadState* __tstate = wxPyBeginAllowThreads();
17755 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17756 wxPyEndAllowThreads(__tstate);
17757 if (PyErr_Occurred()) SWIG_fail;
17758 }
17759 resultobj = SWIG_Py_Void();
17760 return resultobj;
17761fail:
17762 return NULL;
17763}
17764
17765
17766SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17767 PyObject *resultobj = 0;
17768 wxDC *arg1 = (wxDC *) 0 ;
17769 int arg2 ;
17770 int arg3 ;
17771 int arg4 ;
17772 int arg5 ;
17773 double arg6 ;
17774 double arg7 ;
17775 void *argp1 = 0 ;
17776 int res1 = 0 ;
17777 int val2 ;
17778 int ecode2 = 0 ;
17779 int val3 ;
17780 int ecode3 = 0 ;
17781 int val4 ;
17782 int ecode4 = 0 ;
17783 int val5 ;
17784 int ecode5 = 0 ;
17785 double val6 ;
17786 int ecode6 = 0 ;
17787 double val7 ;
17788 int ecode7 = 0 ;
17789 PyObject * obj0 = 0 ;
17790 PyObject * obj1 = 0 ;
17791 PyObject * obj2 = 0 ;
17792 PyObject * obj3 = 0 ;
17793 PyObject * obj4 = 0 ;
17794 PyObject * obj5 = 0 ;
17795 PyObject * obj6 = 0 ;
17796 char * kwnames[] = {
17797 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17798 };
17799
17800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17802 if (!SWIG_IsOK(res1)) {
17803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17804 }
17805 arg1 = reinterpret_cast< wxDC * >(argp1);
17806 ecode2 = SWIG_AsVal_int(obj1, &val2);
17807 if (!SWIG_IsOK(ecode2)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17809 }
17810 arg2 = static_cast< int >(val2);
17811 ecode3 = SWIG_AsVal_int(obj2, &val3);
17812 if (!SWIG_IsOK(ecode3)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17814 }
17815 arg3 = static_cast< int >(val3);
17816 ecode4 = SWIG_AsVal_int(obj3, &val4);
17817 if (!SWIG_IsOK(ecode4)) {
17818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17819 }
17820 arg4 = static_cast< int >(val4);
17821 ecode5 = SWIG_AsVal_int(obj4, &val5);
17822 if (!SWIG_IsOK(ecode5)) {
17823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17824 }
17825 arg5 = static_cast< int >(val5);
17826 ecode6 = SWIG_AsVal_double(obj5, &val6);
17827 if (!SWIG_IsOK(ecode6)) {
17828 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17829 }
17830 arg6 = static_cast< double >(val6);
17831 ecode7 = SWIG_AsVal_double(obj6, &val7);
17832 if (!SWIG_IsOK(ecode7)) {
17833 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17834 }
17835 arg7 = static_cast< double >(val7);
17836 {
17837 PyThreadState* __tstate = wxPyBeginAllowThreads();
17838 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 resultobj = SWIG_Py_Void();
17843 return resultobj;
17844fail:
17845 return NULL;
17846}
17847
17848
17849SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj = 0;
17851 wxDC *arg1 = (wxDC *) 0 ;
17852 wxPoint *arg2 = 0 ;
17853 wxSize *arg3 = 0 ;
17854 double arg4 ;
17855 double arg5 ;
17856 void *argp1 = 0 ;
17857 int res1 = 0 ;
17858 wxPoint temp2 ;
17859 wxSize temp3 ;
17860 double val4 ;
17861 int ecode4 = 0 ;
17862 double val5 ;
17863 int ecode5 = 0 ;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17866 PyObject * obj2 = 0 ;
17867 PyObject * obj3 = 0 ;
17868 PyObject * obj4 = 0 ;
17869 char * kwnames[] = {
17870 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17871 };
17872
17873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17875 if (!SWIG_IsOK(res1)) {
17876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17877 }
17878 arg1 = reinterpret_cast< wxDC * >(argp1);
17879 {
17880 arg2 = &temp2;
17881 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17882 }
17883 {
17884 arg3 = &temp3;
17885 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17886 }
17887 ecode4 = SWIG_AsVal_double(obj3, &val4);
17888 if (!SWIG_IsOK(ecode4)) {
17889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17890 }
17891 arg4 = static_cast< double >(val4);
17892 ecode5 = SWIG_AsVal_double(obj4, &val5);
17893 if (!SWIG_IsOK(ecode5)) {
17894 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17895 }
17896 arg5 = static_cast< double >(val5);
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17900 wxPyEndAllowThreads(__tstate);
17901 if (PyErr_Occurred()) SWIG_fail;
17902 }
17903 resultobj = SWIG_Py_Void();
17904 return resultobj;
17905fail:
17906 return NULL;
17907}
17908
17909
17910SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17911 PyObject *resultobj = 0;
17912 wxDC *arg1 = (wxDC *) 0 ;
17913 int arg2 ;
17914 int arg3 ;
17915 void *argp1 = 0 ;
17916 int res1 = 0 ;
17917 int val2 ;
17918 int ecode2 = 0 ;
17919 int val3 ;
17920 int ecode3 = 0 ;
17921 PyObject * obj0 = 0 ;
17922 PyObject * obj1 = 0 ;
17923 PyObject * obj2 = 0 ;
17924 char * kwnames[] = {
17925 (char *) "self",(char *) "x",(char *) "y", NULL
17926 };
17927
17928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17930 if (!SWIG_IsOK(res1)) {
17931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17932 }
17933 arg1 = reinterpret_cast< wxDC * >(argp1);
17934 ecode2 = SWIG_AsVal_int(obj1, &val2);
17935 if (!SWIG_IsOK(ecode2)) {
17936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
17937 }
17938 arg2 = static_cast< int >(val2);
17939 ecode3 = SWIG_AsVal_int(obj2, &val3);
17940 if (!SWIG_IsOK(ecode3)) {
17941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
17942 }
17943 arg3 = static_cast< int >(val3);
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 (arg1)->DrawPoint(arg2,arg3);
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 resultobj = SWIG_Py_Void();
17951 return resultobj;
17952fail:
17953 return NULL;
17954}
17955
17956
17957SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17958 PyObject *resultobj = 0;
17959 wxDC *arg1 = (wxDC *) 0 ;
17960 wxPoint *arg2 = 0 ;
17961 void *argp1 = 0 ;
17962 int res1 = 0 ;
17963 wxPoint temp2 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 char * kwnames[] = {
17967 (char *) "self",(char *) "pt", NULL
17968 };
17969
17970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17972 if (!SWIG_IsOK(res1)) {
17973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17974 }
17975 arg1 = reinterpret_cast< wxDC * >(argp1);
17976 {
17977 arg2 = &temp2;
17978 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17979 }
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 (arg1)->DrawPoint((wxPoint const &)*arg2);
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_Py_Void();
17987 return resultobj;
17988fail:
17989 return NULL;
17990}
17991
17992
17993SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj = 0;
17995 wxDC *arg1 = (wxDC *) 0 ;
17996 int arg2 ;
17997 int arg3 ;
17998 int arg4 ;
17999 int arg5 ;
18000 void *argp1 = 0 ;
18001 int res1 = 0 ;
18002 int val2 ;
18003 int ecode2 = 0 ;
18004 int val3 ;
18005 int ecode3 = 0 ;
18006 int val4 ;
18007 int ecode4 = 0 ;
18008 int val5 ;
18009 int ecode5 = 0 ;
18010 PyObject * obj0 = 0 ;
18011 PyObject * obj1 = 0 ;
18012 PyObject * obj2 = 0 ;
18013 PyObject * obj3 = 0 ;
18014 PyObject * obj4 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18017 };
18018
18019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18021 if (!SWIG_IsOK(res1)) {
18022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18023 }
18024 arg1 = reinterpret_cast< wxDC * >(argp1);
18025 ecode2 = SWIG_AsVal_int(obj1, &val2);
18026 if (!SWIG_IsOK(ecode2)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18028 }
18029 arg2 = static_cast< int >(val2);
18030 ecode3 = SWIG_AsVal_int(obj2, &val3);
18031 if (!SWIG_IsOK(ecode3)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18033 }
18034 arg3 = static_cast< int >(val3);
18035 ecode4 = SWIG_AsVal_int(obj3, &val4);
18036 if (!SWIG_IsOK(ecode4)) {
18037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18038 }
18039 arg4 = static_cast< int >(val4);
18040 ecode5 = SWIG_AsVal_int(obj4, &val5);
18041 if (!SWIG_IsOK(ecode5)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18043 }
18044 arg5 = static_cast< int >(val5);
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 resultobj = SWIG_Py_Void();
18052 return resultobj;
18053fail:
18054 return NULL;
18055}
18056
18057
18058SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj = 0;
18060 wxDC *arg1 = (wxDC *) 0 ;
18061 wxRect *arg2 = 0 ;
18062 void *argp1 = 0 ;
18063 int res1 = 0 ;
18064 wxRect temp2 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 char * kwnames[] = {
18068 (char *) "self",(char *) "rect", NULL
18069 };
18070
18071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18073 if (!SWIG_IsOK(res1)) {
18074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18075 }
18076 arg1 = reinterpret_cast< wxDC * >(argp1);
18077 {
18078 arg2 = &temp2;
18079 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18080 }
18081 {
18082 PyThreadState* __tstate = wxPyBeginAllowThreads();
18083 (arg1)->DrawRectangle((wxRect const &)*arg2);
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 resultobj = SWIG_Py_Void();
18088 return resultobj;
18089fail:
18090 return NULL;
18091}
18092
18093
18094SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18095 PyObject *resultobj = 0;
18096 wxDC *arg1 = (wxDC *) 0 ;
18097 wxPoint *arg2 = 0 ;
18098 wxSize *arg3 = 0 ;
18099 void *argp1 = 0 ;
18100 int res1 = 0 ;
18101 wxPoint temp2 ;
18102 wxSize temp3 ;
18103 PyObject * obj0 = 0 ;
18104 PyObject * obj1 = 0 ;
18105 PyObject * obj2 = 0 ;
18106 char * kwnames[] = {
18107 (char *) "self",(char *) "pt",(char *) "sz", NULL
18108 };
18109
18110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18112 if (!SWIG_IsOK(res1)) {
18113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18114 }
18115 arg1 = reinterpret_cast< wxDC * >(argp1);
18116 {
18117 arg2 = &temp2;
18118 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18119 }
18120 {
18121 arg3 = &temp3;
18122 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18123 }
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 resultobj = SWIG_Py_Void();
18131 return resultobj;
18132fail:
18133 return NULL;
18134}
18135
18136
18137SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj = 0;
18139 wxDC *arg1 = (wxDC *) 0 ;
18140 int arg2 ;
18141 int arg3 ;
18142 int arg4 ;
18143 int arg5 ;
18144 double arg6 ;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 int val2 ;
18148 int ecode2 = 0 ;
18149 int val3 ;
18150 int ecode3 = 0 ;
18151 int val4 ;
18152 int ecode4 = 0 ;
18153 int val5 ;
18154 int ecode5 = 0 ;
18155 double val6 ;
18156 int ecode6 = 0 ;
18157 PyObject * obj0 = 0 ;
18158 PyObject * obj1 = 0 ;
18159 PyObject * obj2 = 0 ;
18160 PyObject * obj3 = 0 ;
18161 PyObject * obj4 = 0 ;
18162 PyObject * obj5 = 0 ;
18163 char * kwnames[] = {
18164 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18165 };
18166
18167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18169 if (!SWIG_IsOK(res1)) {
18170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18171 }
18172 arg1 = reinterpret_cast< wxDC * >(argp1);
18173 ecode2 = SWIG_AsVal_int(obj1, &val2);
18174 if (!SWIG_IsOK(ecode2)) {
18175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18176 }
18177 arg2 = static_cast< int >(val2);
18178 ecode3 = SWIG_AsVal_int(obj2, &val3);
18179 if (!SWIG_IsOK(ecode3)) {
18180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18181 }
18182 arg3 = static_cast< int >(val3);
18183 ecode4 = SWIG_AsVal_int(obj3, &val4);
18184 if (!SWIG_IsOK(ecode4)) {
18185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18186 }
18187 arg4 = static_cast< int >(val4);
18188 ecode5 = SWIG_AsVal_int(obj4, &val5);
18189 if (!SWIG_IsOK(ecode5)) {
18190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18191 }
18192 arg5 = static_cast< int >(val5);
18193 ecode6 = SWIG_AsVal_double(obj5, &val6);
18194 if (!SWIG_IsOK(ecode6)) {
18195 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18196 }
18197 arg6 = static_cast< double >(val6);
18198 {
18199 PyThreadState* __tstate = wxPyBeginAllowThreads();
18200 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18201 wxPyEndAllowThreads(__tstate);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 resultobj = SWIG_Py_Void();
18205 return resultobj;
18206fail:
18207 return NULL;
18208}
18209
18210
18211SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18212 PyObject *resultobj = 0;
18213 wxDC *arg1 = (wxDC *) 0 ;
18214 wxRect *arg2 = 0 ;
18215 double arg3 ;
18216 void *argp1 = 0 ;
18217 int res1 = 0 ;
18218 wxRect temp2 ;
18219 double val3 ;
18220 int ecode3 = 0 ;
18221 PyObject * obj0 = 0 ;
18222 PyObject * obj1 = 0 ;
18223 PyObject * obj2 = 0 ;
18224 char * kwnames[] = {
18225 (char *) "self",(char *) "r",(char *) "radius", NULL
18226 };
18227
18228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18230 if (!SWIG_IsOK(res1)) {
18231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18232 }
18233 arg1 = reinterpret_cast< wxDC * >(argp1);
18234 {
18235 arg2 = &temp2;
18236 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18237 }
18238 ecode3 = SWIG_AsVal_double(obj2, &val3);
18239 if (!SWIG_IsOK(ecode3)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18241 }
18242 arg3 = static_cast< double >(val3);
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 resultobj = SWIG_Py_Void();
18250 return resultobj;
18251fail:
18252 return NULL;
18253}
18254
18255
18256SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18257 PyObject *resultobj = 0;
18258 wxDC *arg1 = (wxDC *) 0 ;
18259 wxPoint *arg2 = 0 ;
18260 wxSize *arg3 = 0 ;
18261 double arg4 ;
18262 void *argp1 = 0 ;
18263 int res1 = 0 ;
18264 wxPoint temp2 ;
18265 wxSize temp3 ;
18266 double val4 ;
18267 int ecode4 = 0 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 PyObject * obj2 = 0 ;
18271 PyObject * obj3 = 0 ;
18272 char * kwnames[] = {
18273 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18274 };
18275
18276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18278 if (!SWIG_IsOK(res1)) {
18279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18280 }
18281 arg1 = reinterpret_cast< wxDC * >(argp1);
18282 {
18283 arg2 = &temp2;
18284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18285 }
18286 {
18287 arg3 = &temp3;
18288 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18289 }
18290 ecode4 = SWIG_AsVal_double(obj3, &val4);
18291 if (!SWIG_IsOK(ecode4)) {
18292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18293 }
18294 arg4 = static_cast< double >(val4);
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18298 wxPyEndAllowThreads(__tstate);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 resultobj = SWIG_Py_Void();
18302 return resultobj;
18303fail:
18304 return NULL;
18305}
18306
18307
18308SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18309 PyObject *resultobj = 0;
18310 wxDC *arg1 = (wxDC *) 0 ;
18311 int arg2 ;
18312 int arg3 ;
18313 int arg4 ;
18314 void *argp1 = 0 ;
18315 int res1 = 0 ;
18316 int val2 ;
18317 int ecode2 = 0 ;
18318 int val3 ;
18319 int ecode3 = 0 ;
18320 int val4 ;
18321 int ecode4 = 0 ;
18322 PyObject * obj0 = 0 ;
18323 PyObject * obj1 = 0 ;
18324 PyObject * obj2 = 0 ;
18325 PyObject * obj3 = 0 ;
18326 char * kwnames[] = {
18327 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18328 };
18329
18330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18332 if (!SWIG_IsOK(res1)) {
18333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18334 }
18335 arg1 = reinterpret_cast< wxDC * >(argp1);
18336 ecode2 = SWIG_AsVal_int(obj1, &val2);
18337 if (!SWIG_IsOK(ecode2)) {
18338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18339 }
18340 arg2 = static_cast< int >(val2);
18341 ecode3 = SWIG_AsVal_int(obj2, &val3);
18342 if (!SWIG_IsOK(ecode3)) {
18343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18344 }
18345 arg3 = static_cast< int >(val3);
18346 ecode4 = SWIG_AsVal_int(obj3, &val4);
18347 if (!SWIG_IsOK(ecode4)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18349 }
18350 arg4 = static_cast< int >(val4);
18351 {
18352 PyThreadState* __tstate = wxPyBeginAllowThreads();
18353 (arg1)->DrawCircle(arg2,arg3,arg4);
18354 wxPyEndAllowThreads(__tstate);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 }
18357 resultobj = SWIG_Py_Void();
18358 return resultobj;
18359fail:
18360 return NULL;
18361}
18362
18363
18364SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18365 PyObject *resultobj = 0;
18366 wxDC *arg1 = (wxDC *) 0 ;
18367 wxPoint *arg2 = 0 ;
18368 int arg3 ;
18369 void *argp1 = 0 ;
18370 int res1 = 0 ;
18371 wxPoint temp2 ;
18372 int val3 ;
18373 int ecode3 = 0 ;
18374 PyObject * obj0 = 0 ;
18375 PyObject * obj1 = 0 ;
18376 PyObject * obj2 = 0 ;
18377 char * kwnames[] = {
18378 (char *) "self",(char *) "pt",(char *) "radius", NULL
18379 };
18380
18381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18383 if (!SWIG_IsOK(res1)) {
18384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18385 }
18386 arg1 = reinterpret_cast< wxDC * >(argp1);
18387 {
18388 arg2 = &temp2;
18389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18390 }
18391 ecode3 = SWIG_AsVal_int(obj2, &val3);
18392 if (!SWIG_IsOK(ecode3)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18394 }
18395 arg3 = static_cast< int >(val3);
18396 {
18397 PyThreadState* __tstate = wxPyBeginAllowThreads();
18398 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18399 wxPyEndAllowThreads(__tstate);
18400 if (PyErr_Occurred()) SWIG_fail;
18401 }
18402 resultobj = SWIG_Py_Void();
18403 return resultobj;
18404fail:
18405 return NULL;
18406}
18407
18408
18409SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18410 PyObject *resultobj = 0;
18411 wxDC *arg1 = (wxDC *) 0 ;
18412 int arg2 ;
18413 int arg3 ;
18414 int arg4 ;
18415 int arg5 ;
18416 void *argp1 = 0 ;
18417 int res1 = 0 ;
18418 int val2 ;
18419 int ecode2 = 0 ;
18420 int val3 ;
18421 int ecode3 = 0 ;
18422 int val4 ;
18423 int ecode4 = 0 ;
18424 int val5 ;
18425 int ecode5 = 0 ;
18426 PyObject * obj0 = 0 ;
18427 PyObject * obj1 = 0 ;
18428 PyObject * obj2 = 0 ;
18429 PyObject * obj3 = 0 ;
18430 PyObject * obj4 = 0 ;
18431 char * kwnames[] = {
18432 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18433 };
18434
18435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18437 if (!SWIG_IsOK(res1)) {
18438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18439 }
18440 arg1 = reinterpret_cast< wxDC * >(argp1);
18441 ecode2 = SWIG_AsVal_int(obj1, &val2);
18442 if (!SWIG_IsOK(ecode2)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18444 }
18445 arg2 = static_cast< int >(val2);
18446 ecode3 = SWIG_AsVal_int(obj2, &val3);
18447 if (!SWIG_IsOK(ecode3)) {
18448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18449 }
18450 arg3 = static_cast< int >(val3);
18451 ecode4 = SWIG_AsVal_int(obj3, &val4);
18452 if (!SWIG_IsOK(ecode4)) {
18453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18454 }
18455 arg4 = static_cast< int >(val4);
18456 ecode5 = SWIG_AsVal_int(obj4, &val5);
18457 if (!SWIG_IsOK(ecode5)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18459 }
18460 arg5 = static_cast< int >(val5);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469fail:
18470 return NULL;
18471}
18472
18473
18474SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18475 PyObject *resultobj = 0;
18476 wxDC *arg1 = (wxDC *) 0 ;
18477 wxRect *arg2 = 0 ;
18478 void *argp1 = 0 ;
18479 int res1 = 0 ;
18480 wxRect temp2 ;
18481 PyObject * obj0 = 0 ;
18482 PyObject * obj1 = 0 ;
18483 char * kwnames[] = {
18484 (char *) "self",(char *) "rect", NULL
18485 };
18486
18487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18489 if (!SWIG_IsOK(res1)) {
18490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18491 }
18492 arg1 = reinterpret_cast< wxDC * >(argp1);
18493 {
18494 arg2 = &temp2;
18495 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18496 }
18497 {
18498 PyThreadState* __tstate = wxPyBeginAllowThreads();
18499 (arg1)->DrawEllipse((wxRect const &)*arg2);
18500 wxPyEndAllowThreads(__tstate);
18501 if (PyErr_Occurred()) SWIG_fail;
18502 }
18503 resultobj = SWIG_Py_Void();
18504 return resultobj;
18505fail:
18506 return NULL;
18507}
18508
18509
18510SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18511 PyObject *resultobj = 0;
18512 wxDC *arg1 = (wxDC *) 0 ;
18513 wxPoint *arg2 = 0 ;
18514 wxSize *arg3 = 0 ;
18515 void *argp1 = 0 ;
18516 int res1 = 0 ;
18517 wxPoint temp2 ;
18518 wxSize temp3 ;
18519 PyObject * obj0 = 0 ;
18520 PyObject * obj1 = 0 ;
18521 PyObject * obj2 = 0 ;
18522 char * kwnames[] = {
18523 (char *) "self",(char *) "pt",(char *) "sz", NULL
18524 };
18525
18526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18528 if (!SWIG_IsOK(res1)) {
18529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18530 }
18531 arg1 = reinterpret_cast< wxDC * >(argp1);
18532 {
18533 arg2 = &temp2;
18534 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18535 }
18536 {
18537 arg3 = &temp3;
18538 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18539 }
18540 {
18541 PyThreadState* __tstate = wxPyBeginAllowThreads();
18542 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18543 wxPyEndAllowThreads(__tstate);
18544 if (PyErr_Occurred()) SWIG_fail;
18545 }
18546 resultobj = SWIG_Py_Void();
18547 return resultobj;
18548fail:
18549 return NULL;
18550}
18551
18552
18553SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18554 PyObject *resultobj = 0;
18555 wxDC *arg1 = (wxDC *) 0 ;
18556 wxIcon *arg2 = 0 ;
18557 int arg3 ;
18558 int arg4 ;
18559 void *argp1 = 0 ;
18560 int res1 = 0 ;
18561 void *argp2 = 0 ;
18562 int res2 = 0 ;
18563 int val3 ;
18564 int ecode3 = 0 ;
18565 int val4 ;
18566 int ecode4 = 0 ;
18567 PyObject * obj0 = 0 ;
18568 PyObject * obj1 = 0 ;
18569 PyObject * obj2 = 0 ;
18570 PyObject * obj3 = 0 ;
18571 char * kwnames[] = {
18572 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18573 };
18574
18575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18577 if (!SWIG_IsOK(res1)) {
18578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18579 }
18580 arg1 = reinterpret_cast< wxDC * >(argp1);
18581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18582 if (!SWIG_IsOK(res2)) {
18583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18584 }
18585 if (!argp2) {
18586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18587 }
18588 arg2 = reinterpret_cast< wxIcon * >(argp2);
18589 ecode3 = SWIG_AsVal_int(obj2, &val3);
18590 if (!SWIG_IsOK(ecode3)) {
18591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18592 }
18593 arg3 = static_cast< int >(val3);
18594 ecode4 = SWIG_AsVal_int(obj3, &val4);
18595 if (!SWIG_IsOK(ecode4)) {
18596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18597 }
18598 arg4 = static_cast< int >(val4);
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 resultobj = SWIG_Py_Void();
18606 return resultobj;
18607fail:
18608 return NULL;
18609}
18610
18611
18612SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18613 PyObject *resultobj = 0;
18614 wxDC *arg1 = (wxDC *) 0 ;
18615 wxIcon *arg2 = 0 ;
18616 wxPoint *arg3 = 0 ;
18617 void *argp1 = 0 ;
18618 int res1 = 0 ;
18619 void *argp2 = 0 ;
18620 int res2 = 0 ;
18621 wxPoint temp3 ;
18622 PyObject * obj0 = 0 ;
18623 PyObject * obj1 = 0 ;
18624 PyObject * obj2 = 0 ;
18625 char * kwnames[] = {
18626 (char *) "self",(char *) "icon",(char *) "pt", NULL
18627 };
18628
18629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18631 if (!SWIG_IsOK(res1)) {
18632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18633 }
18634 arg1 = reinterpret_cast< wxDC * >(argp1);
18635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18636 if (!SWIG_IsOK(res2)) {
18637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18638 }
18639 if (!argp2) {
18640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18641 }
18642 arg2 = reinterpret_cast< wxIcon * >(argp2);
18643 {
18644 arg3 = &temp3;
18645 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18646 }
18647 {
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18650 wxPyEndAllowThreads(__tstate);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 resultobj = SWIG_Py_Void();
18654 return resultobj;
18655fail:
18656 return NULL;
18657}
18658
18659
18660SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj = 0;
18662 wxDC *arg1 = (wxDC *) 0 ;
18663 wxBitmap *arg2 = 0 ;
18664 int arg3 ;
18665 int arg4 ;
18666 bool arg5 = (bool) false ;
18667 void *argp1 = 0 ;
18668 int res1 = 0 ;
18669 void *argp2 = 0 ;
18670 int res2 = 0 ;
18671 int val3 ;
18672 int ecode3 = 0 ;
18673 int val4 ;
18674 int ecode4 = 0 ;
18675 bool val5 ;
18676 int ecode5 = 0 ;
18677 PyObject * obj0 = 0 ;
18678 PyObject * obj1 = 0 ;
18679 PyObject * obj2 = 0 ;
18680 PyObject * obj3 = 0 ;
18681 PyObject * obj4 = 0 ;
18682 char * kwnames[] = {
18683 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18684 };
18685
18686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18688 if (!SWIG_IsOK(res1)) {
18689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18690 }
18691 arg1 = reinterpret_cast< wxDC * >(argp1);
18692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18693 if (!SWIG_IsOK(res2)) {
18694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18695 }
18696 if (!argp2) {
18697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18698 }
18699 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18700 ecode3 = SWIG_AsVal_int(obj2, &val3);
18701 if (!SWIG_IsOK(ecode3)) {
18702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18703 }
18704 arg3 = static_cast< int >(val3);
18705 ecode4 = SWIG_AsVal_int(obj3, &val4);
18706 if (!SWIG_IsOK(ecode4)) {
18707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18708 }
18709 arg4 = static_cast< int >(val4);
18710 if (obj4) {
18711 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18712 if (!SWIG_IsOK(ecode5)) {
18713 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18714 }
18715 arg5 = static_cast< bool >(val5);
18716 }
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 resultobj = SWIG_Py_Void();
18724 return resultobj;
18725fail:
18726 return NULL;
18727}
18728
18729
18730SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18731 PyObject *resultobj = 0;
18732 wxDC *arg1 = (wxDC *) 0 ;
18733 wxBitmap *arg2 = 0 ;
18734 wxPoint *arg3 = 0 ;
18735 bool arg4 = (bool) false ;
18736 void *argp1 = 0 ;
18737 int res1 = 0 ;
18738 void *argp2 = 0 ;
18739 int res2 = 0 ;
18740 wxPoint temp3 ;
18741 bool val4 ;
18742 int ecode4 = 0 ;
18743 PyObject * obj0 = 0 ;
18744 PyObject * obj1 = 0 ;
18745 PyObject * obj2 = 0 ;
18746 PyObject * obj3 = 0 ;
18747 char * kwnames[] = {
18748 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18749 };
18750
18751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18753 if (!SWIG_IsOK(res1)) {
18754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18755 }
18756 arg1 = reinterpret_cast< wxDC * >(argp1);
18757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18758 if (!SWIG_IsOK(res2)) {
18759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18760 }
18761 if (!argp2) {
18762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18763 }
18764 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18765 {
18766 arg3 = &temp3;
18767 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18768 }
18769 if (obj3) {
18770 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18771 if (!SWIG_IsOK(ecode4)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18773 }
18774 arg4 = static_cast< bool >(val4);
18775 }
18776 {
18777 PyThreadState* __tstate = wxPyBeginAllowThreads();
18778 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18779 wxPyEndAllowThreads(__tstate);
18780 if (PyErr_Occurred()) SWIG_fail;
18781 }
18782 resultobj = SWIG_Py_Void();
18783 return resultobj;
18784fail:
18785 return NULL;
18786}
18787
18788
18789SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18790 PyObject *resultobj = 0;
18791 wxDC *arg1 = (wxDC *) 0 ;
18792 wxString *arg2 = 0 ;
18793 int arg3 ;
18794 int arg4 ;
18795 void *argp1 = 0 ;
18796 int res1 = 0 ;
18797 bool temp2 = false ;
18798 int val3 ;
18799 int ecode3 = 0 ;
18800 int val4 ;
18801 int ecode4 = 0 ;
18802 PyObject * obj0 = 0 ;
18803 PyObject * obj1 = 0 ;
18804 PyObject * obj2 = 0 ;
18805 PyObject * obj3 = 0 ;
18806 char * kwnames[] = {
18807 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18808 };
18809
18810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 {
18817 arg2 = wxString_in_helper(obj1);
18818 if (arg2 == NULL) SWIG_fail;
18819 temp2 = true;
18820 }
18821 ecode3 = SWIG_AsVal_int(obj2, &val3);
18822 if (!SWIG_IsOK(ecode3)) {
18823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18824 }
18825 arg3 = static_cast< int >(val3);
18826 ecode4 = SWIG_AsVal_int(obj3, &val4);
18827 if (!SWIG_IsOK(ecode4)) {
18828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18829 }
18830 arg4 = static_cast< int >(val4);
18831 {
18832 PyThreadState* __tstate = wxPyBeginAllowThreads();
18833 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18834 wxPyEndAllowThreads(__tstate);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 resultobj = SWIG_Py_Void();
18838 {
18839 if (temp2)
18840 delete arg2;
18841 }
18842 return resultobj;
18843fail:
18844 {
18845 if (temp2)
18846 delete arg2;
18847 }
18848 return NULL;
18849}
18850
18851
18852SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj = 0;
18854 wxDC *arg1 = (wxDC *) 0 ;
18855 wxString *arg2 = 0 ;
18856 wxPoint *arg3 = 0 ;
18857 void *argp1 = 0 ;
18858 int res1 = 0 ;
18859 bool temp2 = false ;
18860 wxPoint temp3 ;
18861 PyObject * obj0 = 0 ;
18862 PyObject * obj1 = 0 ;
18863 PyObject * obj2 = 0 ;
18864 char * kwnames[] = {
18865 (char *) "self",(char *) "text",(char *) "pt", NULL
18866 };
18867
18868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18870 if (!SWIG_IsOK(res1)) {
18871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18872 }
18873 arg1 = reinterpret_cast< wxDC * >(argp1);
18874 {
18875 arg2 = wxString_in_helper(obj1);
18876 if (arg2 == NULL) SWIG_fail;
18877 temp2 = true;
18878 }
18879 {
18880 arg3 = &temp3;
18881 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18882 }
18883 {
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 resultobj = SWIG_Py_Void();
18890 {
18891 if (temp2)
18892 delete arg2;
18893 }
18894 return resultobj;
18895fail:
18896 {
18897 if (temp2)
18898 delete arg2;
18899 }
18900 return NULL;
18901}
18902
18903
18904SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 wxString *arg2 = 0 ;
18908 int arg3 ;
18909 int arg4 ;
18910 double arg5 ;
18911 void *argp1 = 0 ;
18912 int res1 = 0 ;
18913 bool temp2 = false ;
18914 int val3 ;
18915 int ecode3 = 0 ;
18916 int val4 ;
18917 int ecode4 = 0 ;
18918 double val5 ;
18919 int ecode5 = 0 ;
18920 PyObject * obj0 = 0 ;
18921 PyObject * obj1 = 0 ;
18922 PyObject * obj2 = 0 ;
18923 PyObject * obj3 = 0 ;
18924 PyObject * obj4 = 0 ;
18925 char * kwnames[] = {
18926 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
18927 };
18928
18929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18931 if (!SWIG_IsOK(res1)) {
18932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
18933 }
18934 arg1 = reinterpret_cast< wxDC * >(argp1);
18935 {
18936 arg2 = wxString_in_helper(obj1);
18937 if (arg2 == NULL) SWIG_fail;
18938 temp2 = true;
18939 }
18940 ecode3 = SWIG_AsVal_int(obj2, &val3);
18941 if (!SWIG_IsOK(ecode3)) {
18942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
18943 }
18944 arg3 = static_cast< int >(val3);
18945 ecode4 = SWIG_AsVal_int(obj3, &val4);
18946 if (!SWIG_IsOK(ecode4)) {
18947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
18948 }
18949 arg4 = static_cast< int >(val4);
18950 ecode5 = SWIG_AsVal_double(obj4, &val5);
18951 if (!SWIG_IsOK(ecode5)) {
18952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
18953 }
18954 arg5 = static_cast< double >(val5);
18955 {
18956 PyThreadState* __tstate = wxPyBeginAllowThreads();
18957 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
18958 wxPyEndAllowThreads(__tstate);
18959 if (PyErr_Occurred()) SWIG_fail;
18960 }
18961 resultobj = SWIG_Py_Void();
18962 {
18963 if (temp2)
18964 delete arg2;
18965 }
18966 return resultobj;
18967fail:
18968 {
18969 if (temp2)
18970 delete arg2;
18971 }
18972 return NULL;
18973}
18974
18975
18976SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18977 PyObject *resultobj = 0;
18978 wxDC *arg1 = (wxDC *) 0 ;
18979 wxString *arg2 = 0 ;
18980 wxPoint *arg3 = 0 ;
18981 double arg4 ;
18982 void *argp1 = 0 ;
18983 int res1 = 0 ;
18984 bool temp2 = false ;
18985 wxPoint temp3 ;
18986 double val4 ;
18987 int ecode4 = 0 ;
18988 PyObject * obj0 = 0 ;
18989 PyObject * obj1 = 0 ;
18990 PyObject * obj2 = 0 ;
18991 PyObject * obj3 = 0 ;
18992 char * kwnames[] = {
18993 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
18994 };
18995
18996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18998 if (!SWIG_IsOK(res1)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19000 }
19001 arg1 = reinterpret_cast< wxDC * >(argp1);
19002 {
19003 arg2 = wxString_in_helper(obj1);
19004 if (arg2 == NULL) SWIG_fail;
19005 temp2 = true;
19006 }
19007 {
19008 arg3 = &temp3;
19009 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19010 }
19011 ecode4 = SWIG_AsVal_double(obj3, &val4);
19012 if (!SWIG_IsOK(ecode4)) {
19013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19014 }
19015 arg4 = static_cast< double >(val4);
19016 {
19017 PyThreadState* __tstate = wxPyBeginAllowThreads();
19018 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19019 wxPyEndAllowThreads(__tstate);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 }
19022 resultobj = SWIG_Py_Void();
19023 {
19024 if (temp2)
19025 delete arg2;
19026 }
19027 return resultobj;
19028fail:
19029 {
19030 if (temp2)
19031 delete arg2;
19032 }
19033 return NULL;
19034}
19035
19036
19037SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19038 PyObject *resultobj = 0;
19039 wxDC *arg1 = (wxDC *) 0 ;
19040 int arg2 ;
19041 int arg3 ;
19042 int arg4 ;
19043 int arg5 ;
19044 wxDC *arg6 = (wxDC *) 0 ;
19045 int arg7 ;
19046 int arg8 ;
19047 int arg9 = (int) wxCOPY ;
19048 bool arg10 = (bool) false ;
19049 int arg11 = (int) -1 ;
19050 int arg12 = (int) -1 ;
19051 bool result;
19052 void *argp1 = 0 ;
19053 int res1 = 0 ;
19054 int val2 ;
19055 int ecode2 = 0 ;
19056 int val3 ;
19057 int ecode3 = 0 ;
19058 int val4 ;
19059 int ecode4 = 0 ;
19060 int val5 ;
19061 int ecode5 = 0 ;
19062 void *argp6 = 0 ;
19063 int res6 = 0 ;
19064 int val7 ;
19065 int ecode7 = 0 ;
19066 int val8 ;
19067 int ecode8 = 0 ;
19068 int val9 ;
19069 int ecode9 = 0 ;
19070 bool val10 ;
19071 int ecode10 = 0 ;
19072 int val11 ;
19073 int ecode11 = 0 ;
19074 int val12 ;
19075 int ecode12 = 0 ;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 PyObject * obj2 = 0 ;
19079 PyObject * obj3 = 0 ;
19080 PyObject * obj4 = 0 ;
19081 PyObject * obj5 = 0 ;
19082 PyObject * obj6 = 0 ;
19083 PyObject * obj7 = 0 ;
19084 PyObject * obj8 = 0 ;
19085 PyObject * obj9 = 0 ;
19086 PyObject * obj10 = 0 ;
19087 PyObject * obj11 = 0 ;
19088 char * kwnames[] = {
19089 (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
19090 };
19091
19092 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;
19093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19094 if (!SWIG_IsOK(res1)) {
19095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19096 }
19097 arg1 = reinterpret_cast< wxDC * >(argp1);
19098 ecode2 = SWIG_AsVal_int(obj1, &val2);
19099 if (!SWIG_IsOK(ecode2)) {
19100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19101 }
19102 arg2 = static_cast< int >(val2);
19103 ecode3 = SWIG_AsVal_int(obj2, &val3);
19104 if (!SWIG_IsOK(ecode3)) {
19105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19106 }
19107 arg3 = static_cast< int >(val3);
19108 ecode4 = SWIG_AsVal_int(obj3, &val4);
19109 if (!SWIG_IsOK(ecode4)) {
19110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19111 }
19112 arg4 = static_cast< int >(val4);
19113 ecode5 = SWIG_AsVal_int(obj4, &val5);
19114 if (!SWIG_IsOK(ecode5)) {
19115 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19116 }
19117 arg5 = static_cast< int >(val5);
19118 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19119 if (!SWIG_IsOK(res6)) {
19120 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19121 }
19122 arg6 = reinterpret_cast< wxDC * >(argp6);
19123 ecode7 = SWIG_AsVal_int(obj6, &val7);
19124 if (!SWIG_IsOK(ecode7)) {
19125 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19126 }
19127 arg7 = static_cast< int >(val7);
19128 ecode8 = SWIG_AsVal_int(obj7, &val8);
19129 if (!SWIG_IsOK(ecode8)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19131 }
19132 arg8 = static_cast< int >(val8);
19133 if (obj8) {
19134 ecode9 = SWIG_AsVal_int(obj8, &val9);
19135 if (!SWIG_IsOK(ecode9)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19137 }
19138 arg9 = static_cast< int >(val9);
19139 }
19140 if (obj9) {
19141 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19142 if (!SWIG_IsOK(ecode10)) {
19143 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19144 }
19145 arg10 = static_cast< bool >(val10);
19146 }
19147 if (obj10) {
19148 ecode11 = SWIG_AsVal_int(obj10, &val11);
19149 if (!SWIG_IsOK(ecode11)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19151 }
19152 arg11 = static_cast< int >(val11);
19153 }
19154 if (obj11) {
19155 ecode12 = SWIG_AsVal_int(obj11, &val12);
19156 if (!SWIG_IsOK(ecode12)) {
19157 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19158 }
19159 arg12 = static_cast< int >(val12);
19160 }
19161 {
19162 PyThreadState* __tstate = wxPyBeginAllowThreads();
19163 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19164 wxPyEndAllowThreads(__tstate);
19165 if (PyErr_Occurred()) SWIG_fail;
19166 }
19167 {
19168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19169 }
19170 return resultobj;
19171fail:
19172 return NULL;
19173}
19174
19175
19176SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxDC *arg1 = (wxDC *) 0 ;
19179 wxPoint *arg2 = 0 ;
19180 wxSize *arg3 = 0 ;
19181 wxDC *arg4 = (wxDC *) 0 ;
19182 wxPoint *arg5 = 0 ;
19183 int arg6 = (int) wxCOPY ;
19184 bool arg7 = (bool) false ;
19185 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19186 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19187 bool result;
19188 void *argp1 = 0 ;
19189 int res1 = 0 ;
19190 wxPoint temp2 ;
19191 wxSize temp3 ;
19192 void *argp4 = 0 ;
19193 int res4 = 0 ;
19194 wxPoint temp5 ;
19195 int val6 ;
19196 int ecode6 = 0 ;
19197 bool val7 ;
19198 int ecode7 = 0 ;
19199 wxPoint temp8 ;
19200 PyObject * obj0 = 0 ;
19201 PyObject * obj1 = 0 ;
19202 PyObject * obj2 = 0 ;
19203 PyObject * obj3 = 0 ;
19204 PyObject * obj4 = 0 ;
19205 PyObject * obj5 = 0 ;
19206 PyObject * obj6 = 0 ;
19207 PyObject * obj7 = 0 ;
19208 char * kwnames[] = {
19209 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19210 };
19211
19212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19214 if (!SWIG_IsOK(res1)) {
19215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19216 }
19217 arg1 = reinterpret_cast< wxDC * >(argp1);
19218 {
19219 arg2 = &temp2;
19220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19221 }
19222 {
19223 arg3 = &temp3;
19224 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19225 }
19226 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19227 if (!SWIG_IsOK(res4)) {
19228 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19229 }
19230 arg4 = reinterpret_cast< wxDC * >(argp4);
19231 {
19232 arg5 = &temp5;
19233 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19234 }
19235 if (obj5) {
19236 ecode6 = SWIG_AsVal_int(obj5, &val6);
19237 if (!SWIG_IsOK(ecode6)) {
19238 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19239 }
19240 arg6 = static_cast< int >(val6);
19241 }
19242 if (obj6) {
19243 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19244 if (!SWIG_IsOK(ecode7)) {
19245 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19246 }
19247 arg7 = static_cast< bool >(val7);
19248 }
19249 if (obj7) {
093d3ff1 19250 {
0085ce49
RD
19251 arg8 = &temp8;
19252 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19253 }
0085ce49
RD
19254 }
19255 {
19256 PyThreadState* __tstate = wxPyBeginAllowThreads();
19257 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19258 wxPyEndAllowThreads(__tstate);
19259 if (PyErr_Occurred()) SWIG_fail;
19260 }
19261 {
19262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19263 }
19264 return resultobj;
19265fail:
19266 return NULL;
19267}
19268
19269
19270SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19271 PyObject *resultobj = 0;
19272 wxDC *arg1 = (wxDC *) 0 ;
19273 int arg2 ;
19274 int arg3 ;
19275 int arg4 ;
19276 int arg5 ;
19277 void *argp1 = 0 ;
19278 int res1 = 0 ;
19279 int val2 ;
19280 int ecode2 = 0 ;
19281 int val3 ;
19282 int ecode3 = 0 ;
19283 int val4 ;
19284 int ecode4 = 0 ;
19285 int val5 ;
19286 int ecode5 = 0 ;
19287 PyObject * obj0 = 0 ;
19288 PyObject * obj1 = 0 ;
19289 PyObject * obj2 = 0 ;
19290 PyObject * obj3 = 0 ;
19291 PyObject * obj4 = 0 ;
19292 char * kwnames[] = {
19293 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19294 };
19295
19296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19298 if (!SWIG_IsOK(res1)) {
19299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19300 }
19301 arg1 = reinterpret_cast< wxDC * >(argp1);
19302 ecode2 = SWIG_AsVal_int(obj1, &val2);
19303 if (!SWIG_IsOK(ecode2)) {
19304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19305 }
19306 arg2 = static_cast< int >(val2);
19307 ecode3 = SWIG_AsVal_int(obj2, &val3);
19308 if (!SWIG_IsOK(ecode3)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19310 }
19311 arg3 = static_cast< int >(val3);
19312 ecode4 = SWIG_AsVal_int(obj3, &val4);
19313 if (!SWIG_IsOK(ecode4)) {
19314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19315 }
19316 arg4 = static_cast< int >(val4);
19317 ecode5 = SWIG_AsVal_int(obj4, &val5);
19318 if (!SWIG_IsOK(ecode5)) {
19319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19320 }
19321 arg5 = static_cast< int >(val5);
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_Py_Void();
19329 return resultobj;
19330fail:
19331 return NULL;
19332}
19333
19334
19335SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19336 PyObject *resultobj = 0;
19337 wxDC *arg1 = (wxDC *) 0 ;
19338 wxPoint *arg2 = 0 ;
19339 wxSize *arg3 = 0 ;
19340 void *argp1 = 0 ;
19341 int res1 = 0 ;
19342 wxPoint temp2 ;
19343 wxSize temp3 ;
19344 PyObject * obj0 = 0 ;
19345 PyObject * obj1 = 0 ;
19346 PyObject * obj2 = 0 ;
19347 char * kwnames[] = {
19348 (char *) "self",(char *) "pt",(char *) "sz", NULL
19349 };
19350
19351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19353 if (!SWIG_IsOK(res1)) {
19354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19355 }
19356 arg1 = reinterpret_cast< wxDC * >(argp1);
19357 {
19358 arg2 = &temp2;
19359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19360 }
19361 {
19362 arg3 = &temp3;
19363 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19364 }
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 resultobj = SWIG_Py_Void();
19372 return resultobj;
19373fail:
19374 return NULL;
19375}
19376
19377
19378SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj = 0;
19380 wxDC *arg1 = (wxDC *) 0 ;
19381 wxRegion *arg2 = 0 ;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 void *argp2 = 0 ;
19385 int res2 = 0 ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 char * kwnames[] = {
19389 (char *) "self",(char *) "region", NULL
19390 };
19391
19392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19394 if (!SWIG_IsOK(res1)) {
19395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19396 }
19397 arg1 = reinterpret_cast< wxDC * >(argp1);
19398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19399 if (!SWIG_IsOK(res2)) {
19400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19401 }
19402 if (!argp2) {
19403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19404 }
19405 arg2 = reinterpret_cast< wxRegion * >(argp2);
19406 {
19407 PyThreadState* __tstate = wxPyBeginAllowThreads();
19408 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19409 wxPyEndAllowThreads(__tstate);
19410 if (PyErr_Occurred()) SWIG_fail;
19411 }
19412 resultobj = SWIG_Py_Void();
19413 return resultobj;
19414fail:
19415 return NULL;
19416}
19417
19418
19419SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19420 PyObject *resultobj = 0;
19421 wxDC *arg1 = (wxDC *) 0 ;
19422 wxRect *arg2 = 0 ;
19423 void *argp1 = 0 ;
19424 int res1 = 0 ;
19425 wxRect temp2 ;
19426 PyObject * obj0 = 0 ;
19427 PyObject * obj1 = 0 ;
19428 char * kwnames[] = {
19429 (char *) "self",(char *) "rect", NULL
19430 };
19431
19432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19436 }
19437 arg1 = reinterpret_cast< wxDC * >(argp1);
19438 {
19439 arg2 = &temp2;
19440 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19441 }
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19445 wxPyEndAllowThreads(__tstate);
19446 if (PyErr_Occurred()) SWIG_fail;
19447 }
19448 resultobj = SWIG_Py_Void();
19449 return resultobj;
19450fail:
19451 return NULL;
19452}
19453
19454
19455SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19456 PyObject *resultobj = 0;
19457 wxDC *arg1 = (wxDC *) 0 ;
19458 int arg2 ;
19459 wxPoint *arg3 = (wxPoint *) 0 ;
19460 int arg4 = (int) 0 ;
19461 int arg5 = (int) 0 ;
19462 void *argp1 = 0 ;
19463 int res1 = 0 ;
19464 int val4 ;
19465 int ecode4 = 0 ;
19466 int val5 ;
19467 int ecode5 = 0 ;
19468 PyObject * obj0 = 0 ;
19469 PyObject * obj1 = 0 ;
19470 PyObject * obj2 = 0 ;
19471 PyObject * obj3 = 0 ;
19472 char * kwnames[] = {
19473 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19474 };
19475
19476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19478 if (!SWIG_IsOK(res1)) {
19479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19480 }
19481 arg1 = reinterpret_cast< wxDC * >(argp1);
19482 {
19483 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19484 if (arg3 == NULL) SWIG_fail;
19485 }
19486 if (obj2) {
19487 ecode4 = SWIG_AsVal_int(obj2, &val4);
19488 if (!SWIG_IsOK(ecode4)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19490 }
19491 arg4 = static_cast< int >(val4);
19492 }
19493 if (obj3) {
19494 ecode5 = SWIG_AsVal_int(obj3, &val5);
19495 if (!SWIG_IsOK(ecode5)) {
19496 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19497 }
19498 arg5 = static_cast< int >(val5);
19499 }
19500 {
19501 PyThreadState* __tstate = wxPyBeginAllowThreads();
19502 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19503 wxPyEndAllowThreads(__tstate);
19504 if (PyErr_Occurred()) SWIG_fail;
19505 }
19506 resultobj = SWIG_Py_Void();
19507 {
19508 if (arg3) delete [] arg3;
19509 }
19510 return resultobj;
19511fail:
19512 {
19513 if (arg3) delete [] arg3;
19514 }
19515 return NULL;
19516}
19517
19518
19519SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19520 PyObject *resultobj = 0;
19521 wxDC *arg1 = (wxDC *) 0 ;
19522 int arg2 ;
19523 wxPoint *arg3 = (wxPoint *) 0 ;
19524 int arg4 = (int) 0 ;
19525 int arg5 = (int) 0 ;
19526 int arg6 = (int) wxODDEVEN_RULE ;
19527 void *argp1 = 0 ;
19528 int res1 = 0 ;
19529 int val4 ;
19530 int ecode4 = 0 ;
19531 int val5 ;
19532 int ecode5 = 0 ;
19533 int val6 ;
19534 int ecode6 = 0 ;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 PyObject * obj2 = 0 ;
19538 PyObject * obj3 = 0 ;
19539 PyObject * obj4 = 0 ;
19540 char * kwnames[] = {
19541 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19542 };
19543
19544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19546 if (!SWIG_IsOK(res1)) {
19547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19548 }
19549 arg1 = reinterpret_cast< wxDC * >(argp1);
19550 {
19551 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19552 if (arg3 == NULL) SWIG_fail;
19553 }
19554 if (obj2) {
19555 ecode4 = SWIG_AsVal_int(obj2, &val4);
19556 if (!SWIG_IsOK(ecode4)) {
19557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19558 }
19559 arg4 = static_cast< int >(val4);
19560 }
19561 if (obj3) {
19562 ecode5 = SWIG_AsVal_int(obj3, &val5);
19563 if (!SWIG_IsOK(ecode5)) {
19564 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19565 }
19566 arg5 = static_cast< int >(val5);
19567 }
19568 if (obj4) {
19569 ecode6 = SWIG_AsVal_int(obj4, &val6);
19570 if (!SWIG_IsOK(ecode6)) {
19571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19572 }
19573 arg6 = static_cast< int >(val6);
19574 }
19575 {
19576 PyThreadState* __tstate = wxPyBeginAllowThreads();
19577 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 resultobj = SWIG_Py_Void();
19582 {
19583 if (arg3) delete [] arg3;
19584 }
19585 return resultobj;
19586fail:
19587 {
19588 if (arg3) delete [] arg3;
19589 }
19590 return NULL;
19591}
19592
19593
19594SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19595 PyObject *resultobj = 0;
19596 wxDC *arg1 = (wxDC *) 0 ;
19597 wxString *arg2 = 0 ;
19598 wxRect *arg3 = 0 ;
19599 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19600 int arg5 = (int) -1 ;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 bool temp2 = false ;
19604 wxRect temp3 ;
19605 int val4 ;
19606 int ecode4 = 0 ;
19607 int val5 ;
19608 int ecode5 = 0 ;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 PyObject * obj2 = 0 ;
19612 PyObject * obj3 = 0 ;
19613 PyObject * obj4 = 0 ;
19614 char * kwnames[] = {
19615 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19616 };
19617
19618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19620 if (!SWIG_IsOK(res1)) {
19621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19622 }
19623 arg1 = reinterpret_cast< wxDC * >(argp1);
19624 {
19625 arg2 = wxString_in_helper(obj1);
19626 if (arg2 == NULL) SWIG_fail;
19627 temp2 = true;
19628 }
19629 {
19630 arg3 = &temp3;
19631 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19632 }
19633 if (obj3) {
19634 ecode4 = SWIG_AsVal_int(obj3, &val4);
19635 if (!SWIG_IsOK(ecode4)) {
19636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19637 }
19638 arg4 = static_cast< int >(val4);
19639 }
19640 if (obj4) {
19641 ecode5 = SWIG_AsVal_int(obj4, &val5);
19642 if (!SWIG_IsOK(ecode5)) {
19643 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19644 }
19645 arg5 = static_cast< int >(val5);
19646 }
19647 {
19648 PyThreadState* __tstate = wxPyBeginAllowThreads();
19649 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19650 wxPyEndAllowThreads(__tstate);
19651 if (PyErr_Occurred()) SWIG_fail;
19652 }
19653 resultobj = SWIG_Py_Void();
19654 {
19655 if (temp2)
19656 delete arg2;
19657 }
19658 return resultobj;
19659fail:
19660 {
19661 if (temp2)
19662 delete arg2;
19663 }
19664 return NULL;
19665}
19666
19667
19668SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19669 PyObject *resultobj = 0;
19670 wxDC *arg1 = (wxDC *) 0 ;
19671 wxString *arg2 = 0 ;
19672 wxBitmap *arg3 = 0 ;
19673 wxRect *arg4 = 0 ;
19674 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19675 int arg6 = (int) -1 ;
19676 wxRect result;
19677 void *argp1 = 0 ;
19678 int res1 = 0 ;
19679 bool temp2 = false ;
19680 void *argp3 = 0 ;
19681 int res3 = 0 ;
19682 wxRect temp4 ;
19683 int val5 ;
19684 int ecode5 = 0 ;
19685 int val6 ;
19686 int ecode6 = 0 ;
19687 PyObject * obj0 = 0 ;
19688 PyObject * obj1 = 0 ;
19689 PyObject * obj2 = 0 ;
19690 PyObject * obj3 = 0 ;
19691 PyObject * obj4 = 0 ;
19692 PyObject * obj5 = 0 ;
19693 char * kwnames[] = {
19694 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19695 };
19696
19697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19699 if (!SWIG_IsOK(res1)) {
19700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19701 }
19702 arg1 = reinterpret_cast< wxDC * >(argp1);
19703 {
19704 arg2 = wxString_in_helper(obj1);
19705 if (arg2 == NULL) SWIG_fail;
19706 temp2 = true;
19707 }
19708 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19709 if (!SWIG_IsOK(res3)) {
19710 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19711 }
19712 if (!argp3) {
19713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19714 }
19715 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19716 {
19717 arg4 = &temp4;
19718 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19719 }
19720 if (obj4) {
19721 ecode5 = SWIG_AsVal_int(obj4, &val5);
19722 if (!SWIG_IsOK(ecode5)) {
19723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19724 }
19725 arg5 = static_cast< int >(val5);
19726 }
19727 if (obj5) {
19728 ecode6 = SWIG_AsVal_int(obj5, &val6);
19729 if (!SWIG_IsOK(ecode6)) {
19730 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19731 }
19732 arg6 = static_cast< int >(val6);
19733 }
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19737 wxPyEndAllowThreads(__tstate);
19738 if (PyErr_Occurred()) SWIG_fail;
19739 }
19740 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19741 {
19742 if (temp2)
19743 delete arg2;
19744 }
19745 return resultobj;
19746fail:
19747 {
19748 if (temp2)
19749 delete arg2;
19750 }
19751 return NULL;
19752}
19753
19754
19755SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19756 PyObject *resultobj = 0;
19757 wxDC *arg1 = (wxDC *) 0 ;
19758 int arg2 ;
19759 wxPoint *arg3 = (wxPoint *) 0 ;
19760 void *argp1 = 0 ;
19761 int res1 = 0 ;
19762 PyObject * obj0 = 0 ;
19763 PyObject * obj1 = 0 ;
19764 char * kwnames[] = {
19765 (char *) "self",(char *) "points", NULL
19766 };
19767
19768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19770 if (!SWIG_IsOK(res1)) {
19771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19772 }
19773 arg1 = reinterpret_cast< wxDC * >(argp1);
19774 {
19775 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19776 if (arg3 == NULL) SWIG_fail;
19777 }
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 (arg1)->DrawSpline(arg2,arg3);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 resultobj = SWIG_Py_Void();
19785 {
19786 if (arg3) delete [] arg3;
19787 }
19788 return resultobj;
19789fail:
19790 {
19791 if (arg3) delete [] arg3;
19792 }
19793 return NULL;
19794}
19795
19796
19797SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19798 PyObject *resultobj = 0;
19799 wxDC *arg1 = (wxDC *) 0 ;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 PyObject *swig_obj[1] ;
19803
19804 if (!args) SWIG_fail;
19805 swig_obj[0] = args;
19806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19807 if (!SWIG_IsOK(res1)) {
19808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19809 }
19810 arg1 = reinterpret_cast< wxDC * >(argp1);
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 (arg1)->Clear();
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 resultobj = SWIG_Py_Void();
19818 return resultobj;
19819fail:
19820 return NULL;
19821}
19822
19823
19824SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19825 PyObject *resultobj = 0;
19826 wxDC *arg1 = (wxDC *) 0 ;
19827 wxString *arg2 = 0 ;
19828 bool result;
19829 void *argp1 = 0 ;
19830 int res1 = 0 ;
19831 bool temp2 = false ;
19832 PyObject * obj0 = 0 ;
19833 PyObject * obj1 = 0 ;
19834 char * kwnames[] = {
19835 (char *) "self",(char *) "message", NULL
19836 };
19837
19838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19840 if (!SWIG_IsOK(res1)) {
19841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19842 }
19843 arg1 = reinterpret_cast< wxDC * >(argp1);
19844 {
19845 arg2 = wxString_in_helper(obj1);
19846 if (arg2 == NULL) SWIG_fail;
19847 temp2 = true;
19848 }
19849 {
19850 PyThreadState* __tstate = wxPyBeginAllowThreads();
19851 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 {
19856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19857 }
19858 {
19859 if (temp2)
19860 delete arg2;
19861 }
19862 return resultobj;
19863fail:
19864 {
19865 if (temp2)
19866 delete arg2;
19867 }
19868 return NULL;
19869}
19870
19871
19872SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19873 PyObject *resultobj = 0;
19874 wxDC *arg1 = (wxDC *) 0 ;
19875 void *argp1 = 0 ;
19876 int res1 = 0 ;
19877 PyObject *swig_obj[1] ;
19878
19879 if (!args) SWIG_fail;
19880 swig_obj[0] = args;
19881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19882 if (!SWIG_IsOK(res1)) {
19883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19884 }
19885 arg1 = reinterpret_cast< wxDC * >(argp1);
19886 {
19887 PyThreadState* __tstate = wxPyBeginAllowThreads();
19888 (arg1)->EndDoc();
19889 wxPyEndAllowThreads(__tstate);
19890 if (PyErr_Occurred()) SWIG_fail;
19891 }
19892 resultobj = SWIG_Py_Void();
19893 return resultobj;
19894fail:
19895 return NULL;
19896}
19897
19898
19899SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19900 PyObject *resultobj = 0;
19901 wxDC *arg1 = (wxDC *) 0 ;
19902 void *argp1 = 0 ;
19903 int res1 = 0 ;
19904 PyObject *swig_obj[1] ;
19905
19906 if (!args) SWIG_fail;
19907 swig_obj[0] = args;
19908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19909 if (!SWIG_IsOK(res1)) {
19910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19911 }
19912 arg1 = reinterpret_cast< wxDC * >(argp1);
19913 {
19914 PyThreadState* __tstate = wxPyBeginAllowThreads();
19915 (arg1)->StartPage();
19916 wxPyEndAllowThreads(__tstate);
19917 if (PyErr_Occurred()) SWIG_fail;
19918 }
19919 resultobj = SWIG_Py_Void();
19920 return resultobj;
19921fail:
19922 return NULL;
19923}
19924
19925
19926SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19927 PyObject *resultobj = 0;
19928 wxDC *arg1 = (wxDC *) 0 ;
19929 void *argp1 = 0 ;
19930 int res1 = 0 ;
19931 PyObject *swig_obj[1] ;
19932
19933 if (!args) SWIG_fail;
19934 swig_obj[0] = args;
19935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19936 if (!SWIG_IsOK(res1)) {
19937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
19938 }
19939 arg1 = reinterpret_cast< wxDC * >(argp1);
19940 {
19941 PyThreadState* __tstate = wxPyBeginAllowThreads();
19942 (arg1)->EndPage();
19943 wxPyEndAllowThreads(__tstate);
19944 if (PyErr_Occurred()) SWIG_fail;
19945 }
19946 resultobj = SWIG_Py_Void();
19947 return resultobj;
19948fail:
19949 return NULL;
19950}
19951
19952
19953SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19954 PyObject *resultobj = 0;
19955 wxDC *arg1 = (wxDC *) 0 ;
19956 wxFont *arg2 = 0 ;
19957 void *argp1 = 0 ;
19958 int res1 = 0 ;
19959 void *argp2 = 0 ;
19960 int res2 = 0 ;
19961 PyObject * obj0 = 0 ;
19962 PyObject * obj1 = 0 ;
19963 char * kwnames[] = {
19964 (char *) "self",(char *) "font", NULL
19965 };
19966
19967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
19968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19969 if (!SWIG_IsOK(res1)) {
19970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
19971 }
19972 arg1 = reinterpret_cast< wxDC * >(argp1);
19973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
19974 if (!SWIG_IsOK(res2)) {
19975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19976 }
19977 if (!argp2) {
19978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19979 }
19980 arg2 = reinterpret_cast< wxFont * >(argp2);
19981 {
19982 PyThreadState* __tstate = wxPyBeginAllowThreads();
19983 (arg1)->SetFont((wxFont const &)*arg2);
19984 wxPyEndAllowThreads(__tstate);
19985 if (PyErr_Occurred()) SWIG_fail;
19986 }
19987 resultobj = SWIG_Py_Void();
19988 return resultobj;
19989fail:
19990 return NULL;
19991}
19992
19993
19994SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19995 PyObject *resultobj = 0;
19996 wxDC *arg1 = (wxDC *) 0 ;
19997 wxPen *arg2 = 0 ;
19998 void *argp1 = 0 ;
19999 int res1 = 0 ;
20000 void *argp2 = 0 ;
20001 int res2 = 0 ;
20002 PyObject * obj0 = 0 ;
20003 PyObject * obj1 = 0 ;
20004 char * kwnames[] = {
20005 (char *) "self",(char *) "pen", NULL
20006 };
20007
20008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20012 }
20013 arg1 = reinterpret_cast< wxDC * >(argp1);
20014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20015 if (!SWIG_IsOK(res2)) {
20016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20017 }
20018 if (!argp2) {
20019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20020 }
20021 arg2 = reinterpret_cast< wxPen * >(argp2);
20022 {
20023 PyThreadState* __tstate = wxPyBeginAllowThreads();
20024 (arg1)->SetPen((wxPen const &)*arg2);
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 resultobj = SWIG_Py_Void();
20029 return resultobj;
20030fail:
20031 return NULL;
20032}
20033
20034
20035SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj = 0;
20037 wxDC *arg1 = (wxDC *) 0 ;
20038 wxBrush *arg2 = 0 ;
20039 void *argp1 = 0 ;
20040 int res1 = 0 ;
20041 void *argp2 = 0 ;
20042 int res2 = 0 ;
20043 PyObject * obj0 = 0 ;
20044 PyObject * obj1 = 0 ;
20045 char * kwnames[] = {
20046 (char *) "self",(char *) "brush", NULL
20047 };
20048
20049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20051 if (!SWIG_IsOK(res1)) {
20052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20053 }
20054 arg1 = reinterpret_cast< wxDC * >(argp1);
20055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20056 if (!SWIG_IsOK(res2)) {
20057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20058 }
20059 if (!argp2) {
20060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20061 }
20062 arg2 = reinterpret_cast< wxBrush * >(argp2);
20063 {
20064 PyThreadState* __tstate = wxPyBeginAllowThreads();
20065 (arg1)->SetBrush((wxBrush const &)*arg2);
20066 wxPyEndAllowThreads(__tstate);
20067 if (PyErr_Occurred()) SWIG_fail;
20068 }
20069 resultobj = SWIG_Py_Void();
20070 return resultobj;
20071fail:
20072 return NULL;
20073}
20074
20075
20076SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20077 PyObject *resultobj = 0;
20078 wxDC *arg1 = (wxDC *) 0 ;
20079 wxBrush *arg2 = 0 ;
20080 void *argp1 = 0 ;
20081 int res1 = 0 ;
20082 void *argp2 = 0 ;
20083 int res2 = 0 ;
20084 PyObject * obj0 = 0 ;
20085 PyObject * obj1 = 0 ;
20086 char * kwnames[] = {
20087 (char *) "self",(char *) "brush", NULL
20088 };
20089
20090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20092 if (!SWIG_IsOK(res1)) {
20093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20094 }
20095 arg1 = reinterpret_cast< wxDC * >(argp1);
20096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20097 if (!SWIG_IsOK(res2)) {
20098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20099 }
20100 if (!argp2) {
20101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20102 }
20103 arg2 = reinterpret_cast< wxBrush * >(argp2);
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 (arg1)->SetBackground((wxBrush const &)*arg2);
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 resultobj = SWIG_Py_Void();
20111 return resultobj;
20112fail:
20113 return NULL;
20114}
20115
20116
20117SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20118 PyObject *resultobj = 0;
20119 wxDC *arg1 = (wxDC *) 0 ;
20120 int arg2 ;
20121 void *argp1 = 0 ;
20122 int res1 = 0 ;
20123 int val2 ;
20124 int ecode2 = 0 ;
20125 PyObject * obj0 = 0 ;
20126 PyObject * obj1 = 0 ;
20127 char * kwnames[] = {
20128 (char *) "self",(char *) "mode", NULL
20129 };
20130
20131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20133 if (!SWIG_IsOK(res1)) {
20134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20135 }
20136 arg1 = reinterpret_cast< wxDC * >(argp1);
20137 ecode2 = SWIG_AsVal_int(obj1, &val2);
20138 if (!SWIG_IsOK(ecode2)) {
20139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20140 }
20141 arg2 = static_cast< int >(val2);
20142 {
20143 PyThreadState* __tstate = wxPyBeginAllowThreads();
20144 (arg1)->SetBackgroundMode(arg2);
20145 wxPyEndAllowThreads(__tstate);
20146 if (PyErr_Occurred()) SWIG_fail;
20147 }
20148 resultobj = SWIG_Py_Void();
20149 return resultobj;
20150fail:
20151 return NULL;
20152}
20153
20154
20155SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj = 0;
20157 wxDC *arg1 = (wxDC *) 0 ;
20158 wxPalette *arg2 = 0 ;
20159 void *argp1 = 0 ;
20160 int res1 = 0 ;
20161 void *argp2 = 0 ;
20162 int res2 = 0 ;
20163 PyObject * obj0 = 0 ;
20164 PyObject * obj1 = 0 ;
20165 char * kwnames[] = {
20166 (char *) "self",(char *) "palette", NULL
20167 };
20168
20169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20173 }
20174 arg1 = reinterpret_cast< wxDC * >(argp1);
20175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20176 if (!SWIG_IsOK(res2)) {
20177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20178 }
20179 if (!argp2) {
20180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20181 }
20182 arg2 = reinterpret_cast< wxPalette * >(argp2);
20183 {
20184 PyThreadState* __tstate = wxPyBeginAllowThreads();
20185 (arg1)->SetPalette((wxPalette const &)*arg2);
20186 wxPyEndAllowThreads(__tstate);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 resultobj = SWIG_Py_Void();
20190 return resultobj;
20191fail:
20192 return NULL;
20193}
20194
20195
20196SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20197 PyObject *resultobj = 0;
20198 wxDC *arg1 = (wxDC *) 0 ;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 PyObject *swig_obj[1] ;
20202
20203 if (!args) SWIG_fail;
20204 swig_obj[0] = args;
20205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20206 if (!SWIG_IsOK(res1)) {
20207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20208 }
20209 arg1 = reinterpret_cast< wxDC * >(argp1);
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 (arg1)->DestroyClippingRegion();
20213 wxPyEndAllowThreads(__tstate);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 resultobj = SWIG_Py_Void();
20217 return resultobj;
20218fail:
20219 return NULL;
20220}
20221
20222
20223SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20224 PyObject *resultobj = 0;
20225 wxDC *arg1 = (wxDC *) 0 ;
20226 int *arg2 = (int *) 0 ;
20227 int *arg3 = (int *) 0 ;
20228 int *arg4 = (int *) 0 ;
20229 int *arg5 = (int *) 0 ;
20230 void *argp1 = 0 ;
20231 int res1 = 0 ;
20232 int temp2 ;
20233 int res2 = SWIG_TMPOBJ ;
20234 int temp3 ;
20235 int res3 = SWIG_TMPOBJ ;
20236 int temp4 ;
20237 int res4 = SWIG_TMPOBJ ;
20238 int temp5 ;
20239 int res5 = SWIG_TMPOBJ ;
20240 PyObject *swig_obj[1] ;
20241
20242 arg2 = &temp2;
20243 arg3 = &temp3;
20244 arg4 = &temp4;
20245 arg5 = &temp5;
20246 if (!args) SWIG_fail;
20247 swig_obj[0] = args;
20248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20249 if (!SWIG_IsOK(res1)) {
20250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20251 }
20252 arg1 = reinterpret_cast< wxDC * >(argp1);
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_Py_Void();
20260 if (SWIG_IsTmpObj(res2)) {
20261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20262 } else {
20263 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20265 }
20266 if (SWIG_IsTmpObj(res3)) {
20267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20268 } else {
20269 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20271 }
20272 if (SWIG_IsTmpObj(res4)) {
20273 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20274 } else {
20275 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20276 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20277 }
20278 if (SWIG_IsTmpObj(res5)) {
20279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20280 } else {
20281 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20283 }
20284 return resultobj;
20285fail:
20286 return NULL;
20287}
20288
20289
20290SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20291 PyObject *resultobj = 0;
20292 wxDC *arg1 = (wxDC *) 0 ;
20293 wxRect result;
20294 void *argp1 = 0 ;
20295 int res1 = 0 ;
20296 PyObject *swig_obj[1] ;
20297
20298 if (!args) SWIG_fail;
20299 swig_obj[0] = args;
20300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20301 if (!SWIG_IsOK(res1)) {
20302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20303 }
20304 arg1 = reinterpret_cast< wxDC * >(argp1);
20305 {
20306 PyThreadState* __tstate = wxPyBeginAllowThreads();
20307 result = wxDC_GetClippingRect(arg1);
20308 wxPyEndAllowThreads(__tstate);
20309 if (PyErr_Occurred()) SWIG_fail;
20310 }
20311 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20312 return resultobj;
20313fail:
20314 return NULL;
20315}
20316
20317
20318SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20319 PyObject *resultobj = 0;
20320 wxDC *arg1 = (wxDC *) 0 ;
20321 int result;
20322 void *argp1 = 0 ;
20323 int res1 = 0 ;
20324 PyObject *swig_obj[1] ;
20325
20326 if (!args) SWIG_fail;
20327 swig_obj[0] = args;
20328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20329 if (!SWIG_IsOK(res1)) {
20330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20331 }
20332 arg1 = reinterpret_cast< wxDC * >(argp1);
20333 {
20334 PyThreadState* __tstate = wxPyBeginAllowThreads();
20335 result = (int)((wxDC const *)arg1)->GetCharHeight();
20336 wxPyEndAllowThreads(__tstate);
20337 if (PyErr_Occurred()) SWIG_fail;
20338 }
20339 resultobj = SWIG_From_int(static_cast< int >(result));
20340 return resultobj;
20341fail:
20342 return NULL;
20343}
20344
20345
20346SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20347 PyObject *resultobj = 0;
20348 wxDC *arg1 = (wxDC *) 0 ;
20349 int result;
20350 void *argp1 = 0 ;
20351 int res1 = 0 ;
20352 PyObject *swig_obj[1] ;
20353
20354 if (!args) SWIG_fail;
20355 swig_obj[0] = args;
20356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20357 if (!SWIG_IsOK(res1)) {
20358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20359 }
20360 arg1 = reinterpret_cast< wxDC * >(argp1);
20361 {
20362 PyThreadState* __tstate = wxPyBeginAllowThreads();
20363 result = (int)((wxDC const *)arg1)->GetCharWidth();
20364 wxPyEndAllowThreads(__tstate);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 }
20367 resultobj = SWIG_From_int(static_cast< int >(result));
20368 return resultobj;
20369fail:
20370 return NULL;
20371}
20372
20373
20374SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj = 0;
20376 wxDC *arg1 = (wxDC *) 0 ;
20377 wxString *arg2 = 0 ;
20378 int *arg3 = (int *) 0 ;
20379 int *arg4 = (int *) 0 ;
20380 void *argp1 = 0 ;
20381 int res1 = 0 ;
20382 bool temp2 = false ;
20383 int temp3 ;
20384 int res3 = SWIG_TMPOBJ ;
20385 int temp4 ;
20386 int res4 = SWIG_TMPOBJ ;
20387 PyObject * obj0 = 0 ;
20388 PyObject * obj1 = 0 ;
20389 char * kwnames[] = {
20390 (char *) "self",(char *) "string", NULL
20391 };
20392
20393 arg3 = &temp3;
20394 arg4 = &temp4;
20395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20397 if (!SWIG_IsOK(res1)) {
20398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20399 }
20400 arg1 = reinterpret_cast< wxDC * >(argp1);
20401 {
20402 arg2 = wxString_in_helper(obj1);
20403 if (arg2 == NULL) SWIG_fail;
20404 temp2 = true;
20405 }
20406 {
20407 PyThreadState* __tstate = wxPyBeginAllowThreads();
20408 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 resultobj = SWIG_Py_Void();
20413 if (SWIG_IsTmpObj(res3)) {
20414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20415 } else {
20416 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20418 }
20419 if (SWIG_IsTmpObj(res4)) {
20420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20421 } else {
20422 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20424 }
20425 {
20426 if (temp2)
20427 delete arg2;
20428 }
20429 return resultobj;
20430fail:
20431 {
20432 if (temp2)
20433 delete arg2;
20434 }
20435 return NULL;
20436}
20437
20438
20439SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20440 PyObject *resultobj = 0;
20441 wxDC *arg1 = (wxDC *) 0 ;
20442 wxString *arg2 = 0 ;
20443 int *arg3 = (int *) 0 ;
20444 int *arg4 = (int *) 0 ;
20445 int *arg5 = (int *) 0 ;
20446 int *arg6 = (int *) 0 ;
20447 wxFont *arg7 = (wxFont *) NULL ;
20448 void *argp1 = 0 ;
20449 int res1 = 0 ;
20450 bool temp2 = false ;
20451 int temp3 ;
20452 int res3 = SWIG_TMPOBJ ;
20453 int temp4 ;
20454 int res4 = SWIG_TMPOBJ ;
20455 int temp5 ;
20456 int res5 = SWIG_TMPOBJ ;
20457 int temp6 ;
20458 int res6 = SWIG_TMPOBJ ;
20459 void *argp7 = 0 ;
20460 int res7 = 0 ;
20461 PyObject * obj0 = 0 ;
20462 PyObject * obj1 = 0 ;
20463 PyObject * obj2 = 0 ;
20464 char * kwnames[] = {
20465 (char *) "self",(char *) "string",(char *) "font", NULL
20466 };
20467
20468 arg3 = &temp3;
20469 arg4 = &temp4;
20470 arg5 = &temp5;
20471 arg6 = &temp6;
20472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20476 }
20477 arg1 = reinterpret_cast< wxDC * >(argp1);
20478 {
20479 arg2 = wxString_in_helper(obj1);
20480 if (arg2 == NULL) SWIG_fail;
20481 temp2 = true;
20482 }
20483 if (obj2) {
20484 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20485 if (!SWIG_IsOK(res7)) {
20486 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 20487 }
0085ce49
RD
20488 arg7 = reinterpret_cast< wxFont * >(argp7);
20489 }
20490 {
20491 PyThreadState* __tstate = wxPyBeginAllowThreads();
20492 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20493 wxPyEndAllowThreads(__tstate);
20494 if (PyErr_Occurred()) SWIG_fail;
20495 }
20496 resultobj = SWIG_Py_Void();
20497 if (SWIG_IsTmpObj(res3)) {
20498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20499 } else {
20500 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20502 }
20503 if (SWIG_IsTmpObj(res4)) {
20504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20505 } else {
20506 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20508 }
20509 if (SWIG_IsTmpObj(res5)) {
20510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20511 } else {
20512 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20514 }
20515 if (SWIG_IsTmpObj(res6)) {
20516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20517 } else {
20518 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20520 }
20521 {
20522 if (temp2)
20523 delete arg2;
20524 }
20525 return resultobj;
20526fail:
20527 {
20528 if (temp2)
20529 delete arg2;
20530 }
20531 return NULL;
20532}
20533
20534
20535SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20536 PyObject *resultobj = 0;
20537 wxDC *arg1 = (wxDC *) 0 ;
20538 wxString *arg2 = 0 ;
20539 int *arg3 = (int *) 0 ;
20540 int *arg4 = (int *) 0 ;
20541 int *arg5 = (int *) 0 ;
20542 wxFont *arg6 = (wxFont *) NULL ;
20543 void *argp1 = 0 ;
20544 int res1 = 0 ;
20545 bool temp2 = false ;
20546 int temp3 ;
20547 int res3 = SWIG_TMPOBJ ;
20548 int temp4 ;
20549 int res4 = SWIG_TMPOBJ ;
20550 int temp5 ;
20551 int res5 = SWIG_TMPOBJ ;
20552 void *argp6 = 0 ;
20553 int res6 = 0 ;
20554 PyObject * obj0 = 0 ;
20555 PyObject * obj1 = 0 ;
20556 PyObject * obj2 = 0 ;
20557 char * kwnames[] = {
20558 (char *) "self",(char *) "text",(char *) "font", NULL
20559 };
20560
20561 arg3 = &temp3;
20562 arg4 = &temp4;
20563 arg5 = &temp5;
20564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20566 if (!SWIG_IsOK(res1)) {
20567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20568 }
20569 arg1 = reinterpret_cast< wxDC * >(argp1);
20570 {
20571 arg2 = wxString_in_helper(obj1);
20572 if (arg2 == NULL) SWIG_fail;
20573 temp2 = true;
20574 }
20575 if (obj2) {
20576 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20577 if (!SWIG_IsOK(res6)) {
20578 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 20579 }
0085ce49
RD
20580 arg6 = reinterpret_cast< wxFont * >(argp6);
20581 }
20582 {
20583 PyThreadState* __tstate = wxPyBeginAllowThreads();
20584 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20585 wxPyEndAllowThreads(__tstate);
20586 if (PyErr_Occurred()) SWIG_fail;
20587 }
20588 resultobj = SWIG_Py_Void();
20589 if (SWIG_IsTmpObj(res3)) {
20590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20591 } else {
20592 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20594 }
20595 if (SWIG_IsTmpObj(res4)) {
20596 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20597 } else {
20598 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20600 }
20601 if (SWIG_IsTmpObj(res5)) {
20602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20603 } else {
20604 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20606 }
20607 {
20608 if (temp2)
20609 delete arg2;
20610 }
20611 return resultobj;
20612fail:
20613 {
20614 if (temp2)
20615 delete arg2;
20616 }
20617 return NULL;
20618}
20619
20620
20621SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20622 PyObject *resultobj = 0;
20623 wxDC *arg1 = (wxDC *) 0 ;
20624 wxString *arg2 = 0 ;
20625 wxArrayInt result;
20626 void *argp1 = 0 ;
20627 int res1 = 0 ;
20628 bool temp2 = false ;
20629 PyObject * obj0 = 0 ;
20630 PyObject * obj1 = 0 ;
20631 char * kwnames[] = {
20632 (char *) "self",(char *) "text", NULL
20633 };
20634
20635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20637 if (!SWIG_IsOK(res1)) {
20638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20639 }
20640 arg1 = reinterpret_cast< wxDC * >(argp1);
20641 {
20642 arg2 = wxString_in_helper(obj1);
20643 if (arg2 == NULL) SWIG_fail;
20644 temp2 = true;
20645 }
20646 {
20647 PyThreadState* __tstate = wxPyBeginAllowThreads();
20648 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 {
20653 resultobj = PyList_New(0);
20654 size_t idx;
20655 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20656 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20657 PyList_Append(resultobj, val);
20658 Py_DECREF(val);
093d3ff1 20659 }
0085ce49
RD
20660 }
20661 {
20662 if (temp2)
20663 delete arg2;
20664 }
20665 return resultobj;
20666fail:
20667 {
20668 if (temp2)
20669 delete arg2;
20670 }
20671 return NULL;
20672}
20673
20674
20675SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20676 PyObject *resultobj = 0;
20677 wxDC *arg1 = (wxDC *) 0 ;
20678 wxSize result;
20679 void *argp1 = 0 ;
20680 int res1 = 0 ;
20681 PyObject *swig_obj[1] ;
20682
20683 if (!args) SWIG_fail;
20684 swig_obj[0] = args;
20685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20686 if (!SWIG_IsOK(res1)) {
20687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20688 }
20689 arg1 = reinterpret_cast< wxDC * >(argp1);
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 result = (arg1)->GetSize();
20693 wxPyEndAllowThreads(__tstate);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20697 return resultobj;
20698fail:
20699 return NULL;
20700}
20701
20702
20703SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20704 PyObject *resultobj = 0;
20705 wxDC *arg1 = (wxDC *) 0 ;
20706 int *arg2 = (int *) 0 ;
20707 int *arg3 = (int *) 0 ;
20708 void *argp1 = 0 ;
20709 int res1 = 0 ;
20710 int temp2 ;
20711 int res2 = SWIG_TMPOBJ ;
20712 int temp3 ;
20713 int res3 = SWIG_TMPOBJ ;
20714 PyObject *swig_obj[1] ;
20715
20716 arg2 = &temp2;
20717 arg3 = &temp3;
20718 if (!args) SWIG_fail;
20719 swig_obj[0] = args;
20720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20721 if (!SWIG_IsOK(res1)) {
20722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20723 }
20724 arg1 = reinterpret_cast< wxDC * >(argp1);
20725 {
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 (arg1)->GetSize(arg2,arg3);
20728 wxPyEndAllowThreads(__tstate);
20729 if (PyErr_Occurred()) SWIG_fail;
20730 }
20731 resultobj = SWIG_Py_Void();
20732 if (SWIG_IsTmpObj(res2)) {
20733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20734 } else {
20735 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20737 }
20738 if (SWIG_IsTmpObj(res3)) {
20739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20740 } else {
20741 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20743 }
20744 return resultobj;
20745fail:
20746 return NULL;
20747}
20748
20749
20750SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20751 PyObject *resultobj = 0;
20752 wxDC *arg1 = (wxDC *) 0 ;
20753 wxSize result;
20754 void *argp1 = 0 ;
20755 int res1 = 0 ;
20756 PyObject *swig_obj[1] ;
20757
20758 if (!args) SWIG_fail;
20759 swig_obj[0] = args;
20760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20761 if (!SWIG_IsOK(res1)) {
20762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20763 }
20764 arg1 = reinterpret_cast< wxDC * >(argp1);
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 result = ((wxDC const *)arg1)->GetSizeMM();
20768 wxPyEndAllowThreads(__tstate);
20769 if (PyErr_Occurred()) SWIG_fail;
20770 }
20771 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20772 return resultobj;
20773fail:
20774 return NULL;
20775}
20776
20777
20778SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20779 PyObject *resultobj = 0;
20780 wxDC *arg1 = (wxDC *) 0 ;
20781 int *arg2 = (int *) 0 ;
20782 int *arg3 = (int *) 0 ;
20783 void *argp1 = 0 ;
20784 int res1 = 0 ;
20785 int temp2 ;
20786 int res2 = SWIG_TMPOBJ ;
20787 int temp3 ;
20788 int res3 = SWIG_TMPOBJ ;
20789 PyObject *swig_obj[1] ;
20790
20791 arg2 = &temp2;
20792 arg3 = &temp3;
20793 if (!args) SWIG_fail;
20794 swig_obj[0] = args;
20795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20796 if (!SWIG_IsOK(res1)) {
20797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20798 }
20799 arg1 = reinterpret_cast< wxDC * >(argp1);
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_Py_Void();
20807 if (SWIG_IsTmpObj(res2)) {
20808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20809 } else {
20810 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20812 }
20813 if (SWIG_IsTmpObj(res3)) {
20814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20815 } else {
20816 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20818 }
20819 return resultobj;
20820fail:
20821 return NULL;
20822}
20823
20824
20825SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxDC *arg1 = (wxDC *) 0 ;
20828 int arg2 ;
20829 int result;
20830 void *argp1 = 0 ;
20831 int res1 = 0 ;
20832 int val2 ;
20833 int ecode2 = 0 ;
20834 PyObject * obj0 = 0 ;
20835 PyObject * obj1 = 0 ;
20836 char * kwnames[] = {
20837 (char *) "self",(char *) "x", NULL
20838 };
20839
20840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20842 if (!SWIG_IsOK(res1)) {
20843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20844 }
20845 arg1 = reinterpret_cast< wxDC * >(argp1);
20846 ecode2 = SWIG_AsVal_int(obj1, &val2);
20847 if (!SWIG_IsOK(ecode2)) {
20848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20849 }
20850 arg2 = static_cast< int >(val2);
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20854 wxPyEndAllowThreads(__tstate);
20855 if (PyErr_Occurred()) SWIG_fail;
20856 }
20857 resultobj = SWIG_From_int(static_cast< int >(result));
20858 return resultobj;
20859fail:
20860 return NULL;
20861}
20862
20863
20864SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20865 PyObject *resultobj = 0;
20866 wxDC *arg1 = (wxDC *) 0 ;
20867 int arg2 ;
20868 int result;
20869 void *argp1 = 0 ;
20870 int res1 = 0 ;
20871 int val2 ;
20872 int ecode2 = 0 ;
20873 PyObject * obj0 = 0 ;
20874 PyObject * obj1 = 0 ;
20875 char * kwnames[] = {
20876 (char *) "self",(char *) "y", NULL
20877 };
20878
20879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20881 if (!SWIG_IsOK(res1)) {
20882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20883 }
20884 arg1 = reinterpret_cast< wxDC * >(argp1);
20885 ecode2 = SWIG_AsVal_int(obj1, &val2);
20886 if (!SWIG_IsOK(ecode2)) {
20887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20888 }
20889 arg2 = static_cast< int >(val2);
20890 {
20891 PyThreadState* __tstate = wxPyBeginAllowThreads();
20892 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20893 wxPyEndAllowThreads(__tstate);
20894 if (PyErr_Occurred()) SWIG_fail;
20895 }
20896 resultobj = SWIG_From_int(static_cast< int >(result));
20897 return resultobj;
20898fail:
20899 return NULL;
20900}
20901
20902
20903SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20904 PyObject *resultobj = 0;
20905 wxDC *arg1 = (wxDC *) 0 ;
20906 int arg2 ;
20907 int result;
20908 void *argp1 = 0 ;
20909 int res1 = 0 ;
20910 int val2 ;
20911 int ecode2 = 0 ;
20912 PyObject * obj0 = 0 ;
20913 PyObject * obj1 = 0 ;
20914 char * kwnames[] = {
20915 (char *) "self",(char *) "x", NULL
20916 };
20917
20918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20920 if (!SWIG_IsOK(res1)) {
20921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20922 }
20923 arg1 = reinterpret_cast< wxDC * >(argp1);
20924 ecode2 = SWIG_AsVal_int(obj1, &val2);
20925 if (!SWIG_IsOK(ecode2)) {
20926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
20927 }
20928 arg2 = static_cast< int >(val2);
20929 {
20930 PyThreadState* __tstate = wxPyBeginAllowThreads();
20931 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
20932 wxPyEndAllowThreads(__tstate);
20933 if (PyErr_Occurred()) SWIG_fail;
20934 }
20935 resultobj = SWIG_From_int(static_cast< int >(result));
20936 return resultobj;
20937fail:
20938 return NULL;
20939}
20940
20941
20942SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20943 PyObject *resultobj = 0;
20944 wxDC *arg1 = (wxDC *) 0 ;
20945 int arg2 ;
20946 int result;
20947 void *argp1 = 0 ;
20948 int res1 = 0 ;
20949 int val2 ;
20950 int ecode2 = 0 ;
20951 PyObject * obj0 = 0 ;
20952 PyObject * obj1 = 0 ;
20953 char * kwnames[] = {
20954 (char *) "self",(char *) "y", NULL
20955 };
20956
20957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
20958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20959 if (!SWIG_IsOK(res1)) {
20960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20961 }
20962 arg1 = reinterpret_cast< wxDC * >(argp1);
20963 ecode2 = SWIG_AsVal_int(obj1, &val2);
20964 if (!SWIG_IsOK(ecode2)) {
20965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
20966 }
20967 arg2 = static_cast< int >(val2);
20968 {
20969 PyThreadState* __tstate = wxPyBeginAllowThreads();
20970 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_From_int(static_cast< int >(result));
20975 return resultobj;
20976fail:
20977 return NULL;
20978}
20979
20980
20981SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj = 0;
20983 wxDC *arg1 = (wxDC *) 0 ;
20984 int arg2 ;
20985 int result;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 int val2 ;
20989 int ecode2 = 0 ;
20990 PyObject * obj0 = 0 ;
20991 PyObject * obj1 = 0 ;
20992 char * kwnames[] = {
20993 (char *) "self",(char *) "x", NULL
20994 };
20995
20996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
20997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20998 if (!SWIG_IsOK(res1)) {
20999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21000 }
21001 arg1 = reinterpret_cast< wxDC * >(argp1);
21002 ecode2 = SWIG_AsVal_int(obj1, &val2);
21003 if (!SWIG_IsOK(ecode2)) {
21004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21005 }
21006 arg2 = static_cast< int >(val2);
21007 {
21008 PyThreadState* __tstate = wxPyBeginAllowThreads();
21009 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21010 wxPyEndAllowThreads(__tstate);
21011 if (PyErr_Occurred()) SWIG_fail;
21012 }
21013 resultobj = SWIG_From_int(static_cast< int >(result));
21014 return resultobj;
21015fail:
21016 return NULL;
21017}
21018
21019
21020SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21021 PyObject *resultobj = 0;
21022 wxDC *arg1 = (wxDC *) 0 ;
21023 int arg2 ;
21024 int result;
21025 void *argp1 = 0 ;
21026 int res1 = 0 ;
21027 int val2 ;
21028 int ecode2 = 0 ;
21029 PyObject * obj0 = 0 ;
21030 PyObject * obj1 = 0 ;
21031 char * kwnames[] = {
21032 (char *) "self",(char *) "y", NULL
21033 };
21034
21035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21037 if (!SWIG_IsOK(res1)) {
21038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21039 }
21040 arg1 = reinterpret_cast< wxDC * >(argp1);
21041 ecode2 = SWIG_AsVal_int(obj1, &val2);
21042 if (!SWIG_IsOK(ecode2)) {
21043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21044 }
21045 arg2 = static_cast< int >(val2);
21046 {
21047 PyThreadState* __tstate = wxPyBeginAllowThreads();
21048 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21049 wxPyEndAllowThreads(__tstate);
21050 if (PyErr_Occurred()) SWIG_fail;
21051 }
21052 resultobj = SWIG_From_int(static_cast< int >(result));
21053 return resultobj;
21054fail:
21055 return NULL;
21056}
21057
21058
21059SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21060 PyObject *resultobj = 0;
21061 wxDC *arg1 = (wxDC *) 0 ;
21062 int arg2 ;
21063 int result;
21064 void *argp1 = 0 ;
21065 int res1 = 0 ;
21066 int val2 ;
21067 int ecode2 = 0 ;
21068 PyObject * obj0 = 0 ;
21069 PyObject * obj1 = 0 ;
21070 char * kwnames[] = {
21071 (char *) "self",(char *) "x", NULL
21072 };
21073
21074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21076 if (!SWIG_IsOK(res1)) {
21077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21078 }
21079 arg1 = reinterpret_cast< wxDC * >(argp1);
21080 ecode2 = SWIG_AsVal_int(obj1, &val2);
21081 if (!SWIG_IsOK(ecode2)) {
21082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21083 }
21084 arg2 = static_cast< int >(val2);
21085 {
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 resultobj = SWIG_From_int(static_cast< int >(result));
21092 return resultobj;
21093fail:
21094 return NULL;
21095}
21096
21097
21098SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21099 PyObject *resultobj = 0;
21100 wxDC *arg1 = (wxDC *) 0 ;
21101 int arg2 ;
21102 int result;
21103 void *argp1 = 0 ;
21104 int res1 = 0 ;
21105 int val2 ;
21106 int ecode2 = 0 ;
21107 PyObject * obj0 = 0 ;
21108 PyObject * obj1 = 0 ;
21109 char * kwnames[] = {
21110 (char *) "self",(char *) "y", NULL
21111 };
21112
21113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21115 if (!SWIG_IsOK(res1)) {
21116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21117 }
21118 arg1 = reinterpret_cast< wxDC * >(argp1);
21119 ecode2 = SWIG_AsVal_int(obj1, &val2);
21120 if (!SWIG_IsOK(ecode2)) {
21121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21122 }
21123 arg2 = static_cast< int >(val2);
21124 {
21125 PyThreadState* __tstate = wxPyBeginAllowThreads();
21126 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21127 wxPyEndAllowThreads(__tstate);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 }
21130 resultobj = SWIG_From_int(static_cast< int >(result));
21131 return resultobj;
21132fail:
21133 return NULL;
21134}
21135
21136
21137SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21138 PyObject *resultobj = 0;
21139 wxDC *arg1 = (wxDC *) 0 ;
21140 bool result;
21141 void *argp1 = 0 ;
21142 int res1 = 0 ;
21143 PyObject *swig_obj[1] ;
21144
21145 if (!args) SWIG_fail;
21146 swig_obj[0] = args;
21147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21148 if (!SWIG_IsOK(res1)) {
21149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21150 }
21151 arg1 = reinterpret_cast< wxDC * >(argp1);
21152 {
21153 PyThreadState* __tstate = wxPyBeginAllowThreads();
21154 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21155 wxPyEndAllowThreads(__tstate);
21156 if (PyErr_Occurred()) SWIG_fail;
21157 }
21158 {
21159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21160 }
21161 return resultobj;
21162fail:
21163 return NULL;
21164}
21165
21166
21167SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21168 PyObject *resultobj = 0;
21169 wxDC *arg1 = (wxDC *) 0 ;
21170 bool result;
21171 void *argp1 = 0 ;
21172 int res1 = 0 ;
21173 PyObject *swig_obj[1] ;
21174
21175 if (!args) SWIG_fail;
21176 swig_obj[0] = args;
21177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21178 if (!SWIG_IsOK(res1)) {
21179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21180 }
21181 arg1 = reinterpret_cast< wxDC * >(argp1);
21182 {
21183 PyThreadState* __tstate = wxPyBeginAllowThreads();
21184 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21185 wxPyEndAllowThreads(__tstate);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 }
21188 {
21189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21190 }
21191 return resultobj;
21192fail:
21193 return NULL;
21194}
21195
21196
21197SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21198 PyObject *resultobj = 0;
21199 wxDC *arg1 = (wxDC *) 0 ;
21200 int result;
21201 void *argp1 = 0 ;
21202 int res1 = 0 ;
21203 PyObject *swig_obj[1] ;
21204
21205 if (!args) SWIG_fail;
21206 swig_obj[0] = args;
21207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21208 if (!SWIG_IsOK(res1)) {
21209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21210 }
21211 arg1 = reinterpret_cast< wxDC * >(argp1);
21212 {
21213 PyThreadState* __tstate = wxPyBeginAllowThreads();
21214 result = (int)((wxDC const *)arg1)->GetDepth();
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 resultobj = SWIG_From_int(static_cast< int >(result));
21219 return resultobj;
21220fail:
21221 return NULL;
21222}
21223
21224
21225SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21226 PyObject *resultobj = 0;
21227 wxDC *arg1 = (wxDC *) 0 ;
21228 wxSize result;
21229 void *argp1 = 0 ;
21230 int res1 = 0 ;
21231 PyObject *swig_obj[1] ;
21232
21233 if (!args) SWIG_fail;
21234 swig_obj[0] = args;
21235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21236 if (!SWIG_IsOK(res1)) {
21237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21238 }
21239 arg1 = reinterpret_cast< wxDC * >(argp1);
21240 {
21241 PyThreadState* __tstate = wxPyBeginAllowThreads();
21242 result = ((wxDC const *)arg1)->GetPPI();
21243 wxPyEndAllowThreads(__tstate);
21244 if (PyErr_Occurred()) SWIG_fail;
21245 }
21246 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21247 return resultobj;
21248fail:
21249 return NULL;
21250}
21251
21252
21253SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21254 PyObject *resultobj = 0;
21255 wxDC *arg1 = (wxDC *) 0 ;
21256 bool result;
21257 void *argp1 = 0 ;
21258 int res1 = 0 ;
21259 PyObject *swig_obj[1] ;
21260
21261 if (!args) SWIG_fail;
21262 swig_obj[0] = args;
21263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21264 if (!SWIG_IsOK(res1)) {
21265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21266 }
21267 arg1 = reinterpret_cast< wxDC * >(argp1);
21268 {
21269 PyThreadState* __tstate = wxPyBeginAllowThreads();
21270 result = (bool)((wxDC const *)arg1)->Ok();
21271 wxPyEndAllowThreads(__tstate);
21272 if (PyErr_Occurred()) SWIG_fail;
21273 }
21274 {
21275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21276 }
21277 return resultobj;
21278fail:
21279 return NULL;
21280}
21281
21282
21283SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21284 PyObject *resultobj = 0;
21285 wxDC *arg1 = (wxDC *) 0 ;
21286 int result;
21287 void *argp1 = 0 ;
21288 int res1 = 0 ;
21289 PyObject *swig_obj[1] ;
21290
21291 if (!args) SWIG_fail;
21292 swig_obj[0] = args;
21293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21294 if (!SWIG_IsOK(res1)) {
21295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21296 }
21297 arg1 = reinterpret_cast< wxDC * >(argp1);
21298 {
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_From_int(static_cast< int >(result));
21305 return resultobj;
21306fail:
21307 return NULL;
21308}
21309
21310
21311SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21312 PyObject *resultobj = 0;
21313 wxDC *arg1 = (wxDC *) 0 ;
21314 wxBrush *result = 0 ;
21315 void *argp1 = 0 ;
21316 int res1 = 0 ;
21317 PyObject *swig_obj[1] ;
21318
21319 if (!args) SWIG_fail;
21320 swig_obj[0] = args;
21321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21322 if (!SWIG_IsOK(res1)) {
21323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21324 }
21325 arg1 = reinterpret_cast< wxDC * >(argp1);
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21328 {
0085ce49
RD
21329 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21330 result = (wxBrush *) &_result_ref;
093d3ff1 21331 }
0085ce49
RD
21332 wxPyEndAllowThreads(__tstate);
21333 if (PyErr_Occurred()) SWIG_fail;
21334 }
21335 {
21336 wxBrush* resultptr = new wxBrush(*result);
21337 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21338 }
21339 return resultobj;
21340fail:
21341 return NULL;
21342}
21343
21344
21345SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21346 PyObject *resultobj = 0;
21347 wxDC *arg1 = (wxDC *) 0 ;
21348 wxBrush *result = 0 ;
21349 void *argp1 = 0 ;
21350 int res1 = 0 ;
21351 PyObject *swig_obj[1] ;
21352
21353 if (!args) SWIG_fail;
21354 swig_obj[0] = args;
21355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21356 if (!SWIG_IsOK(res1)) {
21357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21358 }
21359 arg1 = reinterpret_cast< wxDC * >(argp1);
21360 {
21361 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21362 {
0085ce49
RD
21363 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21364 result = (wxBrush *) &_result_ref;
093d3ff1 21365 }
0085ce49
RD
21366 wxPyEndAllowThreads(__tstate);
21367 if (PyErr_Occurred()) SWIG_fail;
21368 }
21369 {
21370 wxBrush* resultptr = new wxBrush(*result);
21371 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21372 }
21373 return resultobj;
21374fail:
21375 return NULL;
21376}
21377
21378
21379SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21380 PyObject *resultobj = 0;
21381 wxDC *arg1 = (wxDC *) 0 ;
21382 wxFont *result = 0 ;
21383 void *argp1 = 0 ;
21384 int res1 = 0 ;
21385 PyObject *swig_obj[1] ;
21386
21387 if (!args) SWIG_fail;
21388 swig_obj[0] = args;
21389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21390 if (!SWIG_IsOK(res1)) {
21391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21392 }
21393 arg1 = reinterpret_cast< wxDC * >(argp1);
21394 {
21395 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21396 {
0085ce49
RD
21397 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21398 result = (wxFont *) &_result_ref;
093d3ff1 21399 }
0085ce49
RD
21400 wxPyEndAllowThreads(__tstate);
21401 if (PyErr_Occurred()) SWIG_fail;
21402 }
21403 {
21404 wxFont* resultptr = new wxFont(*result);
21405 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21406 }
21407 return resultobj;
21408fail:
21409 return NULL;
21410}
21411
21412
21413SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21414 PyObject *resultobj = 0;
21415 wxDC *arg1 = (wxDC *) 0 ;
21416 wxPen *result = 0 ;
21417 void *argp1 = 0 ;
21418 int res1 = 0 ;
21419 PyObject *swig_obj[1] ;
21420
21421 if (!args) SWIG_fail;
21422 swig_obj[0] = args;
21423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21424 if (!SWIG_IsOK(res1)) {
21425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21426 }
21427 arg1 = reinterpret_cast< wxDC * >(argp1);
21428 {
21429 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21430 {
0085ce49
RD
21431 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21432 result = (wxPen *) &_result_ref;
093d3ff1 21433 }
0085ce49
RD
21434 wxPyEndAllowThreads(__tstate);
21435 if (PyErr_Occurred()) SWIG_fail;
21436 }
21437 {
21438 wxPen* resultptr = new wxPen(*result);
21439 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21440 }
21441 return resultobj;
21442fail:
21443 return NULL;
21444}
21445
21446
21447SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21448 PyObject *resultobj = 0;
21449 wxDC *arg1 = (wxDC *) 0 ;
21450 wxColour *result = 0 ;
21451 void *argp1 = 0 ;
21452 int res1 = 0 ;
21453 PyObject *swig_obj[1] ;
21454
21455 if (!args) SWIG_fail;
21456 swig_obj[0] = args;
21457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21458 if (!SWIG_IsOK(res1)) {
21459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21460 }
21461 arg1 = reinterpret_cast< wxDC * >(argp1);
21462 {
21463 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21464 {
0085ce49
RD
21465 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21466 result = (wxColour *) &_result_ref;
093d3ff1 21467 }
0085ce49
RD
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21472 return resultobj;
21473fail:
21474 return NULL;
21475}
21476
21477
21478SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21479 PyObject *resultobj = 0;
21480 wxDC *arg1 = (wxDC *) 0 ;
21481 wxColour *result = 0 ;
21482 void *argp1 = 0 ;
21483 int res1 = 0 ;
21484 PyObject *swig_obj[1] ;
21485
21486 if (!args) SWIG_fail;
21487 swig_obj[0] = args;
21488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21489 if (!SWIG_IsOK(res1)) {
21490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21491 }
21492 arg1 = reinterpret_cast< wxDC * >(argp1);
21493 {
21494 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21495 {
0085ce49
RD
21496 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21497 result = (wxColour *) &_result_ref;
093d3ff1 21498 }
0085ce49
RD
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21503 return resultobj;
21504fail:
21505 return NULL;
21506}
21507
21508
21509SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21510 PyObject *resultobj = 0;
21511 wxDC *arg1 = (wxDC *) 0 ;
21512 wxColour *arg2 = 0 ;
21513 void *argp1 = 0 ;
21514 int res1 = 0 ;
21515 wxColour temp2 ;
21516 PyObject * obj0 = 0 ;
21517 PyObject * obj1 = 0 ;
21518 char * kwnames[] = {
21519 (char *) "self",(char *) "colour", NULL
21520 };
21521
21522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21524 if (!SWIG_IsOK(res1)) {
21525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21526 }
21527 arg1 = reinterpret_cast< wxDC * >(argp1);
21528 {
21529 arg2 = &temp2;
21530 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21531 }
21532 {
21533 PyThreadState* __tstate = wxPyBeginAllowThreads();
21534 (arg1)->SetTextForeground((wxColour const &)*arg2);
21535 wxPyEndAllowThreads(__tstate);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 resultobj = SWIG_Py_Void();
21539 return resultobj;
21540fail:
21541 return NULL;
21542}
21543
21544
21545SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21546 PyObject *resultobj = 0;
21547 wxDC *arg1 = (wxDC *) 0 ;
21548 wxColour *arg2 = 0 ;
21549 void *argp1 = 0 ;
21550 int res1 = 0 ;
21551 wxColour temp2 ;
21552 PyObject * obj0 = 0 ;
21553 PyObject * obj1 = 0 ;
21554 char * kwnames[] = {
21555 (char *) "self",(char *) "colour", NULL
21556 };
21557
21558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21560 if (!SWIG_IsOK(res1)) {
21561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21562 }
21563 arg1 = reinterpret_cast< wxDC * >(argp1);
21564 {
21565 arg2 = &temp2;
21566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21567 }
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 (arg1)->SetTextBackground((wxColour const &)*arg2);
21571 wxPyEndAllowThreads(__tstate);
21572 if (PyErr_Occurred()) SWIG_fail;
21573 }
21574 resultobj = SWIG_Py_Void();
21575 return resultobj;
21576fail:
21577 return NULL;
21578}
21579
21580
21581SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21582 PyObject *resultobj = 0;
21583 wxDC *arg1 = (wxDC *) 0 ;
21584 int result;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 PyObject *swig_obj[1] ;
21588
21589 if (!args) SWIG_fail;
21590 swig_obj[0] = args;
21591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21592 if (!SWIG_IsOK(res1)) {
21593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21594 }
21595 arg1 = reinterpret_cast< wxDC * >(argp1);
21596 {
21597 PyThreadState* __tstate = wxPyBeginAllowThreads();
21598 result = (int)((wxDC const *)arg1)->GetMapMode();
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 resultobj = SWIG_From_int(static_cast< int >(result));
21603 return resultobj;
21604fail:
21605 return NULL;
21606}
21607
21608
21609SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21610 PyObject *resultobj = 0;
21611 wxDC *arg1 = (wxDC *) 0 ;
21612 int arg2 ;
21613 void *argp1 = 0 ;
21614 int res1 = 0 ;
21615 int val2 ;
21616 int ecode2 = 0 ;
21617 PyObject * obj0 = 0 ;
21618 PyObject * obj1 = 0 ;
21619 char * kwnames[] = {
21620 (char *) "self",(char *) "mode", NULL
21621 };
21622
21623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21625 if (!SWIG_IsOK(res1)) {
21626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21627 }
21628 arg1 = reinterpret_cast< wxDC * >(argp1);
21629 ecode2 = SWIG_AsVal_int(obj1, &val2);
21630 if (!SWIG_IsOK(ecode2)) {
21631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21632 }
21633 arg2 = static_cast< int >(val2);
21634 {
21635 PyThreadState* __tstate = wxPyBeginAllowThreads();
21636 (arg1)->SetMapMode(arg2);
21637 wxPyEndAllowThreads(__tstate);
21638 if (PyErr_Occurred()) SWIG_fail;
21639 }
21640 resultobj = SWIG_Py_Void();
21641 return resultobj;
21642fail:
21643 return NULL;
21644}
21645
21646
21647SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21648 PyObject *resultobj = 0;
21649 wxDC *arg1 = (wxDC *) 0 ;
21650 double *arg2 = (double *) 0 ;
21651 double *arg3 = (double *) 0 ;
21652 void *argp1 = 0 ;
21653 int res1 = 0 ;
21654 double temp2 ;
21655 int res2 = SWIG_TMPOBJ ;
21656 double temp3 ;
21657 int res3 = SWIG_TMPOBJ ;
21658 PyObject *swig_obj[1] ;
21659
21660 arg2 = &temp2;
21661 arg3 = &temp3;
21662 if (!args) SWIG_fail;
21663 swig_obj[0] = args;
21664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21665 if (!SWIG_IsOK(res1)) {
21666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21667 }
21668 arg1 = reinterpret_cast< wxDC * >(argp1);
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 resultobj = SWIG_Py_Void();
21676 if (SWIG_IsTmpObj(res2)) {
21677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21678 } else {
21679 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21681 }
21682 if (SWIG_IsTmpObj(res3)) {
21683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21684 } else {
21685 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21687 }
21688 return resultobj;
21689fail:
21690 return NULL;
21691}
21692
21693
21694SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21695 PyObject *resultobj = 0;
21696 wxDC *arg1 = (wxDC *) 0 ;
21697 double arg2 ;
21698 double arg3 ;
21699 void *argp1 = 0 ;
21700 int res1 = 0 ;
21701 double val2 ;
21702 int ecode2 = 0 ;
21703 double val3 ;
21704 int ecode3 = 0 ;
21705 PyObject * obj0 = 0 ;
21706 PyObject * obj1 = 0 ;
21707 PyObject * obj2 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "self",(char *) "x",(char *) "y", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21716 }
21717 arg1 = reinterpret_cast< wxDC * >(argp1);
21718 ecode2 = SWIG_AsVal_double(obj1, &val2);
21719 if (!SWIG_IsOK(ecode2)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21721 }
21722 arg2 = static_cast< double >(val2);
21723 ecode3 = SWIG_AsVal_double(obj2, &val3);
21724 if (!SWIG_IsOK(ecode3)) {
21725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21726 }
21727 arg3 = static_cast< double >(val3);
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 (arg1)->SetUserScale(arg2,arg3);
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_Py_Void();
21735 return resultobj;
21736fail:
21737 return NULL;
21738}
21739
21740
21741SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21742 PyObject *resultobj = 0;
21743 wxDC *arg1 = (wxDC *) 0 ;
21744 double *arg2 = (double *) 0 ;
21745 double *arg3 = (double *) 0 ;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 double temp2 ;
21749 int res2 = SWIG_TMPOBJ ;
21750 double temp3 ;
21751 int res3 = SWIG_TMPOBJ ;
21752 PyObject *swig_obj[1] ;
21753
21754 arg2 = &temp2;
21755 arg3 = &temp3;
21756 if (!args) SWIG_fail;
21757 swig_obj[0] = args;
21758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21759 if (!SWIG_IsOK(res1)) {
21760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21761 }
21762 arg1 = reinterpret_cast< wxDC * >(argp1);
21763 {
21764 PyThreadState* __tstate = wxPyBeginAllowThreads();
21765 (arg1)->GetLogicalScale(arg2,arg3);
21766 wxPyEndAllowThreads(__tstate);
21767 if (PyErr_Occurred()) SWIG_fail;
21768 }
21769 resultobj = SWIG_Py_Void();
21770 if (SWIG_IsTmpObj(res2)) {
21771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21772 } else {
21773 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21775 }
21776 if (SWIG_IsTmpObj(res3)) {
21777 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21778 } else {
21779 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21780 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21781 }
21782 return resultobj;
21783fail:
21784 return NULL;
21785}
21786
21787
21788SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21789 PyObject *resultobj = 0;
21790 wxDC *arg1 = (wxDC *) 0 ;
21791 double arg2 ;
21792 double arg3 ;
21793 void *argp1 = 0 ;
21794 int res1 = 0 ;
21795 double val2 ;
21796 int ecode2 = 0 ;
21797 double val3 ;
21798 int ecode3 = 0 ;
21799 PyObject * obj0 = 0 ;
21800 PyObject * obj1 = 0 ;
21801 PyObject * obj2 = 0 ;
21802 char * kwnames[] = {
21803 (char *) "self",(char *) "x",(char *) "y", NULL
21804 };
21805
21806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21808 if (!SWIG_IsOK(res1)) {
21809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21810 }
21811 arg1 = reinterpret_cast< wxDC * >(argp1);
21812 ecode2 = SWIG_AsVal_double(obj1, &val2);
21813 if (!SWIG_IsOK(ecode2)) {
21814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21815 }
21816 arg2 = static_cast< double >(val2);
21817 ecode3 = SWIG_AsVal_double(obj2, &val3);
21818 if (!SWIG_IsOK(ecode3)) {
21819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21820 }
21821 arg3 = static_cast< double >(val3);
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 (arg1)->SetLogicalScale(arg2,arg3);
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 resultobj = SWIG_Py_Void();
21829 return resultobj;
21830fail:
21831 return NULL;
21832}
21833
21834
21835SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21836 PyObject *resultobj = 0;
21837 wxDC *arg1 = (wxDC *) 0 ;
21838 wxPoint result;
21839 void *argp1 = 0 ;
21840 int res1 = 0 ;
21841 PyObject *swig_obj[1] ;
21842
21843 if (!args) SWIG_fail;
21844 swig_obj[0] = args;
21845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21846 if (!SWIG_IsOK(res1)) {
21847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21848 }
21849 arg1 = reinterpret_cast< wxDC * >(argp1);
21850 {
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
21852 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21853 wxPyEndAllowThreads(__tstate);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 }
21856 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21857 return resultobj;
21858fail:
21859 return NULL;
21860}
21861
21862
21863SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21864 PyObject *resultobj = 0;
21865 wxDC *arg1 = (wxDC *) 0 ;
21866 int *arg2 = (int *) 0 ;
21867 int *arg3 = (int *) 0 ;
21868 void *argp1 = 0 ;
21869 int res1 = 0 ;
21870 int temp2 ;
21871 int res2 = SWIG_TMPOBJ ;
21872 int temp3 ;
21873 int res3 = SWIG_TMPOBJ ;
21874 PyObject *swig_obj[1] ;
21875
21876 arg2 = &temp2;
21877 arg3 = &temp3;
21878 if (!args) SWIG_fail;
21879 swig_obj[0] = args;
21880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21881 if (!SWIG_IsOK(res1)) {
21882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21883 }
21884 arg1 = reinterpret_cast< wxDC * >(argp1);
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
21887 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 resultobj = SWIG_Py_Void();
21892 if (SWIG_IsTmpObj(res2)) {
21893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21894 } else {
21895 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21897 }
21898 if (SWIG_IsTmpObj(res3)) {
21899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21900 } else {
21901 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21903 }
21904 return resultobj;
21905fail:
21906 return NULL;
21907}
21908
21909
21910SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj = 0;
21912 wxDC *arg1 = (wxDC *) 0 ;
21913 int arg2 ;
21914 int arg3 ;
21915 void *argp1 = 0 ;
21916 int res1 = 0 ;
21917 int val2 ;
21918 int ecode2 = 0 ;
21919 int val3 ;
21920 int ecode3 = 0 ;
21921 PyObject * obj0 = 0 ;
21922 PyObject * obj1 = 0 ;
21923 PyObject * obj2 = 0 ;
21924 char * kwnames[] = {
21925 (char *) "self",(char *) "x",(char *) "y", NULL
21926 };
21927
21928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21930 if (!SWIG_IsOK(res1)) {
21931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
21932 }
21933 arg1 = reinterpret_cast< wxDC * >(argp1);
21934 ecode2 = SWIG_AsVal_int(obj1, &val2);
21935 if (!SWIG_IsOK(ecode2)) {
21936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
21937 }
21938 arg2 = static_cast< int >(val2);
21939 ecode3 = SWIG_AsVal_int(obj2, &val3);
21940 if (!SWIG_IsOK(ecode3)) {
21941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
21942 }
21943 arg3 = static_cast< int >(val3);
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 (arg1)->SetLogicalOrigin(arg2,arg3);
21947 wxPyEndAllowThreads(__tstate);
21948 if (PyErr_Occurred()) SWIG_fail;
21949 }
21950 resultobj = SWIG_Py_Void();
21951 return resultobj;
21952fail:
21953 return NULL;
21954}
21955
21956
21957SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21958 PyObject *resultobj = 0;
21959 wxDC *arg1 = (wxDC *) 0 ;
21960 wxPoint *arg2 = 0 ;
21961 void *argp1 = 0 ;
21962 int res1 = 0 ;
21963 wxPoint temp2 ;
21964 PyObject * obj0 = 0 ;
21965 PyObject * obj1 = 0 ;
21966 char * kwnames[] = {
21967 (char *) "self",(char *) "point", NULL
21968 };
21969
21970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
21971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21972 if (!SWIG_IsOK(res1)) {
21973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
21974 }
21975 arg1 = reinterpret_cast< wxDC * >(argp1);
21976 {
21977 arg2 = &temp2;
21978 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21979 }
21980 {
21981 PyThreadState* __tstate = wxPyBeginAllowThreads();
21982 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
21983 wxPyEndAllowThreads(__tstate);
21984 if (PyErr_Occurred()) SWIG_fail;
21985 }
21986 resultobj = SWIG_Py_Void();
21987 return resultobj;
21988fail:
21989 return NULL;
21990}
21991
21992
21993SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21994 PyObject *resultobj = 0;
21995 wxDC *arg1 = (wxDC *) 0 ;
21996 wxPoint result;
21997 void *argp1 = 0 ;
21998 int res1 = 0 ;
21999 PyObject *swig_obj[1] ;
22000
22001 if (!args) SWIG_fail;
22002 swig_obj[0] = args;
22003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22004 if (!SWIG_IsOK(res1)) {
22005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22006 }
22007 arg1 = reinterpret_cast< wxDC * >(argp1);
22008 {
22009 PyThreadState* __tstate = wxPyBeginAllowThreads();
22010 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22011 wxPyEndAllowThreads(__tstate);
22012 if (PyErr_Occurred()) SWIG_fail;
22013 }
22014 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22015 return resultobj;
22016fail:
22017 return NULL;
22018}
22019
22020
22021SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22022 PyObject *resultobj = 0;
22023 wxDC *arg1 = (wxDC *) 0 ;
22024 int *arg2 = (int *) 0 ;
22025 int *arg3 = (int *) 0 ;
22026 void *argp1 = 0 ;
22027 int res1 = 0 ;
22028 int temp2 ;
22029 int res2 = SWIG_TMPOBJ ;
22030 int temp3 ;
22031 int res3 = SWIG_TMPOBJ ;
22032 PyObject *swig_obj[1] ;
22033
22034 arg2 = &temp2;
22035 arg3 = &temp3;
22036 if (!args) SWIG_fail;
22037 swig_obj[0] = args;
22038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22039 if (!SWIG_IsOK(res1)) {
22040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22041 }
22042 arg1 = reinterpret_cast< wxDC * >(argp1);
22043 {
22044 PyThreadState* __tstate = wxPyBeginAllowThreads();
22045 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 resultobj = SWIG_Py_Void();
22050 if (SWIG_IsTmpObj(res2)) {
22051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22052 } else {
22053 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22055 }
22056 if (SWIG_IsTmpObj(res3)) {
22057 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22058 } else {
22059 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22060 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22061 }
22062 return resultobj;
22063fail:
22064 return NULL;
22065}
22066
22067
22068SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22069 PyObject *resultobj = 0;
22070 wxDC *arg1 = (wxDC *) 0 ;
22071 int arg2 ;
22072 int arg3 ;
22073 void *argp1 = 0 ;
22074 int res1 = 0 ;
22075 int val2 ;
22076 int ecode2 = 0 ;
22077 int val3 ;
22078 int ecode3 = 0 ;
22079 PyObject * obj0 = 0 ;
22080 PyObject * obj1 = 0 ;
22081 PyObject * obj2 = 0 ;
22082 char * kwnames[] = {
22083 (char *) "self",(char *) "x",(char *) "y", NULL
22084 };
22085
22086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22088 if (!SWIG_IsOK(res1)) {
22089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22090 }
22091 arg1 = reinterpret_cast< wxDC * >(argp1);
22092 ecode2 = SWIG_AsVal_int(obj1, &val2);
22093 if (!SWIG_IsOK(ecode2)) {
22094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22095 }
22096 arg2 = static_cast< int >(val2);
22097 ecode3 = SWIG_AsVal_int(obj2, &val3);
22098 if (!SWIG_IsOK(ecode3)) {
22099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22100 }
22101 arg3 = static_cast< int >(val3);
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
22104 (arg1)->SetDeviceOrigin(arg2,arg3);
22105 wxPyEndAllowThreads(__tstate);
22106 if (PyErr_Occurred()) SWIG_fail;
22107 }
22108 resultobj = SWIG_Py_Void();
22109 return resultobj;
22110fail:
22111 return NULL;
22112}
22113
22114
22115SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22116 PyObject *resultobj = 0;
22117 wxDC *arg1 = (wxDC *) 0 ;
22118 wxPoint *arg2 = 0 ;
22119 void *argp1 = 0 ;
22120 int res1 = 0 ;
22121 wxPoint temp2 ;
22122 PyObject * obj0 = 0 ;
22123 PyObject * obj1 = 0 ;
22124 char * kwnames[] = {
22125 (char *) "self",(char *) "point", NULL
22126 };
22127
22128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22130 if (!SWIG_IsOK(res1)) {
22131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22132 }
22133 arg1 = reinterpret_cast< wxDC * >(argp1);
22134 {
22135 arg2 = &temp2;
22136 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22137 }
22138 {
22139 PyThreadState* __tstate = wxPyBeginAllowThreads();
22140 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22141 wxPyEndAllowThreads(__tstate);
22142 if (PyErr_Occurred()) SWIG_fail;
22143 }
22144 resultobj = SWIG_Py_Void();
22145 return resultobj;
22146fail:
22147 return NULL;
22148}
22149
22150
22151SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22152 PyObject *resultobj = 0;
22153 wxDC *arg1 = (wxDC *) 0 ;
22154 bool arg2 ;
22155 bool arg3 ;
22156 void *argp1 = 0 ;
22157 int res1 = 0 ;
22158 bool val2 ;
22159 int ecode2 = 0 ;
22160 bool val3 ;
22161 int ecode3 = 0 ;
22162 PyObject * obj0 = 0 ;
22163 PyObject * obj1 = 0 ;
22164 PyObject * obj2 = 0 ;
22165 char * kwnames[] = {
22166 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22167 };
22168
22169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22173 }
22174 arg1 = reinterpret_cast< wxDC * >(argp1);
22175 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22176 if (!SWIG_IsOK(ecode2)) {
22177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22178 }
22179 arg2 = static_cast< bool >(val2);
22180 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22181 if (!SWIG_IsOK(ecode3)) {
22182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22183 }
22184 arg3 = static_cast< bool >(val3);
22185 {
22186 PyThreadState* __tstate = wxPyBeginAllowThreads();
22187 (arg1)->SetAxisOrientation(arg2,arg3);
22188 wxPyEndAllowThreads(__tstate);
22189 if (PyErr_Occurred()) SWIG_fail;
22190 }
22191 resultobj = SWIG_Py_Void();
22192 return resultobj;
22193fail:
22194 return NULL;
22195}
22196
22197
22198SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22199 PyObject *resultobj = 0;
22200 wxDC *arg1 = (wxDC *) 0 ;
22201 int result;
22202 void *argp1 = 0 ;
22203 int res1 = 0 ;
22204 PyObject *swig_obj[1] ;
22205
22206 if (!args) SWIG_fail;
22207 swig_obj[0] = args;
22208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22209 if (!SWIG_IsOK(res1)) {
22210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22211 }
22212 arg1 = reinterpret_cast< wxDC * >(argp1);
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22216 wxPyEndAllowThreads(__tstate);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 }
22219 resultobj = SWIG_From_int(static_cast< int >(result));
22220 return resultobj;
22221fail:
22222 return NULL;
22223}
22224
22225
22226SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22227 PyObject *resultobj = 0;
22228 wxDC *arg1 = (wxDC *) 0 ;
22229 int arg2 ;
22230 void *argp1 = 0 ;
22231 int res1 = 0 ;
22232 int val2 ;
22233 int ecode2 = 0 ;
22234 PyObject * obj0 = 0 ;
22235 PyObject * obj1 = 0 ;
22236 char * kwnames[] = {
22237 (char *) "self",(char *) "function", NULL
22238 };
22239
22240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22244 }
22245 arg1 = reinterpret_cast< wxDC * >(argp1);
22246 ecode2 = SWIG_AsVal_int(obj1, &val2);
22247 if (!SWIG_IsOK(ecode2)) {
22248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22249 }
22250 arg2 = static_cast< int >(val2);
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 (arg1)->SetLogicalFunction(arg2);
22254 wxPyEndAllowThreads(__tstate);
22255 if (PyErr_Occurred()) SWIG_fail;
22256 }
22257 resultobj = SWIG_Py_Void();
22258 return resultobj;
22259fail:
22260 return NULL;
22261}
22262
22263
22264SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22265 PyObject *resultobj = 0;
22266 wxDC *arg1 = (wxDC *) 0 ;
22267 void *argp1 = 0 ;
22268 int res1 = 0 ;
22269 PyObject *swig_obj[1] ;
22270
22271 if (!args) SWIG_fail;
22272 swig_obj[0] = args;
22273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22274 if (!SWIG_IsOK(res1)) {
22275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22276 }
22277 arg1 = reinterpret_cast< wxDC * >(argp1);
22278 {
22279 PyThreadState* __tstate = wxPyBeginAllowThreads();
22280 (arg1)->ComputeScaleAndOrigin();
22281 wxPyEndAllowThreads(__tstate);
22282 if (PyErr_Occurred()) SWIG_fail;
22283 }
22284 resultobj = SWIG_Py_Void();
22285 return resultobj;
22286fail:
22287 return NULL;
22288}
22289
22290
22291SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22292 PyObject *resultobj = 0;
22293 wxDC *arg1 = (wxDC *) 0 ;
22294 int arg2 ;
22295 int arg3 ;
22296 void *argp1 = 0 ;
22297 int res1 = 0 ;
22298 int val2 ;
22299 int ecode2 = 0 ;
22300 int val3 ;
22301 int ecode3 = 0 ;
22302 PyObject * obj0 = 0 ;
22303 PyObject * obj1 = 0 ;
22304 PyObject * obj2 = 0 ;
22305 char * kwnames[] = {
22306 (char *) "self",(char *) "x",(char *) "y", NULL
22307 };
22308
22309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22311 if (!SWIG_IsOK(res1)) {
22312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22313 }
22314 arg1 = reinterpret_cast< wxDC * >(argp1);
22315 ecode2 = SWIG_AsVal_int(obj1, &val2);
22316 if (!SWIG_IsOK(ecode2)) {
22317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22318 }
22319 arg2 = static_cast< int >(val2);
22320 ecode3 = SWIG_AsVal_int(obj2, &val3);
22321 if (!SWIG_IsOK(ecode3)) {
22322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22323 }
22324 arg3 = static_cast< int >(val3);
22325 {
22326 PyThreadState* __tstate = wxPyBeginAllowThreads();
22327 (arg1)->CalcBoundingBox(arg2,arg3);
22328 wxPyEndAllowThreads(__tstate);
22329 if (PyErr_Occurred()) SWIG_fail;
22330 }
22331 resultobj = SWIG_Py_Void();
22332 return resultobj;
22333fail:
22334 return NULL;
22335}
22336
22337
22338SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22339 PyObject *resultobj = 0;
22340 wxDC *arg1 = (wxDC *) 0 ;
22341 wxPoint *arg2 = 0 ;
22342 void *argp1 = 0 ;
22343 int res1 = 0 ;
22344 wxPoint temp2 ;
22345 PyObject * obj0 = 0 ;
22346 PyObject * obj1 = 0 ;
22347 char * kwnames[] = {
22348 (char *) "self",(char *) "point", NULL
22349 };
22350
22351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22353 if (!SWIG_IsOK(res1)) {
22354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22355 }
22356 arg1 = reinterpret_cast< wxDC * >(argp1);
22357 {
22358 arg2 = &temp2;
22359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22360 }
22361 {
22362 PyThreadState* __tstate = wxPyBeginAllowThreads();
22363 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22364 wxPyEndAllowThreads(__tstate);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 resultobj = SWIG_Py_Void();
22368 return resultobj;
22369fail:
22370 return NULL;
22371}
22372
22373
22374SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22375 PyObject *resultobj = 0;
22376 wxDC *arg1 = (wxDC *) 0 ;
22377 void *argp1 = 0 ;
22378 int res1 = 0 ;
22379 PyObject *swig_obj[1] ;
22380
22381 if (!args) SWIG_fail;
22382 swig_obj[0] = args;
22383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22384 if (!SWIG_IsOK(res1)) {
22385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22386 }
22387 arg1 = reinterpret_cast< wxDC * >(argp1);
22388 {
22389 PyThreadState* __tstate = wxPyBeginAllowThreads();
22390 (arg1)->ResetBoundingBox();
22391 wxPyEndAllowThreads(__tstate);
22392 if (PyErr_Occurred()) SWIG_fail;
22393 }
22394 resultobj = SWIG_Py_Void();
22395 return resultobj;
22396fail:
22397 return NULL;
22398}
22399
22400
22401SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22402 PyObject *resultobj = 0;
22403 wxDC *arg1 = (wxDC *) 0 ;
22404 int result;
22405 void *argp1 = 0 ;
22406 int res1 = 0 ;
22407 PyObject *swig_obj[1] ;
22408
22409 if (!args) SWIG_fail;
22410 swig_obj[0] = args;
22411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22412 if (!SWIG_IsOK(res1)) {
22413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22414 }
22415 arg1 = reinterpret_cast< wxDC * >(argp1);
22416 {
22417 PyThreadState* __tstate = wxPyBeginAllowThreads();
22418 result = (int)((wxDC const *)arg1)->MinX();
22419 wxPyEndAllowThreads(__tstate);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 }
22422 resultobj = SWIG_From_int(static_cast< int >(result));
22423 return resultobj;
22424fail:
22425 return NULL;
22426}
22427
22428
22429SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22430 PyObject *resultobj = 0;
22431 wxDC *arg1 = (wxDC *) 0 ;
22432 int result;
22433 void *argp1 = 0 ;
22434 int res1 = 0 ;
22435 PyObject *swig_obj[1] ;
22436
22437 if (!args) SWIG_fail;
22438 swig_obj[0] = args;
22439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22442 }
22443 arg1 = reinterpret_cast< wxDC * >(argp1);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 result = (int)((wxDC const *)arg1)->MaxX();
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = SWIG_From_int(static_cast< int >(result));
22451 return resultobj;
22452fail:
22453 return NULL;
22454}
22455
22456
22457SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22458 PyObject *resultobj = 0;
22459 wxDC *arg1 = (wxDC *) 0 ;
22460 int result;
22461 void *argp1 = 0 ;
22462 int res1 = 0 ;
22463 PyObject *swig_obj[1] ;
22464
22465 if (!args) SWIG_fail;
22466 swig_obj[0] = args;
22467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22468 if (!SWIG_IsOK(res1)) {
22469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22470 }
22471 arg1 = reinterpret_cast< wxDC * >(argp1);
22472 {
22473 PyThreadState* __tstate = wxPyBeginAllowThreads();
22474 result = (int)((wxDC const *)arg1)->MinY();
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 resultobj = SWIG_From_int(static_cast< int >(result));
22479 return resultobj;
22480fail:
22481 return NULL;
22482}
22483
22484
22485SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22486 PyObject *resultobj = 0;
22487 wxDC *arg1 = (wxDC *) 0 ;
22488 int result;
22489 void *argp1 = 0 ;
22490 int res1 = 0 ;
22491 PyObject *swig_obj[1] ;
22492
22493 if (!args) SWIG_fail;
22494 swig_obj[0] = args;
22495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22496 if (!SWIG_IsOK(res1)) {
22497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22498 }
22499 arg1 = reinterpret_cast< wxDC * >(argp1);
22500 {
22501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22502 result = (int)((wxDC const *)arg1)->MaxY();
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 resultobj = SWIG_From_int(static_cast< int >(result));
22507 return resultobj;
22508fail:
22509 return NULL;
22510}
22511
22512
22513SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22514 PyObject *resultobj = 0;
22515 wxDC *arg1 = (wxDC *) 0 ;
22516 int *arg2 = (int *) 0 ;
22517 int *arg3 = (int *) 0 ;
22518 int *arg4 = (int *) 0 ;
22519 int *arg5 = (int *) 0 ;
22520 void *argp1 = 0 ;
22521 int res1 = 0 ;
22522 int temp2 ;
22523 int res2 = SWIG_TMPOBJ ;
22524 int temp3 ;
22525 int res3 = SWIG_TMPOBJ ;
22526 int temp4 ;
22527 int res4 = SWIG_TMPOBJ ;
22528 int temp5 ;
22529 int res5 = SWIG_TMPOBJ ;
22530 PyObject *swig_obj[1] ;
22531
22532 arg2 = &temp2;
22533 arg3 = &temp3;
22534 arg4 = &temp4;
22535 arg5 = &temp5;
22536 if (!args) SWIG_fail;
22537 swig_obj[0] = args;
22538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22539 if (!SWIG_IsOK(res1)) {
22540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22541 }
22542 arg1 = reinterpret_cast< wxDC * >(argp1);
22543 {
22544 PyThreadState* __tstate = wxPyBeginAllowThreads();
22545 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 resultobj = SWIG_Py_Void();
22550 if (SWIG_IsTmpObj(res2)) {
22551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22552 } else {
22553 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22555 }
22556 if (SWIG_IsTmpObj(res3)) {
22557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22558 } else {
22559 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22561 }
22562 if (SWIG_IsTmpObj(res4)) {
22563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22564 } else {
22565 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22567 }
22568 if (SWIG_IsTmpObj(res5)) {
22569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22570 } else {
22571 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22573 }
22574 return resultobj;
22575fail:
22576 return NULL;
22577}
22578
22579
22580SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22581 PyObject *resultobj = 0;
22582 wxDC *arg1 = (wxDC *) 0 ;
22583 PyObject *arg2 = (PyObject *) 0 ;
22584 PyObject *arg3 = (PyObject *) 0 ;
22585 PyObject *arg4 = (PyObject *) 0 ;
22586 PyObject *result = 0 ;
22587 void *argp1 = 0 ;
22588 int res1 = 0 ;
22589 PyObject * obj0 = 0 ;
22590 PyObject * obj1 = 0 ;
22591 PyObject * obj2 = 0 ;
22592 PyObject * obj3 = 0 ;
22593 char * kwnames[] = {
22594 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22595 };
22596
22597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22599 if (!SWIG_IsOK(res1)) {
22600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22601 }
22602 arg1 = reinterpret_cast< wxDC * >(argp1);
22603 arg2 = obj1;
22604 arg3 = obj2;
22605 arg4 = obj3;
22606 {
22607 PyThreadState* __tstate = wxPyBeginAllowThreads();
22608 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 resultobj = result;
22613 return resultobj;
22614fail:
22615 return NULL;
22616}
22617
22618
22619SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22620 PyObject *resultobj = 0;
22621 wxDC *arg1 = (wxDC *) 0 ;
22622 PyObject *arg2 = (PyObject *) 0 ;
22623 PyObject *arg3 = (PyObject *) 0 ;
22624 PyObject *arg4 = (PyObject *) 0 ;
22625 PyObject *result = 0 ;
22626 void *argp1 = 0 ;
22627 int res1 = 0 ;
22628 PyObject * obj0 = 0 ;
22629 PyObject * obj1 = 0 ;
22630 PyObject * obj2 = 0 ;
22631 PyObject * obj3 = 0 ;
22632 char * kwnames[] = {
22633 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22634 };
22635
22636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22638 if (!SWIG_IsOK(res1)) {
22639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22640 }
22641 arg1 = reinterpret_cast< wxDC * >(argp1);
22642 arg2 = obj1;
22643 arg3 = obj2;
22644 arg4 = obj3;
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 resultobj = result;
22652 return resultobj;
22653fail:
22654 return NULL;
22655}
22656
22657
22658SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj = 0;
22660 wxDC *arg1 = (wxDC *) 0 ;
22661 PyObject *arg2 = (PyObject *) 0 ;
22662 PyObject *arg3 = (PyObject *) 0 ;
22663 PyObject *arg4 = (PyObject *) 0 ;
22664 PyObject *result = 0 ;
22665 void *argp1 = 0 ;
22666 int res1 = 0 ;
22667 PyObject * obj0 = 0 ;
22668 PyObject * obj1 = 0 ;
22669 PyObject * obj2 = 0 ;
22670 PyObject * obj3 = 0 ;
22671 char * kwnames[] = {
22672 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22673 };
22674
22675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22677 if (!SWIG_IsOK(res1)) {
22678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22679 }
22680 arg1 = reinterpret_cast< wxDC * >(argp1);
22681 arg2 = obj1;
22682 arg3 = obj2;
22683 arg4 = obj3;
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 resultobj = result;
22691 return resultobj;
22692fail:
22693 return NULL;
22694}
22695
22696
22697SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22698 PyObject *resultobj = 0;
22699 wxDC *arg1 = (wxDC *) 0 ;
22700 PyObject *arg2 = (PyObject *) 0 ;
22701 PyObject *arg3 = (PyObject *) 0 ;
22702 PyObject *arg4 = (PyObject *) 0 ;
22703 PyObject *result = 0 ;
22704 void *argp1 = 0 ;
22705 int res1 = 0 ;
22706 PyObject * obj0 = 0 ;
22707 PyObject * obj1 = 0 ;
22708 PyObject * obj2 = 0 ;
22709 PyObject * obj3 = 0 ;
22710 char * kwnames[] = {
22711 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22712 };
22713
22714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22716 if (!SWIG_IsOK(res1)) {
22717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22718 }
22719 arg1 = reinterpret_cast< wxDC * >(argp1);
22720 arg2 = obj1;
22721 arg3 = obj2;
22722 arg4 = obj3;
22723 {
22724 PyThreadState* __tstate = wxPyBeginAllowThreads();
22725 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22726 wxPyEndAllowThreads(__tstate);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 }
22729 resultobj = result;
22730 return resultobj;
22731fail:
22732 return NULL;
22733}
22734
22735
22736SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22737 PyObject *resultobj = 0;
22738 wxDC *arg1 = (wxDC *) 0 ;
22739 PyObject *arg2 = (PyObject *) 0 ;
22740 PyObject *arg3 = (PyObject *) 0 ;
22741 PyObject *arg4 = (PyObject *) 0 ;
22742 PyObject *result = 0 ;
22743 void *argp1 = 0 ;
22744 int res1 = 0 ;
22745 PyObject * obj0 = 0 ;
22746 PyObject * obj1 = 0 ;
22747 PyObject * obj2 = 0 ;
22748 PyObject * obj3 = 0 ;
22749 char * kwnames[] = {
22750 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22751 };
22752
22753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22755 if (!SWIG_IsOK(res1)) {
22756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22757 }
22758 arg1 = reinterpret_cast< wxDC * >(argp1);
22759 arg2 = obj1;
22760 arg3 = obj2;
22761 arg4 = obj3;
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = result;
22769 return resultobj;
22770fail:
22771 return NULL;
22772}
22773
22774
22775SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22776 PyObject *resultobj = 0;
22777 wxDC *arg1 = (wxDC *) 0 ;
22778 PyObject *arg2 = (PyObject *) 0 ;
22779 PyObject *arg3 = (PyObject *) 0 ;
22780 PyObject *arg4 = (PyObject *) 0 ;
22781 PyObject *arg5 = (PyObject *) 0 ;
22782 PyObject *result = 0 ;
22783 void *argp1 = 0 ;
22784 int res1 = 0 ;
22785 PyObject * obj0 = 0 ;
22786 PyObject * obj1 = 0 ;
22787 PyObject * obj2 = 0 ;
22788 PyObject * obj3 = 0 ;
22789 PyObject * obj4 = 0 ;
22790 char * kwnames[] = {
22791 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22792 };
22793
22794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22796 if (!SWIG_IsOK(res1)) {
22797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22798 }
22799 arg1 = reinterpret_cast< wxDC * >(argp1);
22800 arg2 = obj1;
22801 arg3 = obj2;
22802 arg4 = obj3;
22803 arg5 = obj4;
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 resultobj = result;
22811 return resultobj;
22812fail:
22813 return NULL;
22814}
22815
22816
22817SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22818 PyObject *obj;
22819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22820 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22821 return SWIG_Py_Void();
22822}
22823
22824SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22825 PyObject *resultobj = 0;
22826 wxMemoryDC *result = 0 ;
22827
22828 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22829 {
22830 if (!wxPyCheckForApp()) SWIG_fail;
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (wxMemoryDC *)new wxMemoryDC();
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22837 return resultobj;
22838fail:
22839 return NULL;
22840}
22841
22842
22843SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj = 0;
22845 wxDC *arg1 = (wxDC *) 0 ;
22846 wxMemoryDC *result = 0 ;
22847 void *argp1 = 0 ;
22848 int res1 = 0 ;
22849 PyObject * obj0 = 0 ;
22850 char * kwnames[] = {
22851 (char *) "oldDC", NULL
22852 };
22853
22854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22856 if (!SWIG_IsOK(res1)) {
22857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22858 }
22859 arg1 = reinterpret_cast< wxDC * >(argp1);
22860 {
22861 if (!wxPyCheckForApp()) SWIG_fail;
22862 PyThreadState* __tstate = wxPyBeginAllowThreads();
22863 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22864 wxPyEndAllowThreads(__tstate);
22865 if (PyErr_Occurred()) SWIG_fail;
22866 }
22867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22868 return resultobj;
22869fail:
22870 return NULL;
22871}
22872
22873
22874SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22875 PyObject *resultobj = 0;
22876 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22877 wxBitmap *arg2 = 0 ;
22878 void *argp1 = 0 ;
22879 int res1 = 0 ;
22880 void *argp2 = 0 ;
22881 int res2 = 0 ;
22882 PyObject * obj0 = 0 ;
22883 PyObject * obj1 = 0 ;
22884 char * kwnames[] = {
22885 (char *) "self",(char *) "bitmap", NULL
22886 };
22887
22888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22890 if (!SWIG_IsOK(res1)) {
22891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22892 }
22893 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22895 if (!SWIG_IsOK(res2)) {
22896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22897 }
22898 if (!argp2) {
22899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22900 }
22901 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 (arg1)->SelectObject((wxBitmap const &)*arg2);
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 resultobj = SWIG_Py_Void();
22909 return resultobj;
22910fail:
22911 return NULL;
22912}
22913
22914
22915SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22916 PyObject *obj;
22917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22918 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22919 return SWIG_Py_Void();
22920}
22921
22922SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22923 return SWIG_Python_InitShadowInstance(args);
22924}
22925
22926SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22927 PyObject *resultobj = 0;
22928 wxDC *arg1 = (wxDC *) 0 ;
22929 wxBitmap const &arg2_defvalue = wxNullBitmap ;
22930 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
22931 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22932 wxBufferedDC *result = 0 ;
22933 void *argp1 = 0 ;
22934 int res1 = 0 ;
22935 void *argp2 = 0 ;
22936 int res2 = 0 ;
22937 int val3 ;
22938 int ecode3 = 0 ;
22939
22940 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
22941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22942 if (!SWIG_IsOK(res1)) {
22943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22944 }
22945 arg1 = reinterpret_cast< wxDC * >(argp1);
22946 if (swig_obj[1]) {
22947 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22948 if (!SWIG_IsOK(res2)) {
22949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 22950 }
0085ce49
RD
22951 if (!argp2) {
22952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 22953 }
0085ce49
RD
22954 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22955 }
22956 if (swig_obj[2]) {
22957 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22958 if (!SWIG_IsOK(ecode3)) {
22959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22960 }
22961 arg3 = static_cast< int >(val3);
22962 }
22963 {
22964 if (!wxPyCheckForApp()) SWIG_fail;
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22971 return resultobj;
22972fail:
22973 return NULL;
22974}
22975
22976
22977SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22978 PyObject *resultobj = 0;
22979 wxDC *arg1 = (wxDC *) 0 ;
22980 wxSize *arg2 = 0 ;
22981 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22982 wxBufferedDC *result = 0 ;
22983 void *argp1 = 0 ;
22984 int res1 = 0 ;
22985 wxSize temp2 ;
22986 int val3 ;
22987 int ecode3 = 0 ;
22988
22989 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
22990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22991 if (!SWIG_IsOK(res1)) {
22992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22993 }
22994 arg1 = reinterpret_cast< wxDC * >(argp1);
22995 {
22996 arg2 = &temp2;
22997 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
22998 }
22999 if (swig_obj[2]) {
23000 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23001 if (!SWIG_IsOK(ecode3)) {
23002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23003 }
23004 arg3 = static_cast< int >(val3);
23005 }
23006 {
23007 if (!wxPyCheckForApp()) SWIG_fail;
23008 PyThreadState* __tstate = wxPyBeginAllowThreads();
23009 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23014 return resultobj;
23015fail:
23016 return NULL;
23017}
23018
23019
23020SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23021 int argc;
23022 PyObject *argv[4];
23023
23024 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23025 --argc;
23026 if ((argc >= 1) && (argc <= 3)) {
23027 int _v = 0;
23028 if (argc > 1) {
23029 {
23030 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23031 _v = SWIG_CheckState(res);
23032 }
23033 if (!_v) goto check_1;
093d3ff1 23034 }
0085ce49
RD
23035 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23036 }
23037check_1:
23038
23039 if ((argc >= 2) && (argc <= 3)) {
23040 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23041 }
23042
23043fail:
23044 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23045 return NULL;
23046}
23047
23048
23049SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23050 PyObject *resultobj = 0;
23051 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23052 void *argp1 = 0 ;
23053 int res1 = 0 ;
23054 PyObject *swig_obj[1] ;
23055
23056 if (!args) SWIG_fail;
23057 swig_obj[0] = args;
23058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23059 if (!SWIG_IsOK(res1)) {
23060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23061 }
23062 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23063 {
23064 PyThreadState* __tstate = wxPyBeginAllowThreads();
23065 delete arg1;
23066
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 resultobj = SWIG_Py_Void();
23071 return resultobj;
23072fail:
23073 return NULL;
23074}
23075
23076
23077SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23078 PyObject *resultobj = 0;
23079 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23080 void *argp1 = 0 ;
23081 int res1 = 0 ;
23082 PyObject *swig_obj[1] ;
23083
23084 if (!args) SWIG_fail;
23085 swig_obj[0] = args;
23086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23087 if (!SWIG_IsOK(res1)) {
23088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23089 }
23090 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23091 {
23092 PyThreadState* __tstate = wxPyBeginAllowThreads();
23093 (arg1)->UnMask();
23094 wxPyEndAllowThreads(__tstate);
23095 if (PyErr_Occurred()) SWIG_fail;
23096 }
23097 resultobj = SWIG_Py_Void();
23098 return resultobj;
23099fail:
23100 return NULL;
23101}
23102
23103
23104SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23105 PyObject *obj;
23106 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23107 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23108 return SWIG_Py_Void();
23109}
23110
23111SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23112 return SWIG_Python_InitShadowInstance(args);
23113}
23114
23115SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23116 PyObject *resultobj = 0;
23117 wxWindow *arg1 = (wxWindow *) 0 ;
23118 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23119 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23120 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23121 wxBufferedPaintDC *result = 0 ;
23122 void *argp1 = 0 ;
23123 int res1 = 0 ;
23124 void *argp2 = 0 ;
23125 int res2 = 0 ;
23126 int val3 ;
23127 int ecode3 = 0 ;
23128 PyObject * obj0 = 0 ;
23129 PyObject * obj1 = 0 ;
23130 PyObject * obj2 = 0 ;
23131 char * kwnames[] = {
23132 (char *) "window",(char *) "buffer",(char *) "style", NULL
23133 };
23134
23135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23137 if (!SWIG_IsOK(res1)) {
23138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23139 }
23140 arg1 = reinterpret_cast< wxWindow * >(argp1);
23141 if (obj1) {
23142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23143 if (!SWIG_IsOK(res2)) {
23144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23145 }
0085ce49
RD
23146 if (!argp2) {
23147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23148 }
0085ce49
RD
23149 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23150 }
23151 if (obj2) {
23152 ecode3 = SWIG_AsVal_int(obj2, &val3);
23153 if (!SWIG_IsOK(ecode3)) {
23154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23155 }
23156 arg3 = static_cast< int >(val3);
23157 }
23158 {
23159 if (!wxPyCheckForApp()) SWIG_fail;
23160 PyThreadState* __tstate = wxPyBeginAllowThreads();
23161 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23162 wxPyEndAllowThreads(__tstate);
23163 if (PyErr_Occurred()) SWIG_fail;
23164 }
23165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23166 return resultobj;
23167fail:
23168 return NULL;
23169}
23170
23171
23172SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23173 PyObject *obj;
23174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23175 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23176 return SWIG_Py_Void();
23177}
23178
23179SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23180 return SWIG_Python_InitShadowInstance(args);
23181}
23182
23183SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23184 PyObject *resultobj = 0;
23185 wxScreenDC *result = 0 ;
23186
23187 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23188 {
23189 if (!wxPyCheckForApp()) SWIG_fail;
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = (wxScreenDC *)new wxScreenDC();
23192 wxPyEndAllowThreads(__tstate);
23193 if (PyErr_Occurred()) SWIG_fail;
23194 }
23195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23196 return resultobj;
23197fail:
23198 return NULL;
23199}
23200
23201
23202SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23203 PyObject *resultobj = 0;
23204 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23205 wxWindow *arg2 = (wxWindow *) 0 ;
23206 bool result;
23207 void *argp1 = 0 ;
23208 int res1 = 0 ;
23209 void *argp2 = 0 ;
23210 int res2 = 0 ;
23211 PyObject * obj0 = 0 ;
23212 PyObject * obj1 = 0 ;
23213 char * kwnames[] = {
23214 (char *) "self",(char *) "window", NULL
23215 };
23216
23217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23219 if (!SWIG_IsOK(res1)) {
23220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23221 }
23222 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23223 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23224 if (!SWIG_IsOK(res2)) {
23225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23226 }
23227 arg2 = reinterpret_cast< wxWindow * >(argp2);
23228 {
23229 PyThreadState* __tstate = wxPyBeginAllowThreads();
23230 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23231 wxPyEndAllowThreads(__tstate);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 }
23234 {
23235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23236 }
23237 return resultobj;
23238fail:
23239 return NULL;
23240}
23241
23242
23243SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23244 PyObject *resultobj = 0;
23245 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23246 wxRect *arg2 = (wxRect *) NULL ;
23247 bool result;
23248 void *argp1 = 0 ;
23249 int res1 = 0 ;
23250 void *argp2 = 0 ;
23251 int res2 = 0 ;
23252 PyObject * obj0 = 0 ;
23253 PyObject * obj1 = 0 ;
23254 char * kwnames[] = {
23255 (char *) "self",(char *) "rect", NULL
23256 };
23257
23258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23260 if (!SWIG_IsOK(res1)) {
23261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23262 }
23263 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23264 if (obj1) {
23265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23266 if (!SWIG_IsOK(res2)) {
23267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 23268 }
0085ce49
RD
23269 arg2 = reinterpret_cast< wxRect * >(argp2);
23270 }
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 {
23278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23279 }
23280 return resultobj;
23281fail:
23282 return NULL;
23283}
23284
23285
23286SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23287 PyObject *resultobj = 0;
23288 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23289 bool result;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 PyObject *swig_obj[1] ;
23293
23294 if (!args) SWIG_fail;
23295 swig_obj[0] = args;
23296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23297 if (!SWIG_IsOK(res1)) {
23298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23299 }
23300 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23301 {
23302 PyThreadState* __tstate = wxPyBeginAllowThreads();
23303 result = (bool)(arg1)->EndDrawingOnTop();
23304 wxPyEndAllowThreads(__tstate);
23305 if (PyErr_Occurred()) SWIG_fail;
23306 }
23307 {
23308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23309 }
23310 return resultobj;
23311fail:
23312 return NULL;
23313}
23314
23315
23316SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23317 PyObject *obj;
23318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23319 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23320 return SWIG_Py_Void();
23321}
23322
23323SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23324 return SWIG_Python_InitShadowInstance(args);
23325}
23326
23327SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23328 PyObject *resultobj = 0;
23329 wxWindow *arg1 = (wxWindow *) 0 ;
23330 wxClientDC *result = 0 ;
23331 void *argp1 = 0 ;
23332 int res1 = 0 ;
23333 PyObject * obj0 = 0 ;
23334 char * kwnames[] = {
23335 (char *) "win", NULL
23336 };
23337
23338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23342 }
23343 arg1 = reinterpret_cast< wxWindow * >(argp1);
23344 {
23345 if (!wxPyCheckForApp()) SWIG_fail;
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 result = (wxClientDC *)new wxClientDC(arg1);
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23352 return resultobj;
23353fail:
23354 return NULL;
23355}
23356
23357
23358SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23359 PyObject *obj;
23360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23361 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23362 return SWIG_Py_Void();
23363}
23364
23365SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23366 return SWIG_Python_InitShadowInstance(args);
23367}
23368
23369SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23370 PyObject *resultobj = 0;
23371 wxWindow *arg1 = (wxWindow *) 0 ;
23372 wxPaintDC *result = 0 ;
23373 void *argp1 = 0 ;
23374 int res1 = 0 ;
23375 PyObject * obj0 = 0 ;
23376 char * kwnames[] = {
23377 (char *) "win", NULL
23378 };
23379
23380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23382 if (!SWIG_IsOK(res1)) {
23383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23384 }
23385 arg1 = reinterpret_cast< wxWindow * >(argp1);
23386 {
23387 if (!wxPyCheckForApp()) SWIG_fail;
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 result = (wxPaintDC *)new wxPaintDC(arg1);
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23394 return resultobj;
23395fail:
23396 return NULL;
23397}
23398
23399
23400SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23401 PyObject *obj;
23402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23403 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23404 return SWIG_Py_Void();
23405}
23406
23407SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23408 return SWIG_Python_InitShadowInstance(args);
23409}
23410
23411SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23412 PyObject *resultobj = 0;
23413 wxWindow *arg1 = (wxWindow *) 0 ;
23414 wxWindowDC *result = 0 ;
23415 void *argp1 = 0 ;
23416 int res1 = 0 ;
23417 PyObject * obj0 = 0 ;
23418 char * kwnames[] = {
23419 (char *) "win", NULL
23420 };
23421
23422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23424 if (!SWIG_IsOK(res1)) {
23425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23426 }
23427 arg1 = reinterpret_cast< wxWindow * >(argp1);
23428 {
23429 if (!wxPyCheckForApp()) SWIG_fail;
23430 PyThreadState* __tstate = wxPyBeginAllowThreads();
23431 result = (wxWindowDC *)new wxWindowDC(arg1);
23432 wxPyEndAllowThreads(__tstate);
23433 if (PyErr_Occurred()) SWIG_fail;
23434 }
23435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23436 return resultobj;
23437fail:
23438 return NULL;
23439}
23440
23441
23442SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23443 PyObject *obj;
23444 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23445 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23446 return SWIG_Py_Void();
23447}
23448
23449SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23450 return SWIG_Python_InitShadowInstance(args);
23451}
23452
23453SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23454 PyObject *resultobj = 0;
23455 wxDC *arg1 = 0 ;
23456 bool arg2 ;
23457 wxMirrorDC *result = 0 ;
23458 void *argp1 = 0 ;
23459 int res1 = 0 ;
23460 bool val2 ;
23461 int ecode2 = 0 ;
23462 PyObject * obj0 = 0 ;
23463 PyObject * obj1 = 0 ;
23464 char * kwnames[] = {
23465 (char *) "dc",(char *) "mirror", NULL
23466 };
23467
23468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23469 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23470 if (!SWIG_IsOK(res1)) {
23471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23472 }
23473 if (!argp1) {
23474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23475 }
23476 arg1 = reinterpret_cast< wxDC * >(argp1);
23477 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23478 if (!SWIG_IsOK(ecode2)) {
23479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23480 }
23481 arg2 = static_cast< bool >(val2);
23482 {
23483 if (!wxPyCheckForApp()) SWIG_fail;
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23490 return resultobj;
23491fail:
23492 return NULL;
23493}
23494
23495
23496SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23497 PyObject *obj;
23498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23499 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23500 return SWIG_Py_Void();
23501}
23502
23503SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23504 return SWIG_Python_InitShadowInstance(args);
23505}
23506
23507SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj = 0;
23509 wxPrintData *arg1 = 0 ;
23510 wxPostScriptDC *result = 0 ;
23511 void *argp1 = 0 ;
23512 int res1 = 0 ;
23513 PyObject * obj0 = 0 ;
23514 char * kwnames[] = {
23515 (char *) "printData", NULL
23516 };
23517
23518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23519 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23522 }
23523 if (!argp1) {
23524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23525 }
23526 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23527 {
23528 if (!wxPyCheckForApp()) SWIG_fail;
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23531 wxPyEndAllowThreads(__tstate);
23532 if (PyErr_Occurred()) SWIG_fail;
23533 }
23534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23535 return resultobj;
23536fail:
23537 return NULL;
23538}
23539
23540
23541SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23542 PyObject *resultobj = 0;
23543 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23544 wxPrintData *result = 0 ;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 PyObject *swig_obj[1] ;
23548
23549 if (!args) SWIG_fail;
23550 swig_obj[0] = args;
23551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23554 }
23555 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23558 {
0085ce49
RD
23559 wxPrintData &_result_ref = (arg1)->GetPrintData();
23560 result = (wxPrintData *) &_result_ref;
e2950dbb 23561 }
0085ce49
RD
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23566 return resultobj;
23567fail:
23568 return NULL;
23569}
23570
23571
23572SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23573 PyObject *resultobj = 0;
23574 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23575 wxPrintData *arg2 = 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 void *argp2 = 0 ;
23579 int res2 = 0 ;
23580 PyObject * obj0 = 0 ;
23581 PyObject * obj1 = 0 ;
23582 char * kwnames[] = {
23583 (char *) "self",(char *) "data", NULL
23584 };
23585
23586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23588 if (!SWIG_IsOK(res1)) {
23589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23590 }
23591 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23593 if (!SWIG_IsOK(res2)) {
23594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23595 }
23596 if (!argp2) {
23597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23598 }
23599 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 resultobj = SWIG_Py_Void();
23607 return resultobj;
23608fail:
23609 return NULL;
23610}
23611
23612
23613SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj = 0;
23615 int arg1 ;
23616 int val1 ;
23617 int ecode1 = 0 ;
23618 PyObject * obj0 = 0 ;
23619 char * kwnames[] = {
23620 (char *) "ppi", NULL
23621 };
23622
23623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23624 ecode1 = SWIG_AsVal_int(obj0, &val1);
23625 if (!SWIG_IsOK(ecode1)) {
23626 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23627 }
23628 arg1 = static_cast< int >(val1);
23629 {
23630 PyThreadState* __tstate = wxPyBeginAllowThreads();
23631 wxPostScriptDC::SetResolution(arg1);
23632 wxPyEndAllowThreads(__tstate);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 resultobj = SWIG_Py_Void();
23636 return resultobj;
23637fail:
23638 return NULL;
23639}
23640
23641
23642SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23643 PyObject *resultobj = 0;
23644 int result;
23645
23646 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
23649 result = (int)wxPostScriptDC::GetResolution();
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 resultobj = SWIG_From_int(static_cast< int >(result));
23654 return resultobj;
23655fail:
23656 return NULL;
23657}
23658
23659
23660SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23661 PyObject *obj;
23662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23663 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23664 return SWIG_Py_Void();
23665}
23666
23667SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23668 return SWIG_Python_InitShadowInstance(args);
23669}
23670
23671SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23672 PyObject *resultobj = 0;
23673 wxString const &arg1_defvalue = wxPyEmptyString ;
23674 wxString *arg1 = (wxString *) &arg1_defvalue ;
23675 wxMetaFile *result = 0 ;
23676 bool temp1 = false ;
23677 PyObject * obj0 = 0 ;
23678 char * kwnames[] = {
23679 (char *) "filename", NULL
23680 };
23681
23682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23683 if (obj0) {
093d3ff1 23684 {
0085ce49
RD
23685 arg1 = wxString_in_helper(obj0);
23686 if (arg1 == NULL) SWIG_fail;
23687 temp1 = true;
093d3ff1 23688 }
0085ce49
RD
23689 }
23690 {
23691 if (!wxPyCheckForApp()) SWIG_fail;
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23694 wxPyEndAllowThreads(__tstate);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 }
23697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23698 {
23699 if (temp1)
23700 delete arg1;
23701 }
23702 return resultobj;
23703fail:
23704 {
23705 if (temp1)
23706 delete arg1;
23707 }
23708 return NULL;
23709}
23710
23711
23712SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23713 PyObject *obj;
23714 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23715 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23716 return SWIG_Py_Void();
23717}
23718
23719SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23720 return SWIG_Python_InitShadowInstance(args);
23721}
23722
23723SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23724 PyObject *resultobj = 0;
23725 wxString const &arg1_defvalue = wxPyEmptyString ;
23726 wxString *arg1 = (wxString *) &arg1_defvalue ;
23727 int arg2 = (int) 0 ;
23728 int arg3 = (int) 0 ;
23729 wxString const &arg4_defvalue = wxPyEmptyString ;
23730 wxString *arg4 = (wxString *) &arg4_defvalue ;
23731 wxMetaFileDC *result = 0 ;
23732 bool temp1 = false ;
23733 int val2 ;
23734 int ecode2 = 0 ;
23735 int val3 ;
23736 int ecode3 = 0 ;
23737 bool temp4 = false ;
23738 PyObject * obj0 = 0 ;
23739 PyObject * obj1 = 0 ;
23740 PyObject * obj2 = 0 ;
23741 PyObject * obj3 = 0 ;
23742 char * kwnames[] = {
23743 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23744 };
23745
23746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23747 if (obj0) {
093d3ff1 23748 {
0085ce49
RD
23749 arg1 = wxString_in_helper(obj0);
23750 if (arg1 == NULL) SWIG_fail;
23751 temp1 = true;
093d3ff1 23752 }
0085ce49
RD
23753 }
23754 if (obj1) {
23755 ecode2 = SWIG_AsVal_int(obj1, &val2);
23756 if (!SWIG_IsOK(ecode2)) {
23757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23758 }
23759 arg2 = static_cast< int >(val2);
23760 }
23761 if (obj2) {
23762 ecode3 = SWIG_AsVal_int(obj2, &val3);
23763 if (!SWIG_IsOK(ecode3)) {
23764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23765 }
23766 arg3 = static_cast< int >(val3);
23767 }
23768 if (obj3) {
093d3ff1 23769 {
0085ce49
RD
23770 arg4 = wxString_in_helper(obj3);
23771 if (arg4 == NULL) SWIG_fail;
23772 temp4 = true;
093d3ff1 23773 }
0085ce49
RD
23774 }
23775 {
23776 if (!wxPyCheckForApp()) SWIG_fail;
23777 PyThreadState* __tstate = wxPyBeginAllowThreads();
23778 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23783 {
23784 if (temp1)
23785 delete arg1;
23786 }
23787 {
23788 if (temp4)
23789 delete arg4;
23790 }
23791 return resultobj;
23792fail:
23793 {
23794 if (temp1)
23795 delete arg1;
23796 }
23797 {
23798 if (temp4)
23799 delete arg4;
23800 }
23801 return NULL;
23802}
23803
23804
23805SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23806 PyObject *obj;
23807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23808 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
23809 return SWIG_Py_Void();
23810}
23811
23812SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23813 return SWIG_Python_InitShadowInstance(args);
23814}
23815
23816SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj = 0;
23818 wxPrintData *arg1 = 0 ;
23819 wxPrinterDC *result = 0 ;
23820 void *argp1 = 0 ;
23821 int res1 = 0 ;
23822 PyObject * obj0 = 0 ;
23823 char * kwnames[] = {
23824 (char *) "printData", NULL
23825 };
23826
23827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
23828 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23829 if (!SWIG_IsOK(res1)) {
23830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23831 }
23832 if (!argp1) {
23833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23834 }
23835 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23836 {
23837 if (!wxPyCheckForApp()) SWIG_fail;
23838 PyThreadState* __tstate = wxPyBeginAllowThreads();
23839 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
23844 return resultobj;
23845fail:
23846 return NULL;
23847}
23848
23849
23850SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23851 PyObject *obj;
23852 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23853 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
23854 return SWIG_Py_Void();
23855}
23856
23857SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23858 return SWIG_Python_InitShadowInstance(args);
23859}
23860
23861SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23862 PyObject *resultobj = 0;
23863 int arg1 ;
23864 int arg2 ;
23865 int arg3 = (int) true ;
23866 int arg4 = (int) 1 ;
23867 wxImageList *result = 0 ;
23868 int val1 ;
23869 int ecode1 = 0 ;
23870 int val2 ;
23871 int ecode2 = 0 ;
23872 int val3 ;
23873 int ecode3 = 0 ;
23874 int val4 ;
23875 int ecode4 = 0 ;
23876 PyObject * obj0 = 0 ;
23877 PyObject * obj1 = 0 ;
23878 PyObject * obj2 = 0 ;
23879 PyObject * obj3 = 0 ;
23880 char * kwnames[] = {
23881 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
23882 };
23883
23884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23885 ecode1 = SWIG_AsVal_int(obj0, &val1);
23886 if (!SWIG_IsOK(ecode1)) {
23887 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
23888 }
23889 arg1 = static_cast< int >(val1);
23890 ecode2 = SWIG_AsVal_int(obj1, &val2);
23891 if (!SWIG_IsOK(ecode2)) {
23892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
23893 }
23894 arg2 = static_cast< int >(val2);
23895 if (obj2) {
23896 ecode3 = SWIG_AsVal_int(obj2, &val3);
23897 if (!SWIG_IsOK(ecode3)) {
23898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
23899 }
23900 arg3 = static_cast< int >(val3);
23901 }
23902 if (obj3) {
23903 ecode4 = SWIG_AsVal_int(obj3, &val4);
23904 if (!SWIG_IsOK(ecode4)) {
23905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
23906 }
23907 arg4 = static_cast< int >(val4);
23908 }
23909 {
23910 if (!wxPyCheckForApp()) SWIG_fail;
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 {
23917 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
23918 }
23919 return resultobj;
23920fail:
23921 return NULL;
23922}
23923
23924
23925SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23926 PyObject *resultobj = 0;
23927 wxImageList *arg1 = (wxImageList *) 0 ;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 PyObject *swig_obj[1] ;
23931
23932 if (!args) SWIG_fail;
23933 swig_obj[0] = args;
23934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
23935 if (!SWIG_IsOK(res1)) {
23936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
23937 }
23938 arg1 = reinterpret_cast< wxImageList * >(argp1);
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 delete arg1;
23942
23943 wxPyEndAllowThreads(__tstate);
23944 if (PyErr_Occurred()) SWIG_fail;
23945 }
23946 resultobj = SWIG_Py_Void();
23947 return resultobj;
23948fail:
23949 return NULL;
23950}
23951
23952
23953SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23954 PyObject *resultobj = 0;
23955 wxImageList *arg1 = (wxImageList *) 0 ;
23956 wxBitmap *arg2 = 0 ;
23957 wxBitmap const &arg3_defvalue = wxNullBitmap ;
23958 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
23959 int result;
23960 void *argp1 = 0 ;
23961 int res1 = 0 ;
23962 void *argp2 = 0 ;
23963 int res2 = 0 ;
23964 void *argp3 = 0 ;
23965 int res3 = 0 ;
23966 PyObject * obj0 = 0 ;
23967 PyObject * obj1 = 0 ;
23968 PyObject * obj2 = 0 ;
23969 char * kwnames[] = {
23970 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
23971 };
23972
23973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
23975 if (!SWIG_IsOK(res1)) {
23976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
23977 }
23978 arg1 = reinterpret_cast< wxImageList * >(argp1);
23979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23980 if (!SWIG_IsOK(res2)) {
23981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23982 }
23983 if (!argp2) {
23984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23985 }
23986 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23987 if (obj2) {
23988 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
23989 if (!SWIG_IsOK(res3)) {
23990 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 23991 }
0085ce49
RD
23992 if (!argp3) {
23993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 23994 }
0085ce49
RD
23995 arg3 = reinterpret_cast< wxBitmap * >(argp3);
23996 }
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 resultobj = SWIG_From_int(static_cast< int >(result));
24004 return resultobj;
24005fail:
24006 return NULL;
24007}
24008
24009
24010SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj = 0;
24012 wxImageList *arg1 = (wxImageList *) 0 ;
24013 wxBitmap *arg2 = 0 ;
24014 wxColour *arg3 = 0 ;
24015 int result;
24016 void *argp1 = 0 ;
24017 int res1 = 0 ;
24018 void *argp2 = 0 ;
24019 int res2 = 0 ;
24020 wxColour temp3 ;
24021 PyObject * obj0 = 0 ;
24022 PyObject * obj1 = 0 ;
24023 PyObject * obj2 = 0 ;
24024 char * kwnames[] = {
24025 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24026 };
24027
24028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24030 if (!SWIG_IsOK(res1)) {
24031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24032 }
24033 arg1 = reinterpret_cast< wxImageList * >(argp1);
24034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24035 if (!SWIG_IsOK(res2)) {
24036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24037 }
24038 if (!argp2) {
24039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24040 }
24041 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24042 {
24043 arg3 = &temp3;
24044 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24045 }
24046 {
24047 PyThreadState* __tstate = wxPyBeginAllowThreads();
24048 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24049 wxPyEndAllowThreads(__tstate);
24050 if (PyErr_Occurred()) SWIG_fail;
24051 }
24052 resultobj = SWIG_From_int(static_cast< int >(result));
24053 return resultobj;
24054fail:
24055 return NULL;
24056}
24057
24058
24059SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24060 PyObject *resultobj = 0;
24061 wxImageList *arg1 = (wxImageList *) 0 ;
24062 wxIcon *arg2 = 0 ;
24063 int result;
24064 void *argp1 = 0 ;
24065 int res1 = 0 ;
24066 void *argp2 = 0 ;
24067 int res2 = 0 ;
24068 PyObject * obj0 = 0 ;
24069 PyObject * obj1 = 0 ;
24070 char * kwnames[] = {
24071 (char *) "self",(char *) "icon", NULL
24072 };
24073
24074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24076 if (!SWIG_IsOK(res1)) {
24077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24078 }
24079 arg1 = reinterpret_cast< wxImageList * >(argp1);
24080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24081 if (!SWIG_IsOK(res2)) {
24082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24083 }
24084 if (!argp2) {
24085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24086 }
24087 arg2 = reinterpret_cast< wxIcon * >(argp2);
24088 {
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 resultobj = SWIG_From_int(static_cast< int >(result));
24095 return resultobj;
24096fail:
24097 return NULL;
24098}
24099
24100
24101SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj = 0;
24103 wxImageList *arg1 = (wxImageList *) 0 ;
24104 int arg2 ;
24105 SwigValueWrapper<wxBitmap > result;
24106 void *argp1 = 0 ;
24107 int res1 = 0 ;
24108 int val2 ;
24109 int ecode2 = 0 ;
24110 PyObject * obj0 = 0 ;
24111 PyObject * obj1 = 0 ;
24112 char * kwnames[] = {
24113 (char *) "self",(char *) "index", NULL
24114 };
24115
24116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24118 if (!SWIG_IsOK(res1)) {
24119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24120 }
24121 arg1 = reinterpret_cast< wxImageList * >(argp1);
24122 ecode2 = SWIG_AsVal_int(obj1, &val2);
24123 if (!SWIG_IsOK(ecode2)) {
24124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24125 }
24126 arg2 = static_cast< int >(val2);
24127 {
24128 PyThreadState* __tstate = wxPyBeginAllowThreads();
24129 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24130 wxPyEndAllowThreads(__tstate);
24131 if (PyErr_Occurred()) SWIG_fail;
24132 }
24133 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24134 return resultobj;
24135fail:
24136 return NULL;
24137}
24138
24139
24140SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24141 PyObject *resultobj = 0;
24142 wxImageList *arg1 = (wxImageList *) 0 ;
24143 int arg2 ;
24144 wxIcon result;
24145 void *argp1 = 0 ;
24146 int res1 = 0 ;
24147 int val2 ;
24148 int ecode2 = 0 ;
24149 PyObject * obj0 = 0 ;
24150 PyObject * obj1 = 0 ;
24151 char * kwnames[] = {
24152 (char *) "self",(char *) "index", NULL
24153 };
24154
24155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24157 if (!SWIG_IsOK(res1)) {
24158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24159 }
24160 arg1 = reinterpret_cast< wxImageList * >(argp1);
24161 ecode2 = SWIG_AsVal_int(obj1, &val2);
24162 if (!SWIG_IsOK(ecode2)) {
24163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24164 }
24165 arg2 = static_cast< int >(val2);
24166 {
24167 PyThreadState* __tstate = wxPyBeginAllowThreads();
24168 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24169 wxPyEndAllowThreads(__tstate);
24170 if (PyErr_Occurred()) SWIG_fail;
24171 }
24172 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24173 return resultobj;
24174fail:
24175 return NULL;
24176}
24177
24178
24179SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24180 PyObject *resultobj = 0;
24181 wxImageList *arg1 = (wxImageList *) 0 ;
24182 int arg2 ;
24183 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
24184 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24185 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
24186 bool result;
24187 void *argp1 = 0 ;
24188 int res1 = 0 ;
24189 int val2 ;
24190 int ecode2 = 0 ;
24191 void *argp3 = 0 ;
24192 int res3 = 0 ;
01f6b6d3
RD
24193 void *argp4 = 0 ;
24194 int res4 = 0 ;
0085ce49
RD
24195 PyObject * obj0 = 0 ;
24196 PyObject * obj1 = 0 ;
24197 PyObject * obj2 = 0 ;
01f6b6d3 24198 PyObject * obj3 = 0 ;
0085ce49 24199 char * kwnames[] = {
01f6b6d3 24200 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
24201 };
24202
01f6b6d3 24203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
24204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24205 if (!SWIG_IsOK(res1)) {
24206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24207 }
24208 arg1 = reinterpret_cast< wxImageList * >(argp1);
24209 ecode2 = SWIG_AsVal_int(obj1, &val2);
24210 if (!SWIG_IsOK(ecode2)) {
24211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24212 }
24213 arg2 = static_cast< int >(val2);
24214 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24215 if (!SWIG_IsOK(res3)) {
24216 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24217 }
24218 if (!argp3) {
24219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24220 }
24221 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
24222 if (obj3) {
24223 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24224 if (!SWIG_IsOK(res4)) {
24225 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24226 }
24227 if (!argp4) {
24228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24229 }
24230 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24231 }
0085ce49
RD
24232 {
24233 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 24234 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
24235 wxPyEndAllowThreads(__tstate);
24236 if (PyErr_Occurred()) SWIG_fail;
24237 }
24238 {
24239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24240 }
24241 return resultobj;
24242fail:
24243 return NULL;
24244}
24245
24246
24247SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24248 PyObject *resultobj = 0;
24249 wxImageList *arg1 = (wxImageList *) 0 ;
24250 int arg2 ;
24251 wxDC *arg3 = 0 ;
24252 int arg4 ;
24253 int arg5 ;
24254 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24255 bool arg7 = (bool) (bool)false ;
24256 bool result;
24257 void *argp1 = 0 ;
24258 int res1 = 0 ;
24259 int val2 ;
24260 int ecode2 = 0 ;
24261 void *argp3 = 0 ;
24262 int res3 = 0 ;
24263 int val4 ;
24264 int ecode4 = 0 ;
24265 int val5 ;
24266 int ecode5 = 0 ;
24267 int val6 ;
24268 int ecode6 = 0 ;
24269 bool val7 ;
24270 int ecode7 = 0 ;
24271 PyObject * obj0 = 0 ;
24272 PyObject * obj1 = 0 ;
24273 PyObject * obj2 = 0 ;
24274 PyObject * obj3 = 0 ;
24275 PyObject * obj4 = 0 ;
24276 PyObject * obj5 = 0 ;
24277 PyObject * obj6 = 0 ;
24278 char * kwnames[] = {
24279 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24280 };
24281
24282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24286 }
24287 arg1 = reinterpret_cast< wxImageList * >(argp1);
24288 ecode2 = SWIG_AsVal_int(obj1, &val2);
24289 if (!SWIG_IsOK(ecode2)) {
24290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24291 }
24292 arg2 = static_cast< int >(val2);
24293 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24294 if (!SWIG_IsOK(res3)) {
24295 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24296 }
24297 if (!argp3) {
24298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24299 }
24300 arg3 = reinterpret_cast< wxDC * >(argp3);
24301 ecode4 = SWIG_AsVal_int(obj3, &val4);
24302 if (!SWIG_IsOK(ecode4)) {
24303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24304 }
24305 arg4 = static_cast< int >(val4);
24306 ecode5 = SWIG_AsVal_int(obj4, &val5);
24307 if (!SWIG_IsOK(ecode5)) {
24308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24309 }
24310 arg5 = static_cast< int >(val5);
24311 if (obj5) {
24312 ecode6 = SWIG_AsVal_int(obj5, &val6);
24313 if (!SWIG_IsOK(ecode6)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24315 }
24316 arg6 = static_cast< int >(val6);
24317 }
24318 if (obj6) {
24319 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24320 if (!SWIG_IsOK(ecode7)) {
24321 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24322 }
24323 arg7 = static_cast< bool >(val7);
24324 }
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24328 wxPyEndAllowThreads(__tstate);
24329 if (PyErr_Occurred()) SWIG_fail;
24330 }
24331 {
24332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24333 }
24334 return resultobj;
24335fail:
24336 return NULL;
24337}
24338
24339
24340SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24341 PyObject *resultobj = 0;
24342 wxImageList *arg1 = (wxImageList *) 0 ;
24343 int result;
24344 void *argp1 = 0 ;
24345 int res1 = 0 ;
24346 PyObject *swig_obj[1] ;
24347
24348 if (!args) SWIG_fail;
24349 swig_obj[0] = args;
24350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24351 if (!SWIG_IsOK(res1)) {
24352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24353 }
24354 arg1 = reinterpret_cast< wxImageList * >(argp1);
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 result = (int)(arg1)->GetImageCount();
24358 wxPyEndAllowThreads(__tstate);
24359 if (PyErr_Occurred()) SWIG_fail;
24360 }
24361 resultobj = SWIG_From_int(static_cast< int >(result));
24362 return resultobj;
24363fail:
24364 return NULL;
24365}
24366
24367
24368SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24369 PyObject *resultobj = 0;
24370 wxImageList *arg1 = (wxImageList *) 0 ;
24371 int arg2 ;
24372 bool result;
24373 void *argp1 = 0 ;
24374 int res1 = 0 ;
24375 int val2 ;
24376 int ecode2 = 0 ;
24377 PyObject * obj0 = 0 ;
24378 PyObject * obj1 = 0 ;
24379 char * kwnames[] = {
24380 (char *) "self",(char *) "index", NULL
24381 };
24382
24383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24385 if (!SWIG_IsOK(res1)) {
24386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24387 }
24388 arg1 = reinterpret_cast< wxImageList * >(argp1);
24389 ecode2 = SWIG_AsVal_int(obj1, &val2);
24390 if (!SWIG_IsOK(ecode2)) {
24391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24392 }
24393 arg2 = static_cast< int >(val2);
24394 {
24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24396 result = (bool)(arg1)->Remove(arg2);
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 {
24401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24402 }
24403 return resultobj;
24404fail:
24405 return NULL;
24406}
24407
24408
24409SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24410 PyObject *resultobj = 0;
24411 wxImageList *arg1 = (wxImageList *) 0 ;
24412 bool result;
24413 void *argp1 = 0 ;
24414 int res1 = 0 ;
24415 PyObject *swig_obj[1] ;
24416
24417 if (!args) SWIG_fail;
24418 swig_obj[0] = args;
24419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24420 if (!SWIG_IsOK(res1)) {
24421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24422 }
24423 arg1 = reinterpret_cast< wxImageList * >(argp1);
24424 {
24425 PyThreadState* __tstate = wxPyBeginAllowThreads();
24426 result = (bool)(arg1)->RemoveAll();
24427 wxPyEndAllowThreads(__tstate);
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 {
24431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24432 }
24433 return resultobj;
24434fail:
24435 return NULL;
24436}
24437
24438
24439SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24440 PyObject *resultobj = 0;
24441 wxImageList *arg1 = (wxImageList *) 0 ;
24442 int arg2 ;
24443 int *arg3 = 0 ;
24444 int *arg4 = 0 ;
24445 void *argp1 = 0 ;
24446 int res1 = 0 ;
24447 int val2 ;
24448 int ecode2 = 0 ;
24449 int temp3 ;
24450 int res3 = SWIG_TMPOBJ ;
24451 int temp4 ;
24452 int res4 = SWIG_TMPOBJ ;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 char * kwnames[] = {
24456 (char *) "self",(char *) "index", NULL
24457 };
24458
24459 arg3 = &temp3;
24460 arg4 = &temp4;
24461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24463 if (!SWIG_IsOK(res1)) {
24464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24465 }
24466 arg1 = reinterpret_cast< wxImageList * >(argp1);
24467 ecode2 = SWIG_AsVal_int(obj1, &val2);
24468 if (!SWIG_IsOK(ecode2)) {
24469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24470 }
24471 arg2 = static_cast< int >(val2);
24472 {
24473 PyThreadState* __tstate = wxPyBeginAllowThreads();
24474 (arg1)->GetSize(arg2,*arg3,*arg4);
24475 wxPyEndAllowThreads(__tstate);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 resultobj = SWIG_Py_Void();
24479 if (SWIG_IsTmpObj(res3)) {
24480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24481 } else {
24482 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24484 }
24485 if (SWIG_IsTmpObj(res4)) {
24486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24487 } else {
24488 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24489 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24490 }
24491 return resultobj;
24492fail:
24493 return NULL;
24494}
24495
24496
24497SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 PyObject *obj;
24499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24500 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24501 return SWIG_Py_Void();
24502}
24503
24504SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24505 return SWIG_Python_InitShadowInstance(args);
24506}
24507
50efceee
RD
24508SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24509 PyObject *resultobj = 0;
24510 wxStockGDI *result = 0 ;
0085ce49 24511
50efceee
RD
24512 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24513 {
24514 PyThreadState* __tstate = wxPyBeginAllowThreads();
24515 result = (wxStockGDI *)new wxStockGDI();
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24520 return resultobj;
24521fail:
24522 return NULL;
0085ce49
RD
24523}
24524
24525
50efceee
RD
24526SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24527 PyObject *resultobj = 0;
24528 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 PyObject *swig_obj[1] ;
0085ce49 24532
50efceee
RD
24533 if (!args) SWIG_fail;
24534 swig_obj[0] = args;
24535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24538 }
24539 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24540 {
24541 PyThreadState* __tstate = wxPyBeginAllowThreads();
24542 delete arg1;
24543
24544 wxPyEndAllowThreads(__tstate);
24545 if (PyErr_Occurred()) SWIG_fail;
24546 }
24547 resultobj = SWIG_Py_Void();
24548 return resultobj;
24549fail:
24550 return NULL;
0085ce49
RD
24551}
24552
24553
50efceee
RD
24554SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24555 PyObject *resultobj = 0;
0085ce49 24556
50efceee
RD
24557 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24558 {
24559 PyThreadState* __tstate = wxPyBeginAllowThreads();
24560 wxStockGDI::DeleteAll();
24561 wxPyEndAllowThreads(__tstate);
24562 if (PyErr_Occurred()) SWIG_fail;
24563 }
24564 resultobj = SWIG_Py_Void();
24565 return resultobj;
24566fail:
24567 return NULL;
0085ce49
RD
24568}
24569
24570
50efceee
RD
24571SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24572 PyObject *resultobj = 0;
24573 wxStockGDI *result = 0 ;
0085ce49 24574
50efceee
RD
24575 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 {
24579 wxStockGDI &_result_ref = wxStockGDI::instance();
24580 result = (wxStockGDI *) &_result_ref;
24581 }
24582 wxPyEndAllowThreads(__tstate);
24583 if (PyErr_Occurred()) SWIG_fail;
24584 }
24585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24586 return resultobj;
24587fail:
24588 return NULL;
0085ce49
RD
24589}
24590
24591
50efceee
RD
24592SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24593 PyObject *resultobj = 0;
24594 wxStockGDI::Item arg1 ;
24595 wxBrush *result = 0 ;
24596 int val1 ;
24597 int ecode1 = 0 ;
24598 PyObject * obj0 = 0 ;
24599 char * kwnames[] = {
24600 (char *) "item", NULL
24601 };
24602
24603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24604 ecode1 = SWIG_AsVal_int(obj0, &val1);
24605 if (!SWIG_IsOK(ecode1)) {
24606 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24607 }
24608 arg1 = static_cast< wxStockGDI::Item >(val1);
24609 {
24610 PyThreadState* __tstate = wxPyBeginAllowThreads();
24611 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24616 return resultobj;
24617fail:
24618 return NULL;
0085ce49
RD
24619}
24620
24621
50efceee
RD
24622SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj = 0;
24624 wxStockGDI::Item arg1 ;
24625 wxColour *result = 0 ;
24626 int val1 ;
24627 int ecode1 = 0 ;
24628 PyObject * obj0 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "item", NULL
24631 };
0085ce49 24632
50efceee
RD
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24634 ecode1 = SWIG_AsVal_int(obj0, &val1);
24635 if (!SWIG_IsOK(ecode1)) {
24636 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24637 }
24638 arg1 = static_cast< wxStockGDI::Item >(val1);
24639 {
24640 PyThreadState* __tstate = wxPyBeginAllowThreads();
24641 result = (wxColour *)wxStockGDI::GetColour(arg1);
24642 wxPyEndAllowThreads(__tstate);
24643 if (PyErr_Occurred()) SWIG_fail;
24644 }
24645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24646 return resultobj;
24647fail:
24648 return NULL;
0085ce49
RD
24649}
24650
24651
50efceee
RD
24652SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24653 PyObject *resultobj = 0;
24654 wxStockGDI::Item arg1 ;
24655 wxCursor *result = 0 ;
24656 int val1 ;
24657 int ecode1 = 0 ;
24658 PyObject * obj0 = 0 ;
24659 char * kwnames[] = {
24660 (char *) "item", NULL
24661 };
24662
24663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24664 ecode1 = SWIG_AsVal_int(obj0, &val1);
24665 if (!SWIG_IsOK(ecode1)) {
24666 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24667 }
24668 arg1 = static_cast< wxStockGDI::Item >(val1);
24669 {
24670 PyThreadState* __tstate = wxPyBeginAllowThreads();
24671 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24672 wxPyEndAllowThreads(__tstate);
24673 if (PyErr_Occurred()) SWIG_fail;
24674 }
24675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24676 return resultobj;
24677fail:
24678 return NULL;
0085ce49
RD
24679}
24680
24681
50efceee
RD
24682SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24683 PyObject *resultobj = 0;
24684 wxStockGDI::Item arg1 ;
24685 wxPen *result = 0 ;
24686 int val1 ;
24687 int ecode1 = 0 ;
24688 PyObject * obj0 = 0 ;
24689 char * kwnames[] = {
24690 (char *) "item", NULL
24691 };
24692
24693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24694 ecode1 = SWIG_AsVal_int(obj0, &val1);
24695 if (!SWIG_IsOK(ecode1)) {
24696 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24697 }
24698 arg1 = static_cast< wxStockGDI::Item >(val1);
24699 {
24700 PyThreadState* __tstate = wxPyBeginAllowThreads();
24701 result = (wxPen *)wxStockGDI::GetPen(arg1);
24702 wxPyEndAllowThreads(__tstate);
24703 if (PyErr_Occurred()) SWIG_fail;
24704 }
24705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24706 return resultobj;
24707fail:
24708 return NULL;
0085ce49
RD
24709}
24710
24711
50efceee
RD
24712SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24713 PyObject *resultobj = 0;
24714 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24715 wxStockGDI::Item arg2 ;
24716 wxFont *result = 0 ;
24717 void *argp1 = 0 ;
24718 int res1 = 0 ;
24719 int val2 ;
24720 int ecode2 = 0 ;
24721 PyObject * obj0 = 0 ;
24722 PyObject * obj1 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "self",(char *) "item", NULL
24725 };
0085ce49 24726
50efceee
RD
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
24728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24731 }
24732 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24733 ecode2 = SWIG_AsVal_int(obj1, &val2);
24734 if (!SWIG_IsOK(ecode2)) {
24735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
24736 }
24737 arg2 = static_cast< wxStockGDI::Item >(val2);
24738 {
24739 PyThreadState* __tstate = wxPyBeginAllowThreads();
24740 result = (wxFont *)(arg1)->GetFont(arg2);
24741 wxPyEndAllowThreads(__tstate);
24742 if (PyErr_Occurred()) SWIG_fail;
24743 }
24744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
24745 return resultobj;
24746fail:
24747 return NULL;
0085ce49
RD
24748}
24749
24750
50efceee
RD
24751SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24752 PyObject *obj;
24753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24754 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
24755 return SWIG_Py_Void();
0085ce49
RD
24756}
24757
50efceee
RD
24758SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24759 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
24760}
24761
0085ce49
RD
24762SWIGINTERN int NullBitmap_set(PyObject *) {
24763 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
24764 return 1;
24765}
24766
24767
24768SWIGINTERN PyObject *NullBitmap_get(void) {
24769 PyObject *pyobj = 0;
24770
24771 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
24772 return pyobj;
24773}
24774
24775
24776SWIGINTERN int NullIcon_set(PyObject *) {
24777 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
24778 return 1;
24779}
24780
24781
24782SWIGINTERN PyObject *NullIcon_get(void) {
24783 PyObject *pyobj = 0;
24784
24785 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
24786 return pyobj;
24787}
24788
24789
24790SWIGINTERN int NullCursor_set(PyObject *) {
24791 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
24792 return 1;
24793}
24794
24795
24796SWIGINTERN PyObject *NullCursor_get(void) {
24797 PyObject *pyobj = 0;
24798
24799 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
24800 return pyobj;
24801}
24802
24803
24804SWIGINTERN int NullPen_set(PyObject *) {
24805 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
24806 return 1;
24807}
24808
24809
24810SWIGINTERN PyObject *NullPen_get(void) {
24811 PyObject *pyobj = 0;
24812
24813 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
24814 return pyobj;
24815}
24816
24817
24818SWIGINTERN int NullBrush_set(PyObject *) {
24819 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
24820 return 1;
24821}
24822
24823
24824SWIGINTERN PyObject *NullBrush_get(void) {
24825 PyObject *pyobj = 0;
24826
24827 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
24828 return pyobj;
24829}
24830
24831
24832SWIGINTERN int NullPalette_set(PyObject *) {
24833 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
24834 return 1;
24835}
24836
24837
24838SWIGINTERN PyObject *NullPalette_get(void) {
24839 PyObject *pyobj = 0;
24840
24841 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
24842 return pyobj;
24843}
24844
24845
24846SWIGINTERN int NullFont_set(PyObject *) {
24847 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
24848 return 1;
24849}
24850
24851
24852SWIGINTERN PyObject *NullFont_get(void) {
24853 PyObject *pyobj = 0;
24854
24855 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
24856 return pyobj;
24857}
24858
24859
24860SWIGINTERN int NullColour_set(PyObject *) {
24861 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
24862 return 1;
24863}
24864
24865
24866SWIGINTERN PyObject *NullColour_get(void) {
24867 PyObject *pyobj = 0;
24868
24869 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
24870 return pyobj;
24871}
24872
24873
50efceee 24874SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 24875 PyObject *resultobj = 0;
50efceee
RD
24876 wxGDIObjListBase *result = 0 ;
24877
24878 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
24879 {
24880 PyThreadState* __tstate = wxPyBeginAllowThreads();
24881 result = (wxGDIObjListBase *)new wxGDIObjListBase();
24882 wxPyEndAllowThreads(__tstate);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 }
24885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
24886 return resultobj;
24887fail:
24888 return NULL;
24889}
24890
24891
24892SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24893 PyObject *resultobj = 0;
24894 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
24895 void *argp1 = 0 ;
24896 int res1 = 0 ;
50efceee 24897 PyObject *swig_obj[1] ;
0085ce49 24898
50efceee
RD
24899 if (!args) SWIG_fail;
24900 swig_obj[0] = args;
24901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 24902 if (!SWIG_IsOK(res1)) {
50efceee 24903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 24904 }
50efceee 24905 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
24908 delete arg1;
24909
0085ce49
RD
24910 wxPyEndAllowThreads(__tstate);
24911 if (PyErr_Occurred()) SWIG_fail;
24912 }
24913 resultobj = SWIG_Py_Void();
24914 return resultobj;
24915fail:
24916 return NULL;
24917}
24918
24919
50efceee
RD
24920SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24921 PyObject *obj;
24922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24923 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
24924 return SWIG_Py_Void();
24925}
24926
24927SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24928 return SWIG_Python_InitShadowInstance(args);
24929}
24930
0085ce49
RD
24931SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24932 PyObject *resultobj = 0;
24933 wxPenList *arg1 = (wxPenList *) 0 ;
24934 wxColour *arg2 = 0 ;
24935 int arg3 ;
24936 int arg4 ;
24937 wxPen *result = 0 ;
24938 void *argp1 = 0 ;
24939 int res1 = 0 ;
24940 wxColour temp2 ;
24941 int val3 ;
24942 int ecode3 = 0 ;
24943 int val4 ;
24944 int ecode4 = 0 ;
24945 PyObject * obj0 = 0 ;
24946 PyObject * obj1 = 0 ;
24947 PyObject * obj2 = 0 ;
24948 PyObject * obj3 = 0 ;
24949 char * kwnames[] = {
24950 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
24951 };
24952
24953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
24955 if (!SWIG_IsOK(res1)) {
24956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
24957 }
24958 arg1 = reinterpret_cast< wxPenList * >(argp1);
24959 {
24960 arg2 = &temp2;
24961 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24962 }
24963 ecode3 = SWIG_AsVal_int(obj2, &val3);
24964 if (!SWIG_IsOK(ecode3)) {
24965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
24966 }
24967 arg3 = static_cast< int >(val3);
24968 ecode4 = SWIG_AsVal_int(obj3, &val4);
24969 if (!SWIG_IsOK(ecode4)) {
24970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
24971 }
24972 arg4 = static_cast< int >(val4);
24973 {
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
24976 wxPyEndAllowThreads(__tstate);
24977 if (PyErr_Occurred()) SWIG_fail;
24978 }
24979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24980 return resultobj;
24981fail:
24982 return NULL;
24983}
24984
24985
50efceee 24986SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
24987 PyObject *resultobj = 0;
24988 wxPenList *arg1 = (wxPenList *) 0 ;
24989 wxPen *arg2 = (wxPen *) 0 ;
24990 void *argp1 = 0 ;
24991 int res1 = 0 ;
24992 void *argp2 = 0 ;
24993 int res2 = 0 ;
24994 PyObject * obj0 = 0 ;
24995 PyObject * obj1 = 0 ;
24996 char * kwnames[] = {
24997 (char *) "self",(char *) "pen", NULL
24998 };
24999
50efceee 25000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
25001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25002 if (!SWIG_IsOK(res1)) {
50efceee 25003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
25004 }
25005 arg1 = reinterpret_cast< wxPenList * >(argp1);
25006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25007 if (!SWIG_IsOK(res2)) {
50efceee 25008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
25009 }
25010 arg2 = reinterpret_cast< wxPen * >(argp2);
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25013 (arg1)->AddPen(arg2);
0085ce49
RD
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_Py_Void();
25018 return resultobj;
25019fail:
25020 return NULL;
25021}
25022
25023
50efceee 25024SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
25025 PyObject *resultobj = 0;
25026 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 25027 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
50efceee
RD
25030 void *argp2 = 0 ;
25031 int res2 = 0 ;
25032 PyObject * obj0 = 0 ;
25033 PyObject * obj1 = 0 ;
25034 char * kwnames[] = {
25035 (char *) "self",(char *) "pen", NULL
25036 };
0085ce49 25037
50efceee
RD
25038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 25040 if (!SWIG_IsOK(res1)) {
50efceee 25041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
25042 }
25043 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
25044 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25045 if (!SWIG_IsOK(res2)) {
25046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25047 }
25048 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25051 (arg1)->RemovePen(arg2);
0085ce49
RD
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
50efceee 25055 resultobj = SWIG_Py_Void();
0085ce49
RD
25056 return resultobj;
25057fail:
25058 return NULL;
25059}
25060
25061
25062SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25063 PyObject *obj;
25064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25065 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25066 return SWIG_Py_Void();
25067}
25068
50efceee
RD
25069SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25070 PyObject *resultobj = 0;
25071 wxBrushList *arg1 = (wxBrushList *) 0 ;
25072 wxColour *arg2 = 0 ;
25073 int arg3 = (int) wxSOLID ;
25074 wxBrush *result = 0 ;
25075 void *argp1 = 0 ;
25076 int res1 = 0 ;
25077 wxColour temp2 ;
25078 int val3 ;
25079 int ecode3 = 0 ;
25080 PyObject * obj0 = 0 ;
25081 PyObject * obj1 = 0 ;
25082 PyObject * obj2 = 0 ;
25083 char * kwnames[] = {
25084 (char *) "self",(char *) "colour",(char *) "style", NULL
25085 };
25086
25087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25089 if (!SWIG_IsOK(res1)) {
25090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25091 }
25092 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25093 {
25094 arg2 = &temp2;
25095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25096 }
25097 if (obj2) {
25098 ecode3 = SWIG_AsVal_int(obj2, &val3);
25099 if (!SWIG_IsOK(ecode3)) {
25100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25101 }
25102 arg3 = static_cast< int >(val3);
25103 }
25104 {
25105 PyThreadState* __tstate = wxPyBeginAllowThreads();
25106 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25107 wxPyEndAllowThreads(__tstate);
25108 if (PyErr_Occurred()) SWIG_fail;
25109 }
25110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25111 return resultobj;
25112fail:
25113 return NULL;
25114}
25115
25116
0085ce49
RD
25117SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25118 PyObject *resultobj = 0;
25119 wxBrushList *arg1 = (wxBrushList *) 0 ;
25120 wxBrush *arg2 = (wxBrush *) 0 ;
25121 void *argp1 = 0 ;
25122 int res1 = 0 ;
25123 void *argp2 = 0 ;
25124 int res2 = 0 ;
25125 PyObject * obj0 = 0 ;
25126 PyObject * obj1 = 0 ;
25127 char * kwnames[] = {
25128 (char *) "self",(char *) "brush", NULL
25129 };
25130
25131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25133 if (!SWIG_IsOK(res1)) {
25134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25135 }
25136 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25138 if (!SWIG_IsOK(res2)) {
25139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25140 }
25141 arg2 = reinterpret_cast< wxBrush * >(argp2);
25142 {
25143 PyThreadState* __tstate = wxPyBeginAllowThreads();
25144 (arg1)->AddBrush(arg2);
25145 wxPyEndAllowThreads(__tstate);
25146 if (PyErr_Occurred()) SWIG_fail;
25147 }
25148 resultobj = SWIG_Py_Void();
25149 return resultobj;
25150fail:
25151 return NULL;
25152}
25153
25154
50efceee 25155SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
25156 PyObject *resultobj = 0;
25157 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 25158 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
25159 void *argp1 = 0 ;
25160 int res1 = 0 ;
50efceee
RD
25161 void *argp2 = 0 ;
25162 int res2 = 0 ;
25163 PyObject * obj0 = 0 ;
25164 PyObject * obj1 = 0 ;
25165 char * kwnames[] = {
25166 (char *) "self",(char *) "brush", NULL
25167 };
25168
25169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25171 if (!SWIG_IsOK(res1)) {
25172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25173 }
25174 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25176 if (!SWIG_IsOK(res2)) {
25177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25178 }
25179 arg2 = reinterpret_cast< wxBrush * >(argp2);
25180 {
25181 PyThreadState* __tstate = wxPyBeginAllowThreads();
25182 (arg1)->RemoveBrush(arg2);
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 resultobj = SWIG_Py_Void();
25187 return resultobj;
25188fail:
25189 return NULL;
25190}
25191
25192
25193SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25194 PyObject *obj;
25195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25196 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25197 return SWIG_Py_Void();
25198}
25199
25200SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25201 PyObject *resultobj = 0;
25202 wxFontList *arg1 = (wxFontList *) 0 ;
25203 int arg2 ;
25204 int arg3 ;
25205 int arg4 ;
25206 int arg5 ;
25207 bool arg6 = (bool) false ;
25208 wxString const &arg7_defvalue = wxPyEmptyString ;
25209 wxString *arg7 = (wxString *) &arg7_defvalue ;
25210 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25211 wxFont *result = 0 ;
25212 void *argp1 = 0 ;
25213 int res1 = 0 ;
25214 int val2 ;
25215 int ecode2 = 0 ;
0085ce49
RD
25216 int val3 ;
25217 int ecode3 = 0 ;
50efceee
RD
25218 int val4 ;
25219 int ecode4 = 0 ;
25220 int val5 ;
25221 int ecode5 = 0 ;
25222 bool val6 ;
25223 int ecode6 = 0 ;
25224 bool temp7 = false ;
25225 int val8 ;
25226 int ecode8 = 0 ;
0085ce49
RD
25227 PyObject * obj0 = 0 ;
25228 PyObject * obj1 = 0 ;
25229 PyObject * obj2 = 0 ;
50efceee
RD
25230 PyObject * obj3 = 0 ;
25231 PyObject * obj4 = 0 ;
25232 PyObject * obj5 = 0 ;
25233 PyObject * obj6 = 0 ;
25234 PyObject * obj7 = 0 ;
0085ce49 25235 char * kwnames[] = {
50efceee 25236 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
25237 };
25238
50efceee
RD
25239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 25241 if (!SWIG_IsOK(res1)) {
50efceee 25242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 25243 }
50efceee
RD
25244 arg1 = reinterpret_cast< wxFontList * >(argp1);
25245 ecode2 = SWIG_AsVal_int(obj1, &val2);
25246 if (!SWIG_IsOK(ecode2)) {
25247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25248 }
25249 arg2 = static_cast< int >(val2);
25250 ecode3 = SWIG_AsVal_int(obj2, &val3);
25251 if (!SWIG_IsOK(ecode3)) {
25252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25253 }
25254 arg3 = static_cast< int >(val3);
25255 ecode4 = SWIG_AsVal_int(obj3, &val4);
25256 if (!SWIG_IsOK(ecode4)) {
25257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25258 }
25259 arg4 = static_cast< int >(val4);
25260 ecode5 = SWIG_AsVal_int(obj4, &val5);
25261 if (!SWIG_IsOK(ecode5)) {
25262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25263 }
25264 arg5 = static_cast< int >(val5);
25265 if (obj5) {
25266 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25267 if (!SWIG_IsOK(ecode6)) {
25268 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25269 }
25270 arg6 = static_cast< bool >(val6);
0085ce49 25271 }
50efceee
RD
25272 if (obj6) {
25273 {
25274 arg7 = wxString_in_helper(obj6);
25275 if (arg7 == NULL) SWIG_fail;
25276 temp7 = true;
25277 }
25278 }
25279 if (obj7) {
25280 ecode8 = SWIG_AsVal_int(obj7, &val8);
25281 if (!SWIG_IsOK(ecode8)) {
25282 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 25283 }
50efceee 25284 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
25285 }
25286 {
25287 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25288 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
25289 wxPyEndAllowThreads(__tstate);
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
50efceee
RD
25292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25293 {
25294 if (temp7)
25295 delete arg7;
25296 }
0085ce49
RD
25297 return resultobj;
25298fail:
50efceee
RD
25299 {
25300 if (temp7)
25301 delete arg7;
25302 }
0085ce49
RD
25303 return NULL;
25304}
25305
25306
50efceee 25307SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25308 PyObject *resultobj = 0;
50efceee
RD
25309 wxFontList *arg1 = (wxFontList *) 0 ;
25310 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
25311 void *argp1 = 0 ;
25312 int res1 = 0 ;
25313 void *argp2 = 0 ;
25314 int res2 = 0 ;
25315 PyObject * obj0 = 0 ;
25316 PyObject * obj1 = 0 ;
25317 char * kwnames[] = {
50efceee 25318 (char *) "self",(char *) "font", NULL
0085ce49
RD
25319 };
25320
50efceee
RD
25321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 25323 if (!SWIG_IsOK(res1)) {
50efceee 25324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 25325 }
50efceee
RD
25326 arg1 = reinterpret_cast< wxFontList * >(argp1);
25327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 25328 if (!SWIG_IsOK(res2)) {
50efceee 25329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 25330 }
50efceee 25331 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
25332 {
25333 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25334 (arg1)->AddFont(arg2);
0085ce49
RD
25335 wxPyEndAllowThreads(__tstate);
25336 if (PyErr_Occurred()) SWIG_fail;
25337 }
25338 resultobj = SWIG_Py_Void();
25339 return resultobj;
25340fail:
25341 return NULL;
25342}
25343
25344
50efceee 25345SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25346 PyObject *resultobj = 0;
50efceee
RD
25347 wxFontList *arg1 = (wxFontList *) 0 ;
25348 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
25349 void *argp1 = 0 ;
25350 int res1 = 0 ;
50efceee
RD
25351 void *argp2 = 0 ;
25352 int res2 = 0 ;
25353 PyObject * obj0 = 0 ;
25354 PyObject * obj1 = 0 ;
25355 char * kwnames[] = {
25356 (char *) "self",(char *) "font", NULL
25357 };
0085ce49 25358
50efceee
RD
25359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 25361 if (!SWIG_IsOK(res1)) {
50efceee 25362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 25363 }
50efceee
RD
25364 arg1 = reinterpret_cast< wxFontList * >(argp1);
25365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25366 if (!SWIG_IsOK(res2)) {
25367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25368 }
25369 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
25370 {
25371 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25372 (arg1)->RemoveFont(arg2);
0085ce49
RD
25373 wxPyEndAllowThreads(__tstate);
25374 if (PyErr_Occurred()) SWIG_fail;
25375 }
50efceee 25376 resultobj = SWIG_Py_Void();
0085ce49
RD
25377 return resultobj;
25378fail:
25379 return NULL;
25380}
25381
25382
50efceee 25383SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
25384 PyObject *obj;
25385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 25386 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
25387 return SWIG_Py_Void();
25388}
25389
25390SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25391 PyObject *resultobj = 0;
25392 wxColourDatabase *result = 0 ;
25393
25394 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25395 {
25396 if (!wxPyCheckForApp()) SWIG_fail;
25397 PyThreadState* __tstate = wxPyBeginAllowThreads();
25398 result = (wxColourDatabase *)new wxColourDatabase();
25399 wxPyEndAllowThreads(__tstate);
25400 if (PyErr_Occurred()) SWIG_fail;
25401 }
25402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25403 return resultobj;
25404fail:
25405 return NULL;
25406}
25407
25408
25409SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25410 PyObject *resultobj = 0;
25411 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25412 void *argp1 = 0 ;
25413 int res1 = 0 ;
25414 PyObject *swig_obj[1] ;
25415
25416 if (!args) SWIG_fail;
25417 swig_obj[0] = args;
25418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25419 if (!SWIG_IsOK(res1)) {
25420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25421 }
25422 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25423 {
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 delete arg1;
25426
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 resultobj = SWIG_Py_Void();
25431 return resultobj;
25432fail:
25433 return NULL;
25434}
25435
25436
25437SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25438 PyObject *resultobj = 0;
25439 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25440 wxString *arg2 = 0 ;
25441 wxColour result;
25442 void *argp1 = 0 ;
25443 int res1 = 0 ;
25444 bool temp2 = false ;
25445 PyObject * obj0 = 0 ;
25446 PyObject * obj1 = 0 ;
25447 char * kwnames[] = {
25448 (char *) "self",(char *) "name", NULL
25449 };
25450
25451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25453 if (!SWIG_IsOK(res1)) {
25454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25455 }
25456 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25457 {
25458 arg2 = wxString_in_helper(obj1);
25459 if (arg2 == NULL) SWIG_fail;
25460 temp2 = true;
25461 }
25462 {
25463 PyThreadState* __tstate = wxPyBeginAllowThreads();
25464 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25465 wxPyEndAllowThreads(__tstate);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25469 {
25470 if (temp2)
25471 delete arg2;
25472 }
25473 return resultobj;
25474fail:
25475 {
25476 if (temp2)
25477 delete arg2;
25478 }
25479 return NULL;
25480}
25481
25482
25483SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25484 PyObject *resultobj = 0;
25485 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25486 wxColour *arg2 = 0 ;
25487 wxString result;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 wxColour temp2 ;
25491 PyObject * obj0 = 0 ;
25492 PyObject * obj1 = 0 ;
25493 char * kwnames[] = {
25494 (char *) "self",(char *) "colour", NULL
25495 };
25496
25497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25499 if (!SWIG_IsOK(res1)) {
25500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25501 }
25502 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25503 {
25504 arg2 = &temp2;
25505 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25506 }
25507 {
25508 PyThreadState* __tstate = wxPyBeginAllowThreads();
25509 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25510 wxPyEndAllowThreads(__tstate);
25511 if (PyErr_Occurred()) SWIG_fail;
25512 }
25513 {
25514#if wxUSE_UNICODE
25515 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25516#else
25517 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25518#endif
25519 }
25520 return resultobj;
25521fail:
25522 return NULL;
25523}
25524
25525
25526SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25527 PyObject *resultobj = 0;
25528 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25529 wxString *arg2 = 0 ;
25530 wxColour *arg3 = 0 ;
25531 void *argp1 = 0 ;
25532 int res1 = 0 ;
25533 bool temp2 = false ;
25534 wxColour temp3 ;
25535 PyObject * obj0 = 0 ;
25536 PyObject * obj1 = 0 ;
25537 PyObject * obj2 = 0 ;
25538 char * kwnames[] = {
25539 (char *) "self",(char *) "name",(char *) "colour", NULL
25540 };
25541
25542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25544 if (!SWIG_IsOK(res1)) {
25545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25546 }
25547 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25548 {
25549 arg2 = wxString_in_helper(obj1);
25550 if (arg2 == NULL) SWIG_fail;
25551 temp2 = true;
25552 }
25553 {
25554 arg3 = &temp3;
25555 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25556 }
25557 {
25558 PyThreadState* __tstate = wxPyBeginAllowThreads();
25559 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25560 wxPyEndAllowThreads(__tstate);
25561 if (PyErr_Occurred()) SWIG_fail;
25562 }
25563 resultobj = SWIG_Py_Void();
25564 {
25565 if (temp2)
25566 delete arg2;
25567 }
25568 return resultobj;
25569fail:
25570 {
25571 if (temp2)
25572 delete arg2;
25573 }
25574 return NULL;
25575}
25576
25577
25578SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25579 PyObject *resultobj = 0;
25580 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25581 wxString *arg2 = 0 ;
25582 int arg3 ;
25583 int arg4 ;
25584 int arg5 ;
25585 void *argp1 = 0 ;
25586 int res1 = 0 ;
25587 bool temp2 = false ;
25588 int val3 ;
25589 int ecode3 = 0 ;
25590 int val4 ;
25591 int ecode4 = 0 ;
50efceee
RD
25592 int val5 ;
25593 int ecode5 = 0 ;
0085ce49
RD
25594 PyObject * obj0 = 0 ;
25595 PyObject * obj1 = 0 ;
25596 PyObject * obj2 = 0 ;
25597 PyObject * obj3 = 0 ;
25598 PyObject * obj4 = 0 ;
0085ce49 25599 char * kwnames[] = {
50efceee 25600 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
25601 };
25602
50efceee
RD
25603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 25605 if (!SWIG_IsOK(res1)) {
50efceee
RD
25606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25607 }
25608 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25609 {
25610 arg2 = wxString_in_helper(obj1);
25611 if (arg2 == NULL) SWIG_fail;
25612 temp2 = true;
0085ce49 25613 }
0085ce49
RD
25614 ecode3 = SWIG_AsVal_int(obj2, &val3);
25615 if (!SWIG_IsOK(ecode3)) {
50efceee 25616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
25617 }
25618 arg3 = static_cast< int >(val3);
25619 ecode4 = SWIG_AsVal_int(obj3, &val4);
25620 if (!SWIG_IsOK(ecode4)) {
50efceee 25621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
25622 }
25623 arg4 = static_cast< int >(val4);
25624 ecode5 = SWIG_AsVal_int(obj4, &val5);
25625 if (!SWIG_IsOK(ecode5)) {
50efceee 25626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
25627 }
25628 arg5 = static_cast< int >(val5);
0085ce49
RD
25629 {
25630 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25631 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
25632 wxPyEndAllowThreads(__tstate);
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
50efceee 25635 resultobj = SWIG_Py_Void();
0085ce49 25636 {
50efceee
RD
25637 if (temp2)
25638 delete arg2;
0085ce49
RD
25639 }
25640 return resultobj;
25641fail:
25642 {
50efceee
RD
25643 if (temp2)
25644 delete arg2;
0085ce49
RD
25645 }
25646 return NULL;
25647}
25648
25649
50efceee
RD
25650SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25651 PyObject *obj;
25652 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25653 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25654 return SWIG_Py_Void();
25655}
25656
25657SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25658 return SWIG_Python_InitShadowInstance(args);
25659}
25660
25661SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25662 PyObject *resultobj = 0;
50efceee 25663 wxFontList *result = 0 ;
0085ce49 25664
50efceee 25665 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
25666 {
25667 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25668 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
50efceee 25672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
25673 return resultobj;
25674fail:
25675 return NULL;
25676}
25677
25678
50efceee 25679SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25680 PyObject *resultobj = 0;
50efceee 25681 wxPenList *result = 0 ;
0085ce49 25682
50efceee 25683 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
25684 {
25685 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25686 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
25687 wxPyEndAllowThreads(__tstate);
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
50efceee 25690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
25691 return resultobj;
25692fail:
25693 return NULL;
25694}
25695
25696
50efceee
RD
25697SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25698 PyObject *resultobj = 0;
25699 wxBrushList *result = 0 ;
0085ce49 25700
50efceee
RD
25701 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25702 {
25703 PyThreadState* __tstate = wxPyBeginAllowThreads();
25704 result = (wxBrushList *)_wxPyInitTheBrushList();
25705 wxPyEndAllowThreads(__tstate);
25706 if (PyErr_Occurred()) SWIG_fail;
25707 }
25708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25709 return resultobj;
25710fail:
25711 return NULL;
0085ce49
RD
25712}
25713
25714
50efceee
RD
25715SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25716 PyObject *resultobj = 0;
25717 wxColourDatabase *result = 0 ;
0085ce49 25718
50efceee
RD
25719 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
25720 {
25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
25722 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
25726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25727 return resultobj;
25728fail:
25729 return NULL;
0085ce49
RD
25730}
25731
25732
25733SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25734 PyObject *resultobj = 0;
25735 wxEffects *result = 0 ;
25736
25737 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
25738 {
25739 PyThreadState* __tstate = wxPyBeginAllowThreads();
25740 result = (wxEffects *)new wxEffects();
25741 wxPyEndAllowThreads(__tstate);
25742 if (PyErr_Occurred()) SWIG_fail;
25743 }
25744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
25745 return resultobj;
25746fail:
25747 return NULL;
25748}
25749
25750
25751SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25752 PyObject *resultobj = 0;
25753 wxEffects *arg1 = (wxEffects *) 0 ;
25754 wxColour result;
25755 void *argp1 = 0 ;
25756 int res1 = 0 ;
25757 PyObject *swig_obj[1] ;
25758
25759 if (!args) SWIG_fail;
25760 swig_obj[0] = args;
25761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25762 if (!SWIG_IsOK(res1)) {
25763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25764 }
25765 arg1 = reinterpret_cast< wxEffects * >(argp1);
25766 {
25767 PyThreadState* __tstate = wxPyBeginAllowThreads();
25768 result = ((wxEffects const *)arg1)->GetHighlightColour();
25769 wxPyEndAllowThreads(__tstate);
25770 if (PyErr_Occurred()) SWIG_fail;
25771 }
25772 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25773 return resultobj;
25774fail:
25775 return NULL;
25776}
25777
25778
25779SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25780 PyObject *resultobj = 0;
25781 wxEffects *arg1 = (wxEffects *) 0 ;
25782 wxColour result;
25783 void *argp1 = 0 ;
25784 int res1 = 0 ;
25785 PyObject *swig_obj[1] ;
25786
25787 if (!args) SWIG_fail;
25788 swig_obj[0] = args;
25789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25790 if (!SWIG_IsOK(res1)) {
25791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25792 }
25793 arg1 = reinterpret_cast< wxEffects * >(argp1);
25794 {
25795 PyThreadState* __tstate = wxPyBeginAllowThreads();
25796 result = ((wxEffects const *)arg1)->GetLightShadow();
25797 wxPyEndAllowThreads(__tstate);
25798 if (PyErr_Occurred()) SWIG_fail;
25799 }
25800 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25801 return resultobj;
25802fail:
25803 return NULL;
25804}
25805
25806
25807SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25808 PyObject *resultobj = 0;
25809 wxEffects *arg1 = (wxEffects *) 0 ;
25810 wxColour result;
25811 void *argp1 = 0 ;
25812 int res1 = 0 ;
25813 PyObject *swig_obj[1] ;
25814
25815 if (!args) SWIG_fail;
25816 swig_obj[0] = args;
25817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25818 if (!SWIG_IsOK(res1)) {
25819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25820 }
25821 arg1 = reinterpret_cast< wxEffects * >(argp1);
25822 {
25823 PyThreadState* __tstate = wxPyBeginAllowThreads();
25824 result = ((wxEffects const *)arg1)->GetFaceColour();
25825 wxPyEndAllowThreads(__tstate);
25826 if (PyErr_Occurred()) SWIG_fail;
25827 }
25828 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25829 return resultobj;
25830fail:
25831 return NULL;
25832}
25833
25834
25835SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25836 PyObject *resultobj = 0;
25837 wxEffects *arg1 = (wxEffects *) 0 ;
25838 wxColour result;
25839 void *argp1 = 0 ;
25840 int res1 = 0 ;
25841 PyObject *swig_obj[1] ;
25842
25843 if (!args) SWIG_fail;
25844 swig_obj[0] = args;
25845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25846 if (!SWIG_IsOK(res1)) {
25847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25848 }
25849 arg1 = reinterpret_cast< wxEffects * >(argp1);
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 result = ((wxEffects const *)arg1)->GetMediumShadow();
25853 wxPyEndAllowThreads(__tstate);
25854 if (PyErr_Occurred()) SWIG_fail;
25855 }
25856 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25857 return resultobj;
25858fail:
25859 return NULL;
25860}
25861
25862
25863SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25864 PyObject *resultobj = 0;
25865 wxEffects *arg1 = (wxEffects *) 0 ;
25866 wxColour result;
25867 void *argp1 = 0 ;
25868 int res1 = 0 ;
25869 PyObject *swig_obj[1] ;
25870
25871 if (!args) SWIG_fail;
25872 swig_obj[0] = args;
25873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25874 if (!SWIG_IsOK(res1)) {
25875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25876 }
25877 arg1 = reinterpret_cast< wxEffects * >(argp1);
25878 {
25879 PyThreadState* __tstate = wxPyBeginAllowThreads();
25880 result = ((wxEffects const *)arg1)->GetDarkShadow();
25881 wxPyEndAllowThreads(__tstate);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25885 return resultobj;
25886fail:
25887 return NULL;
25888}
25889
25890
25891SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25892 PyObject *resultobj = 0;
25893 wxEffects *arg1 = (wxEffects *) 0 ;
25894 wxColour *arg2 = 0 ;
25895 void *argp1 = 0 ;
25896 int res1 = 0 ;
25897 wxColour temp2 ;
25898 PyObject * obj0 = 0 ;
25899 PyObject * obj1 = 0 ;
25900 char * kwnames[] = {
25901 (char *) "self",(char *) "c", NULL
25902 };
25903
25904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
25905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25906 if (!SWIG_IsOK(res1)) {
25907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
25908 }
25909 arg1 = reinterpret_cast< wxEffects * >(argp1);
25910 {
25911 arg2 = &temp2;
25912 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25913 }
25914 {
25915 PyThreadState* __tstate = wxPyBeginAllowThreads();
25916 (arg1)->SetHighlightColour((wxColour const &)*arg2);
25917 wxPyEndAllowThreads(__tstate);
25918 if (PyErr_Occurred()) SWIG_fail;
25919 }
25920 resultobj = SWIG_Py_Void();
25921 return resultobj;
25922fail:
25923 return NULL;
25924}
25925
25926
25927SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25928 PyObject *resultobj = 0;
25929 wxEffects *arg1 = (wxEffects *) 0 ;
25930 wxColour *arg2 = 0 ;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 wxColour temp2 ;
25934 PyObject * obj0 = 0 ;
25935 PyObject * obj1 = 0 ;
25936 char * kwnames[] = {
25937 (char *) "self",(char *) "c", NULL
25938 };
25939
25940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
25941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25942 if (!SWIG_IsOK(res1)) {
25943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
25944 }
25945 arg1 = reinterpret_cast< wxEffects * >(argp1);
25946 {
25947 arg2 = &temp2;
25948 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25949 }
25950 {
25951 PyThreadState* __tstate = wxPyBeginAllowThreads();
25952 (arg1)->SetLightShadow((wxColour const &)*arg2);
25953 wxPyEndAllowThreads(__tstate);
25954 if (PyErr_Occurred()) SWIG_fail;
25955 }
25956 resultobj = SWIG_Py_Void();
25957 return resultobj;
25958fail:
25959 return NULL;
25960}
25961
25962
25963SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25964 PyObject *resultobj = 0;
25965 wxEffects *arg1 = (wxEffects *) 0 ;
25966 wxColour *arg2 = 0 ;
25967 void *argp1 = 0 ;
25968 int res1 = 0 ;
25969 wxColour temp2 ;
25970 PyObject * obj0 = 0 ;
25971 PyObject * obj1 = 0 ;
25972 char * kwnames[] = {
25973 (char *) "self",(char *) "c", NULL
25974 };
25975
25976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
25977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25978 if (!SWIG_IsOK(res1)) {
25979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
25980 }
25981 arg1 = reinterpret_cast< wxEffects * >(argp1);
25982 {
25983 arg2 = &temp2;
25984 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25985 }
25986 {
25987 PyThreadState* __tstate = wxPyBeginAllowThreads();
25988 (arg1)->SetFaceColour((wxColour const &)*arg2);
25989 wxPyEndAllowThreads(__tstate);
25990 if (PyErr_Occurred()) SWIG_fail;
25991 }
25992 resultobj = SWIG_Py_Void();
25993 return resultobj;
25994fail:
25995 return NULL;
25996}
25997
25998
25999SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26000 PyObject *resultobj = 0;
26001 wxEffects *arg1 = (wxEffects *) 0 ;
26002 wxColour *arg2 = 0 ;
26003 void *argp1 = 0 ;
26004 int res1 = 0 ;
26005 wxColour temp2 ;
26006 PyObject * obj0 = 0 ;
26007 PyObject * obj1 = 0 ;
26008 char * kwnames[] = {
26009 (char *) "self",(char *) "c", NULL
26010 };
26011
26012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26014 if (!SWIG_IsOK(res1)) {
26015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26016 }
26017 arg1 = reinterpret_cast< wxEffects * >(argp1);
26018 {
26019 arg2 = &temp2;
26020 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26021 }
26022 {
26023 PyThreadState* __tstate = wxPyBeginAllowThreads();
26024 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26025 wxPyEndAllowThreads(__tstate);
26026 if (PyErr_Occurred()) SWIG_fail;
26027 }
26028 resultobj = SWIG_Py_Void();
26029 return resultobj;
26030fail:
26031 return NULL;
26032}
26033
26034
26035SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26036 PyObject *resultobj = 0;
26037 wxEffects *arg1 = (wxEffects *) 0 ;
26038 wxColour *arg2 = 0 ;
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
26041 wxColour temp2 ;
26042 PyObject * obj0 = 0 ;
26043 PyObject * obj1 = 0 ;
26044 char * kwnames[] = {
26045 (char *) "self",(char *) "c", NULL
26046 };
26047
26048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26050 if (!SWIG_IsOK(res1)) {
26051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26052 }
26053 arg1 = reinterpret_cast< wxEffects * >(argp1);
26054 {
26055 arg2 = &temp2;
26056 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26057 }
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_Py_Void();
26065 return resultobj;
26066fail:
26067 return NULL;
26068}
26069
26070
26071SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj = 0;
26073 wxEffects *arg1 = (wxEffects *) 0 ;
26074 wxColour *arg2 = 0 ;
26075 wxColour *arg3 = 0 ;
26076 wxColour *arg4 = 0 ;
26077 wxColour *arg5 = 0 ;
26078 wxColour *arg6 = 0 ;
26079 void *argp1 = 0 ;
26080 int res1 = 0 ;
26081 wxColour temp2 ;
26082 wxColour temp3 ;
26083 wxColour temp4 ;
26084 wxColour temp5 ;
26085 wxColour temp6 ;
26086 PyObject * obj0 = 0 ;
26087 PyObject * obj1 = 0 ;
26088 PyObject * obj2 = 0 ;
26089 PyObject * obj3 = 0 ;
26090 PyObject * obj4 = 0 ;
26091 PyObject * obj5 = 0 ;
26092 char * kwnames[] = {
26093 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26094 };
26095
26096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26098 if (!SWIG_IsOK(res1)) {
26099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26100 }
26101 arg1 = reinterpret_cast< wxEffects * >(argp1);
26102 {
26103 arg2 = &temp2;
26104 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26105 }
26106 {
26107 arg3 = &temp3;
26108 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26109 }
26110 {
26111 arg4 = &temp4;
26112 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26113 }
26114 {
26115 arg5 = &temp5;
26116 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26117 }
26118 {
26119 arg6 = &temp6;
26120 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26121 }
26122 {
26123 PyThreadState* __tstate = wxPyBeginAllowThreads();
26124 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26125 wxPyEndAllowThreads(__tstate);
26126 if (PyErr_Occurred()) SWIG_fail;
26127 }
26128 resultobj = SWIG_Py_Void();
26129 return resultobj;
26130fail:
26131 return NULL;
26132}
26133
26134
26135SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26136 PyObject *resultobj = 0;
26137 wxEffects *arg1 = (wxEffects *) 0 ;
26138 wxDC *arg2 = 0 ;
26139 wxRect *arg3 = 0 ;
26140 int arg4 = (int) 1 ;
26141 void *argp1 = 0 ;
26142 int res1 = 0 ;
26143 void *argp2 = 0 ;
26144 int res2 = 0 ;
26145 wxRect temp3 ;
26146 int val4 ;
26147 int ecode4 = 0 ;
26148 PyObject * obj0 = 0 ;
26149 PyObject * obj1 = 0 ;
26150 PyObject * obj2 = 0 ;
26151 PyObject * obj3 = 0 ;
26152 char * kwnames[] = {
26153 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26154 };
26155
26156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26158 if (!SWIG_IsOK(res1)) {
26159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26160 }
26161 arg1 = reinterpret_cast< wxEffects * >(argp1);
26162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26163 if (!SWIG_IsOK(res2)) {
26164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26165 }
26166 if (!argp2) {
26167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26168 }
26169 arg2 = reinterpret_cast< wxDC * >(argp2);
26170 {
26171 arg3 = &temp3;
26172 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26173 }
26174 if (obj3) {
26175 ecode4 = SWIG_AsVal_int(obj3, &val4);
26176 if (!SWIG_IsOK(ecode4)) {
26177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26178 }
26179 arg4 = static_cast< int >(val4);
26180 }
26181 {
26182 PyThreadState* __tstate = wxPyBeginAllowThreads();
26183 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26184 wxPyEndAllowThreads(__tstate);
26185 if (PyErr_Occurred()) SWIG_fail;
26186 }
26187 resultobj = SWIG_Py_Void();
26188 return resultobj;
26189fail:
26190 return NULL;
26191}
26192
26193
26194SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26195 PyObject *resultobj = 0;
26196 wxEffects *arg1 = (wxEffects *) 0 ;
26197 wxRect *arg2 = 0 ;
26198 wxDC *arg3 = 0 ;
26199 wxBitmap *arg4 = 0 ;
26200 bool result;
26201 void *argp1 = 0 ;
26202 int res1 = 0 ;
26203 wxRect temp2 ;
26204 void *argp3 = 0 ;
26205 int res3 = 0 ;
26206 void *argp4 = 0 ;
26207 int res4 = 0 ;
26208 PyObject * obj0 = 0 ;
26209 PyObject * obj1 = 0 ;
26210 PyObject * obj2 = 0 ;
26211 PyObject * obj3 = 0 ;
26212 char * kwnames[] = {
26213 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26214 };
26215
26216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26218 if (!SWIG_IsOK(res1)) {
26219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26220 }
26221 arg1 = reinterpret_cast< wxEffects * >(argp1);
26222 {
26223 arg2 = &temp2;
26224 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26225 }
26226 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26227 if (!SWIG_IsOK(res3)) {
26228 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26229 }
26230 if (!argp3) {
26231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26232 }
26233 arg3 = reinterpret_cast< wxDC * >(argp3);
26234 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26235 if (!SWIG_IsOK(res4)) {
26236 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26237 }
26238 if (!argp4) {
26239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26240 }
26241 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26242 {
26243 PyThreadState* __tstate = wxPyBeginAllowThreads();
26244 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26245 wxPyEndAllowThreads(__tstate);
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 {
26249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26250 }
26251 return resultobj;
26252fail:
26253 return NULL;
26254}
26255
26256
26257SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26258 PyObject *obj;
26259 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26260 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26261 return SWIG_Py_Void();
26262}
26263
26264SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26265 return SWIG_Python_InitShadowInstance(args);
26266}
26267
26268SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26269 PyObject *resultobj = 0;
26270 int arg1 ;
26271 int arg2 ;
26272 bool arg3 ;
26273 wxSplitterRenderParams *result = 0 ;
26274 int val1 ;
26275 int ecode1 = 0 ;
26276 int val2 ;
26277 int ecode2 = 0 ;
26278 bool val3 ;
26279 int ecode3 = 0 ;
26280 PyObject * obj0 = 0 ;
26281 PyObject * obj1 = 0 ;
26282 PyObject * obj2 = 0 ;
26283 char * kwnames[] = {
26284 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26285 };
26286
26287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26288 ecode1 = SWIG_AsVal_int(obj0, &val1);
26289 if (!SWIG_IsOK(ecode1)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26291 }
26292 arg1 = static_cast< int >(val1);
26293 ecode2 = SWIG_AsVal_int(obj1, &val2);
26294 if (!SWIG_IsOK(ecode2)) {
26295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26296 }
26297 arg2 = static_cast< int >(val2);
26298 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26299 if (!SWIG_IsOK(ecode3)) {
26300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26301 }
26302 arg3 = static_cast< bool >(val3);
26303 {
26304 PyThreadState* __tstate = wxPyBeginAllowThreads();
26305 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26306 wxPyEndAllowThreads(__tstate);
26307 if (PyErr_Occurred()) SWIG_fail;
26308 }
26309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26310 return resultobj;
26311fail:
26312 return NULL;
26313}
26314
26315
26316SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26317 PyObject *resultobj = 0;
26318 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26319 void *argp1 = 0 ;
26320 int res1 = 0 ;
26321 PyObject *swig_obj[1] ;
26322
26323 if (!args) SWIG_fail;
26324 swig_obj[0] = args;
26325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26326 if (!SWIG_IsOK(res1)) {
26327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26328 }
26329 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26330 {
26331 PyThreadState* __tstate = wxPyBeginAllowThreads();
26332 delete arg1;
26333
26334 wxPyEndAllowThreads(__tstate);
26335 if (PyErr_Occurred()) SWIG_fail;
26336 }
26337 resultobj = SWIG_Py_Void();
26338 return resultobj;
26339fail:
26340 return NULL;
26341}
26342
26343
26344SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26345 PyObject *resultobj = 0;
26346 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26347 int result;
26348 void *argp1 = 0 ;
26349 int res1 = 0 ;
26350 PyObject *swig_obj[1] ;
26351
26352 if (!args) SWIG_fail;
26353 swig_obj[0] = args;
26354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26355 if (!SWIG_IsOK(res1)) {
26356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26357 }
26358 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26359 result = (int)(int) ((arg1)->widthSash);
26360 resultobj = SWIG_From_int(static_cast< int >(result));
26361 return resultobj;
26362fail:
26363 return NULL;
26364}
26365
26366
26367SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26368 PyObject *resultobj = 0;
26369 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26370 int result;
26371 void *argp1 = 0 ;
26372 int res1 = 0 ;
26373 PyObject *swig_obj[1] ;
26374
26375 if (!args) SWIG_fail;
26376 swig_obj[0] = args;
26377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26378 if (!SWIG_IsOK(res1)) {
26379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26380 }
26381 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26382 result = (int)(int) ((arg1)->border);
26383 resultobj = SWIG_From_int(static_cast< int >(result));
26384 return resultobj;
26385fail:
26386 return NULL;
26387}
26388
26389
26390SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26391 PyObject *resultobj = 0;
26392 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26393 bool result;
26394 void *argp1 = 0 ;
26395 int res1 = 0 ;
26396 PyObject *swig_obj[1] ;
26397
26398 if (!args) SWIG_fail;
26399 swig_obj[0] = args;
26400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26401 if (!SWIG_IsOK(res1)) {
26402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26403 }
26404 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26405 result = (bool)(bool) ((arg1)->isHotSensitive);
26406 resultobj = SWIG_From_bool(static_cast< bool >(result));
26407 return resultobj;
26408fail:
26409 return NULL;
26410}
26411
26412
26413SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26414 PyObject *obj;
26415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26416 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26417 return SWIG_Py_Void();
26418}
26419
26420SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26421 return SWIG_Python_InitShadowInstance(args);
26422}
26423
26424SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj = 0;
26426 int arg1 ;
26427 int arg2 ;
26428 wxRendererVersion *result = 0 ;
26429 int val1 ;
26430 int ecode1 = 0 ;
26431 int val2 ;
26432 int ecode2 = 0 ;
26433 PyObject * obj0 = 0 ;
26434 PyObject * obj1 = 0 ;
26435 char * kwnames[] = {
26436 (char *) "version_",(char *) "age_", NULL
26437 };
26438
26439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
26440 ecode1 = SWIG_AsVal_int(obj0, &val1);
26441 if (!SWIG_IsOK(ecode1)) {
26442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
26443 }
26444 arg1 = static_cast< int >(val1);
26445 ecode2 = SWIG_AsVal_int(obj1, &val2);
26446 if (!SWIG_IsOK(ecode2)) {
26447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
26448 }
26449 arg2 = static_cast< int >(val2);
26450 {
26451 PyThreadState* __tstate = wxPyBeginAllowThreads();
26452 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
26453 wxPyEndAllowThreads(__tstate);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
26457 return resultobj;
26458fail:
26459 return NULL;
26460}
26461
26462
26463SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26464 PyObject *resultobj = 0;
26465 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26466 void *argp1 = 0 ;
26467 int res1 = 0 ;
26468 PyObject *swig_obj[1] ;
26469
26470 if (!args) SWIG_fail;
26471 swig_obj[0] = args;
26472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
26473 if (!SWIG_IsOK(res1)) {
26474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26475 }
26476 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 delete arg1;
26480
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 resultobj = SWIG_Py_Void();
26485 return resultobj;
26486fail:
26487 return NULL;
26488}
26489
26490
26491SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26492 PyObject *resultobj = 0;
26493 wxRendererVersion *arg1 = 0 ;
26494 bool result;
26495 void *argp1 = 0 ;
26496 int res1 = 0 ;
26497 PyObject * obj0 = 0 ;
26498 char * kwnames[] = {
26499 (char *) "ver", NULL
26500 };
26501
26502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
26503 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
26504 if (!SWIG_IsOK(res1)) {
26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26506 }
26507 if (!argp1) {
26508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26509 }
26510 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26511 {
26512 PyThreadState* __tstate = wxPyBeginAllowThreads();
26513 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
26514 wxPyEndAllowThreads(__tstate);
26515 if (PyErr_Occurred()) SWIG_fail;
26516 }
26517 {
26518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26519 }
26520 return resultobj;
26521fail:
26522 return NULL;
26523}
26524
26525
26526SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26527 PyObject *resultobj = 0;
26528 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26529 int result;
26530 void *argp1 = 0 ;
26531 int res1 = 0 ;
26532 PyObject *swig_obj[1] ;
26533
26534 if (!args) SWIG_fail;
26535 swig_obj[0] = args;
26536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26537 if (!SWIG_IsOK(res1)) {
26538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26539 }
26540 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26541 result = (int)(int) ((arg1)->version);
26542 resultobj = SWIG_From_int(static_cast< int >(result));
26543 return resultobj;
26544fail:
26545 return NULL;
26546}
26547
26548
26549SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26550 PyObject *resultobj = 0;
26551 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26552 int result;
26553 void *argp1 = 0 ;
26554 int res1 = 0 ;
26555 PyObject *swig_obj[1] ;
26556
26557 if (!args) SWIG_fail;
26558 swig_obj[0] = args;
26559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26560 if (!SWIG_IsOK(res1)) {
26561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26562 }
26563 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26564 result = (int)(int) ((arg1)->age);
26565 resultobj = SWIG_From_int(static_cast< int >(result));
26566 return resultobj;
26567fail:
26568 return NULL;
26569}
26570
26571
26572SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26573 PyObject *obj;
26574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26575 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
26576 return SWIG_Py_Void();
26577}
26578
26579SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26580 return SWIG_Python_InitShadowInstance(args);
26581}
26582
26583SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26584 PyObject *resultobj = 0;
26585 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26586 wxWindow *arg2 = (wxWindow *) 0 ;
26587 wxDC *arg3 = 0 ;
26588 wxRect *arg4 = 0 ;
26589 int arg5 = (int) 0 ;
26590 void *argp1 = 0 ;
26591 int res1 = 0 ;
26592 void *argp2 = 0 ;
26593 int res2 = 0 ;
26594 void *argp3 = 0 ;
26595 int res3 = 0 ;
26596 wxRect temp4 ;
26597 int val5 ;
26598 int ecode5 = 0 ;
26599 PyObject * obj0 = 0 ;
26600 PyObject * obj1 = 0 ;
26601 PyObject * obj2 = 0 ;
26602 PyObject * obj3 = 0 ;
26603 PyObject * obj4 = 0 ;
26604 char * kwnames[] = {
26605 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26606 };
26607
26608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26612 }
26613 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26615 if (!SWIG_IsOK(res2)) {
26616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26617 }
26618 arg2 = reinterpret_cast< wxWindow * >(argp2);
26619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26620 if (!SWIG_IsOK(res3)) {
26621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26622 }
26623 if (!argp3) {
26624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26625 }
26626 arg3 = reinterpret_cast< wxDC * >(argp3);
26627 {
26628 arg4 = &temp4;
26629 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26630 }
26631 if (obj4) {
26632 ecode5 = SWIG_AsVal_int(obj4, &val5);
26633 if (!SWIG_IsOK(ecode5)) {
26634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
26635 }
26636 arg5 = static_cast< int >(val5);
26637 }
26638 {
26639 PyThreadState* __tstate = wxPyBeginAllowThreads();
26640 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26641 wxPyEndAllowThreads(__tstate);
26642 if (PyErr_Occurred()) SWIG_fail;
26643 }
26644 resultobj = SWIG_Py_Void();
26645 return resultobj;
26646fail:
26647 return NULL;
26648}
26649
26650
26651SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26652 PyObject *resultobj = 0;
26653 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26654 wxWindow *arg2 = (wxWindow *) 0 ;
26655 wxDC *arg3 = 0 ;
26656 wxRect *arg4 = 0 ;
26657 int arg5 = (int) 0 ;
26658 void *argp1 = 0 ;
26659 int res1 = 0 ;
26660 void *argp2 = 0 ;
26661 int res2 = 0 ;
26662 void *argp3 = 0 ;
26663 int res3 = 0 ;
26664 wxRect temp4 ;
26665 int val5 ;
26666 int ecode5 = 0 ;
26667 PyObject * obj0 = 0 ;
26668 PyObject * obj1 = 0 ;
26669 PyObject * obj2 = 0 ;
26670 PyObject * obj3 = 0 ;
26671 PyObject * obj4 = 0 ;
26672 char * kwnames[] = {
26673 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26674 };
26675
26676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26678 if (!SWIG_IsOK(res1)) {
26679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26680 }
26681 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26683 if (!SWIG_IsOK(res2)) {
26684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26685 }
26686 arg2 = reinterpret_cast< wxWindow * >(argp2);
26687 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26688 if (!SWIG_IsOK(res3)) {
26689 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26690 }
26691 if (!argp3) {
26692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26693 }
26694 arg3 = reinterpret_cast< wxDC * >(argp3);
26695 {
26696 arg4 = &temp4;
26697 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26698 }
26699 if (obj4) {
26700 ecode5 = SWIG_AsVal_int(obj4, &val5);
26701 if (!SWIG_IsOK(ecode5)) {
26702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
26703 }
26704 arg5 = static_cast< int >(val5);
26705 }
26706 {
26707 PyThreadState* __tstate = wxPyBeginAllowThreads();
26708 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26709 wxPyEndAllowThreads(__tstate);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 }
26712 resultobj = SWIG_Py_Void();
26713 return resultobj;
26714fail:
26715 return NULL;
26716}
26717
26718
26719SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26720 PyObject *resultobj = 0;
26721 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26722 wxWindow *arg2 = (wxWindow *) 0 ;
26723 wxDC *arg3 = 0 ;
26724 wxRect *arg4 = 0 ;
26725 int arg5 = (int) 0 ;
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
26728 void *argp2 = 0 ;
26729 int res2 = 0 ;
26730 void *argp3 = 0 ;
26731 int res3 = 0 ;
26732 wxRect temp4 ;
26733 int val5 ;
26734 int ecode5 = 0 ;
26735 PyObject * obj0 = 0 ;
26736 PyObject * obj1 = 0 ;
26737 PyObject * obj2 = 0 ;
26738 PyObject * obj3 = 0 ;
26739 PyObject * obj4 = 0 ;
26740 char * kwnames[] = {
26741 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26742 };
26743
26744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26746 if (!SWIG_IsOK(res1)) {
26747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26748 }
26749 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26750 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26751 if (!SWIG_IsOK(res2)) {
26752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
26753 }
26754 arg2 = reinterpret_cast< wxWindow * >(argp2);
26755 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26756 if (!SWIG_IsOK(res3)) {
26757 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26758 }
26759 if (!argp3) {
26760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26761 }
26762 arg3 = reinterpret_cast< wxDC * >(argp3);
26763 {
26764 arg4 = &temp4;
26765 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26766 }
26767 if (obj4) {
26768 ecode5 = SWIG_AsVal_int(obj4, &val5);
26769 if (!SWIG_IsOK(ecode5)) {
26770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
26771 }
26772 arg5 = static_cast< int >(val5);
26773 }
26774 {
26775 PyThreadState* __tstate = wxPyBeginAllowThreads();
26776 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
26777 wxPyEndAllowThreads(__tstate);
26778 if (PyErr_Occurred()) SWIG_fail;
26779 }
26780 resultobj = SWIG_Py_Void();
26781 return resultobj;
26782fail:
26783 return NULL;
26784}
26785
26786
26787SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26788 PyObject *resultobj = 0;
26789 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26790 wxWindow *arg2 = (wxWindow *) 0 ;
26791 wxDC *arg3 = 0 ;
26792 wxSize *arg4 = 0 ;
26793 int arg5 ;
26794 wxOrientation arg6 ;
26795 int arg7 = (int) 0 ;
26796 void *argp1 = 0 ;
26797 int res1 = 0 ;
26798 void *argp2 = 0 ;
26799 int res2 = 0 ;
26800 void *argp3 = 0 ;
26801 int res3 = 0 ;
26802 wxSize temp4 ;
26803 int val5 ;
26804 int ecode5 = 0 ;
26805 int val6 ;
26806 int ecode6 = 0 ;
26807 int val7 ;
26808 int ecode7 = 0 ;
26809 PyObject * obj0 = 0 ;
26810 PyObject * obj1 = 0 ;
26811 PyObject * obj2 = 0 ;
26812 PyObject * obj3 = 0 ;
26813 PyObject * obj4 = 0 ;
26814 PyObject * obj5 = 0 ;
26815 PyObject * obj6 = 0 ;
26816 char * kwnames[] = {
26817 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
26818 };
26819
26820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26822 if (!SWIG_IsOK(res1)) {
26823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26824 }
26825 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26827 if (!SWIG_IsOK(res2)) {
26828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
26829 }
26830 arg2 = reinterpret_cast< wxWindow * >(argp2);
26831 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26832 if (!SWIG_IsOK(res3)) {
26833 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
26834 }
26835 if (!argp3) {
26836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
26837 }
26838 arg3 = reinterpret_cast< wxDC * >(argp3);
26839 {
26840 arg4 = &temp4;
26841 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
26842 }
26843 ecode5 = SWIG_AsVal_int(obj4, &val5);
26844 if (!SWIG_IsOK(ecode5)) {
26845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
26846 }
26847 arg5 = static_cast< int >(val5);
26848 ecode6 = SWIG_AsVal_int(obj5, &val6);
26849 if (!SWIG_IsOK(ecode6)) {
26850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
26851 }
26852 arg6 = static_cast< wxOrientation >(val6);
26853 if (obj6) {
26854 ecode7 = SWIG_AsVal_int(obj6, &val7);
26855 if (!SWIG_IsOK(ecode7)) {
26856 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
26857 }
26858 arg7 = static_cast< int >(val7);
26859 }
26860 {
26861 PyThreadState* __tstate = wxPyBeginAllowThreads();
26862 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
26863 wxPyEndAllowThreads(__tstate);
26864 if (PyErr_Occurred()) SWIG_fail;
26865 }
26866 resultobj = SWIG_Py_Void();
26867 return resultobj;
26868fail:
26869 return NULL;
26870}
26871
26872
26873SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26874 PyObject *resultobj = 0;
26875 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26876 wxWindow *arg2 = (wxWindow *) 0 ;
26877 wxDC *arg3 = 0 ;
26878 wxRect *arg4 = 0 ;
26879 int arg5 = (int) 0 ;
26880 void *argp1 = 0 ;
26881 int res1 = 0 ;
26882 void *argp2 = 0 ;
26883 int res2 = 0 ;
26884 void *argp3 = 0 ;
26885 int res3 = 0 ;
26886 wxRect temp4 ;
26887 int val5 ;
26888 int ecode5 = 0 ;
26889 PyObject * obj0 = 0 ;
26890 PyObject * obj1 = 0 ;
26891 PyObject * obj2 = 0 ;
26892 PyObject * obj3 = 0 ;
26893 PyObject * obj4 = 0 ;
26894 char * kwnames[] = {
26895 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26896 };
26897
26898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26900 if (!SWIG_IsOK(res1)) {
26901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26902 }
26903 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26905 if (!SWIG_IsOK(res2)) {
26906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26907 }
26908 arg2 = reinterpret_cast< wxWindow * >(argp2);
26909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26910 if (!SWIG_IsOK(res3)) {
26911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
26912 }
26913 if (!argp3) {
26914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
26915 }
26916 arg3 = reinterpret_cast< wxDC * >(argp3);
26917 {
26918 arg4 = &temp4;
26919 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26920 }
26921 if (obj4) {
26922 ecode5 = SWIG_AsVal_int(obj4, &val5);
26923 if (!SWIG_IsOK(ecode5)) {
26924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
26925 }
26926 arg5 = static_cast< int >(val5);
26927 }
26928 {
26929 PyThreadState* __tstate = wxPyBeginAllowThreads();
26930 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26931 wxPyEndAllowThreads(__tstate);
26932 if (PyErr_Occurred()) SWIG_fail;
26933 }
26934 resultobj = SWIG_Py_Void();
26935 return resultobj;
26936fail:
26937 return NULL;
26938}
26939
26940
26941SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26942 PyObject *resultobj = 0;
26943 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26944 wxWindow *arg2 = (wxWindow *) 0 ;
26945 wxDC *arg3 = 0 ;
26946 wxRect *arg4 = 0 ;
26947 int arg5 = (int) 0 ;
26948 void *argp1 = 0 ;
26949 int res1 = 0 ;
26950 void *argp2 = 0 ;
26951 int res2 = 0 ;
26952 void *argp3 = 0 ;
26953 int res3 = 0 ;
26954 wxRect temp4 ;
26955 int val5 ;
26956 int ecode5 = 0 ;
26957 PyObject * obj0 = 0 ;
26958 PyObject * obj1 = 0 ;
26959 PyObject * obj2 = 0 ;
26960 PyObject * obj3 = 0 ;
26961 PyObject * obj4 = 0 ;
26962 char * kwnames[] = {
26963 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26964 };
26965
26966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26968 if (!SWIG_IsOK(res1)) {
26969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26970 }
26971 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26973 if (!SWIG_IsOK(res2)) {
26974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
26975 }
26976 arg2 = reinterpret_cast< wxWindow * >(argp2);
26977 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26978 if (!SWIG_IsOK(res3)) {
26979 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
26980 }
26981 if (!argp3) {
26982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
26983 }
26984 arg3 = reinterpret_cast< wxDC * >(argp3);
26985 {
26986 arg4 = &temp4;
26987 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26988 }
26989 if (obj4) {
26990 ecode5 = SWIG_AsVal_int(obj4, &val5);
26991 if (!SWIG_IsOK(ecode5)) {
26992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
26993 }
26994 arg5 = static_cast< int >(val5);
26995 }
26996 {
26997 PyThreadState* __tstate = wxPyBeginAllowThreads();
26998 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
26999 wxPyEndAllowThreads(__tstate);
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_Py_Void();
27003 return resultobj;
27004fail:
27005 return NULL;
27006}
27007
27008
01f6b6d3
RD
27009SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27010 PyObject *resultobj = 0;
27011 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27012 wxWindow *arg2 = (wxWindow *) 0 ;
27013 wxDC *arg3 = 0 ;
27014 wxRect *arg4 = 0 ;
27015 int arg5 = (int) 0 ;
27016 void *argp1 = 0 ;
27017 int res1 = 0 ;
27018 void *argp2 = 0 ;
27019 int res2 = 0 ;
27020 void *argp3 = 0 ;
27021 int res3 = 0 ;
27022 wxRect temp4 ;
27023 int val5 ;
27024 int ecode5 = 0 ;
27025 PyObject * obj0 = 0 ;
27026 PyObject * obj1 = 0 ;
27027 PyObject * obj2 = 0 ;
27028 PyObject * obj3 = 0 ;
27029 PyObject * obj4 = 0 ;
27030 char * kwnames[] = {
27031 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27032 };
27033
27034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27036 if (!SWIG_IsOK(res1)) {
27037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27038 }
27039 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27040 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27041 if (!SWIG_IsOK(res2)) {
27042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27043 }
27044 arg2 = reinterpret_cast< wxWindow * >(argp2);
27045 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27046 if (!SWIG_IsOK(res3)) {
27047 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27048 }
27049 if (!argp3) {
27050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27051 }
27052 arg3 = reinterpret_cast< wxDC * >(argp3);
27053 {
27054 arg4 = &temp4;
27055 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27056 }
27057 if (obj4) {
27058 ecode5 = SWIG_AsVal_int(obj4, &val5);
27059 if (!SWIG_IsOK(ecode5)) {
27060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
27061 }
27062 arg5 = static_cast< int >(val5);
27063 }
27064 {
27065 PyThreadState* __tstate = wxPyBeginAllowThreads();
27066 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27067 wxPyEndAllowThreads(__tstate);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 resultobj = SWIG_Py_Void();
27071 return resultobj;
27072fail:
27073 return NULL;
27074}
27075
27076
27077SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27078 PyObject *resultobj = 0;
27079 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27080 wxWindow *arg2 = (wxWindow *) 0 ;
27081 wxDC *arg3 = 0 ;
27082 wxRect *arg4 = 0 ;
27083 int arg5 = (int) 0 ;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 void *argp2 = 0 ;
27087 int res2 = 0 ;
27088 void *argp3 = 0 ;
27089 int res3 = 0 ;
27090 wxRect temp4 ;
27091 int val5 ;
27092 int ecode5 = 0 ;
27093 PyObject * obj0 = 0 ;
27094 PyObject * obj1 = 0 ;
27095 PyObject * obj2 = 0 ;
27096 PyObject * obj3 = 0 ;
27097 PyObject * obj4 = 0 ;
27098 char * kwnames[] = {
27099 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27100 };
27101
27102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27104 if (!SWIG_IsOK(res1)) {
27105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27106 }
27107 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27109 if (!SWIG_IsOK(res2)) {
27110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27111 }
27112 arg2 = reinterpret_cast< wxWindow * >(argp2);
27113 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27114 if (!SWIG_IsOK(res3)) {
27115 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27116 }
27117 if (!argp3) {
27118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27119 }
27120 arg3 = reinterpret_cast< wxDC * >(argp3);
27121 {
27122 arg4 = &temp4;
27123 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27124 }
27125 if (obj4) {
27126 ecode5 = SWIG_AsVal_int(obj4, &val5);
27127 if (!SWIG_IsOK(ecode5)) {
27128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
27129 }
27130 arg5 = static_cast< int >(val5);
27131 }
27132 {
27133 PyThreadState* __tstate = wxPyBeginAllowThreads();
27134 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27135 wxPyEndAllowThreads(__tstate);
27136 if (PyErr_Occurred()) SWIG_fail;
27137 }
27138 resultobj = SWIG_Py_Void();
27139 return resultobj;
27140fail:
27141 return NULL;
27142}
27143
27144
27145SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
27146 PyObject *resultobj = 0;
27147 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27148 wxWindow *arg2 = (wxWindow *) 0 ;
27149 wxDC *arg3 = 0 ;
27150 wxRect *arg4 = 0 ;
27151 int arg5 = (int) 0 ;
27152 void *argp1 = 0 ;
27153 int res1 = 0 ;
27154 void *argp2 = 0 ;
27155 int res2 = 0 ;
27156 void *argp3 = 0 ;
27157 int res3 = 0 ;
27158 wxRect temp4 ;
27159 int val5 ;
27160 int ecode5 = 0 ;
27161 PyObject * obj0 = 0 ;
27162 PyObject * obj1 = 0 ;
27163 PyObject * obj2 = 0 ;
27164 PyObject * obj3 = 0 ;
27165 PyObject * obj4 = 0 ;
27166 char * kwnames[] = {
27167 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27168 };
27169
01f6b6d3 27170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
27171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27172 if (!SWIG_IsOK(res1)) {
01f6b6d3 27173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
27174 }
27175 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27176 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27177 if (!SWIG_IsOK(res2)) {
01f6b6d3 27178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
27179 }
27180 arg2 = reinterpret_cast< wxWindow * >(argp2);
27181 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27182 if (!SWIG_IsOK(res3)) {
01f6b6d3 27183 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
27184 }
27185 if (!argp3) {
01f6b6d3 27186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
27187 }
27188 arg3 = reinterpret_cast< wxDC * >(argp3);
27189 {
27190 arg4 = &temp4;
27191 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27192 }
27193 if (obj4) {
27194 ecode5 = SWIG_AsVal_int(obj4, &val5);
27195 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 27196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
27197 }
27198 arg5 = static_cast< int >(val5);
27199 }
27200 {
27201 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 27202 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
27203 wxPyEndAllowThreads(__tstate);
27204 if (PyErr_Occurred()) SWIG_fail;
27205 }
27206 resultobj = SWIG_Py_Void();
27207 return resultobj;
27208fail:
27209 return NULL;
27210}
27211
27212
0085ce49
RD
27213SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27214 PyObject *resultobj = 0;
27215 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27216 wxWindow *arg2 = (wxWindow *) 0 ;
27217 SwigValueWrapper<wxSplitterRenderParams > result;
27218 void *argp1 = 0 ;
27219 int res1 = 0 ;
27220 void *argp2 = 0 ;
27221 int res2 = 0 ;
27222 PyObject * obj0 = 0 ;
27223 PyObject * obj1 = 0 ;
27224 char * kwnames[] = {
27225 (char *) "self",(char *) "win", NULL
27226 };
27227
27228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
27229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27232 }
27233 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27234 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27235 if (!SWIG_IsOK(res2)) {
27236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
27237 }
27238 arg2 = reinterpret_cast< wxWindow * >(argp2);
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
27242 wxPyEndAllowThreads(__tstate);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 }
27245 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
27246 return resultobj;
27247fail:
27248 return NULL;
27249}
27250
27251
27252SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27253 PyObject *resultobj = 0;
27254 wxRendererNative *result = 0 ;
27255
27256 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
27257 {
704eda0c 27258 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 27259 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 27260 {
0085ce49
RD
27261 wxRendererNative &_result_ref = wxRendererNative::Get();
27262 result = (wxRendererNative *) &_result_ref;
093d3ff1 27263 }
0085ce49
RD
27264 wxPyEndAllowThreads(__tstate);
27265 if (PyErr_Occurred()) SWIG_fail;
27266 }
27267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27268 return resultobj;
27269fail:
27270 return NULL;
27271}
27272
27273
27274SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27275 PyObject *resultobj = 0;
27276 wxRendererNative *result = 0 ;
27277
27278 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
27279 {
704eda0c 27280 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 27281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 27282 {
0085ce49
RD
27283 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
27284 result = (wxRendererNative *) &_result_ref;
8d38bd1d 27285 }
0085ce49
RD
27286 wxPyEndAllowThreads(__tstate);
27287 if (PyErr_Occurred()) SWIG_fail;
27288 }
27289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27290 return resultobj;
27291fail:
27292 return NULL;
27293}
27294
27295
27296SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27297 PyObject *resultobj = 0;
27298 wxRendererNative *result = 0 ;
27299
27300 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
27301 {
704eda0c 27302 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 27303 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 27304 {
0085ce49
RD
27305 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
27306 result = (wxRendererNative *) &_result_ref;
8d38bd1d 27307 }
0085ce49
RD
27308 wxPyEndAllowThreads(__tstate);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27312 return resultobj;
27313fail:
27314 return NULL;
27315}
27316
27317
27318SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27319 PyObject *resultobj = 0;
27320 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27321 wxRendererNative *result = 0 ;
27322 void *argp1 = 0 ;
27323 int res1 = 0 ;
27324 PyObject * obj0 = 0 ;
27325 char * kwnames[] = {
27326 (char *) "renderer", NULL
27327 };
27328
27329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
27330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27331 if (!SWIG_IsOK(res1)) {
27332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27333 }
27334 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27335 {
704eda0c 27336 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
27337 PyThreadState* __tstate = wxPyBeginAllowThreads();
27338 result = (wxRendererNative *)wxRendererNative::Set(arg1);
27339 wxPyEndAllowThreads(__tstate);
27340 if (PyErr_Occurred()) SWIG_fail;
27341 }
27342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27343 return resultobj;
27344fail:
27345 return NULL;
27346}
27347
27348
27349SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27350 PyObject *resultobj = 0;
27351 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27352 SwigValueWrapper<wxRendererVersion > result;
27353 void *argp1 = 0 ;
27354 int res1 = 0 ;
27355 PyObject *swig_obj[1] ;
27356
27357 if (!args) SWIG_fail;
27358 swig_obj[0] = args;
27359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27360 if (!SWIG_IsOK(res1)) {
27361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
27362 }
27363 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27364 {
27365 PyThreadState* __tstate = wxPyBeginAllowThreads();
27366 result = ((wxRendererNative const *)arg1)->GetVersion();
27367 wxPyEndAllowThreads(__tstate);
27368 if (PyErr_Occurred()) SWIG_fail;
27369 }
27370 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
27371 return resultobj;
27372fail:
27373 return NULL;
27374}
27375
27376
27377SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27378 PyObject *obj;
27379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27380 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
27381 return SWIG_Py_Void();
27382}
27383
27e45892
RD
27384SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27385 PyObject *resultobj = 0;
27386 wxPseudoDC *result = 0 ;
27387
27388 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
27389 {
27390 PyThreadState* __tstate = wxPyBeginAllowThreads();
27391 result = (wxPseudoDC *)new wxPseudoDC();
27392 wxPyEndAllowThreads(__tstate);
27393 if (PyErr_Occurred()) SWIG_fail;
27394 }
27395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
27396 return resultobj;
27397fail:
27398 return NULL;
27399}
27400
27401
27402SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27403 PyObject *resultobj = 0;
27404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27405 void *argp1 = 0 ;
27406 int res1 = 0 ;
27407 PyObject *swig_obj[1] ;
27408
27409 if (!args) SWIG_fail;
27410 swig_obj[0] = args;
27411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27412 if (!SWIG_IsOK(res1)) {
27413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27414 }
27415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 (arg1)->BeginDrawing();
27419 wxPyEndAllowThreads(__tstate);
27420 if (PyErr_Occurred()) SWIG_fail;
27421 }
27422 resultobj = SWIG_Py_Void();
27423 return resultobj;
27424fail:
27425 return NULL;
27426}
27427
27428
27429SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27432 void *argp1 = 0 ;
27433 int res1 = 0 ;
27434 PyObject *swig_obj[1] ;
27435
27436 if (!args) SWIG_fail;
27437 swig_obj[0] = args;
27438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27439 if (!SWIG_IsOK(res1)) {
27440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27441 }
27442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27443 {
27444 PyThreadState* __tstate = wxPyBeginAllowThreads();
27445 (arg1)->EndDrawing();
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 resultobj = SWIG_Py_Void();
27450 return resultobj;
27451fail:
27452 return NULL;
27453}
27454
27455
27456SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27457 PyObject *resultobj = 0;
27458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27459 void *argp1 = 0 ;
27460 int res1 = 0 ;
27461 PyObject *swig_obj[1] ;
27462
27463 if (!args) SWIG_fail;
27464 swig_obj[0] = args;
27465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
27466 if (!SWIG_IsOK(res1)) {
27467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27468 }
27469 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 delete arg1;
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 resultobj = SWIG_Py_Void();
27478 return resultobj;
27479fail:
27480 return NULL;
27481}
27482
27483
27484SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27485 PyObject *resultobj = 0;
27486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27487 void *argp1 = 0 ;
27488 int res1 = 0 ;
27489 PyObject *swig_obj[1] ;
27490
27491 if (!args) SWIG_fail;
27492 swig_obj[0] = args;
27493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27494 if (!SWIG_IsOK(res1)) {
27495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27496 }
27497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 (arg1)->RemoveAll();
27501 wxPyEndAllowThreads(__tstate);
27502 if (PyErr_Occurred()) SWIG_fail;
27503 }
27504 resultobj = SWIG_Py_Void();
27505 return resultobj;
27506fail:
27507 return NULL;
27508}
27509
27510
27511SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27512 PyObject *resultobj = 0;
27513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27514 int result;
27515 void *argp1 = 0 ;
27516 int res1 = 0 ;
27517 PyObject *swig_obj[1] ;
27518
27519 if (!args) SWIG_fail;
27520 swig_obj[0] = args;
27521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27522 if (!SWIG_IsOK(res1)) {
27523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27524 }
27525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27526 {
27527 PyThreadState* __tstate = wxPyBeginAllowThreads();
27528 result = (int)(arg1)->GetLen();
27529 wxPyEndAllowThreads(__tstate);
27530 if (PyErr_Occurred()) SWIG_fail;
27531 }
27532 resultobj = SWIG_From_int(static_cast< int >(result));
27533 return resultobj;
27534fail:
27535 return NULL;
27536}
27537
27538
27539SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27540 PyObject *resultobj = 0;
27541 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27542 int arg2 ;
27543 void *argp1 = 0 ;
27544 int res1 = 0 ;
27545 int val2 ;
27546 int ecode2 = 0 ;
27547 PyObject * obj0 = 0 ;
27548 PyObject * obj1 = 0 ;
27549 char * kwnames[] = {
27550 (char *) "self",(char *) "id", NULL
27551 };
27552
27553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
27554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27555 if (!SWIG_IsOK(res1)) {
27556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27557 }
27558 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27559 ecode2 = SWIG_AsVal_int(obj1, &val2);
27560 if (!SWIG_IsOK(ecode2)) {
27561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
27562 }
27563 arg2 = static_cast< int >(val2);
27564 {
27565 PyThreadState* __tstate = wxPyBeginAllowThreads();
27566 (arg1)->SetId(arg2);
27567 wxPyEndAllowThreads(__tstate);
27568 if (PyErr_Occurred()) SWIG_fail;
27569 }
27570 resultobj = SWIG_Py_Void();
27571 return resultobj;
27572fail:
27573 return NULL;
27574}
27575
27576
27577SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27578 PyObject *resultobj = 0;
27579 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27580 int arg2 ;
27581 void *argp1 = 0 ;
27582 int res1 = 0 ;
27583 int val2 ;
27584 int ecode2 = 0 ;
27585 PyObject * obj0 = 0 ;
27586 PyObject * obj1 = 0 ;
27587 char * kwnames[] = {
27588 (char *) "self",(char *) "id", NULL
27589 };
27590
27591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
27592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27593 if (!SWIG_IsOK(res1)) {
27594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27595 }
27596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27597 ecode2 = SWIG_AsVal_int(obj1, &val2);
27598 if (!SWIG_IsOK(ecode2)) {
27599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
27600 }
27601 arg2 = static_cast< int >(val2);
27602 {
27603 PyThreadState* __tstate = wxPyBeginAllowThreads();
27604 (arg1)->ClearId(arg2);
27605 wxPyEndAllowThreads(__tstate);
27606 if (PyErr_Occurred()) SWIG_fail;
27607 }
27608 resultobj = SWIG_Py_Void();
27609 return resultobj;
27610fail:
27611 return NULL;
27612}
27613
27614
27615SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27616 PyObject *resultobj = 0;
27617 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27618 int arg2 ;
27619 void *argp1 = 0 ;
27620 int res1 = 0 ;
27621 int val2 ;
27622 int ecode2 = 0 ;
27623 PyObject * obj0 = 0 ;
27624 PyObject * obj1 = 0 ;
27625 char * kwnames[] = {
27626 (char *) "self",(char *) "id", NULL
27627 };
27628
27629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
27630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27631 if (!SWIG_IsOK(res1)) {
27632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27633 }
27634 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27635 ecode2 = SWIG_AsVal_int(obj1, &val2);
27636 if (!SWIG_IsOK(ecode2)) {
27637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
27638 }
27639 arg2 = static_cast< int >(val2);
27640 {
27641 PyThreadState* __tstate = wxPyBeginAllowThreads();
27642 (arg1)->RemoveId(arg2);
27643 wxPyEndAllowThreads(__tstate);
27644 if (PyErr_Occurred()) SWIG_fail;
27645 }
27646 resultobj = SWIG_Py_Void();
27647 return resultobj;
27648fail:
27649 return NULL;
27650}
27651
27652
27653SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27654 PyObject *resultobj = 0;
27655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27656 int arg2 ;
27657 int arg3 ;
27658 int arg4 ;
27659 void *argp1 = 0 ;
27660 int res1 = 0 ;
27661 int val2 ;
27662 int ecode2 = 0 ;
27663 int val3 ;
27664 int ecode3 = 0 ;
27665 int val4 ;
27666 int ecode4 = 0 ;
27667 PyObject * obj0 = 0 ;
27668 PyObject * obj1 = 0 ;
27669 PyObject * obj2 = 0 ;
27670 PyObject * obj3 = 0 ;
27671 char * kwnames[] = {
27672 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
27673 };
27674
27675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27677 if (!SWIG_IsOK(res1)) {
27678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27679 }
27680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27681 ecode2 = SWIG_AsVal_int(obj1, &val2);
27682 if (!SWIG_IsOK(ecode2)) {
27683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
27684 }
27685 arg2 = static_cast< int >(val2);
27686 ecode3 = SWIG_AsVal_int(obj2, &val3);
27687 if (!SWIG_IsOK(ecode3)) {
27688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
27689 }
27690 arg3 = static_cast< int >(val3);
27691 ecode4 = SWIG_AsVal_int(obj3, &val4);
27692 if (!SWIG_IsOK(ecode4)) {
27693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
27694 }
27695 arg4 = static_cast< int >(val4);
27696 {
27697 PyThreadState* __tstate = wxPyBeginAllowThreads();
27698 (arg1)->TranslateId(arg2,arg3,arg4);
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 *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27710 PyObject *resultobj = 0;
27711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27712 int arg2 ;
27713 wxDC *arg3 = (wxDC *) 0 ;
27714 void *argp1 = 0 ;
27715 int res1 = 0 ;
27716 int val2 ;
27717 int ecode2 = 0 ;
27718 void *argp3 = 0 ;
27719 int res3 = 0 ;
27720 PyObject * obj0 = 0 ;
27721 PyObject * obj1 = 0 ;
27722 PyObject * obj2 = 0 ;
27723 char * kwnames[] = {
27724 (char *) "self",(char *) "id",(char *) "dc", NULL
27725 };
27726
27727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27729 if (!SWIG_IsOK(res1)) {
27730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27731 }
27732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27733 ecode2 = SWIG_AsVal_int(obj1, &val2);
27734 if (!SWIG_IsOK(ecode2)) {
27735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
27736 }
27737 arg2 = static_cast< int >(val2);
27738 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
27739 if (!SWIG_IsOK(res3)) {
27740 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
27741 }
27742 arg3 = reinterpret_cast< wxDC * >(argp3);
27743 {
27744 PyThreadState* __tstate = wxPyBeginAllowThreads();
27745 (arg1)->DrawIdToDC(arg2,arg3);
27746 wxPyEndAllowThreads(__tstate);
27747 if (PyErr_Occurred()) SWIG_fail;
27748 }
27749 resultobj = SWIG_Py_Void();
27750 return resultobj;
27751fail:
27752 return NULL;
27753}
27754
27755
27756SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27757 PyObject *resultobj = 0;
27758 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27759 int arg2 ;
27760 wxRect *arg3 = 0 ;
27761 void *argp1 = 0 ;
27762 int res1 = 0 ;
27763 int val2 ;
27764 int ecode2 = 0 ;
27765 wxRect temp3 ;
27766 PyObject * obj0 = 0 ;
27767 PyObject * obj1 = 0 ;
27768 PyObject * obj2 = 0 ;
27769 char * kwnames[] = {
27770 (char *) "self",(char *) "id",(char *) "rect", NULL
27771 };
27772
27773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27775 if (!SWIG_IsOK(res1)) {
27776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27777 }
27778 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27779 ecode2 = SWIG_AsVal_int(obj1, &val2);
27780 if (!SWIG_IsOK(ecode2)) {
27781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
27782 }
27783 arg2 = static_cast< int >(val2);
27784 {
27785 arg3 = &temp3;
27786 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27787 }
27788 {
27789 PyThreadState* __tstate = wxPyBeginAllowThreads();
27790 (arg1)->SetIdBounds(arg2,*arg3);
27791 wxPyEndAllowThreads(__tstate);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 resultobj = SWIG_Py_Void();
27795 return resultobj;
27796fail:
27797 return NULL;
27798}
27799
27800
27801SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27802 PyObject *resultobj = 0;
27803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27804 int arg2 ;
27805 wxRect result;
27806 void *argp1 = 0 ;
27807 int res1 = 0 ;
27808 int val2 ;
27809 int ecode2 = 0 ;
27810 PyObject * obj0 = 0 ;
27811 PyObject * obj1 = 0 ;
27812 char * kwnames[] = {
27813 (char *) "self",(char *) "id", NULL
27814 };
27815
27816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
27817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27818 if (!SWIG_IsOK(res1)) {
27819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27820 }
27821 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27822 ecode2 = SWIG_AsVal_int(obj1, &val2);
27823 if (!SWIG_IsOK(ecode2)) {
27824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
27825 }
27826 arg2 = static_cast< int >(val2);
27827 {
27828 PyThreadState* __tstate = wxPyBeginAllowThreads();
27829 result = wxPseudoDC_GetIdBounds(arg1,arg2);
27830 wxPyEndAllowThreads(__tstate);
27831 if (PyErr_Occurred()) SWIG_fail;
27832 }
27833 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
27834 return resultobj;
27835fail:
27836 return NULL;
27837}
27838
27839
27840SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27841 PyObject *resultobj = 0;
27842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27843 wxDC *arg2 = (wxDC *) 0 ;
27844 wxRect *arg3 = 0 ;
27845 void *argp1 = 0 ;
27846 int res1 = 0 ;
27847 void *argp2 = 0 ;
27848 int res2 = 0 ;
27849 wxRect temp3 ;
27850 PyObject * obj0 = 0 ;
27851 PyObject * obj1 = 0 ;
27852 PyObject * obj2 = 0 ;
27853 char * kwnames[] = {
27854 (char *) "self",(char *) "dc",(char *) "rect", NULL
27855 };
27856
27857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27859 if (!SWIG_IsOK(res1)) {
27860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27861 }
27862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27863 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
27864 if (!SWIG_IsOK(res2)) {
27865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
27866 }
27867 arg2 = reinterpret_cast< wxDC * >(argp2);
27868 {
27869 arg3 = &temp3;
27870 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27871 }
27872 {
27873 PyThreadState* __tstate = wxPyBeginAllowThreads();
27874 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
27875 wxPyEndAllowThreads(__tstate);
27876 if (PyErr_Occurred()) SWIG_fail;
27877 }
27878 resultobj = SWIG_Py_Void();
27879 return resultobj;
27880fail:
27881 return NULL;
27882}
27883
27884
27885SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27886 PyObject *resultobj = 0;
27887 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27888 wxDC *arg2 = (wxDC *) 0 ;
27889 wxRegion *arg3 = 0 ;
27890 void *argp1 = 0 ;
27891 int res1 = 0 ;
27892 void *argp2 = 0 ;
27893 int res2 = 0 ;
27894 void *argp3 = 0 ;
27895 int res3 = 0 ;
27896 PyObject * obj0 = 0 ;
27897 PyObject * obj1 = 0 ;
27898 PyObject * obj2 = 0 ;
27899 char * kwnames[] = {
27900 (char *) "self",(char *) "dc",(char *) "region", NULL
27901 };
27902
27903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27905 if (!SWIG_IsOK(res1)) {
27906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27907 }
27908 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
27910 if (!SWIG_IsOK(res2)) {
27911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
27912 }
27913 arg2 = reinterpret_cast< wxDC * >(argp2);
27914 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
27915 if (!SWIG_IsOK(res3)) {
27916 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
27917 }
27918 if (!argp3) {
27919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
27920 }
27921 arg3 = reinterpret_cast< wxRegion * >(argp3);
27922 {
27923 PyThreadState* __tstate = wxPyBeginAllowThreads();
27924 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
27925 wxPyEndAllowThreads(__tstate);
27926 if (PyErr_Occurred()) SWIG_fail;
27927 }
27928 resultobj = SWIG_Py_Void();
27929 return resultobj;
27930fail:
27931 return NULL;
27932}
27933
27934
27935SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27936 PyObject *resultobj = 0;
27937 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27938 wxDC *arg2 = (wxDC *) 0 ;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 void *argp2 = 0 ;
27942 int res2 = 0 ;
27943 PyObject * obj0 = 0 ;
27944 PyObject * obj1 = 0 ;
27945 char * kwnames[] = {
27946 (char *) "self",(char *) "dc", NULL
27947 };
27948
27949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
27950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27951 if (!SWIG_IsOK(res1)) {
27952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27953 }
27954 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
27956 if (!SWIG_IsOK(res2)) {
27957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
27958 }
27959 arg2 = reinterpret_cast< wxDC * >(argp2);
27960 {
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 (arg1)->DrawToDC(arg2);
27963 wxPyEndAllowThreads(__tstate);
27964 if (PyErr_Occurred()) SWIG_fail;
27965 }
27966 resultobj = SWIG_Py_Void();
27967 return resultobj;
27968fail:
27969 return NULL;
27970}
27971
27972
27973SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27974 PyObject *resultobj = 0;
27975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27976 int arg2 ;
27977 int arg3 ;
27978 wxColour *arg4 = 0 ;
27979 int arg5 = (int) wxFLOOD_SURFACE ;
27980 void *argp1 = 0 ;
27981 int res1 = 0 ;
27982 int val2 ;
27983 int ecode2 = 0 ;
27984 int val3 ;
27985 int ecode3 = 0 ;
27986 wxColour temp4 ;
27987 int val5 ;
27988 int ecode5 = 0 ;
27989 PyObject * obj0 = 0 ;
27990 PyObject * obj1 = 0 ;
27991 PyObject * obj2 = 0 ;
27992 PyObject * obj3 = 0 ;
27993 PyObject * obj4 = 0 ;
27994 char * kwnames[] = {
27995 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
27996 };
27997
27998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28002 }
28003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28004 ecode2 = SWIG_AsVal_int(obj1, &val2);
28005 if (!SWIG_IsOK(ecode2)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28007 }
28008 arg2 = static_cast< int >(val2);
28009 ecode3 = SWIG_AsVal_int(obj2, &val3);
28010 if (!SWIG_IsOK(ecode3)) {
28011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28012 }
28013 arg3 = static_cast< int >(val3);
28014 {
28015 arg4 = &temp4;
28016 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28017 }
28018 if (obj4) {
28019 ecode5 = SWIG_AsVal_int(obj4, &val5);
28020 if (!SWIG_IsOK(ecode5)) {
28021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28022 }
28023 arg5 = static_cast< int >(val5);
28024 }
28025 {
28026 PyThreadState* __tstate = wxPyBeginAllowThreads();
28027 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28028 wxPyEndAllowThreads(__tstate);
28029 if (PyErr_Occurred()) SWIG_fail;
28030 }
28031 resultobj = SWIG_Py_Void();
28032 return resultobj;
28033fail:
28034 return NULL;
28035}
28036
28037
28038SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28039 PyObject *resultobj = 0;
28040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28041 wxPoint *arg2 = 0 ;
28042 wxColour *arg3 = 0 ;
28043 int arg4 = (int) wxFLOOD_SURFACE ;
28044 void *argp1 = 0 ;
28045 int res1 = 0 ;
28046 wxPoint temp2 ;
28047 wxColour temp3 ;
28048 int val4 ;
28049 int ecode4 = 0 ;
28050 PyObject * obj0 = 0 ;
28051 PyObject * obj1 = 0 ;
28052 PyObject * obj2 = 0 ;
28053 PyObject * obj3 = 0 ;
28054 char * kwnames[] = {
28055 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28056 };
28057
28058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28060 if (!SWIG_IsOK(res1)) {
28061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28062 }
28063 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28064 {
28065 arg2 = &temp2;
28066 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28067 }
28068 {
28069 arg3 = &temp3;
28070 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28071 }
28072 if (obj3) {
28073 ecode4 = SWIG_AsVal_int(obj3, &val4);
28074 if (!SWIG_IsOK(ecode4)) {
28075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28076 }
28077 arg4 = static_cast< int >(val4);
28078 }
28079 {
28080 PyThreadState* __tstate = wxPyBeginAllowThreads();
28081 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28082 wxPyEndAllowThreads(__tstate);
28083 if (PyErr_Occurred()) SWIG_fail;
28084 }
28085 resultobj = SWIG_Py_Void();
28086 return resultobj;
28087fail:
28088 return NULL;
28089}
28090
28091
28092SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28093 PyObject *resultobj = 0;
28094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28095 int arg2 ;
28096 int arg3 ;
28097 int arg4 ;
28098 int arg5 ;
28099 void *argp1 = 0 ;
28100 int res1 = 0 ;
28101 int val2 ;
28102 int ecode2 = 0 ;
28103 int val3 ;
28104 int ecode3 = 0 ;
28105 int val4 ;
28106 int ecode4 = 0 ;
28107 int val5 ;
28108 int ecode5 = 0 ;
28109 PyObject * obj0 = 0 ;
28110 PyObject * obj1 = 0 ;
28111 PyObject * obj2 = 0 ;
28112 PyObject * obj3 = 0 ;
28113 PyObject * obj4 = 0 ;
28114 char * kwnames[] = {
28115 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28116 };
28117
28118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28122 }
28123 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28124 ecode2 = SWIG_AsVal_int(obj1, &val2);
28125 if (!SWIG_IsOK(ecode2)) {
28126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28127 }
28128 arg2 = static_cast< int >(val2);
28129 ecode3 = SWIG_AsVal_int(obj2, &val3);
28130 if (!SWIG_IsOK(ecode3)) {
28131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
28132 }
28133 arg3 = static_cast< int >(val3);
28134 ecode4 = SWIG_AsVal_int(obj3, &val4);
28135 if (!SWIG_IsOK(ecode4)) {
28136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
28137 }
28138 arg4 = static_cast< int >(val4);
28139 ecode5 = SWIG_AsVal_int(obj4, &val5);
28140 if (!SWIG_IsOK(ecode5)) {
28141 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
28142 }
28143 arg5 = static_cast< int >(val5);
28144 {
28145 PyThreadState* __tstate = wxPyBeginAllowThreads();
28146 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
28147 wxPyEndAllowThreads(__tstate);
28148 if (PyErr_Occurred()) SWIG_fail;
28149 }
28150 resultobj = SWIG_Py_Void();
28151 return resultobj;
28152fail:
28153 return NULL;
28154}
28155
28156
28157SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28158 PyObject *resultobj = 0;
28159 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28160 wxPoint *arg2 = 0 ;
28161 wxPoint *arg3 = 0 ;
28162 void *argp1 = 0 ;
28163 int res1 = 0 ;
28164 wxPoint temp2 ;
28165 wxPoint temp3 ;
28166 PyObject * obj0 = 0 ;
28167 PyObject * obj1 = 0 ;
28168 PyObject * obj2 = 0 ;
28169 char * kwnames[] = {
28170 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
28171 };
28172
28173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28177 }
28178 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28179 {
28180 arg2 = &temp2;
28181 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28182 }
28183 {
28184 arg3 = &temp3;
28185 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28186 }
28187 {
28188 PyThreadState* __tstate = wxPyBeginAllowThreads();
28189 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
28190 wxPyEndAllowThreads(__tstate);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 resultobj = SWIG_Py_Void();
28194 return resultobj;
28195fail:
28196 return NULL;
28197}
28198
28199
28200SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28201 PyObject *resultobj = 0;
28202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28203 int arg2 ;
28204 int arg3 ;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 int val2 ;
28208 int ecode2 = 0 ;
28209 int val3 ;
28210 int ecode3 = 0 ;
28211 PyObject * obj0 = 0 ;
28212 PyObject * obj1 = 0 ;
28213 PyObject * obj2 = 0 ;
28214 char * kwnames[] = {
28215 (char *) "self",(char *) "x",(char *) "y", NULL
28216 };
28217
28218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28220 if (!SWIG_IsOK(res1)) {
28221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28222 }
28223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28224 ecode2 = SWIG_AsVal_int(obj1, &val2);
28225 if (!SWIG_IsOK(ecode2)) {
28226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
28227 }
28228 arg2 = static_cast< int >(val2);
28229 ecode3 = SWIG_AsVal_int(obj2, &val3);
28230 if (!SWIG_IsOK(ecode3)) {
28231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
28232 }
28233 arg3 = static_cast< int >(val3);
28234 {
28235 PyThreadState* __tstate = wxPyBeginAllowThreads();
28236 (arg1)->CrossHair(arg2,arg3);
28237 wxPyEndAllowThreads(__tstate);
28238 if (PyErr_Occurred()) SWIG_fail;
28239 }
28240 resultobj = SWIG_Py_Void();
28241 return resultobj;
28242fail:
28243 return NULL;
28244}
28245
28246
28247SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28248 PyObject *resultobj = 0;
28249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28250 wxPoint *arg2 = 0 ;
28251 void *argp1 = 0 ;
28252 int res1 = 0 ;
28253 wxPoint temp2 ;
28254 PyObject * obj0 = 0 ;
28255 PyObject * obj1 = 0 ;
28256 char * kwnames[] = {
28257 (char *) "self",(char *) "pt", NULL
28258 };
28259
28260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28262 if (!SWIG_IsOK(res1)) {
28263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28264 }
28265 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28266 {
28267 arg2 = &temp2;
28268 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28269 }
28270 {
28271 PyThreadState* __tstate = wxPyBeginAllowThreads();
28272 (arg1)->CrossHair((wxPoint const &)*arg2);
28273 wxPyEndAllowThreads(__tstate);
28274 if (PyErr_Occurred()) SWIG_fail;
28275 }
28276 resultobj = SWIG_Py_Void();
28277 return resultobj;
28278fail:
28279 return NULL;
28280}
28281
28282
28283SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28284 PyObject *resultobj = 0;
28285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28286 int arg2 ;
28287 int arg3 ;
28288 int arg4 ;
28289 int arg5 ;
28290 int arg6 ;
28291 int arg7 ;
28292 void *argp1 = 0 ;
28293 int res1 = 0 ;
28294 int val2 ;
28295 int ecode2 = 0 ;
28296 int val3 ;
28297 int ecode3 = 0 ;
28298 int val4 ;
28299 int ecode4 = 0 ;
28300 int val5 ;
28301 int ecode5 = 0 ;
28302 int val6 ;
28303 int ecode6 = 0 ;
28304 int val7 ;
28305 int ecode7 = 0 ;
28306 PyObject * obj0 = 0 ;
28307 PyObject * obj1 = 0 ;
28308 PyObject * obj2 = 0 ;
28309 PyObject * obj3 = 0 ;
28310 PyObject * obj4 = 0 ;
28311 PyObject * obj5 = 0 ;
28312 PyObject * obj6 = 0 ;
28313 char * kwnames[] = {
28314 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
28315 };
28316
28317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28319 if (!SWIG_IsOK(res1)) {
28320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28321 }
28322 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28323 ecode2 = SWIG_AsVal_int(obj1, &val2);
28324 if (!SWIG_IsOK(ecode2)) {
28325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
28326 }
28327 arg2 = static_cast< int >(val2);
28328 ecode3 = SWIG_AsVal_int(obj2, &val3);
28329 if (!SWIG_IsOK(ecode3)) {
28330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
28331 }
28332 arg3 = static_cast< int >(val3);
28333 ecode4 = SWIG_AsVal_int(obj3, &val4);
28334 if (!SWIG_IsOK(ecode4)) {
28335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
28336 }
28337 arg4 = static_cast< int >(val4);
28338 ecode5 = SWIG_AsVal_int(obj4, &val5);
28339 if (!SWIG_IsOK(ecode5)) {
28340 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
28341 }
28342 arg5 = static_cast< int >(val5);
28343 ecode6 = SWIG_AsVal_int(obj5, &val6);
28344 if (!SWIG_IsOK(ecode6)) {
28345 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
28346 }
28347 arg6 = static_cast< int >(val6);
28348 ecode7 = SWIG_AsVal_int(obj6, &val7);
28349 if (!SWIG_IsOK(ecode7)) {
28350 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
28351 }
28352 arg7 = static_cast< int >(val7);
28353 {
28354 PyThreadState* __tstate = wxPyBeginAllowThreads();
28355 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
28356 wxPyEndAllowThreads(__tstate);
28357 if (PyErr_Occurred()) SWIG_fail;
28358 }
28359 resultobj = SWIG_Py_Void();
28360 return resultobj;
28361fail:
28362 return NULL;
28363}
28364
28365
28366SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28367 PyObject *resultobj = 0;
28368 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28369 wxPoint *arg2 = 0 ;
28370 wxPoint *arg3 = 0 ;
28371 wxPoint *arg4 = 0 ;
28372 void *argp1 = 0 ;
28373 int res1 = 0 ;
28374 wxPoint temp2 ;
28375 wxPoint temp3 ;
28376 wxPoint temp4 ;
28377 PyObject * obj0 = 0 ;
28378 PyObject * obj1 = 0 ;
28379 PyObject * obj2 = 0 ;
28380 PyObject * obj3 = 0 ;
28381 char * kwnames[] = {
28382 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
28383 };
28384
28385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28387 if (!SWIG_IsOK(res1)) {
28388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28389 }
28390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28391 {
28392 arg2 = &temp2;
28393 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28394 }
28395 {
28396 arg3 = &temp3;
28397 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28398 }
28399 {
28400 arg4 = &temp4;
28401 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28402 }
28403 {
28404 PyThreadState* __tstate = wxPyBeginAllowThreads();
28405 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
28406 wxPyEndAllowThreads(__tstate);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 resultobj = SWIG_Py_Void();
28410 return resultobj;
28411fail:
28412 return NULL;
28413}
28414
28415
28416SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28417 PyObject *resultobj = 0;
28418 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28419 int arg2 ;
28420 int arg3 ;
28421 int arg4 ;
28422 int arg5 ;
28423 void *argp1 = 0 ;
28424 int res1 = 0 ;
28425 int val2 ;
28426 int ecode2 = 0 ;
28427 int val3 ;
28428 int ecode3 = 0 ;
28429 int val4 ;
28430 int ecode4 = 0 ;
28431 int val5 ;
28432 int ecode5 = 0 ;
28433 PyObject * obj0 = 0 ;
28434 PyObject * obj1 = 0 ;
28435 PyObject * obj2 = 0 ;
28436 PyObject * obj3 = 0 ;
28437 PyObject * obj4 = 0 ;
28438 char * kwnames[] = {
28439 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28440 };
28441
28442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28444 if (!SWIG_IsOK(res1)) {
28445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28446 }
28447 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28448 ecode2 = SWIG_AsVal_int(obj1, &val2);
28449 if (!SWIG_IsOK(ecode2)) {
28450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
28451 }
28452 arg2 = static_cast< int >(val2);
28453 ecode3 = SWIG_AsVal_int(obj2, &val3);
28454 if (!SWIG_IsOK(ecode3)) {
28455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
28456 }
28457 arg3 = static_cast< int >(val3);
28458 ecode4 = SWIG_AsVal_int(obj3, &val4);
28459 if (!SWIG_IsOK(ecode4)) {
28460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
28461 }
28462 arg4 = static_cast< int >(val4);
28463 ecode5 = SWIG_AsVal_int(obj4, &val5);
28464 if (!SWIG_IsOK(ecode5)) {
28465 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
28466 }
28467 arg5 = static_cast< int >(val5);
28468 {
28469 PyThreadState* __tstate = wxPyBeginAllowThreads();
28470 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
28471 wxPyEndAllowThreads(__tstate);
28472 if (PyErr_Occurred()) SWIG_fail;
28473 }
28474 resultobj = SWIG_Py_Void();
28475 return resultobj;
28476fail:
28477 return NULL;
28478}
28479
28480
28481SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28482 PyObject *resultobj = 0;
28483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28484 wxRect *arg2 = 0 ;
28485 void *argp1 = 0 ;
28486 int res1 = 0 ;
28487 wxRect temp2 ;
28488 PyObject * obj0 = 0 ;
28489 PyObject * obj1 = 0 ;
28490 char * kwnames[] = {
28491 (char *) "self",(char *) "rect", NULL
28492 };
28493
28494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
28495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28496 if (!SWIG_IsOK(res1)) {
28497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28498 }
28499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28500 {
28501 arg2 = &temp2;
28502 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28503 }
28504 {
28505 PyThreadState* __tstate = wxPyBeginAllowThreads();
28506 (arg1)->DrawCheckMark((wxRect const &)*arg2);
28507 wxPyEndAllowThreads(__tstate);
28508 if (PyErr_Occurred()) SWIG_fail;
28509 }
28510 resultobj = SWIG_Py_Void();
28511 return resultobj;
28512fail:
28513 return NULL;
28514}
28515
28516
28517SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28518 PyObject *resultobj = 0;
28519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28520 int arg2 ;
28521 int arg3 ;
28522 int arg4 ;
28523 int arg5 ;
28524 double arg6 ;
28525 double arg7 ;
28526 void *argp1 = 0 ;
28527 int res1 = 0 ;
28528 int val2 ;
28529 int ecode2 = 0 ;
28530 int val3 ;
28531 int ecode3 = 0 ;
28532 int val4 ;
28533 int ecode4 = 0 ;
28534 int val5 ;
28535 int ecode5 = 0 ;
28536 double val6 ;
28537 int ecode6 = 0 ;
28538 double val7 ;
28539 int ecode7 = 0 ;
28540 PyObject * obj0 = 0 ;
28541 PyObject * obj1 = 0 ;
28542 PyObject * obj2 = 0 ;
28543 PyObject * obj3 = 0 ;
28544 PyObject * obj4 = 0 ;
28545 PyObject * obj5 = 0 ;
28546 PyObject * obj6 = 0 ;
28547 char * kwnames[] = {
28548 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
28549 };
28550
28551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28553 if (!SWIG_IsOK(res1)) {
28554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28555 }
28556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28557 ecode2 = SWIG_AsVal_int(obj1, &val2);
28558 if (!SWIG_IsOK(ecode2)) {
28559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
28560 }
28561 arg2 = static_cast< int >(val2);
28562 ecode3 = SWIG_AsVal_int(obj2, &val3);
28563 if (!SWIG_IsOK(ecode3)) {
28564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
28565 }
28566 arg3 = static_cast< int >(val3);
28567 ecode4 = SWIG_AsVal_int(obj3, &val4);
28568 if (!SWIG_IsOK(ecode4)) {
28569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
28570 }
28571 arg4 = static_cast< int >(val4);
28572 ecode5 = SWIG_AsVal_int(obj4, &val5);
28573 if (!SWIG_IsOK(ecode5)) {
28574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
28575 }
28576 arg5 = static_cast< int >(val5);
28577 ecode6 = SWIG_AsVal_double(obj5, &val6);
28578 if (!SWIG_IsOK(ecode6)) {
28579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
28580 }
28581 arg6 = static_cast< double >(val6);
28582 ecode7 = SWIG_AsVal_double(obj6, &val7);
28583 if (!SWIG_IsOK(ecode7)) {
28584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
28585 }
28586 arg7 = static_cast< double >(val7);
28587 {
28588 PyThreadState* __tstate = wxPyBeginAllowThreads();
28589 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
28590 wxPyEndAllowThreads(__tstate);
28591 if (PyErr_Occurred()) SWIG_fail;
28592 }
28593 resultobj = SWIG_Py_Void();
28594 return resultobj;
28595fail:
28596 return NULL;
28597}
28598
28599
28600SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28601 PyObject *resultobj = 0;
28602 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28603 wxPoint *arg2 = 0 ;
28604 wxSize *arg3 = 0 ;
28605 double arg4 ;
28606 double arg5 ;
28607 void *argp1 = 0 ;
28608 int res1 = 0 ;
28609 wxPoint temp2 ;
28610 wxSize temp3 ;
28611 double val4 ;
28612 int ecode4 = 0 ;
28613 double val5 ;
28614 int ecode5 = 0 ;
28615 PyObject * obj0 = 0 ;
28616 PyObject * obj1 = 0 ;
28617 PyObject * obj2 = 0 ;
28618 PyObject * obj3 = 0 ;
28619 PyObject * obj4 = 0 ;
28620 char * kwnames[] = {
28621 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
28622 };
28623
28624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28626 if (!SWIG_IsOK(res1)) {
28627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28628 }
28629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28630 {
28631 arg2 = &temp2;
28632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28633 }
28634 {
28635 arg3 = &temp3;
28636 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
28637 }
28638 ecode4 = SWIG_AsVal_double(obj3, &val4);
28639 if (!SWIG_IsOK(ecode4)) {
28640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
28641 }
28642 arg4 = static_cast< double >(val4);
28643 ecode5 = SWIG_AsVal_double(obj4, &val5);
28644 if (!SWIG_IsOK(ecode5)) {
28645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
28646 }
28647 arg5 = static_cast< double >(val5);
28648 {
28649 PyThreadState* __tstate = wxPyBeginAllowThreads();
28650 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
28651 wxPyEndAllowThreads(__tstate);
28652 if (PyErr_Occurred()) SWIG_fail;
28653 }
28654 resultobj = SWIG_Py_Void();
28655 return resultobj;
28656fail:
28657 return NULL;
28658}
28659
28660
28661SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28662 PyObject *resultobj = 0;
28663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28664 int arg2 ;
28665 int arg3 ;
28666 void *argp1 = 0 ;
28667 int res1 = 0 ;
28668 int val2 ;
28669 int ecode2 = 0 ;
28670 int val3 ;
28671 int ecode3 = 0 ;
28672 PyObject * obj0 = 0 ;
28673 PyObject * obj1 = 0 ;
28674 PyObject * obj2 = 0 ;
28675 char * kwnames[] = {
28676 (char *) "self",(char *) "x",(char *) "y", NULL
28677 };
28678
28679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28681 if (!SWIG_IsOK(res1)) {
28682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28683 }
28684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28685 ecode2 = SWIG_AsVal_int(obj1, &val2);
28686 if (!SWIG_IsOK(ecode2)) {
28687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
28688 }
28689 arg2 = static_cast< int >(val2);
28690 ecode3 = SWIG_AsVal_int(obj2, &val3);
28691 if (!SWIG_IsOK(ecode3)) {
28692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
28693 }
28694 arg3 = static_cast< int >(val3);
28695 {
28696 PyThreadState* __tstate = wxPyBeginAllowThreads();
28697 (arg1)->DrawPoint(arg2,arg3);
28698 wxPyEndAllowThreads(__tstate);
28699 if (PyErr_Occurred()) SWIG_fail;
28700 }
28701 resultobj = SWIG_Py_Void();
28702 return resultobj;
28703fail:
28704 return NULL;
28705}
28706
28707
28708SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28709 PyObject *resultobj = 0;
28710 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28711 wxPoint *arg2 = 0 ;
28712 void *argp1 = 0 ;
28713 int res1 = 0 ;
28714 wxPoint temp2 ;
28715 PyObject * obj0 = 0 ;
28716 PyObject * obj1 = 0 ;
28717 char * kwnames[] = {
28718 (char *) "self",(char *) "pt", NULL
28719 };
28720
28721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28723 if (!SWIG_IsOK(res1)) {
28724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28725 }
28726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28727 {
28728 arg2 = &temp2;
28729 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28730 }
28731 {
28732 PyThreadState* __tstate = wxPyBeginAllowThreads();
28733 (arg1)->DrawPoint((wxPoint const &)*arg2);
28734 wxPyEndAllowThreads(__tstate);
28735 if (PyErr_Occurred()) SWIG_fail;
28736 }
28737 resultobj = SWIG_Py_Void();
28738 return resultobj;
28739fail:
28740 return NULL;
28741}
28742
28743
28744SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28745 PyObject *resultobj = 0;
28746 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28747 int arg2 ;
28748 int arg3 ;
28749 int arg4 ;
28750 int arg5 ;
28751 void *argp1 = 0 ;
28752 int res1 = 0 ;
28753 int val2 ;
28754 int ecode2 = 0 ;
28755 int val3 ;
28756 int ecode3 = 0 ;
28757 int val4 ;
28758 int ecode4 = 0 ;
28759 int val5 ;
28760 int ecode5 = 0 ;
28761 PyObject * obj0 = 0 ;
28762 PyObject * obj1 = 0 ;
28763 PyObject * obj2 = 0 ;
28764 PyObject * obj3 = 0 ;
28765 PyObject * obj4 = 0 ;
28766 char * kwnames[] = {
28767 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28768 };
28769
28770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28772 if (!SWIG_IsOK(res1)) {
28773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28774 }
28775 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28776 ecode2 = SWIG_AsVal_int(obj1, &val2);
28777 if (!SWIG_IsOK(ecode2)) {
28778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
28779 }
28780 arg2 = static_cast< int >(val2);
28781 ecode3 = SWIG_AsVal_int(obj2, &val3);
28782 if (!SWIG_IsOK(ecode3)) {
28783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
28784 }
28785 arg3 = static_cast< int >(val3);
28786 ecode4 = SWIG_AsVal_int(obj3, &val4);
28787 if (!SWIG_IsOK(ecode4)) {
28788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
28789 }
28790 arg4 = static_cast< int >(val4);
28791 ecode5 = SWIG_AsVal_int(obj4, &val5);
28792 if (!SWIG_IsOK(ecode5)) {
28793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
28794 }
28795 arg5 = static_cast< int >(val5);
28796 {
28797 PyThreadState* __tstate = wxPyBeginAllowThreads();
28798 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
28799 wxPyEndAllowThreads(__tstate);
28800 if (PyErr_Occurred()) SWIG_fail;
28801 }
28802 resultobj = SWIG_Py_Void();
28803 return resultobj;
28804fail:
28805 return NULL;
28806}
28807
28808
28809SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28810 PyObject *resultobj = 0;
28811 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28812 wxRect *arg2 = 0 ;
28813 void *argp1 = 0 ;
28814 int res1 = 0 ;
28815 wxRect temp2 ;
28816 PyObject * obj0 = 0 ;
28817 PyObject * obj1 = 0 ;
28818 char * kwnames[] = {
28819 (char *) "self",(char *) "rect", NULL
28820 };
28821
28822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
28823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28824 if (!SWIG_IsOK(res1)) {
28825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28826 }
28827 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28828 {
28829 arg2 = &temp2;
28830 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28831 }
28832 {
28833 PyThreadState* __tstate = wxPyBeginAllowThreads();
28834 (arg1)->DrawRectangle((wxRect const &)*arg2);
28835 wxPyEndAllowThreads(__tstate);
28836 if (PyErr_Occurred()) SWIG_fail;
28837 }
28838 resultobj = SWIG_Py_Void();
28839 return resultobj;
28840fail:
28841 return NULL;
28842}
28843
28844
28845SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28846 PyObject *resultobj = 0;
28847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28848 wxPoint *arg2 = 0 ;
28849 wxSize *arg3 = 0 ;
28850 void *argp1 = 0 ;
28851 int res1 = 0 ;
28852 wxPoint temp2 ;
28853 wxSize temp3 ;
28854 PyObject * obj0 = 0 ;
28855 PyObject * obj1 = 0 ;
28856 PyObject * obj2 = 0 ;
28857 char * kwnames[] = {
28858 (char *) "self",(char *) "pt",(char *) "sz", NULL
28859 };
28860
28861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28863 if (!SWIG_IsOK(res1)) {
28864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28865 }
28866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28867 {
28868 arg2 = &temp2;
28869 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28870 }
28871 {
28872 arg3 = &temp3;
28873 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
28874 }
28875 {
28876 PyThreadState* __tstate = wxPyBeginAllowThreads();
28877 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_Py_Void();
28882 return resultobj;
28883fail:
28884 return NULL;
28885}
28886
28887
28888SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28889 PyObject *resultobj = 0;
28890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28891 int arg2 ;
28892 int arg3 ;
28893 int arg4 ;
28894 int arg5 ;
28895 double arg6 ;
28896 void *argp1 = 0 ;
28897 int res1 = 0 ;
28898 int val2 ;
28899 int ecode2 = 0 ;
28900 int val3 ;
28901 int ecode3 = 0 ;
28902 int val4 ;
28903 int ecode4 = 0 ;
28904 int val5 ;
28905 int ecode5 = 0 ;
28906 double val6 ;
28907 int ecode6 = 0 ;
28908 PyObject * obj0 = 0 ;
28909 PyObject * obj1 = 0 ;
28910 PyObject * obj2 = 0 ;
28911 PyObject * obj3 = 0 ;
28912 PyObject * obj4 = 0 ;
28913 PyObject * obj5 = 0 ;
28914 char * kwnames[] = {
28915 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
28916 };
28917
28918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28920 if (!SWIG_IsOK(res1)) {
28921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28922 }
28923 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28924 ecode2 = SWIG_AsVal_int(obj1, &val2);
28925 if (!SWIG_IsOK(ecode2)) {
28926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
28927 }
28928 arg2 = static_cast< int >(val2);
28929 ecode3 = SWIG_AsVal_int(obj2, &val3);
28930 if (!SWIG_IsOK(ecode3)) {
28931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
28932 }
28933 arg3 = static_cast< int >(val3);
28934 ecode4 = SWIG_AsVal_int(obj3, &val4);
28935 if (!SWIG_IsOK(ecode4)) {
28936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
28937 }
28938 arg4 = static_cast< int >(val4);
28939 ecode5 = SWIG_AsVal_int(obj4, &val5);
28940 if (!SWIG_IsOK(ecode5)) {
28941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
28942 }
28943 arg5 = static_cast< int >(val5);
28944 ecode6 = SWIG_AsVal_double(obj5, &val6);
28945 if (!SWIG_IsOK(ecode6)) {
28946 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
28947 }
28948 arg6 = static_cast< double >(val6);
28949 {
28950 PyThreadState* __tstate = wxPyBeginAllowThreads();
28951 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 resultobj = SWIG_Py_Void();
28956 return resultobj;
28957fail:
28958 return NULL;
28959}
28960
28961
28962SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28963 PyObject *resultobj = 0;
28964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28965 wxRect *arg2 = 0 ;
28966 double arg3 ;
28967 void *argp1 = 0 ;
28968 int res1 = 0 ;
28969 wxRect temp2 ;
28970 double val3 ;
28971 int ecode3 = 0 ;
28972 PyObject * obj0 = 0 ;
28973 PyObject * obj1 = 0 ;
28974 PyObject * obj2 = 0 ;
28975 char * kwnames[] = {
28976 (char *) "self",(char *) "r",(char *) "radius", NULL
28977 };
28978
28979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28981 if (!SWIG_IsOK(res1)) {
28982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28983 }
28984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28985 {
28986 arg2 = &temp2;
28987 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28988 }
28989 ecode3 = SWIG_AsVal_double(obj2, &val3);
28990 if (!SWIG_IsOK(ecode3)) {
28991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
28992 }
28993 arg3 = static_cast< double >(val3);
28994 {
28995 PyThreadState* __tstate = wxPyBeginAllowThreads();
28996 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
28997 wxPyEndAllowThreads(__tstate);
28998 if (PyErr_Occurred()) SWIG_fail;
28999 }
29000 resultobj = SWIG_Py_Void();
29001 return resultobj;
29002fail:
29003 return NULL;
29004}
29005
29006
29007SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29008 PyObject *resultobj = 0;
29009 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29010 wxPoint *arg2 = 0 ;
29011 wxSize *arg3 = 0 ;
29012 double arg4 ;
29013 void *argp1 = 0 ;
29014 int res1 = 0 ;
29015 wxPoint temp2 ;
29016 wxSize temp3 ;
29017 double val4 ;
29018 int ecode4 = 0 ;
29019 PyObject * obj0 = 0 ;
29020 PyObject * obj1 = 0 ;
29021 PyObject * obj2 = 0 ;
29022 PyObject * obj3 = 0 ;
29023 char * kwnames[] = {
29024 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29025 };
29026
29027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29029 if (!SWIG_IsOK(res1)) {
29030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29031 }
29032 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29033 {
29034 arg2 = &temp2;
29035 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29036 }
29037 {
29038 arg3 = &temp3;
29039 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29040 }
29041 ecode4 = SWIG_AsVal_double(obj3, &val4);
29042 if (!SWIG_IsOK(ecode4)) {
29043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29044 }
29045 arg4 = static_cast< double >(val4);
29046 {
29047 PyThreadState* __tstate = wxPyBeginAllowThreads();
29048 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29049 wxPyEndAllowThreads(__tstate);
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
29052 resultobj = SWIG_Py_Void();
29053 return resultobj;
29054fail:
29055 return NULL;
29056}
29057
29058
29059SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29060 PyObject *resultobj = 0;
29061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29062 int arg2 ;
29063 int arg3 ;
29064 int arg4 ;
29065 void *argp1 = 0 ;
29066 int res1 = 0 ;
29067 int val2 ;
29068 int ecode2 = 0 ;
29069 int val3 ;
29070 int ecode3 = 0 ;
29071 int val4 ;
29072 int ecode4 = 0 ;
29073 PyObject * obj0 = 0 ;
29074 PyObject * obj1 = 0 ;
29075 PyObject * obj2 = 0 ;
29076 PyObject * obj3 = 0 ;
29077 char * kwnames[] = {
29078 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29079 };
29080
29081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29083 if (!SWIG_IsOK(res1)) {
29084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29085 }
29086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29087 ecode2 = SWIG_AsVal_int(obj1, &val2);
29088 if (!SWIG_IsOK(ecode2)) {
29089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29090 }
29091 arg2 = static_cast< int >(val2);
29092 ecode3 = SWIG_AsVal_int(obj2, &val3);
29093 if (!SWIG_IsOK(ecode3)) {
29094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29095 }
29096 arg3 = static_cast< int >(val3);
29097 ecode4 = SWIG_AsVal_int(obj3, &val4);
29098 if (!SWIG_IsOK(ecode4)) {
29099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29100 }
29101 arg4 = static_cast< int >(val4);
29102 {
29103 PyThreadState* __tstate = wxPyBeginAllowThreads();
29104 (arg1)->DrawCircle(arg2,arg3,arg4);
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 resultobj = SWIG_Py_Void();
29109 return resultobj;
29110fail:
29111 return NULL;
29112}
29113
29114
29115SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29116 PyObject *resultobj = 0;
29117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29118 wxPoint *arg2 = 0 ;
29119 int arg3 ;
29120 void *argp1 = 0 ;
29121 int res1 = 0 ;
29122 wxPoint temp2 ;
29123 int val3 ;
29124 int ecode3 = 0 ;
29125 PyObject * obj0 = 0 ;
29126 PyObject * obj1 = 0 ;
29127 PyObject * obj2 = 0 ;
29128 char * kwnames[] = {
29129 (char *) "self",(char *) "pt",(char *) "radius", NULL
29130 };
29131
29132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29134 if (!SWIG_IsOK(res1)) {
29135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29136 }
29137 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29138 {
29139 arg2 = &temp2;
29140 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29141 }
29142 ecode3 = SWIG_AsVal_int(obj2, &val3);
29143 if (!SWIG_IsOK(ecode3)) {
29144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
29145 }
29146 arg3 = static_cast< int >(val3);
29147 {
29148 PyThreadState* __tstate = wxPyBeginAllowThreads();
29149 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
29150 wxPyEndAllowThreads(__tstate);
29151 if (PyErr_Occurred()) SWIG_fail;
29152 }
29153 resultobj = SWIG_Py_Void();
29154 return resultobj;
29155fail:
29156 return NULL;
29157}
29158
29159
29160SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29161 PyObject *resultobj = 0;
29162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29163 int arg2 ;
29164 int arg3 ;
29165 int arg4 ;
29166 int arg5 ;
29167 void *argp1 = 0 ;
29168 int res1 = 0 ;
29169 int val2 ;
29170 int ecode2 = 0 ;
29171 int val3 ;
29172 int ecode3 = 0 ;
29173 int val4 ;
29174 int ecode4 = 0 ;
29175 int val5 ;
29176 int ecode5 = 0 ;
29177 PyObject * obj0 = 0 ;
29178 PyObject * obj1 = 0 ;
29179 PyObject * obj2 = 0 ;
29180 PyObject * obj3 = 0 ;
29181 PyObject * obj4 = 0 ;
29182 char * kwnames[] = {
29183 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29184 };
29185
29186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29188 if (!SWIG_IsOK(res1)) {
29189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29190 }
29191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29192 ecode2 = SWIG_AsVal_int(obj1, &val2);
29193 if (!SWIG_IsOK(ecode2)) {
29194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
29195 }
29196 arg2 = static_cast< int >(val2);
29197 ecode3 = SWIG_AsVal_int(obj2, &val3);
29198 if (!SWIG_IsOK(ecode3)) {
29199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
29200 }
29201 arg3 = static_cast< int >(val3);
29202 ecode4 = SWIG_AsVal_int(obj3, &val4);
29203 if (!SWIG_IsOK(ecode4)) {
29204 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
29205 }
29206 arg4 = static_cast< int >(val4);
29207 ecode5 = SWIG_AsVal_int(obj4, &val5);
29208 if (!SWIG_IsOK(ecode5)) {
29209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
29210 }
29211 arg5 = static_cast< int >(val5);
29212 {
29213 PyThreadState* __tstate = wxPyBeginAllowThreads();
29214 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29215 wxPyEndAllowThreads(__tstate);
29216 if (PyErr_Occurred()) SWIG_fail;
29217 }
29218 resultobj = SWIG_Py_Void();
29219 return resultobj;
29220fail:
29221 return NULL;
29222}
29223
29224
29225SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29226 PyObject *resultobj = 0;
29227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29228 wxRect *arg2 = 0 ;
29229 void *argp1 = 0 ;
29230 int res1 = 0 ;
29231 wxRect temp2 ;
29232 PyObject * obj0 = 0 ;
29233 PyObject * obj1 = 0 ;
29234 char * kwnames[] = {
29235 (char *) "self",(char *) "rect", NULL
29236 };
29237
29238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
29239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29240 if (!SWIG_IsOK(res1)) {
29241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29242 }
29243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29244 {
29245 arg2 = &temp2;
29246 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29247 }
29248 {
29249 PyThreadState* __tstate = wxPyBeginAllowThreads();
29250 (arg1)->DrawEllipse((wxRect const &)*arg2);
29251 wxPyEndAllowThreads(__tstate);
29252 if (PyErr_Occurred()) SWIG_fail;
29253 }
29254 resultobj = SWIG_Py_Void();
29255 return resultobj;
29256fail:
29257 return NULL;
29258}
29259
29260
29261SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj = 0;
29263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29264 wxPoint *arg2 = 0 ;
29265 wxSize *arg3 = 0 ;
29266 void *argp1 = 0 ;
29267 int res1 = 0 ;
29268 wxPoint temp2 ;
29269 wxSize temp3 ;
29270 PyObject * obj0 = 0 ;
29271 PyObject * obj1 = 0 ;
29272 PyObject * obj2 = 0 ;
29273 char * kwnames[] = {
29274 (char *) "self",(char *) "pt",(char *) "sz", NULL
29275 };
29276
29277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29279 if (!SWIG_IsOK(res1)) {
29280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29281 }
29282 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29283 {
29284 arg2 = &temp2;
29285 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29286 }
29287 {
29288 arg3 = &temp3;
29289 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29290 }
29291 {
29292 PyThreadState* __tstate = wxPyBeginAllowThreads();
29293 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
29294 wxPyEndAllowThreads(__tstate);
29295 if (PyErr_Occurred()) SWIG_fail;
29296 }
29297 resultobj = SWIG_Py_Void();
29298 return resultobj;
29299fail:
29300 return NULL;
29301}
29302
29303
29304SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29305 PyObject *resultobj = 0;
29306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29307 wxIcon *arg2 = 0 ;
29308 int arg3 ;
29309 int arg4 ;
29310 void *argp1 = 0 ;
29311 int res1 = 0 ;
29312 void *argp2 = 0 ;
29313 int res2 = 0 ;
29314 int val3 ;
29315 int ecode3 = 0 ;
29316 int val4 ;
29317 int ecode4 = 0 ;
29318 PyObject * obj0 = 0 ;
29319 PyObject * obj1 = 0 ;
29320 PyObject * obj2 = 0 ;
29321 PyObject * obj3 = 0 ;
29322 char * kwnames[] = {
29323 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
29324 };
29325
29326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29328 if (!SWIG_IsOK(res1)) {
29329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29330 }
29331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29333 if (!SWIG_IsOK(res2)) {
29334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29335 }
29336 if (!argp2) {
29337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29338 }
29339 arg2 = reinterpret_cast< wxIcon * >(argp2);
29340 ecode3 = SWIG_AsVal_int(obj2, &val3);
29341 if (!SWIG_IsOK(ecode3)) {
29342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
29343 }
29344 arg3 = static_cast< int >(val3);
29345 ecode4 = SWIG_AsVal_int(obj3, &val4);
29346 if (!SWIG_IsOK(ecode4)) {
29347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
29348 }
29349 arg4 = static_cast< int >(val4);
29350 {
29351 PyThreadState* __tstate = wxPyBeginAllowThreads();
29352 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
29353 wxPyEndAllowThreads(__tstate);
29354 if (PyErr_Occurred()) SWIG_fail;
29355 }
29356 resultobj = SWIG_Py_Void();
29357 return resultobj;
29358fail:
29359 return NULL;
29360}
29361
29362
29363SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29364 PyObject *resultobj = 0;
29365 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29366 wxIcon *arg2 = 0 ;
29367 wxPoint *arg3 = 0 ;
29368 void *argp1 = 0 ;
29369 int res1 = 0 ;
29370 void *argp2 = 0 ;
29371 int res2 = 0 ;
29372 wxPoint temp3 ;
29373 PyObject * obj0 = 0 ;
29374 PyObject * obj1 = 0 ;
29375 PyObject * obj2 = 0 ;
29376 char * kwnames[] = {
29377 (char *) "self",(char *) "icon",(char *) "pt", NULL
29378 };
29379
29380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29382 if (!SWIG_IsOK(res1)) {
29383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29384 }
29385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29387 if (!SWIG_IsOK(res2)) {
29388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29389 }
29390 if (!argp2) {
29391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29392 }
29393 arg2 = reinterpret_cast< wxIcon * >(argp2);
29394 {
29395 arg3 = &temp3;
29396 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29397 }
29398 {
29399 PyThreadState* __tstate = wxPyBeginAllowThreads();
29400 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
29401 wxPyEndAllowThreads(__tstate);
29402 if (PyErr_Occurred()) SWIG_fail;
29403 }
29404 resultobj = SWIG_Py_Void();
29405 return resultobj;
29406fail:
29407 return NULL;
29408}
29409
29410
29411SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29412 PyObject *resultobj = 0;
29413 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29414 wxBitmap *arg2 = 0 ;
29415 int arg3 ;
29416 int arg4 ;
29417 bool arg5 = (bool) false ;
29418 void *argp1 = 0 ;
29419 int res1 = 0 ;
29420 void *argp2 = 0 ;
29421 int res2 = 0 ;
29422 int val3 ;
29423 int ecode3 = 0 ;
29424 int val4 ;
29425 int ecode4 = 0 ;
29426 bool val5 ;
29427 int ecode5 = 0 ;
29428 PyObject * obj0 = 0 ;
29429 PyObject * obj1 = 0 ;
29430 PyObject * obj2 = 0 ;
29431 PyObject * obj3 = 0 ;
29432 PyObject * obj4 = 0 ;
29433 char * kwnames[] = {
29434 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
29435 };
29436
29437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29439 if (!SWIG_IsOK(res1)) {
29440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29441 }
29442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29444 if (!SWIG_IsOK(res2)) {
29445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29446 }
29447 if (!argp2) {
29448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29449 }
29450 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29451 ecode3 = SWIG_AsVal_int(obj2, &val3);
29452 if (!SWIG_IsOK(ecode3)) {
29453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
29454 }
29455 arg3 = static_cast< int >(val3);
29456 ecode4 = SWIG_AsVal_int(obj3, &val4);
29457 if (!SWIG_IsOK(ecode4)) {
29458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
29459 }
29460 arg4 = static_cast< int >(val4);
29461 if (obj4) {
29462 ecode5 = SWIG_AsVal_bool(obj4, &val5);
29463 if (!SWIG_IsOK(ecode5)) {
29464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
29465 }
29466 arg5 = static_cast< bool >(val5);
29467 }
29468 {
29469 PyThreadState* __tstate = wxPyBeginAllowThreads();
29470 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
29471 wxPyEndAllowThreads(__tstate);
29472 if (PyErr_Occurred()) SWIG_fail;
29473 }
29474 resultobj = SWIG_Py_Void();
29475 return resultobj;
29476fail:
29477 return NULL;
29478}
29479
29480
29481SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29482 PyObject *resultobj = 0;
29483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29484 wxBitmap *arg2 = 0 ;
29485 wxPoint *arg3 = 0 ;
29486 bool arg4 = (bool) false ;
29487 void *argp1 = 0 ;
29488 int res1 = 0 ;
29489 void *argp2 = 0 ;
29490 int res2 = 0 ;
29491 wxPoint temp3 ;
29492 bool val4 ;
29493 int ecode4 = 0 ;
29494 PyObject * obj0 = 0 ;
29495 PyObject * obj1 = 0 ;
29496 PyObject * obj2 = 0 ;
29497 PyObject * obj3 = 0 ;
29498 char * kwnames[] = {
29499 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
29500 };
29501
29502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29504 if (!SWIG_IsOK(res1)) {
29505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29506 }
29507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29509 if (!SWIG_IsOK(res2)) {
29510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29511 }
29512 if (!argp2) {
29513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29514 }
29515 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29516 {
29517 arg3 = &temp3;
29518 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29519 }
29520 if (obj3) {
29521 ecode4 = SWIG_AsVal_bool(obj3, &val4);
29522 if (!SWIG_IsOK(ecode4)) {
29523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
29524 }
29525 arg4 = static_cast< bool >(val4);
29526 }
29527 {
29528 PyThreadState* __tstate = wxPyBeginAllowThreads();
29529 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
29530 wxPyEndAllowThreads(__tstate);
29531 if (PyErr_Occurred()) SWIG_fail;
29532 }
29533 resultobj = SWIG_Py_Void();
29534 return resultobj;
29535fail:
29536 return NULL;
29537}
29538
29539
29540SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29541 PyObject *resultobj = 0;
29542 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29543 wxString *arg2 = 0 ;
29544 int arg3 ;
29545 int arg4 ;
29546 void *argp1 = 0 ;
29547 int res1 = 0 ;
29548 bool temp2 = false ;
29549 int val3 ;
29550 int ecode3 = 0 ;
29551 int val4 ;
29552 int ecode4 = 0 ;
29553 PyObject * obj0 = 0 ;
29554 PyObject * obj1 = 0 ;
29555 PyObject * obj2 = 0 ;
29556 PyObject * obj3 = 0 ;
29557 char * kwnames[] = {
29558 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
29559 };
29560
29561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29563 if (!SWIG_IsOK(res1)) {
29564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29565 }
29566 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29567 {
29568 arg2 = wxString_in_helper(obj1);
29569 if (arg2 == NULL) SWIG_fail;
29570 temp2 = true;
29571 }
29572 ecode3 = SWIG_AsVal_int(obj2, &val3);
29573 if (!SWIG_IsOK(ecode3)) {
29574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
29575 }
29576 arg3 = static_cast< int >(val3);
29577 ecode4 = SWIG_AsVal_int(obj3, &val4);
29578 if (!SWIG_IsOK(ecode4)) {
29579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
29580 }
29581 arg4 = static_cast< int >(val4);
29582 {
29583 PyThreadState* __tstate = wxPyBeginAllowThreads();
29584 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29585 wxPyEndAllowThreads(__tstate);
29586 if (PyErr_Occurred()) SWIG_fail;
29587 }
29588 resultobj = SWIG_Py_Void();
29589 {
29590 if (temp2)
29591 delete arg2;
29592 }
29593 return resultobj;
29594fail:
29595 {
29596 if (temp2)
29597 delete arg2;
29598 }
29599 return NULL;
29600}
29601
29602
29603SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29604 PyObject *resultobj = 0;
29605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29606 wxString *arg2 = 0 ;
29607 wxPoint *arg3 = 0 ;
29608 void *argp1 = 0 ;
29609 int res1 = 0 ;
29610 bool temp2 = false ;
29611 wxPoint temp3 ;
29612 PyObject * obj0 = 0 ;
29613 PyObject * obj1 = 0 ;
29614 PyObject * obj2 = 0 ;
29615 char * kwnames[] = {
29616 (char *) "self",(char *) "text",(char *) "pt", NULL
29617 };
29618
29619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29621 if (!SWIG_IsOK(res1)) {
29622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29623 }
29624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29625 {
29626 arg2 = wxString_in_helper(obj1);
29627 if (arg2 == NULL) SWIG_fail;
29628 temp2 = true;
29629 }
29630 {
29631 arg3 = &temp3;
29632 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29633 }
29634 {
29635 PyThreadState* __tstate = wxPyBeginAllowThreads();
29636 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
29637 wxPyEndAllowThreads(__tstate);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 resultobj = SWIG_Py_Void();
29641 {
29642 if (temp2)
29643 delete arg2;
29644 }
29645 return resultobj;
29646fail:
29647 {
29648 if (temp2)
29649 delete arg2;
29650 }
29651 return NULL;
29652}
29653
29654
29655SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29656 PyObject *resultobj = 0;
29657 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29658 wxString *arg2 = 0 ;
29659 int arg3 ;
29660 int arg4 ;
29661 double arg5 ;
29662 void *argp1 = 0 ;
29663 int res1 = 0 ;
29664 bool temp2 = false ;
29665 int val3 ;
29666 int ecode3 = 0 ;
29667 int val4 ;
29668 int ecode4 = 0 ;
29669 double val5 ;
29670 int ecode5 = 0 ;
29671 PyObject * obj0 = 0 ;
29672 PyObject * obj1 = 0 ;
29673 PyObject * obj2 = 0 ;
29674 PyObject * obj3 = 0 ;
29675 PyObject * obj4 = 0 ;
29676 char * kwnames[] = {
29677 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
29678 };
29679
29680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29682 if (!SWIG_IsOK(res1)) {
29683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29684 }
29685 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29686 {
29687 arg2 = wxString_in_helper(obj1);
29688 if (arg2 == NULL) SWIG_fail;
29689 temp2 = true;
29690 }
29691 ecode3 = SWIG_AsVal_int(obj2, &val3);
29692 if (!SWIG_IsOK(ecode3)) {
29693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
29694 }
29695 arg3 = static_cast< int >(val3);
29696 ecode4 = SWIG_AsVal_int(obj3, &val4);
29697 if (!SWIG_IsOK(ecode4)) {
29698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
29699 }
29700 arg4 = static_cast< int >(val4);
29701 ecode5 = SWIG_AsVal_double(obj4, &val5);
29702 if (!SWIG_IsOK(ecode5)) {
29703 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
29704 }
29705 arg5 = static_cast< double >(val5);
29706 {
29707 PyThreadState* __tstate = wxPyBeginAllowThreads();
29708 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
29709 wxPyEndAllowThreads(__tstate);
29710 if (PyErr_Occurred()) SWIG_fail;
29711 }
29712 resultobj = SWIG_Py_Void();
29713 {
29714 if (temp2)
29715 delete arg2;
29716 }
29717 return resultobj;
29718fail:
29719 {
29720 if (temp2)
29721 delete arg2;
29722 }
29723 return NULL;
29724}
29725
29726
29727SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29728 PyObject *resultobj = 0;
29729 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29730 wxString *arg2 = 0 ;
29731 wxPoint *arg3 = 0 ;
29732 double arg4 ;
29733 void *argp1 = 0 ;
29734 int res1 = 0 ;
29735 bool temp2 = false ;
29736 wxPoint temp3 ;
29737 double val4 ;
29738 int ecode4 = 0 ;
29739 PyObject * obj0 = 0 ;
29740 PyObject * obj1 = 0 ;
29741 PyObject * obj2 = 0 ;
29742 PyObject * obj3 = 0 ;
29743 char * kwnames[] = {
29744 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
29745 };
29746
29747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29749 if (!SWIG_IsOK(res1)) {
29750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29751 }
29752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29753 {
29754 arg2 = wxString_in_helper(obj1);
29755 if (arg2 == NULL) SWIG_fail;
29756 temp2 = true;
29757 }
29758 {
29759 arg3 = &temp3;
29760 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29761 }
29762 ecode4 = SWIG_AsVal_double(obj3, &val4);
29763 if (!SWIG_IsOK(ecode4)) {
29764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
29765 }
29766 arg4 = static_cast< double >(val4);
29767 {
29768 PyThreadState* __tstate = wxPyBeginAllowThreads();
29769 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
29770 wxPyEndAllowThreads(__tstate);
29771 if (PyErr_Occurred()) SWIG_fail;
29772 }
29773 resultobj = SWIG_Py_Void();
29774 {
29775 if (temp2)
29776 delete arg2;
29777 }
29778 return resultobj;
29779fail:
29780 {
29781 if (temp2)
29782 delete arg2;
29783 }
29784 return NULL;
29785}
29786
29787
29788SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29789 PyObject *resultobj = 0;
29790 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29791 int arg2 ;
29792 wxPoint *arg3 = (wxPoint *) 0 ;
29793 int arg4 = (int) 0 ;
29794 int arg5 = (int) 0 ;
29795 void *argp1 = 0 ;
29796 int res1 = 0 ;
29797 int val4 ;
29798 int ecode4 = 0 ;
29799 int val5 ;
29800 int ecode5 = 0 ;
29801 PyObject * obj0 = 0 ;
29802 PyObject * obj1 = 0 ;
29803 PyObject * obj2 = 0 ;
29804 PyObject * obj3 = 0 ;
29805 char * kwnames[] = {
29806 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
29807 };
29808
29809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29811 if (!SWIG_IsOK(res1)) {
29812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29813 }
29814 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29815 {
29816 arg3 = wxPoint_LIST_helper(obj1, &arg2);
29817 if (arg3 == NULL) SWIG_fail;
29818 }
29819 if (obj2) {
29820 ecode4 = SWIG_AsVal_int(obj2, &val4);
29821 if (!SWIG_IsOK(ecode4)) {
29822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
29823 }
29824 arg4 = static_cast< int >(val4);
29825 }
29826 if (obj3) {
29827 ecode5 = SWIG_AsVal_int(obj3, &val5);
29828 if (!SWIG_IsOK(ecode5)) {
29829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
29830 }
29831 arg5 = static_cast< int >(val5);
29832 }
29833 {
29834 PyThreadState* __tstate = wxPyBeginAllowThreads();
29835 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
29836 wxPyEndAllowThreads(__tstate);
29837 if (PyErr_Occurred()) SWIG_fail;
29838 }
29839 resultobj = SWIG_Py_Void();
29840 {
29841 if (arg3) delete [] arg3;
29842 }
29843 return resultobj;
29844fail:
29845 {
29846 if (arg3) delete [] arg3;
29847 }
29848 return NULL;
29849}
29850
29851
29852SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29853 PyObject *resultobj = 0;
29854 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29855 int arg2 ;
29856 wxPoint *arg3 = (wxPoint *) 0 ;
29857 int arg4 = (int) 0 ;
29858 int arg5 = (int) 0 ;
29859 int arg6 = (int) wxODDEVEN_RULE ;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 int val4 ;
29863 int ecode4 = 0 ;
29864 int val5 ;
29865 int ecode5 = 0 ;
29866 int val6 ;
29867 int ecode6 = 0 ;
29868 PyObject * obj0 = 0 ;
29869 PyObject * obj1 = 0 ;
29870 PyObject * obj2 = 0 ;
29871 PyObject * obj3 = 0 ;
29872 PyObject * obj4 = 0 ;
29873 char * kwnames[] = {
29874 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
29875 };
29876
29877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29879 if (!SWIG_IsOK(res1)) {
29880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29881 }
29882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29883 {
29884 arg3 = wxPoint_LIST_helper(obj1, &arg2);
29885 if (arg3 == NULL) SWIG_fail;
29886 }
29887 if (obj2) {
29888 ecode4 = SWIG_AsVal_int(obj2, &val4);
29889 if (!SWIG_IsOK(ecode4)) {
29890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
29891 }
29892 arg4 = static_cast< int >(val4);
29893 }
29894 if (obj3) {
29895 ecode5 = SWIG_AsVal_int(obj3, &val5);
29896 if (!SWIG_IsOK(ecode5)) {
29897 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
29898 }
29899 arg5 = static_cast< int >(val5);
29900 }
29901 if (obj4) {
29902 ecode6 = SWIG_AsVal_int(obj4, &val6);
29903 if (!SWIG_IsOK(ecode6)) {
29904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
29905 }
29906 arg6 = static_cast< int >(val6);
29907 }
29908 {
29909 PyThreadState* __tstate = wxPyBeginAllowThreads();
29910 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
29911 wxPyEndAllowThreads(__tstate);
29912 if (PyErr_Occurred()) SWIG_fail;
29913 }
29914 resultobj = SWIG_Py_Void();
29915 {
29916 if (arg3) delete [] arg3;
29917 }
29918 return resultobj;
29919fail:
29920 {
29921 if (arg3) delete [] arg3;
29922 }
29923 return NULL;
29924}
29925
29926
29927SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29928 PyObject *resultobj = 0;
29929 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29930 wxString *arg2 = 0 ;
29931 wxRect *arg3 = 0 ;
29932 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
29933 int arg5 = (int) -1 ;
29934 void *argp1 = 0 ;
29935 int res1 = 0 ;
29936 bool temp2 = false ;
29937 wxRect temp3 ;
29938 int val4 ;
29939 int ecode4 = 0 ;
29940 int val5 ;
29941 int ecode5 = 0 ;
29942 PyObject * obj0 = 0 ;
29943 PyObject * obj1 = 0 ;
29944 PyObject * obj2 = 0 ;
29945 PyObject * obj3 = 0 ;
29946 PyObject * obj4 = 0 ;
29947 char * kwnames[] = {
29948 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
29949 };
29950
29951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29953 if (!SWIG_IsOK(res1)) {
29954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29955 }
29956 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29957 {
29958 arg2 = wxString_in_helper(obj1);
29959 if (arg2 == NULL) SWIG_fail;
29960 temp2 = true;
29961 }
29962 {
29963 arg3 = &temp3;
29964 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29965 }
29966 if (obj3) {
29967 ecode4 = SWIG_AsVal_int(obj3, &val4);
29968 if (!SWIG_IsOK(ecode4)) {
29969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
29970 }
29971 arg4 = static_cast< int >(val4);
29972 }
29973 if (obj4) {
29974 ecode5 = SWIG_AsVal_int(obj4, &val5);
29975 if (!SWIG_IsOK(ecode5)) {
29976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
29977 }
29978 arg5 = static_cast< int >(val5);
29979 }
29980 {
29981 PyThreadState* __tstate = wxPyBeginAllowThreads();
29982 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
29983 wxPyEndAllowThreads(__tstate);
29984 if (PyErr_Occurred()) SWIG_fail;
29985 }
29986 resultobj = SWIG_Py_Void();
29987 {
29988 if (temp2)
29989 delete arg2;
29990 }
29991 return resultobj;
29992fail:
29993 {
29994 if (temp2)
29995 delete arg2;
29996 }
29997 return NULL;
29998}
29999
30000
30001SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30002 PyObject *resultobj = 0;
30003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30004 wxString *arg2 = 0 ;
30005 wxBitmap *arg3 = 0 ;
30006 wxRect *arg4 = 0 ;
30007 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30008 int arg6 = (int) -1 ;
30009 void *argp1 = 0 ;
30010 int res1 = 0 ;
30011 bool temp2 = false ;
30012 void *argp3 = 0 ;
30013 int res3 = 0 ;
30014 wxRect temp4 ;
30015 int val5 ;
30016 int ecode5 = 0 ;
30017 int val6 ;
30018 int ecode6 = 0 ;
30019 PyObject * obj0 = 0 ;
30020 PyObject * obj1 = 0 ;
30021 PyObject * obj2 = 0 ;
30022 PyObject * obj3 = 0 ;
30023 PyObject * obj4 = 0 ;
30024 PyObject * obj5 = 0 ;
30025 char * kwnames[] = {
30026 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30027 };
30028
30029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30031 if (!SWIG_IsOK(res1)) {
30032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30033 }
30034 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30035 {
30036 arg2 = wxString_in_helper(obj1);
30037 if (arg2 == NULL) SWIG_fail;
30038 temp2 = true;
30039 }
30040 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30041 if (!SWIG_IsOK(res3)) {
30042 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30043 }
30044 if (!argp3) {
30045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30046 }
30047 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30048 {
30049 arg4 = &temp4;
30050 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30051 }
30052 if (obj4) {
30053 ecode5 = SWIG_AsVal_int(obj4, &val5);
30054 if (!SWIG_IsOK(ecode5)) {
30055 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30056 }
30057 arg5 = static_cast< int >(val5);
30058 }
30059 if (obj5) {
30060 ecode6 = SWIG_AsVal_int(obj5, &val6);
30061 if (!SWIG_IsOK(ecode6)) {
30062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30063 }
30064 arg6 = static_cast< int >(val6);
30065 }
30066 {
30067 PyThreadState* __tstate = wxPyBeginAllowThreads();
30068 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30069 wxPyEndAllowThreads(__tstate);
30070 if (PyErr_Occurred()) SWIG_fail;
30071 }
30072 resultobj = SWIG_Py_Void();
30073 {
30074 if (temp2)
30075 delete arg2;
30076 }
30077 return resultobj;
30078fail:
30079 {
30080 if (temp2)
30081 delete arg2;
30082 }
30083 return NULL;
30084}
30085
30086
30087SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30088 PyObject *resultobj = 0;
30089 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30090 int arg2 ;
30091 wxPoint *arg3 = (wxPoint *) 0 ;
30092 void *argp1 = 0 ;
30093 int res1 = 0 ;
30094 PyObject * obj0 = 0 ;
30095 PyObject * obj1 = 0 ;
30096 char * kwnames[] = {
30097 (char *) "self",(char *) "points", NULL
30098 };
30099
30100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30106 {
30107 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30108 if (arg3 == NULL) SWIG_fail;
30109 }
30110 {
30111 PyThreadState* __tstate = wxPyBeginAllowThreads();
30112 (arg1)->DrawSpline(arg2,arg3);
30113 wxPyEndAllowThreads(__tstate);
30114 if (PyErr_Occurred()) SWIG_fail;
30115 }
30116 resultobj = SWIG_Py_Void();
30117 {
30118 if (arg3) delete [] arg3;
30119 }
30120 return resultobj;
30121fail:
30122 {
30123 if (arg3) delete [] arg3;
30124 }
30125 return NULL;
30126}
30127
30128
30129SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30130 PyObject *resultobj = 0;
30131 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30132 void *argp1 = 0 ;
30133 int res1 = 0 ;
30134 PyObject *swig_obj[1] ;
30135
30136 if (!args) SWIG_fail;
30137 swig_obj[0] = args;
30138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30139 if (!SWIG_IsOK(res1)) {
30140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30141 }
30142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30143 {
30144 PyThreadState* __tstate = wxPyBeginAllowThreads();
30145 (arg1)->Clear();
30146 wxPyEndAllowThreads(__tstate);
30147 if (PyErr_Occurred()) SWIG_fail;
30148 }
30149 resultobj = SWIG_Py_Void();
30150 return resultobj;
30151fail:
30152 return NULL;
30153}
30154
30155
30156SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30157 PyObject *resultobj = 0;
30158 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30159 wxFont *arg2 = 0 ;
30160 void *argp1 = 0 ;
30161 int res1 = 0 ;
30162 void *argp2 = 0 ;
30163 int res2 = 0 ;
30164 PyObject * obj0 = 0 ;
30165 PyObject * obj1 = 0 ;
30166 char * kwnames[] = {
30167 (char *) "self",(char *) "font", NULL
30168 };
30169
30170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
30171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30172 if (!SWIG_IsOK(res1)) {
30173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30174 }
30175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30177 if (!SWIG_IsOK(res2)) {
30178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30179 }
30180 if (!argp2) {
30181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30182 }
30183 arg2 = reinterpret_cast< wxFont * >(argp2);
30184 {
30185 PyThreadState* __tstate = wxPyBeginAllowThreads();
30186 (arg1)->SetFont((wxFont const &)*arg2);
30187 wxPyEndAllowThreads(__tstate);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 resultobj = SWIG_Py_Void();
30191 return resultobj;
30192fail:
30193 return NULL;
30194}
30195
30196
30197SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30198 PyObject *resultobj = 0;
30199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30200 wxPen *arg2 = 0 ;
30201 void *argp1 = 0 ;
30202 int res1 = 0 ;
30203 void *argp2 = 0 ;
30204 int res2 = 0 ;
30205 PyObject * obj0 = 0 ;
30206 PyObject * obj1 = 0 ;
30207 char * kwnames[] = {
30208 (char *) "self",(char *) "pen", NULL
30209 };
30210
30211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
30212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30213 if (!SWIG_IsOK(res1)) {
30214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30215 }
30216 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30218 if (!SWIG_IsOK(res2)) {
30219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30220 }
30221 if (!argp2) {
30222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30223 }
30224 arg2 = reinterpret_cast< wxPen * >(argp2);
30225 {
30226 PyThreadState* __tstate = wxPyBeginAllowThreads();
30227 (arg1)->SetPen((wxPen const &)*arg2);
30228 wxPyEndAllowThreads(__tstate);
30229 if (PyErr_Occurred()) SWIG_fail;
30230 }
30231 resultobj = SWIG_Py_Void();
30232 return resultobj;
30233fail:
30234 return NULL;
30235}
30236
30237
30238SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30239 PyObject *resultobj = 0;
30240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30241 wxBrush *arg2 = 0 ;
30242 void *argp1 = 0 ;
30243 int res1 = 0 ;
30244 void *argp2 = 0 ;
30245 int res2 = 0 ;
30246 PyObject * obj0 = 0 ;
30247 PyObject * obj1 = 0 ;
30248 char * kwnames[] = {
30249 (char *) "self",(char *) "brush", NULL
30250 };
30251
30252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30254 if (!SWIG_IsOK(res1)) {
30255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30256 }
30257 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30259 if (!SWIG_IsOK(res2)) {
30260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30261 }
30262 if (!argp2) {
30263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30264 }
30265 arg2 = reinterpret_cast< wxBrush * >(argp2);
30266 {
30267 PyThreadState* __tstate = wxPyBeginAllowThreads();
30268 (arg1)->SetBrush((wxBrush const &)*arg2);
30269 wxPyEndAllowThreads(__tstate);
30270 if (PyErr_Occurred()) SWIG_fail;
30271 }
30272 resultobj = SWIG_Py_Void();
30273 return resultobj;
30274fail:
30275 return NULL;
30276}
30277
30278
30279SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30280 PyObject *resultobj = 0;
30281 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30282 wxBrush *arg2 = 0 ;
30283 void *argp1 = 0 ;
30284 int res1 = 0 ;
30285 void *argp2 = 0 ;
30286 int res2 = 0 ;
30287 PyObject * obj0 = 0 ;
30288 PyObject * obj1 = 0 ;
30289 char * kwnames[] = {
30290 (char *) "self",(char *) "brush", NULL
30291 };
30292
30293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30300 if (!SWIG_IsOK(res2)) {
30301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30302 }
30303 if (!argp2) {
30304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30305 }
30306 arg2 = reinterpret_cast< wxBrush * >(argp2);
30307 {
30308 PyThreadState* __tstate = wxPyBeginAllowThreads();
30309 (arg1)->SetBackground((wxBrush const &)*arg2);
30310 wxPyEndAllowThreads(__tstate);
30311 if (PyErr_Occurred()) SWIG_fail;
30312 }
30313 resultobj = SWIG_Py_Void();
30314 return resultobj;
30315fail:
30316 return NULL;
30317}
30318
30319
30320SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30321 PyObject *resultobj = 0;
30322 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30323 int arg2 ;
30324 void *argp1 = 0 ;
30325 int res1 = 0 ;
30326 int val2 ;
30327 int ecode2 = 0 ;
30328 PyObject * obj0 = 0 ;
30329 PyObject * obj1 = 0 ;
30330 char * kwnames[] = {
30331 (char *) "self",(char *) "mode", NULL
30332 };
30333
30334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
30335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30336 if (!SWIG_IsOK(res1)) {
30337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30338 }
30339 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30340 ecode2 = SWIG_AsVal_int(obj1, &val2);
30341 if (!SWIG_IsOK(ecode2)) {
30342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
30343 }
30344 arg2 = static_cast< int >(val2);
30345 {
30346 PyThreadState* __tstate = wxPyBeginAllowThreads();
30347 (arg1)->SetBackgroundMode(arg2);
30348 wxPyEndAllowThreads(__tstate);
30349 if (PyErr_Occurred()) SWIG_fail;
30350 }
30351 resultobj = SWIG_Py_Void();
30352 return resultobj;
30353fail:
30354 return NULL;
30355}
30356
30357
30358SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30359 PyObject *resultobj = 0;
30360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30361 wxPalette *arg2 = 0 ;
30362 void *argp1 = 0 ;
30363 int res1 = 0 ;
30364 void *argp2 = 0 ;
30365 int res2 = 0 ;
30366 PyObject * obj0 = 0 ;
30367 PyObject * obj1 = 0 ;
30368 char * kwnames[] = {
30369 (char *) "self",(char *) "palette", NULL
30370 };
30371
30372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
30373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30374 if (!SWIG_IsOK(res1)) {
30375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30376 }
30377 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
30379 if (!SWIG_IsOK(res2)) {
30380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30381 }
30382 if (!argp2) {
30383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30384 }
30385 arg2 = reinterpret_cast< wxPalette * >(argp2);
30386 {
30387 PyThreadState* __tstate = wxPyBeginAllowThreads();
30388 (arg1)->SetPalette((wxPalette const &)*arg2);
30389 wxPyEndAllowThreads(__tstate);
30390 if (PyErr_Occurred()) SWIG_fail;
30391 }
30392 resultobj = SWIG_Py_Void();
30393 return resultobj;
30394fail:
30395 return NULL;
30396}
30397
30398
30399SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30400 PyObject *resultobj = 0;
30401 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30402 wxColour *arg2 = 0 ;
30403 void *argp1 = 0 ;
30404 int res1 = 0 ;
30405 wxColour temp2 ;
30406 PyObject * obj0 = 0 ;
30407 PyObject * obj1 = 0 ;
30408 char * kwnames[] = {
30409 (char *) "self",(char *) "colour", NULL
30410 };
30411
30412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
30413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30414 if (!SWIG_IsOK(res1)) {
30415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30416 }
30417 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30418 {
30419 arg2 = &temp2;
30420 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30421 }
30422 {
30423 PyThreadState* __tstate = wxPyBeginAllowThreads();
30424 (arg1)->SetTextForeground((wxColour const &)*arg2);
30425 wxPyEndAllowThreads(__tstate);
30426 if (PyErr_Occurred()) SWIG_fail;
30427 }
30428 resultobj = SWIG_Py_Void();
30429 return resultobj;
30430fail:
30431 return NULL;
30432}
30433
30434
30435SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30436 PyObject *resultobj = 0;
30437 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30438 wxColour *arg2 = 0 ;
30439 void *argp1 = 0 ;
30440 int res1 = 0 ;
30441 wxColour temp2 ;
30442 PyObject * obj0 = 0 ;
30443 PyObject * obj1 = 0 ;
30444 char * kwnames[] = {
30445 (char *) "self",(char *) "colour", NULL
30446 };
30447
30448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30450 if (!SWIG_IsOK(res1)) {
30451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30452 }
30453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30454 {
30455 arg2 = &temp2;
30456 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30457 }
30458 {
30459 PyThreadState* __tstate = wxPyBeginAllowThreads();
30460 (arg1)->SetTextBackground((wxColour const &)*arg2);
30461 wxPyEndAllowThreads(__tstate);
30462 if (PyErr_Occurred()) SWIG_fail;
30463 }
30464 resultobj = SWIG_Py_Void();
30465 return resultobj;
30466fail:
30467 return NULL;
30468}
30469
30470
30471SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30472 PyObject *resultobj = 0;
30473 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30474 int arg2 ;
30475 void *argp1 = 0 ;
30476 int res1 = 0 ;
30477 int val2 ;
30478 int ecode2 = 0 ;
30479 PyObject * obj0 = 0 ;
30480 PyObject * obj1 = 0 ;
30481 char * kwnames[] = {
30482 (char *) "self",(char *) "function", NULL
30483 };
30484
30485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
30486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30487 if (!SWIG_IsOK(res1)) {
30488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30489 }
30490 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30491 ecode2 = SWIG_AsVal_int(obj1, &val2);
30492 if (!SWIG_IsOK(ecode2)) {
30493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
30494 }
30495 arg2 = static_cast< int >(val2);
30496 {
30497 PyThreadState* __tstate = wxPyBeginAllowThreads();
30498 (arg1)->SetLogicalFunction(arg2);
30499 wxPyEndAllowThreads(__tstate);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_Py_Void();
30503 return resultobj;
30504fail:
30505 return NULL;
30506}
30507
30508
30509SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30510 PyObject *obj;
30511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30512 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
30513 return SWIG_Py_Void();
30514}
30515
30516SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30517 return SWIG_Python_InitShadowInstance(args);
30518}
30519
30520static PyMethodDef SwigMethods[] = {
30521 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
30522 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
30523 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
30524 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
30525 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
30526 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
30527 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
30528 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30529 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
30530 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
30531 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
30532 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 30533 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
27e45892
RD
30534 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
30535 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30536 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30537 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
30538 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
30539 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
30540 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30541 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 30542 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
30543 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
30544 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
30545 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
30546 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
30547 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
30548 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
30549 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30550 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
30551 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
30552 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
30553 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
30554 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
30555 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
30556 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
30557 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
30558 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
30559 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
30560 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
30561 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
30562 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
30563 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30564 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
30565 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30566 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30567 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30568 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
30569 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30570 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
30571 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30572 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30573 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
30574 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
30575 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
30576 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30577 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
30578 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30579 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30580 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
30581 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
30582 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
30583 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
30584 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
30585 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
30586 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
30587 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
30588 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30589 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
30590 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30591 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30592 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30593 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30594 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
30595 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
30596 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
30597 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
30598 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
30599 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
30600 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
30601 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
30602 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
30603 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
30604 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30605 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
30606 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
30607 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
30608 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30609 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30610 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30611 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30612 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
30613 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30614 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30615 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
30616 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
30617 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
30618 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
30619 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
30620 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
30621 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
30622 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
30623 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
30624 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
30625 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
30626 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
30627 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
30628 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
30629 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
30630 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
30631 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
30632 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
30633 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
30634 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
30635 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30636 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
30637 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
30638 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30639 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30640 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30641 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30642 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30643 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
30644 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
30645 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
30646 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
30647 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
30648 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
30649 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
30650 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
30651 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
30652 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
30653 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
30654 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
30655 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30656 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
30657 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
30658 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30659 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30660 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30661 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30662 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30663 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
30664 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
30665 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
30666 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
30667 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
30668 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
30669 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
30670 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
30671 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
30672 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
30673 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30674 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30675 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30676 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
30677 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
30678 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
30679 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
30680 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
30681 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30682 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30683 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30684 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30685 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
30686 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
30687 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30688 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
30689 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
30690 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
30691 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
30692 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
30693 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
30694 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
30695 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
30696 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
30697 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30698 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30699 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
30700 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30701 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30702 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30703 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
30704 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
30705 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
30706 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
30707 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
30708 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30709 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
30710 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
30711 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
30712 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
30713 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30714 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30715 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
30716 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
30717 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
30718 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30719 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
30720 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30721 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
30722 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
30723 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
30724 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
30725 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
30726 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30727 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
30728 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
30729 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
30730 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30731 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
30732 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
30733 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30734 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
30735 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
30736 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30737 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
30738 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30739 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30740 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
30741 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
30742 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
30743 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
30744 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
30745 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
30746 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
30747 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
30748 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
30749 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
30750 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
30751 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
30752 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
30753 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
30754 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
30755 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
30756 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
30757 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
30758 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
30759 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
30760 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
30761 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
30762 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
30763 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
30764 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
30765 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
30766 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
30767 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
30768 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30769 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30770 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
30771 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
30772 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
30773 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
30774 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30775 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30776 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
30777 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
30778 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
30779 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
30780 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
30781 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
30782 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
30783 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
30784 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
30785 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
30786 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
30787 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
30788 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30789 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
30790 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
30791 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
30792 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30793 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30794 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
30795 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
30796 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
30797 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30798 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30799 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
30800 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30801 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
30802 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
30803 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
30804 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
30805 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
30806 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30807 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
30808 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
30809 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
30810 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
30811 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
30812 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
30813 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
30814 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30815 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
30816 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
30817 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
30818 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
30819 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
30820 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
30821 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30822 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
30823 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
30824 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
30825 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
30826 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
30827 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
30828 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
30829 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
30830 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
30831 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
30832 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
30833 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
30834 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
30835 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30836 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
30837 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
30838 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30839 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
30840 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
30841 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
30842 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30843 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30844 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
30845 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
30846 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
30847 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
30848 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
30849 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
30850 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
30851 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
30852 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30853 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
30854 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
30855 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
30856 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
30857 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30858 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
30859 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
30860 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
30861 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
30862 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
30863 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
30864 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
30865 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
30866 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
30867 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
30868 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
30869 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
30870 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
30871 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
30872 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
30873 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
30874 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
30875 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
30876 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
30877 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
30878 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
30879 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
30880 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
30881 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
30882 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
30883 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
30884 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
30885 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
30886 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
30887 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30888 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
30889 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30890 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
30891 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
30892 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
30893 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
30894 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
30895 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
30896 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
30897 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30898 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
30899 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
30900 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
30901 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
30902 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
30903 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
30904 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
30905 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
30906 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
30907 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
30908 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
30909 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
30910 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
30911 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
30912 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
30913 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
30914 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
30915 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30916 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
30917 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
30918 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
30919 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30920 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
30921 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
30922 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
30923 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30924 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
30925 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30926 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
30927 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
30928 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
30929 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30930 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30931 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30932 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
30933 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
30934 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30935 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
30936 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
30937 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30938 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
30939 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
30940 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
30941 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
30942 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30943 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30944 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30945 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30946 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30947 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
30948 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30949 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
30950 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30951 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
30952 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30953 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30954 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30955 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30956 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
30957 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
30958 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
30959 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
30960 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
30961 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
30962 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
30963 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
30964 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
30965 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
30966 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
30967 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
30968 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
30969 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
30970 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
30971 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
30972 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
30973 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
30974 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
30975 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
30976 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
30977 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
30978 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
30979 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
30980 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
30981 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
30982 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
30983 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
30984 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
30985 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
30986 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
30987 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
30988 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
30989 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
30990 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
30991 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
30992 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
30993 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
30994 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
30995 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
30996 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
30997 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
30998 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
30999 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31000 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31001 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31002 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31003 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31004 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31005 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31006 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31007 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31008 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31009 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31010 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31011 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31012 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31013 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31014 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31015 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31016 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31017 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31018 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31019 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31020 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31021 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31022 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31023 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31024 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31025 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31026 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31027 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31028 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31029 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31030 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31031 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31032 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31033 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31034 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31035 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31036 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31037 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31038 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31039 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31040 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31041 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31042 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31043 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31044 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31045 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31046 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31047 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31048 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31049 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31050 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31051 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31052 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31053 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31054 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31055 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31056 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31057 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31058 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31059 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31060 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31061 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31062 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31063 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31064 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31065 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31066 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31067 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31068 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31069 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31070 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31071 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31072 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31073 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31074 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31075 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31076 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31077 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31078 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31079 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31080 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31081 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31082 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31083 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31084 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31085 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31086 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31087 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31088 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31089 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31090 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31091 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31092 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31093 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31094 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31095 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31096 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31097 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31098 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31099 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31100 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31101 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31102 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
31103 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31104 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31105 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31106 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31107 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31108 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31109 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31110 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31111 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31112 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31113 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31114 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31115 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31116 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31117 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 31118 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 31119 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 31120 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 31121 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 31122 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 31123 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 31124 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 31125 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
31126 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
31127 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
31128 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
31129 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
31130 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
31131 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
31132 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
31133 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
31134 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
31135 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
31136 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
31137 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
31138 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
31139 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
31140 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
31141 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
31142 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
31143 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
31144 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
31145 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
31146 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
31147 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
31148 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
31149 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31150 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
31151 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31152 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31153 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31154 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
31155 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31156 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
31157 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
31158 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
31159 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
31160 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
31161 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
31162 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
31163 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
31164 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
31165 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
31166 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
31167 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
31168 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
31169 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
31170 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
31171 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
31172 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
31173 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
31174 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
31175 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
31176 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
31177 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
31178 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
31179 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
31180 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
31181 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
31182 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
31183 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
31184 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
31185 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31186 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
31187 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
31188 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
31189 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
31190 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
31191 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
31192 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
31193 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
31194 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
31195 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
31196 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
31197 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
31198 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31199 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31200 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31201 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
31202 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
31203 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31204 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31205 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31206 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31207 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31208 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31209 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31210 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31211 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31212 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31213 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31214 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31215 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31216 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31217 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31218 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31219 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31220 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31221 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31222 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31223 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31224 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31225 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31226 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31227 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31228 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31229 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31230 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31231 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31232 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31233 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31234 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31235 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31236 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31237 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31238 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31239 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31240 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31241 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31242 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
31243 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31244 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31245 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31246 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31247 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31248 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31249 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31250 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31251 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31252 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
31253 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
31254 { NULL, NULL, 0, NULL }
31255};
31256
31257
31258/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31259
31260static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
31261 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
31262}
31263static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
31264 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
31265}
fc46b7f3
RD
31266static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
31267 return (void *)((wxLocale *) ((wxPyLocale *) x));
31268}
0085ce49
RD
31269static void *_p_wxIconTo_p_wxGDIObject(void *x) {
31270 return (void *)((wxGDIObject *) ((wxIcon *) x));
31271}
31272static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
31273 return (void *)((wxGDIObject *) ((wxPalette *) x));
31274}
31275static void *_p_wxPenTo_p_wxGDIObject(void *x) {
31276 return (void *)((wxGDIObject *) ((wxPen *) x));
31277}
31278static void *_p_wxFontTo_p_wxGDIObject(void *x) {
31279 return (void *)((wxGDIObject *) ((wxFont *) x));
31280}
31281static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
31282 return (void *)((wxGDIObject *) ((wxCursor *) x));
31283}
31284static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
31285 return (void *)((wxGDIObject *) ((wxBitmap *) x));
31286}
31287static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
31288 return (void *)((wxGDIObject *) ((wxRegion *) x));
31289}
31290static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
31291 return (void *)((wxGDIObject *) ((wxBrush *) x));
31292}
31293static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
31294 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
31295}
31296static void *_p_wxScreenDCTo_p_wxDC(void *x) {
31297 return (void *)((wxDC *) ((wxScreenDC *) x));
31298}
31299static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
31300 return (void *)((wxDC *) ((wxMirrorDC *) x));
31301}
31302static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
31303 return (void *)((wxDC *) ((wxMemoryDC *) x));
31304}
31305static void *_p_wxWindowDCTo_p_wxDC(void *x) {
31306 return (void *)((wxDC *) ((wxWindowDC *) x));
31307}
31308static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
31309 return (void *)((wxDC *) ((wxMetaFileDC *) x));
31310}
31311static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
31312 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31313}
31314static void *_p_wxClientDCTo_p_wxDC(void *x) {
31315 return (void *)((wxDC *) ((wxClientDC *) x));
31316}
31317static void *_p_wxPaintDCTo_p_wxDC(void *x) {
31318 return (void *)((wxDC *) ((wxPaintDC *) x));
31319}
31320static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
31321 return (void *)((wxDC *) ((wxPostScriptDC *) x));
31322}
31323static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
31324 return (void *)((wxDC *) ((wxPrinterDC *) x));
31325}
50efceee
RD
31326static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
31327 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
31328}
31329static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
31330 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
31331}
31332static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
31333 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
31334}
0085ce49
RD
31335static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
31336 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
31337}
31338static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31339 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31340}
31341static void *_p_wxPenTo_p_wxObject(void *x) {
31342 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
31343}
31344static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
31345 return (void *)((wxObject *) ((wxRegionIterator *) x));
31346}
0085ce49
RD
31347static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31348 return (void *)((wxObject *) ((wxSizerItem *) x));
31349}
34e0a3bb
RD
31350static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31351 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31352}
0085ce49
RD
31353static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31355}
31356static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31357 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31358}
31359static void *_p_wxIconTo_p_wxObject(void *x) {
31360 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
31361}
31362static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31363 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31364}
31365static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31366 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31367}
31368static void *_p_wxSizerTo_p_wxObject(void *x) {
31369 return (void *)((wxObject *) ((wxSizer *) x));
31370}
31371static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31372 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31373}
31374static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31376}
0085ce49
RD
31377static void *_p_wxEventTo_p_wxObject(void *x) {
31378 return (void *)((wxObject *) ((wxEvent *) x));
31379}
31380static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31381 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31382}
31383static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31384 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31385}
31386static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31387 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31388}
27e45892
RD
31389static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
31390 return (void *)((wxObject *) ((wxPseudoDC *) x));
31391}
2131d850
RD
31392static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
31393 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
31394}
0085ce49
RD
31395static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31396 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31397}
31398static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31399 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31400}
31401static void *_p_wxDCTo_p_wxObject(void *x) {
31402 return (void *)((wxObject *) ((wxDC *) x));
31403}
31404static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31405 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31406}
31407static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31408 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31409}
31410static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31411 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31412}
31413static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31414 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31415}
31416static void *_p_wxControlTo_p_wxObject(void *x) {
31417 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31418}
31419static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31420 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31421}
31422static void *_p_wxClientDCTo_p_wxObject(void *x) {
31423 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
31424}
31425static void *_p_wxFSFileTo_p_wxObject(void *x) {
31426 return (void *)((wxObject *) ((wxFSFile *) x));
31427}
31428static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
31429 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
31430}
31431static void *_p_wxRegionTo_p_wxObject(void *x) {
31432 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
31433}
31434static void *_p_wxPySizerTo_p_wxObject(void *x) {
31435 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31436}
31437static void *_p_wxWindowDCTo_p_wxObject(void *x) {
31438 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
31439}
31440static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
31441 return (void *)((wxObject *) ((wxGDIObject *) x));
31442}
31443static void *_p_wxEffectsTo_p_wxObject(void *x) {
31444 return (void *)((wxObject *) ((wxEffects *) x));
31445}
31446static void *_p_wxPyEventTo_p_wxObject(void *x) {
31447 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31448}
31449static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31450 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31451}
31452static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
31453 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
31454}
31455static void *_p_wxShowEventTo_p_wxObject(void *x) {
31456 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31457}
31458static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31459 return (void *)((wxObject *) ((wxMenuItem *) x));
31460}
31461static void *_p_wxDateEventTo_p_wxObject(void *x) {
31462 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
31463}
31464static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31465 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31466}
31467static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31468 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31469}
31470static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31471 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31472}
31473static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31474 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31475}
31476static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31477 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31478}
31479static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31480 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31481}
31482static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31483 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31484}
31485static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31486 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31487}
31488static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31489 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31490}
31491static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31492 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31493}
31494static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31495 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31496}
31497static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31498 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31499}
31500static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31501 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31502}
31503static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31504 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31505}
31506static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31507 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31508}
31509static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31510 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31511}
31512static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31513 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31514}
31515static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
31516 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
31517}
31518static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31519 return (void *)((wxObject *) ((wxImageHandler *) x));
31520}
31521static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31522 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31523}
31524static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31525 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31526}
31527static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31528 return (void *)((wxObject *) ((wxEvtHandler *) x));
31529}
34e0a3bb
RD
31530static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
31531 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
31532}
0085ce49
RD
31533static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
31534 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31535}
31536static void *_p_wxPaintDCTo_p_wxObject(void *x) {
31537 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
31538}
31539static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
31540 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
31541}
31542static void *_p_wxScreenDCTo_p_wxObject(void *x) {
31543 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
31544}
31545static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
31546 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
31547}
31548static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31549 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31550}
31551static void *_p_wxImageTo_p_wxObject(void *x) {
31552 return (void *)((wxObject *) ((wxImage *) x));
31553}
31554static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31555 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31556}
31557static void *_p_wxPaletteTo_p_wxObject(void *x) {
31558 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
31559}
31560static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
31561 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
31562}
31563static void *_p_wxImageListTo_p_wxObject(void *x) {
31564 return (void *)((wxObject *) ((wxImageList *) x));
31565}
31566static void *_p_wxCursorTo_p_wxObject(void *x) {
31567 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
31568}
31569static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
31570 return (void *)((wxObject *) ((wxEncodingConverter *) x));
31571}
31572static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
31573 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
31574}
31575static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31577}
31578static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31579 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31580}
31581static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31582 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31583}
31584static void *_p_wxWindowTo_p_wxObject(void *x) {
31585 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31586}
31587static void *_p_wxMenuTo_p_wxObject(void *x) {
31588 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31589}
31590static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31592}
31593static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
31594 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
31595}
0085ce49
RD
31596static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31597 return (void *)((wxObject *) ((wxFileSystem *) x));
31598}
31599static void *_p_wxBitmapTo_p_wxObject(void *x) {
31600 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
31601}
31602static void *_p_wxMaskTo_p_wxObject(void *x) {
31603 return (void *)((wxObject *) ((wxMask *) x));
31604}
31605static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31606 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31607}
31608static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31609 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31610}
31611static void *_p_wxPyAppTo_p_wxObject(void *x) {
31612 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31613}
31614static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31615 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31616}
31617static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31618 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31619}
31620static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31621 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31622}
31623static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31625}
31626static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31627 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31628}
31629static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31630 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31631}
31632static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31633 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31634}
31635static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31637}
31638static void *_p_wxFontTo_p_wxObject(void *x) {
31639 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
31640}
31641static void *_p_wxBrushTo_p_wxObject(void *x) {
31642 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
31643}
31644static void *_p_wxMetaFileTo_p_wxObject(void *x) {
31645 return (void *)((wxObject *) ((wxMetaFile *) x));
31646}
31647static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31648 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31649}
31650static void *_p_wxColourTo_p_wxObject(void *x) {
31651 return (void *)((wxObject *) ((wxColour *) x));
31652}
0085ce49
RD
31653static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31654 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31655}
31656static void *_p_wxValidatorTo_p_wxObject(void *x) {
31657 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31658}
31659static void *_p_wxControlTo_p_wxWindow(void *x) {
31660 return (void *)((wxWindow *) ((wxControl *) x));
31661}
31662static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31663 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31664}
31665static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31666 return (void *)((wxWindow *) ((wxMenuBar *) x));
31667}
fc46b7f3
RD
31668static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
31669 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
31670}
31671static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
31672 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
31673}
31674static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49
RD
31675static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
31676static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
31677static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
31678static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
31679static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
31680static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
31681static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
31682static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
31683static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
31684static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
31685static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
31686static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
31687static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
31688static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 31689static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49
RD
31690static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
31691static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
31692static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
31693static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
31694static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
31695static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
31696static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
31697static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
31698static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
31699static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
31700static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
31701static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
50efceee 31702static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49
RD
31703static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
31704static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
31705static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
31706static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
31707static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
31708static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
31709static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
31710static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
31711static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
31712static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
31713static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
31714static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
31715static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
31716static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
31717static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
31718static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
31719static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
31720static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
31721static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 31722static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 31723static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
31724static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
31725static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
31726static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
31727static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
31728static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
31729static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
31730static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
31731static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
31732static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
31733static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
31734static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
31735static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 31736static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
31737static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
31738static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
31739static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
31740static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
31741static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
31742static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
31743static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
31744static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
31745static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
31746static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
31747static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
31748static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
31749static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
31750static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
31751static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
31752static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
31753static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
31754static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
31755static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
31756static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
31757static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
31758static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
31759static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
31760static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
31761static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
31762static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
31763static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
31764static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
31765static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
31766static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
31767static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
31768static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
27e45892 31769static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 31770static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
31771static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
31772static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
31773static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 31774static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
31775static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
31776static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
31777static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
31778static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
31779static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
31780static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
31781static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
31782static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
31783static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
31784static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
31785static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
31786static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
31787static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
31788static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
31789static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
31790static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
31791static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
31792static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
31793static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
31794static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
31795static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
31796static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
31797static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
31798static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
31799static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
31800static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
31801static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 31802static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49
RD
31803static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
31804static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
31805static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
31806static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 31807static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 31808static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 31809static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49
RD
31810static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
31811static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
31812static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
31813static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
31814static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
31815static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
31816static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
31817static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 31818static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
31819static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
31820static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
31821static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
31822
31823static swig_type_info *swig_type_initial[] = {
fc46b7f3 31824 &_swigt__p_buffer,
0085ce49
RD
31825 &_swigt__p_char,
31826 &_swigt__p_double,
31827 &_swigt__p_form_ops_t,
31828 &_swigt__p_int,
31829 &_swigt__p_unsigned_char,
31830 &_swigt__p_unsigned_int,
31831 &_swigt__p_unsigned_long,
31832 &_swigt__p_wxANIHandler,
31833 &_swigt__p_wxAcceleratorTable,
31834 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
31835 &_swigt__p_wxAlphaPixelData,
31836 &_swigt__p_wxAlphaPixelData_Accessor,
0085ce49
RD
31837 &_swigt__p_wxBMPHandler,
31838 &_swigt__p_wxBitmap,
31839 &_swigt__p_wxBoxSizer,
31840 &_swigt__p_wxBrush,
31841 &_swigt__p_wxBrushList,
31842 &_swigt__p_wxBufferedDC,
31843 &_swigt__p_wxBufferedPaintDC,
31844 &_swigt__p_wxCURHandler,
fc46b7f3 31845 &_swigt__p_wxChar,
0085ce49
RD
31846 &_swigt__p_wxChildFocusEvent,
31847 &_swigt__p_wxClientDC,
2131d850 31848 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
31849 &_swigt__p_wxCloseEvent,
31850 &_swigt__p_wxColour,
31851 &_swigt__p_wxColourDatabase,
31852 &_swigt__p_wxCommandEvent,
31853 &_swigt__p_wxContextMenuEvent,
31854 &_swigt__p_wxControl,
31855 &_swigt__p_wxControlWithItems,
31856 &_swigt__p_wxCursor,
31857 &_swigt__p_wxDC,
31858 &_swigt__p_wxDash,
31859 &_swigt__p_wxDateEvent,
31860 &_swigt__p_wxDisplayChangedEvent,
31861 &_swigt__p_wxDropFilesEvent,
31862 &_swigt__p_wxDuplexMode,
31863 &_swigt__p_wxEffects,
31864 &_swigt__p_wxEncodingConverter,
31865 &_swigt__p_wxEraseEvent,
31866 &_swigt__p_wxEvent,
31867 &_swigt__p_wxEvtHandler,
31868 &_swigt__p_wxFSFile,
31869 &_swigt__p_wxFileSystem,
31870 &_swigt__p_wxFlexGridSizer,
31871 &_swigt__p_wxFocusEvent,
31872 &_swigt__p_wxFont,
31873 &_swigt__p_wxFontList,
31874 &_swigt__p_wxFontMapper,
31875 &_swigt__p_wxGBSizerItem,
50efceee 31876 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
31877 &_swigt__p_wxGDIObject,
31878 &_swigt__p_wxGIFHandler,
31879 &_swigt__p_wxGridBagSizer,
31880 &_swigt__p_wxGridSizer,
31881 &_swigt__p_wxICOHandler,
31882 &_swigt__p_wxIcon,
31883 &_swigt__p_wxIconBundle,
31884 &_swigt__p_wxIconLocation,
31885 &_swigt__p_wxIconizeEvent,
31886 &_swigt__p_wxIdleEvent,
31887 &_swigt__p_wxImage,
31888 &_swigt__p_wxImageHandler,
31889 &_swigt__p_wxImageList,
31890 &_swigt__p_wxIndividualLayoutConstraint,
31891 &_swigt__p_wxInitDialogEvent,
31892 &_swigt__p_wxJPEGHandler,
31893 &_swigt__p_wxKeyEvent,
31894 &_swigt__p_wxLanguageInfo,
31895 &_swigt__p_wxLayoutConstraints,
31896 &_swigt__p_wxLocale,
31897 &_swigt__p_wxMask,
31898 &_swigt__p_wxMaximizeEvent,
31899 &_swigt__p_wxMemoryDC,
31900 &_swigt__p_wxMenu,
31901 &_swigt__p_wxMenuBar,
31902 &_swigt__p_wxMenuEvent,
31903 &_swigt__p_wxMenuItem,
31904 &_swigt__p_wxMetaFile,
31905 &_swigt__p_wxMetaFileDC,
31906 &_swigt__p_wxMirrorDC,
31907 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 31908 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
31909 &_swigt__p_wxMouseEvent,
31910 &_swigt__p_wxMoveEvent,
31911 &_swigt__p_wxNativeEncodingInfo,
31912 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
31913 &_swigt__p_wxNativePixelData,
31914 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
31915 &_swigt__p_wxNavigationKeyEvent,
31916 &_swigt__p_wxNcPaintEvent,
31917 &_swigt__p_wxNotifyEvent,
31918 &_swigt__p_wxObject,
31919 &_swigt__p_wxPCXHandler,
31920 &_swigt__p_wxPNGHandler,
31921 &_swigt__p_wxPNMHandler,
31922 &_swigt__p_wxPaintDC,
31923 &_swigt__p_wxPaintEvent,
31924 &_swigt__p_wxPalette,
31925 &_swigt__p_wxPaletteChangedEvent,
31926 &_swigt__p_wxPaperSize,
31927 &_swigt__p_wxPen,
31928 &_swigt__p_wxPenList,
fc46b7f3 31929 &_swigt__p_wxPixelDataBase,
0085ce49
RD
31930 &_swigt__p_wxPoint,
31931 &_swigt__p_wxPostScriptDC,
31932 &_swigt__p_wxPrintData,
31933 &_swigt__p_wxPrinterDC,
27e45892 31934 &_swigt__p_wxPseudoDC,
0085ce49
RD
31935 &_swigt__p_wxPyApp,
31936 &_swigt__p_wxPyCommandEvent,
31937 &_swigt__p_wxPyEvent,
31938 &_swigt__p_wxPyFontEnumerator,
31939 &_swigt__p_wxPyImageHandler,
fc46b7f3 31940 &_swigt__p_wxPyLocale,
0085ce49
RD
31941 &_swigt__p_wxPySizer,
31942 &_swigt__p_wxPyValidator,
31943 &_swigt__p_wxQueryNewPaletteEvent,
31944 &_swigt__p_wxRect,
31945 &_swigt__p_wxRegion,
31946 &_swigt__p_wxRegionIterator,
31947 &_swigt__p_wxRendererNative,
31948 &_swigt__p_wxRendererVersion,
31949 &_swigt__p_wxScreenDC,
31950 &_swigt__p_wxScrollEvent,
31951 &_swigt__p_wxScrollWinEvent,
31952 &_swigt__p_wxSetCursorEvent,
31953 &_swigt__p_wxShowEvent,
31954 &_swigt__p_wxSize,
31955 &_swigt__p_wxSizeEvent,
31956 &_swigt__p_wxSizer,
31957 &_swigt__p_wxSizerItem,
31958 &_swigt__p_wxSplitterRenderParams,
31959 &_swigt__p_wxStaticBoxSizer,
31960 &_swigt__p_wxStdDialogButtonSizer,
50efceee 31961 &_swigt__p_wxStockGDI,
0085ce49
RD
31962 &_swigt__p_wxString,
31963 &_swigt__p_wxSysColourChangedEvent,
31964 &_swigt__p_wxTIFFHandler,
31965 &_swigt__p_wxUpdateUIEvent,
31966 &_swigt__p_wxValidator,
31967 &_swigt__p_wxWindow,
31968 &_swigt__p_wxWindowCreateEvent,
31969 &_swigt__p_wxWindowDC,
31970 &_swigt__p_wxWindowDestroyEvent,
31971 &_swigt__p_wxXPMHandler,
31972};
31973
fc46b7f3 31974static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
31975static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
31976static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
31977static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
31978static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
31979static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
31980static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
31981static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
31982static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
31983static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
31984static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
31985static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
31986static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
31987static 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}};
31988static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 31989static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
31990static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
31991static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
31992static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
31993static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
31994static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
31995static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
31996static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
31997static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
31998static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
31999static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32000static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32001static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
50efceee 32002static 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}};
0085ce49
RD
32003static 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}};
32004static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32005static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32006static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32007static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32008static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32009static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 32010static 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}};
0085ce49
RD
32011static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32012static 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}};
32013static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32014static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32015static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32016static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32017static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
32018static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32019static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 32020static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 32021static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 32022static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
32023static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32024static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32025static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32026static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32027static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32028static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32029static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32030static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32031static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32032static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32033static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32034static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 32035static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
32036static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32037static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32038static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32039static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32040static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32041static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32042static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32043static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32044static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32045static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32046static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32047static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32048static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32049static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32050static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32051static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32052static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32053static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32054static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32055static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32056static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32057static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32058static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32059static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32060static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32061static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32062static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32063static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32064static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32065static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32066static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32067static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 32068static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 32069static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
32070static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32071static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32072static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 32073static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
32074static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32075static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32076static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32077static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32078static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32079static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32080static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32081static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32082static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32083static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32084static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32085static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32086static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32087static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32088static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32089static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32090static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32091static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32092static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32093static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32094static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32095static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 32096static 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_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_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}};
0085ce49
RD
32097static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32098static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
32099static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
32100static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
32101static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 32102static 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}};
0085ce49
RD
32103static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
32104static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
32105static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
32106static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 32107static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 32108static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 32109static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
32110static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
32111static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
32112static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
32113static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
32114static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
32115static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
32116static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
32117static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 32118static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
32119static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
32120static 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}};
32121static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
32122
32123static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 32124 _swigc__p_buffer,
0085ce49
RD
32125 _swigc__p_char,
32126 _swigc__p_double,
32127 _swigc__p_form_ops_t,
32128 _swigc__p_int,
32129 _swigc__p_unsigned_char,
32130 _swigc__p_unsigned_int,
32131 _swigc__p_unsigned_long,
32132 _swigc__p_wxANIHandler,
32133 _swigc__p_wxAcceleratorTable,
32134 _swigc__p_wxActivateEvent,
fc46b7f3
RD
32135 _swigc__p_wxAlphaPixelData,
32136 _swigc__p_wxAlphaPixelData_Accessor,
0085ce49
RD
32137 _swigc__p_wxBMPHandler,
32138 _swigc__p_wxBitmap,
32139 _swigc__p_wxBoxSizer,
32140 _swigc__p_wxBrush,
32141 _swigc__p_wxBrushList,
32142 _swigc__p_wxBufferedDC,
32143 _swigc__p_wxBufferedPaintDC,
32144 _swigc__p_wxCURHandler,
fc46b7f3 32145 _swigc__p_wxChar,
0085ce49
RD
32146 _swigc__p_wxChildFocusEvent,
32147 _swigc__p_wxClientDC,
2131d850 32148 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
32149 _swigc__p_wxCloseEvent,
32150 _swigc__p_wxColour,
32151 _swigc__p_wxColourDatabase,
32152 _swigc__p_wxCommandEvent,
32153 _swigc__p_wxContextMenuEvent,
32154 _swigc__p_wxControl,
32155 _swigc__p_wxControlWithItems,
32156 _swigc__p_wxCursor,
32157 _swigc__p_wxDC,
32158 _swigc__p_wxDash,
32159 _swigc__p_wxDateEvent,
32160 _swigc__p_wxDisplayChangedEvent,
32161 _swigc__p_wxDropFilesEvent,
32162 _swigc__p_wxDuplexMode,
32163 _swigc__p_wxEffects,
32164 _swigc__p_wxEncodingConverter,
32165 _swigc__p_wxEraseEvent,
32166 _swigc__p_wxEvent,
32167 _swigc__p_wxEvtHandler,
32168 _swigc__p_wxFSFile,
32169 _swigc__p_wxFileSystem,
32170 _swigc__p_wxFlexGridSizer,
32171 _swigc__p_wxFocusEvent,
32172 _swigc__p_wxFont,
32173 _swigc__p_wxFontList,
32174 _swigc__p_wxFontMapper,
32175 _swigc__p_wxGBSizerItem,
50efceee 32176 _swigc__p_wxGDIObjListBase,
0085ce49
RD
32177 _swigc__p_wxGDIObject,
32178 _swigc__p_wxGIFHandler,
32179 _swigc__p_wxGridBagSizer,
32180 _swigc__p_wxGridSizer,
32181 _swigc__p_wxICOHandler,
32182 _swigc__p_wxIcon,
32183 _swigc__p_wxIconBundle,
32184 _swigc__p_wxIconLocation,
32185 _swigc__p_wxIconizeEvent,
32186 _swigc__p_wxIdleEvent,
32187 _swigc__p_wxImage,
32188 _swigc__p_wxImageHandler,
32189 _swigc__p_wxImageList,
32190 _swigc__p_wxIndividualLayoutConstraint,
32191 _swigc__p_wxInitDialogEvent,
32192 _swigc__p_wxJPEGHandler,
32193 _swigc__p_wxKeyEvent,
32194 _swigc__p_wxLanguageInfo,
32195 _swigc__p_wxLayoutConstraints,
32196 _swigc__p_wxLocale,
32197 _swigc__p_wxMask,
32198 _swigc__p_wxMaximizeEvent,
32199 _swigc__p_wxMemoryDC,
32200 _swigc__p_wxMenu,
32201 _swigc__p_wxMenuBar,
32202 _swigc__p_wxMenuEvent,
32203 _swigc__p_wxMenuItem,
32204 _swigc__p_wxMetaFile,
32205 _swigc__p_wxMetaFileDC,
32206 _swigc__p_wxMirrorDC,
32207 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 32208 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
32209 _swigc__p_wxMouseEvent,
32210 _swigc__p_wxMoveEvent,
32211 _swigc__p_wxNativeEncodingInfo,
32212 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
32213 _swigc__p_wxNativePixelData,
32214 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
32215 _swigc__p_wxNavigationKeyEvent,
32216 _swigc__p_wxNcPaintEvent,
32217 _swigc__p_wxNotifyEvent,
32218 _swigc__p_wxObject,
32219 _swigc__p_wxPCXHandler,
32220 _swigc__p_wxPNGHandler,
32221 _swigc__p_wxPNMHandler,
32222 _swigc__p_wxPaintDC,
32223 _swigc__p_wxPaintEvent,
32224 _swigc__p_wxPalette,
32225 _swigc__p_wxPaletteChangedEvent,
32226 _swigc__p_wxPaperSize,
32227 _swigc__p_wxPen,
32228 _swigc__p_wxPenList,
fc46b7f3 32229 _swigc__p_wxPixelDataBase,
0085ce49
RD
32230 _swigc__p_wxPoint,
32231 _swigc__p_wxPostScriptDC,
32232 _swigc__p_wxPrintData,
32233 _swigc__p_wxPrinterDC,
27e45892 32234 _swigc__p_wxPseudoDC,
0085ce49
RD
32235 _swigc__p_wxPyApp,
32236 _swigc__p_wxPyCommandEvent,
32237 _swigc__p_wxPyEvent,
32238 _swigc__p_wxPyFontEnumerator,
32239 _swigc__p_wxPyImageHandler,
fc46b7f3 32240 _swigc__p_wxPyLocale,
0085ce49
RD
32241 _swigc__p_wxPySizer,
32242 _swigc__p_wxPyValidator,
32243 _swigc__p_wxQueryNewPaletteEvent,
32244 _swigc__p_wxRect,
32245 _swigc__p_wxRegion,
32246 _swigc__p_wxRegionIterator,
32247 _swigc__p_wxRendererNative,
32248 _swigc__p_wxRendererVersion,
32249 _swigc__p_wxScreenDC,
32250 _swigc__p_wxScrollEvent,
32251 _swigc__p_wxScrollWinEvent,
32252 _swigc__p_wxSetCursorEvent,
32253 _swigc__p_wxShowEvent,
32254 _swigc__p_wxSize,
32255 _swigc__p_wxSizeEvent,
32256 _swigc__p_wxSizer,
32257 _swigc__p_wxSizerItem,
32258 _swigc__p_wxSplitterRenderParams,
32259 _swigc__p_wxStaticBoxSizer,
32260 _swigc__p_wxStdDialogButtonSizer,
50efceee 32261 _swigc__p_wxStockGDI,
0085ce49
RD
32262 _swigc__p_wxString,
32263 _swigc__p_wxSysColourChangedEvent,
32264 _swigc__p_wxTIFFHandler,
32265 _swigc__p_wxUpdateUIEvent,
32266 _swigc__p_wxValidator,
32267 _swigc__p_wxWindow,
32268 _swigc__p_wxWindowCreateEvent,
32269 _swigc__p_wxWindowDC,
32270 _swigc__p_wxWindowDestroyEvent,
32271 _swigc__p_wxXPMHandler,
32272};
32273
32274
32275/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32276
32277static swig_const_info swig_const_table[] = {
32278{0, 0, 0, 0.0, 0, 0}};
32279
32280#ifdef __cplusplus
32281}
32282#endif
32283/* -----------------------------------------------------------------------------
32284 * Type initialization:
32285 * This problem is tough by the requirement that no dynamic
32286 * memory is used. Also, since swig_type_info structures store pointers to
32287 * swig_cast_info structures and swig_cast_info structures store pointers back
32288 * to swig_type_info structures, we need some lookup code at initialization.
32289 * The idea is that swig generates all the structures that are needed.
32290 * The runtime then collects these partially filled structures.
32291 * The SWIG_InitializeModule function takes these initial arrays out of
32292 * swig_module, and does all the lookup, filling in the swig_module.types
32293 * array with the correct data and linking the correct swig_cast_info
32294 * structures together.
32295 *
32296 * The generated swig_type_info structures are assigned staticly to an initial
32297 * array. We just loop though that array, and handle each type individually.
32298 * First we lookup if this type has been already loaded, and if so, use the
32299 * loaded structure instead of the generated one. Then we have to fill in the
32300 * cast linked list. The cast data is initially stored in something like a
32301 * two-dimensional array. Each row corresponds to a type (there are the same
32302 * number of rows as there are in the swig_type_initial array). Each entry in
32303 * a column is one of the swig_cast_info structures for that type.
32304 * The cast_initial array is actually an array of arrays, because each row has
32305 * a variable number of columns. So to actually build the cast linked list,
32306 * we find the array of casts associated with the type, and loop through it
32307 * adding the casts to the list. The one last trick we need to do is making
32308 * sure the type pointer in the swig_cast_info struct is correct.
32309 *
32310 * First off, we lookup the cast->type name to see if it is already loaded.
32311 * There are three cases to handle:
32312 * 1) If the cast->type has already been loaded AND the type we are adding
32313 * casting info to has not been loaded (it is in this module), THEN we
32314 * replace the cast->type pointer with the type pointer that has already
32315 * been loaded.
32316 * 2) If BOTH types (the one we are adding casting info to, and the
32317 * cast->type) are loaded, THEN the cast info has already been loaded by
32318 * the previous module so we just ignore it.
32319 * 3) Finally, if cast->type has not already been loaded, then we add that
32320 * swig_cast_info to the linked list (because the cast->type) pointer will
32321 * be correct.
32322 * ----------------------------------------------------------------------------- */
32323
32324#ifdef __cplusplus
32325extern "C" {
32326#if 0
32327} /* c-mode */
32328#endif
32329#endif
32330
32331#if 0
32332#define SWIGRUNTIME_DEBUG
32333#endif
32334
32335SWIGRUNTIME void
32336SWIG_InitializeModule(void *clientdata) {
32337 size_t i;
32338 swig_module_info *module_head;
32339 static int init_run = 0;
32340
32341 clientdata = clientdata;
32342
32343 if (init_run) return;
32344 init_run = 1;
32345
32346 /* Initialize the swig_module */
32347 swig_module.type_initial = swig_type_initial;
32348 swig_module.cast_initial = swig_cast_initial;
32349
32350 /* Try and load any already created modules */
32351 module_head = SWIG_GetModule(clientdata);
32352 if (module_head) {
32353 swig_module.next = module_head->next;
32354 module_head->next = &swig_module;
32355 } else {
32356 /* This is the first module loaded */
32357 swig_module.next = &swig_module;
32358 SWIG_SetModule(clientdata, &swig_module);
32359 }
32360
32361 /* Now work on filling in swig_module.types */
32362#ifdef SWIGRUNTIME_DEBUG
32363 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
32364#endif
32365 for (i = 0; i < swig_module.size; ++i) {
32366 swig_type_info *type = 0;
32367 swig_type_info *ret;
32368 swig_cast_info *cast;
32369
32370#ifdef SWIGRUNTIME_DEBUG
32371 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32372#endif
32373
32374 /* if there is another module already loaded */
32375 if (swig_module.next != &swig_module) {
32376 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 32377 }
0085ce49
RD
32378 if (type) {
32379 /* Overwrite clientdata field */
32380#ifdef SWIGRUNTIME_DEBUG
32381 printf("SWIG_InitializeModule: found type %s\n", type->name);
32382#endif
32383 if (swig_module.type_initial[i]->clientdata) {
32384 type->clientdata = swig_module.type_initial[i]->clientdata;
32385#ifdef SWIGRUNTIME_DEBUG
32386 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
32387#endif
32388 }
32389 } else {
32390 type = swig_module.type_initial[i];
8d38bd1d 32391 }
0085ce49
RD
32392
32393 /* Insert casting types */
32394 cast = swig_module.cast_initial[i];
32395 while (cast->type) {
32396 /* Don't need to add information already in the list */
32397 ret = 0;
32398#ifdef SWIGRUNTIME_DEBUG
32399 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
32400#endif
32401 if (swig_module.next != &swig_module) {
32402 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
32403#ifdef SWIGRUNTIME_DEBUG
32404 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
32405#endif
32406 }
32407 if (ret) {
32408 if (type == swig_module.type_initial[i]) {
32409#ifdef SWIGRUNTIME_DEBUG
32410 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
32411#endif
32412 cast->type = ret;
32413 ret = 0;
32414 } else {
32415 /* Check for casting already in the list */
32416 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
32417#ifdef SWIGRUNTIME_DEBUG
32418 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
32419#endif
32420 if (!ocast) ret = 0;
32421 }
32422 }
32423
32424 if (!ret) {
32425#ifdef SWIGRUNTIME_DEBUG
32426 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
32427#endif
32428 if (type->cast) {
32429 type->cast->prev = cast;
32430 cast->next = type->cast;
32431 }
32432 type->cast = cast;
32433 }
32434 cast++;
8d38bd1d 32435 }
0085ce49
RD
32436 /* Set entry in modules->types array equal to the type */
32437 swig_module.types[i] = type;
32438 }
32439 swig_module.types[i] = 0;
32440
32441#ifdef SWIGRUNTIME_DEBUG
32442 printf("**** SWIG_InitializeModule: Cast List ******\n");
32443 for (i = 0; i < swig_module.size; ++i) {
32444 int j = 0;
32445 swig_cast_info *cast = swig_module.cast_initial[i];
32446 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32447 while (cast->type) {
32448 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
32449 cast++;
32450 ++j;
32451 }
32452 printf("---- Total casts: %d\n",j);
32453 }
32454 printf("**** SWIG_InitializeModule: Cast List ******\n");
32455#endif
32456}
32457
32458/* This function will propagate the clientdata field of type to
32459* any new swig_type_info structures that have been added into the list
32460* of equivalent types. It is like calling
32461* SWIG_TypeClientData(type, clientdata) a second time.
32462*/
32463SWIGRUNTIME void
32464SWIG_PropagateClientData(void) {
32465 size_t i;
32466 swig_cast_info *equiv;
32467 static int init_run = 0;
32468
32469 if (init_run) return;
32470 init_run = 1;
32471
32472 for (i = 0; i < swig_module.size; i++) {
32473 if (swig_module.types[i]->clientdata) {
32474 equiv = swig_module.types[i]->cast;
32475 while (equiv) {
32476 if (!equiv->converter) {
32477 if (equiv->type && !equiv->type->clientdata)
32478 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
32479 }
32480 equiv = equiv->next;
32481 }
8d38bd1d 32482 }
0085ce49
RD
32483 }
32484}
32485
32486#ifdef __cplusplus
32487#if 0
32488{
32489 /* c-mode */
32490#endif
32491}
32492#endif
32493
32494
32495
32496#ifdef __cplusplus
32497extern "C" {
32498#endif
32499
32500 /* Python-specific SWIG API */
32501#define SWIG_newvarlink() SWIG_Python_newvarlink()
32502#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
32503#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
32504
32505 /* -----------------------------------------------------------------------------
32506 * global variable support code.
32507 * ----------------------------------------------------------------------------- */
32508
32509 typedef struct swig_globalvar {
32510 char *name; /* Name of global variable */
32511 PyObject *(*get_attr)(void); /* Return the current value */
32512 int (*set_attr)(PyObject *); /* Set the value */
32513 struct swig_globalvar *next;
32514 } swig_globalvar;
32515
32516 typedef struct swig_varlinkobject {
32517 PyObject_HEAD
32518 swig_globalvar *vars;
32519 } swig_varlinkobject;
32520
32521 SWIGINTERN PyObject *
32522 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
32523 return PyString_FromString("<Swig global variables>");
32524 }
32525
32526 SWIGINTERN PyObject *
32527 swig_varlink_str(swig_varlinkobject *v) {
32528 PyObject *str = PyString_FromString("(");
32529 swig_globalvar *var;
32530 for (var = v->vars; var; var=var->next) {
32531 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
32532 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
32533 }
32534 PyString_ConcatAndDel(&str,PyString_FromString(")"));
32535 return str;
32536 }
32537
32538 SWIGINTERN int
32539 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
32540 PyObject *str = swig_varlink_str(v);
32541 fprintf(fp,"Swig global variables ");
32542 fprintf(fp,"%s\n", PyString_AsString(str));
32543 Py_DECREF(str);
32544 return 0;
32545 }
32546
32547 SWIGINTERN void
32548 swig_varlink_dealloc(swig_varlinkobject *v) {
32549 swig_globalvar *var = v->vars;
32550 while (var) {
32551 swig_globalvar *n = var->next;
32552 free(var->name);
32553 free(var);
32554 var = n;
8d38bd1d 32555 }
0085ce49
RD
32556 }
32557
32558 SWIGINTERN PyObject *
32559 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
32560 PyObject *res = NULL;
32561 swig_globalvar *var = v->vars;
32562 while (var) {
32563 if (strcmp(var->name,n) == 0) {
32564 res = (*var->get_attr)();
32565 break;
32566 }
32567 var = var->next;
8d38bd1d 32568 }
0085ce49
RD
32569 if (res == NULL && !PyErr_Occurred()) {
32570 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 32571 }
0085ce49
RD
32572 return res;
32573 }
32574
32575 SWIGINTERN int
32576 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
32577 int res = 1;
32578 swig_globalvar *var = v->vars;
32579 while (var) {
32580 if (strcmp(var->name,n) == 0) {
32581 res = (*var->set_attr)(p);
32582 break;
32583 }
32584 var = var->next;
8d38bd1d 32585 }
0085ce49
RD
32586 if (res == 1 && !PyErr_Occurred()) {
32587 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 32588 }
0085ce49
RD
32589 return res;
32590 }
32591
32592 SWIGINTERN PyTypeObject*
32593 swig_varlink_type(void) {
32594 static char varlink__doc__[] = "Swig var link object";
32595 static PyTypeObject varlink_type;
32596 static int type_init = 0;
32597 if (!type_init) {
32598 const PyTypeObject tmp
32599 = {
32600 PyObject_HEAD_INIT(NULL)
32601 0, /* Number of items in variable part (ob_size) */
32602 (char *)"swigvarlink", /* Type name (tp_name) */
32603 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
32604 0, /* Itemsize (tp_itemsize) */
32605 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
32606 (printfunc) swig_varlink_print, /* Print (tp_print) */
32607 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
32608 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
32609 0, /* tp_compare */
32610 (reprfunc) swig_varlink_repr, /* tp_repr */
32611 0, /* tp_as_number */
32612 0, /* tp_as_sequence */
32613 0, /* tp_as_mapping */
32614 0, /* tp_hash */
32615 0, /* tp_call */
32616 (reprfunc)swig_varlink_str, /* tp_str */
32617 0, /* tp_getattro */
32618 0, /* tp_setattro */
32619 0, /* tp_as_buffer */
32620 0, /* tp_flags */
32621 varlink__doc__, /* tp_doc */
32622 0, /* tp_traverse */
32623 0, /* tp_clear */
32624 0, /* tp_richcompare */
32625 0, /* tp_weaklistoffset */
32626#if PY_VERSION_HEX >= 0x02020000
32627 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
32628#endif
32629#if PY_VERSION_HEX >= 0x02030000
32630 0, /* tp_del */
32631#endif
32632#ifdef COUNT_ALLOCS
32633 0,0,0,0 /* tp_alloc -> tp_next */
32634#endif
32635 };
32636 varlink_type = tmp;
32637 varlink_type.ob_type = &PyType_Type;
32638 type_init = 1;
8d38bd1d 32639 }
0085ce49
RD
32640 return &varlink_type;
32641 }
32642
32643 /* Create a variable linking object for use later */
32644 SWIGINTERN PyObject *
32645 SWIG_Python_newvarlink(void) {
32646 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
32647 if (result) {
32648 result->vars = 0;
32649 }
32650 return ((PyObject*) result);
32651 }
32652
32653 SWIGINTERN void
32654 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
32655 swig_varlinkobject *v = (swig_varlinkobject *) p;
32656 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
32657 if (gv) {
32658 size_t size = strlen(name)+1;
32659 gv->name = (char *)malloc(size);
32660 if (gv->name) {
32661 strncpy(gv->name,name,size);
32662 gv->get_attr = get_attr;
32663 gv->set_attr = set_attr;
32664 gv->next = v->vars;
32665 }
8d38bd1d 32666 }
0085ce49
RD
32667 v->vars = gv;
32668 }
32669
32670 SWIGINTERN PyObject *
32671 SWIG_globals() {
32672 static PyObject *_SWIG_globals = 0;
32673 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
32674 return _SWIG_globals;
32675 }
32676
32677 /* -----------------------------------------------------------------------------
32678 * constants/methods manipulation
32679 * ----------------------------------------------------------------------------- */
32680
32681 /* Install Constants */
32682 SWIGINTERN void
32683 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
32684 PyObject *obj = 0;
32685 size_t i;
32686 for (i = 0; constants[i].type; ++i) {
32687 switch(constants[i].type) {
32688 case SWIG_PY_POINTER:
32689 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
32690 break;
32691 case SWIG_PY_BINARY:
32692 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
32693 break;
32694 default:
32695 obj = 0;
32696 break;
32697 }
32698 if (obj) {
32699 PyDict_SetItemString(d, constants[i].name, obj);
32700 Py_DECREF(obj);
32701 }
8d38bd1d 32702 }
0085ce49
RD
32703 }
32704
32705 /* -----------------------------------------------------------------------------*/
32706 /* Fix SwigMethods to carry the callback ptrs when needed */
32707 /* -----------------------------------------------------------------------------*/
32708
32709 SWIGINTERN void
32710 SWIG_Python_FixMethods(PyMethodDef *methods,
32711 swig_const_info *const_table,
32712 swig_type_info **types,
32713 swig_type_info **types_initial) {
32714 size_t i;
32715 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 32716 const char *c = methods[i].ml_doc;
0085ce49
RD
32717 if (c && (c = strstr(c, "swig_ptr: "))) {
32718 int j;
32719 swig_const_info *ci = 0;
453fb36b 32720 const char *name = c + 10;
0085ce49
RD
32721 for (j = 0; const_table[j].type; ++j) {
32722 if (strncmp(const_table[j].name, name,
32723 strlen(const_table[j].name)) == 0) {
32724 ci = &(const_table[j]);
32725 break;
32726 }
32727 }
32728 if (ci) {
32729 size_t shift = (ci->ptype) - types;
32730 swig_type_info *ty = types_initial[shift];
32731 size_t ldoc = (c - methods[i].ml_doc);
32732 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
32733 char *ndoc = (char*)malloc(ldoc + lptr + 10);
32734 if (ndoc) {
32735 char *buff = ndoc;
32736 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
32737 if (ptr) {
32738 strncpy(buff, methods[i].ml_doc, ldoc);
32739 buff += ldoc;
32740 strncpy(buff, "swig_ptr: ", 10);
32741 buff += 10;
32742 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
32743 methods[i].ml_doc = ndoc;
32744 }
32745 }
32746 }
32747 }
8d38bd1d 32748 }
0085ce49
RD
32749 }
32750
32751#ifdef __cplusplus
32752}
32753#endif
32754
32755/* -----------------------------------------------------------------------------*
32756 * Partial Init method
32757 * -----------------------------------------------------------------------------*/
32758
32759#ifdef __cplusplus
32760extern "C"
32761#endif
32762SWIGEXPORT void SWIG_init(void) {
32763 PyObject *m, *d;
32764
32765 /* Fix SwigMethods to carry the callback ptrs when needed */
32766 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
32767
32768 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32769 d = PyModule_GetDict(m);
32770
32771 SWIG_InitializeModule(0);
32772 SWIG_InstallConstants(d,swig_const_table);
32773
32774
01f6b6d3
RD
32775 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
32776 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
32777 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
32778 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
32779 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
32780 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
32781 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
32782 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
32783 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
32784 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
32785 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
32786 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
32787 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
32788 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
32789 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
32790 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
32791 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
32792 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
32793 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
32794 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
32795 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
32796 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
32797 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
32798 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
32799 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
32800 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
32801 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
32802 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
32803 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
32804 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
32805 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
32806 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
32807 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
32808 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
32809 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
32810 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
32811 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
32812 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
32813 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
32814 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
32815 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
32816 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
32817 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
32818 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
32819 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
32820 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
32821 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
32822 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
32823 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
32824 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
32825 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
32826 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
32827 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
32828 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
32829 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
32830 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
32831 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
32832 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
32833 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
32834 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
32835 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
32836 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
32837 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
32838 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
32839 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
32840 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
32841 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
32842 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
32843 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
32844 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
32845 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
32846 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
32847 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
32848 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
32849 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
32850 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
32851 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
32852 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
32853 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
32854 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
32855 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
32856 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
32857 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
32858 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
32859 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
32860 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
32861 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
32862 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
32863 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
32864 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
32865 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
32866 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
32867 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
32868 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
32869 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
32870 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
32871 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
32872 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
32873 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
32874 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
32875 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
32876 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
32877 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
32878 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
32879 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
32880 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
32881 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
32882 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
32883 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
32884 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
32885 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
32886 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
32887 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
32888 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
32889 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
32890 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
32891 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
32892 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
32893 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
32894 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
32895 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
32896 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
32897 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
32898 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
32899 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
32900 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
32901 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
32902 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
32903 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
32904 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
32905 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
32906 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
32907
32908 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
32909
97ab0f6a
RD
32910 SWIG_Python_SetConstant(d, "Layout_Default",SWIG_From_int(static_cast< int >(wxLayout_Default)));
32911 SWIG_Python_SetConstant(d, "Layout_LeftToRight",SWIG_From_int(static_cast< int >(wxLayout_LeftToRight)));
32912 SWIG_Python_SetConstant(d, "Layout_RightToLeft",SWIG_From_int(static_cast< int >(wxLayout_RightToLeft)));
0085ce49
RD
32913 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
32914 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
32915 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
32916 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
32917 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
32918 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
32919 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
32920 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
32921 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
32922 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
32923 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
32924 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
32925 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
32926 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
32927 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
32928 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
32929 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
32930 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
32931 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
32932 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
32933 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
32934 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
32935 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
32936 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
32937 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
32938 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
32939 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
32940 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
32941 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
32942 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
32943 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
32944 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
32945 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
32946 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
32947 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
32948 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
32949 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
32950 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
32951 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
32952 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
32953 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
32954 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
32955 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
32956 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
32957 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
32958 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
32959 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
32960 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
32961 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
32962 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
32963 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
32964 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
32965 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
32966 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
32967 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
32968 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
32969 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
32970 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
32971 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
32972 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
32973 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
32974 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
32975 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
32976 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
32977 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
32978 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
32979 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
32980 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
32981 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
32982 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
32983 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
32984 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
32985 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
32986 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
32987 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
32988 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
32989 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
32990 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
32991 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
32992 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
32993 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
32994 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
32995 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
32996 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
32997 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
32998 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
32999 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33000 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33001 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33002 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33003 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33004 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33005 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33006 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33007 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33008 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33009 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33010 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33011 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33012 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33013 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33014 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33015 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33016 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33017 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33018 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33019 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33020 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33021 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33022 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33023 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33024 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33025 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33026 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33027 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33028 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33029 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33030 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33031 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33032 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33033 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33034 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33035 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33036 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33037 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33038 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33039 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33040 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33041 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33042 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33043 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33044 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33045 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33046 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33047 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33048 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33049 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33050 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33051 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33052 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33053 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33054 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33055 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33056 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33057 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33058 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33059 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33060 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33061 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33062 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33063 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33064 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33065 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33066 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33067 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33068 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33069 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33070 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33071 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33072 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33073 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33074 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33075 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33076 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33077 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33078 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33079 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33080 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33081 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33082 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33083 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33084 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33085 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33086 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33087 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33088 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33089 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33090 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33091 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33092 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33093 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33094 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33095 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33096 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33097 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
33098 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
33099 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
33100 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
33101 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
33102 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
33103 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
33104 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
33105 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
33106 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
33107 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
33108 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
33109 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
33110 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
33111 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
33112 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
33113 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
33114 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
33115 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
33116 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
33117 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
33118 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
33119 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
33120 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
33121 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
33122 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
33123 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
33124 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
33125 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
33126 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
33127 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
33128 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
33129 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
33130 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
33131 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
33132 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
33133 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
33134 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
33135 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
33136 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
33137 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
33138 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
33139 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
33140 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
33141 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
33142 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
33143 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
33144 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
33145 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
33146 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
33147 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
33148 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
33149 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
33150 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
33151 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
33152 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
33153 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
33154 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
33155 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
33156 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
33157 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
33158 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
33159 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
33160 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
33161 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
33162 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
33163 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
33164 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
33165 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
33166 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
33167 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
33168 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
33169 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
33170 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
33171 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
33172 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
33173 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
33174 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
33175 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
33176 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
33177 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
33178 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
33179 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
33180 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
33181 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
33182 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
33183 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
33184 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
33185 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
33186 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
33187 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
33188 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
33189 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
33190 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
33191 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
33192 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
33193 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
33194 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
33195 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
33196 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
33197 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
33198 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
33199 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
33200 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
33201 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
33202 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49 33203 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
0085ce49
RD
33204 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
33205 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
33206 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
33207 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
33208 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
33209 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
33210 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
33211 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
33212 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
33213 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
33214 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
33215 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
33216 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
33217 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
33218 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
33219 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
33220 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
33221 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
33222 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
33223 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
33224 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33225 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
33226 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
33227
33228 // Work around a chicken/egg problem in drawlist.cpp
33229 wxPyDrawList_SetAPIPtr();
33230
d14a1e28
RD
33231}
33232