]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
Warning fixes after char->wxChar in wxVariant.
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_wxANIHandler swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476#define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477#define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
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]
33d6fd3b
RD
2523#define SWIGTYPE_p_wxHeaderButtonParams swig_types[57]
2524#define SWIGTYPE_p_wxICOHandler swig_types[58]
2525#define SWIGTYPE_p_wxIcon swig_types[59]
2526#define SWIGTYPE_p_wxIconBundle swig_types[60]
2527#define SWIGTYPE_p_wxIconLocation swig_types[61]
2528#define SWIGTYPE_p_wxIconizeEvent swig_types[62]
2529#define SWIGTYPE_p_wxIdleEvent swig_types[63]
2530#define SWIGTYPE_p_wxImage swig_types[64]
2531#define SWIGTYPE_p_wxImageHandler swig_types[65]
2532#define SWIGTYPE_p_wxImageList swig_types[66]
2533#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[67]
2534#define SWIGTYPE_p_wxInitDialogEvent swig_types[68]
2535#define SWIGTYPE_p_wxJPEGHandler swig_types[69]
2536#define SWIGTYPE_p_wxKeyEvent swig_types[70]
2537#define SWIGTYPE_p_wxLanguageInfo swig_types[71]
2538#define SWIGTYPE_p_wxLayoutConstraints swig_types[72]
2539#define SWIGTYPE_p_wxLocale swig_types[73]
2540#define SWIGTYPE_p_wxMask swig_types[74]
2541#define SWIGTYPE_p_wxMaximizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxMemoryDC swig_types[76]
2543#define SWIGTYPE_p_wxMenu swig_types[77]
2544#define SWIGTYPE_p_wxMenuBar swig_types[78]
2545#define SWIGTYPE_p_wxMenuEvent swig_types[79]
2546#define SWIGTYPE_p_wxMenuItem swig_types[80]
2547#define SWIGTYPE_p_wxMetaFile swig_types[81]
2548#define SWIGTYPE_p_wxMetaFileDC swig_types[82]
2549#define SWIGTYPE_p_wxMirrorDC swig_types[83]
2550#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[84]
2551#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[85]
2552#define SWIGTYPE_p_wxMouseEvent swig_types[86]
2553#define SWIGTYPE_p_wxMoveEvent swig_types[87]
2554#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[88]
2555#define SWIGTYPE_p_wxNativeFontInfo swig_types[89]
2556#define SWIGTYPE_p_wxNativePixelData swig_types[90]
2557#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[91]
2558#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2559#define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2560#define SWIGTYPE_p_wxNotifyEvent swig_types[94]
2561#define SWIGTYPE_p_wxObject swig_types[95]
2562#define SWIGTYPE_p_wxPCXHandler swig_types[96]
2563#define SWIGTYPE_p_wxPNGHandler swig_types[97]
2564#define SWIGTYPE_p_wxPNMHandler swig_types[98]
2565#define SWIGTYPE_p_wxPaintDC swig_types[99]
2566#define SWIGTYPE_p_wxPaintEvent swig_types[100]
2567#define SWIGTYPE_p_wxPalette swig_types[101]
2568#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2569#define SWIGTYPE_p_wxPaperSize swig_types[103]
2570#define SWIGTYPE_p_wxPen swig_types[104]
2571#define SWIGTYPE_p_wxPenList swig_types[105]
2572#define SWIGTYPE_p_wxPixelDataBase swig_types[106]
2573#define SWIGTYPE_p_wxPoint swig_types[107]
2574#define SWIGTYPE_p_wxPostScriptDC swig_types[108]
2575#define SWIGTYPE_p_wxPrintData swig_types[109]
2576#define SWIGTYPE_p_wxPrinterDC swig_types[110]
2577#define SWIGTYPE_p_wxPseudoDC swig_types[111]
2578#define SWIGTYPE_p_wxPyApp swig_types[112]
2579#define SWIGTYPE_p_wxPyCommandEvent swig_types[113]
2580#define SWIGTYPE_p_wxPyEvent swig_types[114]
2581#define SWIGTYPE_p_wxPyFontEnumerator swig_types[115]
2582#define SWIGTYPE_p_wxPyImageHandler swig_types[116]
2583#define SWIGTYPE_p_wxPyLocale swig_types[117]
2584#define SWIGTYPE_p_wxPySizer swig_types[118]
2585#define SWIGTYPE_p_wxPyValidator swig_types[119]
2586#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120]
2587#define SWIGTYPE_p_wxRect swig_types[121]
2588#define SWIGTYPE_p_wxRegion swig_types[122]
2589#define SWIGTYPE_p_wxRegionIterator swig_types[123]
2590#define SWIGTYPE_p_wxRendererNative swig_types[124]
2591#define SWIGTYPE_p_wxRendererVersion swig_types[125]
2592#define SWIGTYPE_p_wxScreenDC swig_types[126]
2593#define SWIGTYPE_p_wxScrollEvent swig_types[127]
2594#define SWIGTYPE_p_wxScrollWinEvent swig_types[128]
2595#define SWIGTYPE_p_wxSetCursorEvent swig_types[129]
2596#define SWIGTYPE_p_wxShowEvent swig_types[130]
2597#define SWIGTYPE_p_wxSize swig_types[131]
2598#define SWIGTYPE_p_wxSizeEvent swig_types[132]
2599#define SWIGTYPE_p_wxSizer swig_types[133]
2600#define SWIGTYPE_p_wxSizerItem swig_types[134]
2601#define SWIGTYPE_p_wxSplitterRenderParams swig_types[135]
2602#define SWIGTYPE_p_wxStaticBoxSizer swig_types[136]
2603#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[137]
2604#define SWIGTYPE_p_wxStockGDI swig_types[138]
2605#define SWIGTYPE_p_wxString swig_types[139]
2606#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2607#define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2608#define SWIGTYPE_p_wxUpdateUIEvent swig_types[142]
2609#define SWIGTYPE_p_wxValidator swig_types[143]
2610#define SWIGTYPE_p_wxWindow swig_types[144]
2611#define SWIGTYPE_p_wxWindowCreateEvent swig_types[145]
2612#define SWIGTYPE_p_wxWindowDC swig_types[146]
2613#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[147]
2614#define SWIGTYPE_p_wxXPMHandler swig_types[148]
2615static swig_type_info *swig_types[150];
2616static swig_module_info swig_module = {swig_types, 149, 0, 0, 0, 0};
32fe5131
RD
2617#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2618#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2619
36ed4f51 2620/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2621
1bd55598
RD
2622#if (PY_VERSION_HEX <= 0x02000000)
2623# if !defined(SWIG_PYTHON_CLASSIC)
2624# error "This python version requires to use swig with the '-classic' option"
2625# endif
2626#endif
2627#if (PY_VERSION_HEX <= 0x02020000)
2628# error "This python version requires to use swig with the '-nomodern' option"
2629#endif
2630#if (PY_VERSION_HEX <= 0x02020000)
2631# error "This python version requires to use swig with the '-nomodernargs' option"
2632#endif
2633#ifndef METH_O
2634# error "This python version requires to use swig with the '-nofastunpack' option"
2635#endif
d55e5bfc 2636
36ed4f51
RD
2637/*-----------------------------------------------
2638 @(target):= _gdi_.so
2639 ------------------------------------------------*/
2640#define SWIG_init init_gdi_
d55e5bfc 2641
36ed4f51 2642#define SWIG_name "_gdi_"
d55e5bfc 2643
1bd55598 2644#define SWIGVERSION 0x010329
d55e5bfc 2645
d55e5bfc 2646
1bd55598
RD
2647#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2648#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2649
2650
1bd55598
RD
2651#include <stdexcept>
2652
2653
2654namespace swig {
2655 class PyObject_ptr {
2656 protected:
2657 PyObject *_obj;
2658
2659 public:
2660 PyObject_ptr() :_obj(0)
2661 {
36ed4f51 2662 }
1bd55598
RD
2663
2664 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2665 {
2666 Py_XINCREF(_obj);
36ed4f51 2667 }
1bd55598
RD
2668
2669 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2670 {
2671 if (initial_ref) Py_XINCREF(_obj);
2672 }
2673
2674 PyObject_ptr & operator=(const PyObject_ptr& item)
2675 {
2676 Py_XINCREF(item._obj);
2677 Py_XDECREF(_obj);
2678 _obj = item._obj;
2679 return *this;
2680 }
2681
2682 ~PyObject_ptr()
2683 {
2684 Py_XDECREF(_obj);
2685 }
2686
2687 operator PyObject *() const
2688 {
2689 return _obj;
2690 }
2691
2692 PyObject *operator->() const
2693 {
2694 return _obj;
2695 }
2696 };
36ed4f51 2697}
d55e5bfc 2698
d55e5bfc 2699
1bd55598
RD
2700namespace swig {
2701 struct PyObject_var : PyObject_ptr {
2702 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2703
2704 PyObject_var & operator = (PyObject* obj)
2705 {
2706 Py_XDECREF(_obj);
2707 _obj = obj;
2708 return *this;
d55e5bfc 2709 }
1bd55598 2710 };
d55e5bfc
RD
2711}
2712
2713
1bd55598
RD
2714#include "wx/wxPython/wxPython.h"
2715#include "wx/wxPython/pyclasses.h"
2716
2717
2718 static const wxString wxPyEmptyString(wxEmptyString);
2719
2131d850
RD
2720 #define SWIG_From_long PyInt_FromLong
2721
2722
2723SWIGINTERNINLINE PyObject *
2724SWIG_From_int (int value)
2725{
2726 return SWIG_From_long (value);
2727}
2728
2729
1bd55598
RD
2730#include <limits.h>
2731#ifndef LLONG_MIN
2732# define LLONG_MIN LONG_LONG_MIN
2733#endif
2734#ifndef LLONG_MAX
2735# define LLONG_MAX LONG_LONG_MAX
2736#endif
2737#ifndef ULLONG_MAX
2738# define ULLONG_MAX ULONG_LONG_MAX
2739#endif
d55e5bfc
RD
2740
2741
da91cb0f
RD
2742SWIGINTERN int
2743SWIG_AsVal_long (PyObject* obj, long* val)
2744{
2745 if (PyNumber_Check(obj)) {
2746 if (val) *val = PyInt_AsLong(obj);
2747 return SWIG_OK;
2748 }
2749 return SWIG_TypeError;
2750}
2751
2752
36ed4f51 2753SWIGINTERN int
1bd55598 2754SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2755{
2756 long v = 0;
2757 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2758 return SWIG_TypeError;
36ed4f51
RD
2759 }
2760 else if (val)
2761 *val = (unsigned long)v;
1bd55598 2762 return SWIG_OK;
36ed4f51 2763}
d55e5bfc
RD
2764
2765
36ed4f51 2766SWIGINTERN int
1bd55598
RD
2767SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2768{
36ed4f51 2769 unsigned long v;
1bd55598
RD
2770 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2771 if (SWIG_IsOK(res)) {
2772 if ((v > UCHAR_MAX)) {
2773 return SWIG_OverflowError;
36ed4f51 2774 } else {
1bd55598 2775 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2776 }
1bd55598
RD
2777 }
2778 return res;
36ed4f51 2779}
d55e5bfc 2780
d55e5bfc 2781
1bd55598
RD
2782SWIGINTERNINLINE PyObject*
2783SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2784{
1bd55598
RD
2785 return (value > LONG_MAX) ?
2786 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2787}
2788
2789
1bd55598
RD
2790SWIGINTERNINLINE PyObject *
2791SWIG_From_unsigned_SS_char (unsigned char value)
2792{
2793 return SWIG_From_unsigned_SS_long (value);
2794}
d55e5bfc 2795
e9d6f3a4
RD
2796SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2797 wxColour temp, *obj = &temp;
2798 if ( other == Py_None ) return false;
2799 if ( ! wxColour_helper(other, &obj) ) {
2800 PyErr_Clear();
2801 return false;
2802 }
2803 return self->operator==(*obj);
2804 }
2805SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return true;
2808 if ( ! wxColour_helper(other, &obj)) {
2809 PyErr_Clear();
2810 return true;
2811 }
2812 return self->operator!=(*obj);
2813 }
fc46b7f3
RD
2814
2815SWIGINTERN int
2816SWIG_AsVal_bool (PyObject *obj, bool *val)
2817{
2818 if (obj == Py_True) {
2819 if (val) *val = true;
2820 return SWIG_OK;
2821 } else if (obj == Py_False) {
2822 if (val) *val = false;
2823 return SWIG_OK;
2824 } else {
2825 long v = 0;
2826 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2827 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2828 return res;
2829 }
2830}
2831
2832SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2833 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2834 int red = -1;
2835 int green = -1;
2836 int blue = -1;
fc46b7f3 2837 int alpha = wxALPHA_OPAQUE;
36ed4f51
RD
2838 if (self->Ok()) {
2839 red = self->Red();
2840 green = self->Green();
2841 blue = self->Blue();
fc46b7f3 2842 alpha = self->Alpha();
36ed4f51
RD
2843 }
2844 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2845 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2846 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2847 if (includeAlpha)
2848 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2849 return rv;
2850 }
1bd55598 2851SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2852 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2853 }
d55e5bfc 2854
1bd55598
RD
2855SWIGINTERN int
2856SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2857{
1bd55598
RD
2858 long v;
2859 int res = SWIG_AsVal_long (obj, &v);
2860 if (SWIG_IsOK(res)) {
2861 if ((v < INT_MIN || v > INT_MAX)) {
2862 return SWIG_OverflowError;
2863 } else {
2864 if (val) *val = static_cast< int >(v);
2865 }
2866 }
2867 return res;
d55e5bfc
RD
2868}
2869
1bd55598 2870SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2871 wxDash* dashes;
2872 int count = self->GetDashes(&dashes);
5a446332 2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2874 PyObject* retval = PyList_New(0);
2875 for (int x=0; x<count; x++) {
2876 PyObject* pyint = PyInt_FromLong(dashes[x]);
2877 PyList_Append(retval, pyint);
2878 Py_DECREF(pyint);
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return retval;
2882 }
1bd55598 2883SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2884 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2885 int size = PyList_Size(pyDashes);
2886 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2887
36ed4f51
RD
2888 // black magic warning! The array of wxDashes needs to exist as
2889 // long as the pen does because wxPen does not copy the array. So
2890 // stick a copy in a Python string object and attach it to _self,
2891 // and then call SetDashes with a pointer to that array. Then
2892 // when the Python pen object is destroyed the array will be
2893 // cleaned up too.
2894 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2895 PyObject_SetAttrString(_self, "_dashes", strDashes);
2896
2897 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2898 delete [] dashes;
2899 Py_DECREF(strDashes);
2900 wxPyEndBlockThreads(blocked);
2901 }
1bd55598
RD
2902SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2903SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2904
1bd55598
RD
2905SWIGINTERNINLINE PyObject *
2906SWIG_From_short (short value)
2907{
2908 return SWIG_From_long (value);
2909}
d55e5bfc
RD
2910
2911
36ed4f51 2912SWIGINTERN int
1bd55598
RD
2913SWIG_AsVal_short (PyObject * obj, short *val)
2914{
36ed4f51 2915 long v;
1bd55598
RD
2916 int res = SWIG_AsVal_long (obj, &v);
2917 if (SWIG_IsOK(res)) {
2918 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2919 return SWIG_OverflowError;
36ed4f51 2920 } else {
1bd55598
RD
2921 if (val) *val = static_cast< short >(v);
2922 }
2923 }
2924 return res;
d55e5bfc
RD
2925}
2926
2927
fc46b7f3
RD
2928#include <wx/rawbmp.h>
2929
2930
36ed4f51 2931#include <wx/image.h>
d55e5bfc 2932
36ed4f51
RD
2933 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2934 char** cArray = NULL;
2935 int count;
d55e5bfc 2936
36ed4f51
RD
2937 if (!PyList_Check(listOfStrings)) {
2938 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2939 return NULL;
2940 }
2941 count = PyList_Size(listOfStrings);
2942 cArray = new char*[count];
d55e5bfc 2943
36ed4f51
RD
2944 for(int x=0; x<count; x++) {
2945 // TODO: Need some validation and error checking here
2946 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2947 }
2948 return cArray;
d55e5bfc 2949 }
d55e5bfc
RD
2950
2951
1bd55598 2952SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2953 char** cArray = NULL;
2954 wxBitmap* bmp;
2955
2956 cArray = ConvertListOfStrings(listOfStrings);
2957 if (! cArray)
2958 return NULL;
2959 bmp = new wxBitmap(cArray);
2960 delete [] cArray;
2961 return bmp;
2962 }
1bd55598 2963SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2964 char* buf;
2965 Py_ssize_t length;
2966 PyString_AsStringAndSize(bits, &buf, &length);
2967 return new wxBitmap(buf, width, height, depth);
2968 }
1bd55598 2969SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2970 wxSize size(self->GetWidth(), self->GetHeight());
2971 return size;
2972 }
1bd55598 2973SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2974 wxMask *mask = new wxMask(*self, colour);
2975 self->SetMask(mask);
2976 }
1bd55598 2977SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2978 self->SetWidth(size.x);
2979 self->SetHeight(size.y);
2980 }
1bd55598
RD
2981SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2982SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2983
2984// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2985// appears to me that the other platforms are already doing it, so I'll just
2986// automatically do it for wxMSW here.
2987#ifdef __WXMSW__
195a89b4
RD
2988#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2989#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2990#else
2991#define wxPy_premultiply(p, a) (p)
2992#define wxPy_unpremultiply(p, a) (p)
2993#endif
2994
2995
2996 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2997 buffer data, int DATASIZE,
2998 buffer alpha, int ALPHASIZE)
2999 {
3000 if (DATASIZE != width*height*3) {
3001 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3002 return NULL;
3003 }
3004
3005 if (ALPHASIZE != width*height) {
3006 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3007 return NULL;
3008 }
3009
3010 wxBitmap* bmp = new wxBitmap(width, height, 32);
3011 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3012 if (! pixData) {
3013 // raise an exception...
3014 wxPyErr_SetString(PyExc_RuntimeError,
3015 "Failed to gain raw access to bitmap data.");
3016 return NULL;
3017 }
3018
3019 pixData.UseAlpha();
3020 wxAlphaPixelData::Iterator p(pixData);
3021 for (int y=0; y<height; y++) {
3022 wxAlphaPixelData::Iterator rowStart = p;
3023 for (int x=0; x<width; x++) {
3024 byte a = *(alpha++);
3025 p.Red() = wxPy_premultiply(*(data++), a);
3026 p.Green() = wxPy_premultiply(*(data++), a);
3027 p.Blue() = wxPy_premultiply(*(data++), a);
3028 p.Alpha() = a;
3029 ++p;
3030 }
3031 p = rowStart;
3032 p.OffsetY(pixData, 1);
3033 }
3034 return bmp;
3035 }
3036
3037 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3038 {
3039 if (DATASIZE != width*height*3) {
3040 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3041 return NULL;
3042 }
3043
3044 wxBitmap* bmp = new wxBitmap(width, height, 24);
3045 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3046 if (! pixData) {
3047 // raise an exception...
3048 wxPyErr_SetString(PyExc_RuntimeError,
3049 "Failed to gain raw access to bitmap data.");
3050 return NULL;
3051 }
3052
3053 wxNativePixelData::Iterator p(pixData);
3054 for (int y=0; y<height; y++) {
3055 wxNativePixelData::Iterator rowStart = p;
3056 for (int x=0; x<width; x++) {
3057 p.Red() = *(data++);
3058 p.Green() = *(data++);
3059 p.Blue() = *(data++);
3060 ++p;
3061 }
3062 p = rowStart;
3063 p.OffsetY(pixData, 1);
3064 }
3065 return bmp;
3066 }
3067
3068
3069 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3070 {
3071 if (DATASIZE != width*height*4) {
3072 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3073 return NULL;
3074 }
3075
3076 wxBitmap* bmp = new wxBitmap(width, height, 32);
3077 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3078 if (! pixData) {
3079 // raise an exception...
3080 wxPyErr_SetString(PyExc_RuntimeError,
3081 "Failed to gain raw access to bitmap data.");
3082 return NULL;
3083 }
3084
3085 pixData.UseAlpha();
3086 wxAlphaPixelData::Iterator p(pixData);
3087 for (int y=0; y<height; y++) {
3088 wxAlphaPixelData::Iterator rowStart = p;
3089 for (int x=0; x<width; x++) {
3090 byte a = data[3];
3091 p.Red() = wxPy_premultiply(*(data++), a);
3092 p.Green() = wxPy_premultiply(*(data++), a);
3093 p.Blue() = wxPy_premultiply(*(data++), a);
3094 p.Alpha() = a; data++;
3095 ++p;
3096 }
3097 p = rowStart;
3098 p.OffsetY(pixData, 1);
3099 }
3100 return bmp;
3101 }
3102
3103
3104 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3105
3106SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3107SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3108SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3109 self->Red() = red;
3110 self->Green() = green;
3111 self->Blue() = blue;
3112 }
3113SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3114 PyObject* rv = PyTuple_New(3);
3115 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3116 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3117 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3118 return rv;
3119 }
3120
3121 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3122
3123SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3124SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3125SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3126 self->Red() = wxPy_premultiply(red, alpha);
3127 self->Green() = wxPy_premultiply(green, alpha);
3128 self->Blue() = wxPy_premultiply(blue, alpha);
3129 self->Alpha() = alpha;
3130 }
3131SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3132 PyObject* rv = PyTuple_New(4);
3133 int red = self->Red();
3134 int green = self->Green();
3135 int blue = self->Blue();
3136 int alpha = self->Alpha();
3137
3138 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3139 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3140 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3141 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3142 return rv;
3143 }
1bd55598 3144SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
36ed4f51
RD
3145 if ( !colour.Ok() )
3146 return new wxMask(bitmap, *wxBLACK);
3147 else
3148 return new wxMask(bitmap, colour);
3149 }
d55e5bfc 3150
36ed4f51 3151#include <wx/iconbndl.h>
d55e5bfc 3152
1bd55598 3153SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3154 wxIcon* icon = new wxIcon();
3155 icon->CopyFromBitmap(bmp);
3156 return icon;
3157 }
1bd55598 3158SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3159 char** cArray = NULL;
3160 wxIcon* icon;
d55e5bfc 3161
36ed4f51
RD
3162 cArray = ConvertListOfStrings(listOfStrings);
3163 if (! cArray)
3164 return NULL;
3165 icon = new wxIcon(cArray);
3166 delete [] cArray;
3167 return icon;
3168 }
1bd55598 3169SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3170
3171
d55e5bfc 3172
36ed4f51 3173 return new wxIconLocation(*filename);
d55e5bfc 3174
36ed4f51 3175 }
1bd55598 3176SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3177
3178
d55e5bfc 3179
36ed4f51 3180 // do nothing
d55e5bfc 3181
36ed4f51 3182 }
1bd55598 3183SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3184
3185
d55e5bfc 3186
36ed4f51 3187 return -1;
d55e5bfc 3188
36ed4f51 3189 }
1bd55598 3190SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3191#ifdef __WXGTK__
fef4c27a
RD
3192 wxImage img(cursorName, type);
3193 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3194 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3195 return new wxCursor(img);
36ed4f51 3196#else
fef4c27a 3197 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3198#endif
3199 }
d55e5bfc 3200
d55e5bfc 3201
1bd55598 3202SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3203 (*self) ++;
3204 }
1bd55598 3205SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3206 return self->operator bool();
3207 }
d55e5bfc 3208
36ed4f51
RD
3209#include <wx/fontutil.h>
3210#include <wx/fontmap.h>
3211#include <wx/fontenum.h>
d55e5bfc 3212
1bd55598 3213SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3214 return self->ToString();
3215 }
d55e5bfc 3216
36ed4f51
RD
3217 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3218 static wxNativeEncodingInfo info;
3219 if ( wxGetNativeFontEncoding(encoding, &info) )
3220 return &info;
3221 else
3222 return NULL;
d55e5bfc 3223 }
d55e5bfc 3224
1bd55598
RD
3225
3226SWIGINTERNINLINE PyObject *
3227SWIG_From_size_t (size_t value)
3228{
3229 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3230}
3231
3232
3233SWIGINTERNINLINE int
3234SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3235{
3236 unsigned long v;
3237 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3238 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3239 return res;
3240}
3241
3242SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3243 wxFontEncoding alt_enc;
3244 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3245 return PyInt_FromLong(alt_enc);
3246 else {
3247 Py_INCREF(Py_None);
3248 return Py_None;
3249 }
3250 }
1bd55598 3251SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3252 wxNativeFontInfo nfi;
3253 nfi.FromString(info);
3254 return new wxFont(nfi);
3255 }
1bd55598 3256SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3257 return wxFont::New(pointSize, family, flags, face, encoding);
3258 }
1bd55598 3259SWIGINTERN 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
3260 return wxFontBase::New(pixelSize, family,
3261 style, weight, underlined,
3262 face, encoding);
3263 }
1bd55598 3264SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3265 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3266 }
1bd55598
RD
3267SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3268SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3269
36ed4f51
RD
3270class wxPyFontEnumerator : public wxFontEnumerator {
3271public:
3272 wxPyFontEnumerator() {}
3273 ~wxPyFontEnumerator() {}
d55e5bfc 3274
36ed4f51
RD
3275 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3276 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3277
36ed4f51
RD
3278 PYPRIVATE;
3279};
d55e5bfc 3280
36ed4f51
RD
3281IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3282IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3283
36ed4f51 3284
704eda0c 3285SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3286 PyObject* ret;
704eda0c 3287 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3288 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3289 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3290 wxPyEndBlockThreads(blocked);
3291 return ret;
36ed4f51 3292 }
704eda0c 3293SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3294 PyObject* ret;
704eda0c 3295 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3296 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3297 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3298 wxPyEndBlockThreads(blocked);
3299 return ret;
36ed4f51
RD
3300 }
3301
3302#include <locale.h>
3303
1bd55598 3304SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3305 wxLocale* loc;
3306 if (language == -1)
3307 loc = new wxLocale();
3308 else
3309 loc = new wxLocale(language, flags);
3310 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3311 // for the floating point conversions and such to work right.
3312#if PY_VERSION_HEX < 0x02040000
3313 setlocale(LC_NUMERIC, "C");
3314#endif
3315 return loc;
3316 }
1bd55598 3317SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3318 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3319 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3320 // for the floating point conversions and such to work right.
3321#if PY_VERSION_HEX < 0x02040000
3322 setlocale(LC_NUMERIC, "C");
3323#endif
3324 return rc;
3325 }
1bd55598 3326SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3327 bool rc = self->Init(language, flags);
3328 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3329 // for the floating point conversions and such to work right.
3330#if PY_VERSION_HEX < 0x02040000
3331 setlocale(LC_NUMERIC, "C");
3332#endif
3333 return rc;
3334 }
3335
fc46b7f3
RD
3336class wxPyLocale : public wxLocale
3337{
3338public:
3339 wxPyLocale();
3340
3341 wxPyLocale(const wxChar *szName, // name (for messages)
3342 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3343 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3344 bool bLoadDefault = true, // preload wxstd.mo?
3345 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3346
3347 wxPyLocale(int language, // wxLanguage id or custom language
3348 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3349
3350 ~wxPyLocale();
3351
3352 virtual const wxChar *GetString(const wxChar *szOrigString,
3353 const wxChar *szDomain = NULL) const;
3354 virtual const wxChar *GetString(const wxChar *szOrigString,
3355 const wxChar *szOrigString2, size_t n,
3356 const wxChar *szDomain = NULL) const;
3357
3358 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3359 const wxChar *szDomain = NULL) const;
3360 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3361 const wxChar *szOrigString2, size_t n,
3362 const wxChar *szDomain = NULL) const;
3363
3364 PYPRIVATE;
3365private:
3366 DECLARE_NO_COPY_CLASS(wxPyLocale)
3367};
3368
3369wxPyLocale::wxPyLocale() : wxLocale()
3370{
3371}
3372
3373wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3374 const wxChar *szShort, // dir prefix (for msg files)
3375 const wxChar *szLocale, // locale (for setlocale)
3376 bool bLoadDefault, // preload wxstd.mo?
3377 bool bConvertEncoding) // convert Win<->Unix if necessary?
3378 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3379{
3380}
3381
3382wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3383 int flags) : wxLocale(language, flags)
3384{
3385}
3386
3387wxPyLocale::~wxPyLocale()
3388{
3389}
3390
3391const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3392 const wxChar *szDomain) const
3393{
3394 wxChar *str = GetSingularString(szOrigString, szDomain);
3395 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3396}
3397
3398const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3399 const wxChar *szOrigString2, size_t n,
3400 const wxChar *szDomain) const
3401{
3402 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3403 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3404}
3405
3406wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3407 const wxChar *szDomain) const
3408{
3409 bool found;
3410 static wxString str;
3411 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.
3412 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3413 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3414 PyObject* param1 = wx2PyString(szOrigString);
3415 PyObject* param2 = wx2PyString(szDomain);
3416 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3417 Py_DECREF(param1);
3418 Py_DECREF(param2);
3419 if (ret) {
3420 str = Py2wxString(ret);
3421 Py_DECREF(ret);
3422 }
3423 }
3424 wxPyEndBlockThreads(blocked);
3425 return (found ? (wxChar*)str.c_str() : NULL);
3426}
3427
3428wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3429 const wxChar *szOrigString2, size_t n,
3430 const wxChar *szDomain) const
3431{
3432 bool found;
3433 static wxString str;
3434 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.
3435 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3436 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3437 PyObject* param1 = wx2PyString(szOrigString);
3438 PyObject* param2 = wx2PyString(szOrigString2);
3439 PyObject* param4 = wx2PyString(szDomain);
3440 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3441 Py_DECREF(param1);
3442 Py_DECREF(param2);
3443 Py_DECREF(param4);
3444 if( ret) {
3445 str = Py2wxString(ret);
3446 Py_DECREF(ret);
3447 }
3448 }
3449 wxPyEndBlockThreads(blocked);
3450 return (found ? (wxChar*)str.c_str() : NULL);
3451}
3452
3453SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3454 wxPyLocale* loc;
3455 if (language == -1)
3456 loc = new wxPyLocale();
3457 else
3458 loc = new wxPyLocale(language, flags);
3459 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3460 // for the floating point conversions and such to work right.
3461#if PY_VERSION_HEX < 0x02040000
3462 setlocale(LC_NUMERIC, "C");
3463#endif
3464 return loc;
3465 }
3466
36ed4f51
RD
3467#include "wx/wxPython/pydrawxxx.h"
3468
1bd55598 3469SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3470 wxColour col;
3471 self->GetPixel(x, y, &col);
3472 return col;
3473 }
1bd55598 3474SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3475 wxColour col;
3476 self->GetPixel(pt, &col);
3477 return col;
3478 }
3479
3480SWIGINTERN int
1bd55598 3481SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3482{
3483 if (PyNumber_Check(obj)) {
3484 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3485 return SWIG_OK;
d55e5bfc 3486 }
1bd55598 3487 return SWIG_TypeError;
36ed4f51
RD
3488}
3489
1bd55598 3490SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3491 wxRect rv;
3492 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3493 return rv;
3494 }
1bd55598 3495SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3496 wxRect rect;
3497 self->GetClippingBox(rect);
3498 return rect;
3499 }
1bd55598 3500SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3501 wxArrayInt widths;
3502 self->GetPartialTextExtents(text, widths);
3503 return widths;
3504 }
3505
1bd55598 3506 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3507
1bd55598 3508SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3509 self->SetLogicalOrigin(point.x, point.y);
3510 }
1bd55598 3511SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3512 self->SetDeviceOrigin(point.x, point.y);
3513 }
1bd55598 3514SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3515 self->CalcBoundingBox(point.x, point.y);
3516 }
1bd55598 3517SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3518 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3519 }
1bd55598 3520SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3521 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3522 }
1bd55598 3523SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3524 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3525 }
1bd55598 3526SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3527 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3528 }
1bd55598 3529SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3530 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3531 }
1bd55598 3532SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3533 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3534 }
3535
3536static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3537 *x1 = dc->MinX();
3538 *y1 = dc->MinY();
3539 *x2 = dc->MaxX();
3540 *y2 = dc->MaxY();
3541}
3542
3543
3544#include <wx/dcbuffer.h>
3545
3546
3547#include <wx/dcps.h>
3548
3549
3550#include <wx/metafile.h>
3551
3552
3553
1bd55598 3554SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3555 self->AddColour(name, wxColour(red, green, blue));
3556 }
3557
da91cb0f
RD
3558 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3559 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3560 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3561 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3562
3563
36ed4f51
RD
3564#include <wx/effects.h>
3565
be9b1dca
RD
3566
3567#include "wx/renderer.h"
3568
3569
32fe5131 3570SWIGINTERNINLINE PyObject*
1bd55598 3571 SWIG_From_bool (bool value)
be9b1dca 3572{
1bd55598 3573 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3574}
3575
27e45892
RD
3576
3577#include "wx/wxPython/pseudodc.h"
3578
3579SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3580 wxRect rect;
3581 self->GetIdBounds(id, rect);
3582 return rect;
3583 }
36ed4f51
RD
3584#ifdef __cplusplus
3585extern "C" {
3586#endif
1bd55598
RD
3587SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3588 PyObject *resultobj = 0;
3589 wxGDIObject *result = 0 ;
3590
3591 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3592 {
3593 if (!wxPyCheckForApp()) SWIG_fail;
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (wxGDIObject *)new wxGDIObject();
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3600 return resultobj;
3601fail:
3602 return NULL;
d55e5bfc
RD
3603}
3604
3605
1bd55598
RD
3606SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3607 PyObject *resultobj = 0;
3608 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3609 void *argp1 = 0 ;
3610 int res1 = 0 ;
3611 PyObject *swig_obj[1] ;
3612
3613 if (!args) SWIG_fail;
3614 swig_obj[0] = args;
3615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3616 if (!SWIG_IsOK(res1)) {
3617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3618 }
3619 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 delete arg1;
d55e5bfc 3623
1bd55598
RD
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 resultobj = SWIG_Py_Void();
3628 return resultobj;
3629fail:
3630 return NULL;
d55e5bfc
RD
3631}
3632
3633
1bd55598
RD
3634SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3635 PyObject *resultobj = 0;
3636 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3637 bool result;
3638 void *argp1 = 0 ;
3639 int res1 = 0 ;
3640 PyObject *swig_obj[1] ;
3641
3642 if (!args) SWIG_fail;
3643 swig_obj[0] = args;
3644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3645 if (!SWIG_IsOK(res1)) {
3646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3647 }
3648 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 result = (bool)(arg1)->IsNull();
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 {
3656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3657 }
3658 return resultobj;
3659fail:
3660 return NULL;
3661}
3662
3663
3664SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3665 PyObject *obj;
3666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3667 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3668 return SWIG_Py_Void();
3669}
3670
3671SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3672 return SWIG_Python_InitShadowInstance(args);
3673}
3674
3675SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3676 PyObject *resultobj = 0;
3677 byte arg1 = (byte) 0 ;
3678 byte arg2 = (byte) 0 ;
3679 byte arg3 = (byte) 0 ;
fc46b7f3 3680 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
3681 wxColour *result = 0 ;
3682 unsigned char val1 ;
3683 int ecode1 = 0 ;
3684 unsigned char val2 ;
3685 int ecode2 = 0 ;
3686 unsigned char val3 ;
3687 int ecode3 = 0 ;
fc46b7f3
RD
3688 unsigned char val4 ;
3689 int ecode4 = 0 ;
1bd55598
RD
3690 PyObject * obj0 = 0 ;
3691 PyObject * obj1 = 0 ;
3692 PyObject * obj2 = 0 ;
fc46b7f3 3693 PyObject * obj3 = 0 ;
1bd55598 3694 char * kwnames[] = {
fc46b7f3 3695 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
3696 };
3697
fc46b7f3 3698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
3699 if (obj0) {
3700 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3701 if (!SWIG_IsOK(ecode1)) {
3702 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3703 }
3704 arg1 = static_cast< byte >(val1);
3705 }
3706 if (obj1) {
3707 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3708 if (!SWIG_IsOK(ecode2)) {
3709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3710 }
3711 arg2 = static_cast< byte >(val2);
3712 }
3713 if (obj2) {
3714 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3715 if (!SWIG_IsOK(ecode3)) {
3716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3717 }
3718 arg3 = static_cast< byte >(val3);
3719 }
fc46b7f3
RD
3720 if (obj3) {
3721 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3722 if (!SWIG_IsOK(ecode4)) {
3723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3724 }
3725 arg4 = static_cast< byte >(val4);
3726 }
1bd55598
RD
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3729 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3734 return resultobj;
3735fail:
3736 return NULL;
d55e5bfc
RD
3737}
3738
3739
1bd55598
RD
3740SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj = 0;
3742 wxString *arg1 = 0 ;
3743 wxColour *result = 0 ;
3744 bool temp1 = false ;
3745 PyObject * obj0 = 0 ;
3746 char * kwnames[] = {
3747 (char *) "colorName", NULL
3748 };
3749
3750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3751 {
3752 arg1 = wxString_in_helper(obj0);
3753 if (arg1 == NULL) SWIG_fail;
3754 temp1 = true;
3755 }
3756 {
3757 if (!wxPyCheckForApp()) SWIG_fail;
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 result = (wxColour *)new wxColour((wxString const &)*arg1);
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3764 {
3765 if (temp1)
3766 delete arg1;
3767 }
3768 return resultobj;
3769fail:
3770 {
3771 if (temp1)
3772 delete arg1;
3773 }
3774 return NULL;
36ed4f51
RD
3775}
3776
3777
1bd55598
RD
3778SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj = 0;
3780 unsigned long arg1 ;
3781 wxColour *result = 0 ;
3782 unsigned long val1 ;
3783 int ecode1 = 0 ;
3784 PyObject * obj0 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "colRGB", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3790 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3791 if (!SWIG_IsOK(ecode1)) {
3792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3793 }
3794 arg1 = static_cast< unsigned long >(val1);
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 result = (wxColour *)new wxColour(arg1);
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3802 return resultobj;
3803fail:
3804 return NULL;
d55e5bfc
RD
3805}
3806
3807
1bd55598
RD
3808SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3809 PyObject *resultobj = 0;
3810 wxColour *arg1 = (wxColour *) 0 ;
3811 void *argp1 = 0 ;
3812 int res1 = 0 ;
3813 PyObject *swig_obj[1] ;
3814
3815 if (!args) SWIG_fail;
3816 swig_obj[0] = args;
3817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3818 if (!SWIG_IsOK(res1)) {
3819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3820 }
3821 arg1 = reinterpret_cast< wxColour * >(argp1);
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 delete arg1;
d55e5bfc 3825
1bd55598
RD
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 resultobj = SWIG_Py_Void();
3830 return resultobj;
3831fail:
3832 return NULL;
d55e5bfc
RD
3833}
3834
3835
1bd55598
RD
3836SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3837 PyObject *resultobj = 0;
3838 wxColour *arg1 = (wxColour *) 0 ;
3839 byte result;
3840 void *argp1 = 0 ;
3841 int res1 = 0 ;
3842 PyObject *swig_obj[1] ;
3843
3844 if (!args) SWIG_fail;
3845 swig_obj[0] = args;
3846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3847 if (!SWIG_IsOK(res1)) {
3848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3849 }
3850 arg1 = reinterpret_cast< wxColour * >(argp1);
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (byte)(arg1)->Red();
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3858 return resultobj;
3859fail:
3860 return NULL;
d55e5bfc
RD
3861}
3862
3863
1bd55598
RD
3864SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3865 PyObject *resultobj = 0;
3866 wxColour *arg1 = (wxColour *) 0 ;
3867 byte result;
3868 void *argp1 = 0 ;
3869 int res1 = 0 ;
3870 PyObject *swig_obj[1] ;
3871
3872 if (!args) SWIG_fail;
3873 swig_obj[0] = args;
3874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3875 if (!SWIG_IsOK(res1)) {
3876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3877 }
3878 arg1 = reinterpret_cast< wxColour * >(argp1);
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (byte)(arg1)->Green();
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3886 return resultobj;
3887fail:
3888 return NULL;
d55e5bfc
RD
3889}
3890
3891
1bd55598
RD
3892SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3893 PyObject *resultobj = 0;
3894 wxColour *arg1 = (wxColour *) 0 ;
3895 byte result;
3896 void *argp1 = 0 ;
3897 int res1 = 0 ;
3898 PyObject *swig_obj[1] ;
3899
3900 if (!args) SWIG_fail;
3901 swig_obj[0] = args;
3902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3903 if (!SWIG_IsOK(res1)) {
3904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3905 }
3906 arg1 = reinterpret_cast< wxColour * >(argp1);
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 result = (byte)(arg1)->Blue();
3910 wxPyEndAllowThreads(__tstate);
3911 if (PyErr_Occurred()) SWIG_fail;
3912 }
3913 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3914 return resultobj;
3915fail:
3916 return NULL;
d55e5bfc
RD
3917}
3918
3919
fc46b7f3
RD
3920SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3921 PyObject *resultobj = 0;
3922 wxColour *arg1 = (wxColour *) 0 ;
3923 byte result;
3924 void *argp1 = 0 ;
3925 int res1 = 0 ;
3926 PyObject *swig_obj[1] ;
3927
3928 if (!args) SWIG_fail;
3929 swig_obj[0] = args;
3930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3931 if (!SWIG_IsOK(res1)) {
3932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3933 }
3934 arg1 = reinterpret_cast< wxColour * >(argp1);
3935 {
3936 PyThreadState* __tstate = wxPyBeginAllowThreads();
3937 result = (byte)(arg1)->Alpha();
3938 wxPyEndAllowThreads(__tstate);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 }
3941 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3942 return resultobj;
3943fail:
3944 return NULL;
3945}
3946
3947
1bd55598
RD
3948SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3949 PyObject *resultobj = 0;
3950 wxColour *arg1 = (wxColour *) 0 ;
3951 bool result;
3952 void *argp1 = 0 ;
3953 int res1 = 0 ;
3954 PyObject *swig_obj[1] ;
3955
3956 if (!args) SWIG_fail;
3957 swig_obj[0] = args;
3958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3961 }
3962 arg1 = reinterpret_cast< wxColour * >(argp1);
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 result = (bool)(arg1)->Ok();
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 {
3970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3971 }
3972 return resultobj;
3973fail:
3974 return NULL;
3975}
3976
3977
3978SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj = 0;
3980 wxColour *arg1 = (wxColour *) 0 ;
3981 byte arg2 ;
3982 byte arg3 ;
3983 byte arg4 ;
fc46b7f3 3984 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
3985 void *argp1 = 0 ;
3986 int res1 = 0 ;
3987 unsigned char val2 ;
3988 int ecode2 = 0 ;
3989 unsigned char val3 ;
3990 int ecode3 = 0 ;
3991 unsigned char val4 ;
3992 int ecode4 = 0 ;
fc46b7f3
RD
3993 unsigned char val5 ;
3994 int ecode5 = 0 ;
1bd55598
RD
3995 PyObject * obj0 = 0 ;
3996 PyObject * obj1 = 0 ;
3997 PyObject * obj2 = 0 ;
3998 PyObject * obj3 = 0 ;
fc46b7f3 3999 PyObject * obj4 = 0 ;
1bd55598 4000 char * kwnames[] = {
fc46b7f3 4001 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4002 };
4003
fc46b7f3 4004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4006 if (!SWIG_IsOK(res1)) {
4007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4008 }
4009 arg1 = reinterpret_cast< wxColour * >(argp1);
4010 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4011 if (!SWIG_IsOK(ecode2)) {
4012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4013 }
4014 arg2 = static_cast< byte >(val2);
4015 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4016 if (!SWIG_IsOK(ecode3)) {
4017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4018 }
4019 arg3 = static_cast< byte >(val3);
4020 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4021 if (!SWIG_IsOK(ecode4)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4023 }
4024 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4025 if (obj4) {
4026 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4027 if (!SWIG_IsOK(ecode5)) {
4028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4029 }
4030 arg5 = static_cast< byte >(val5);
4031 }
1bd55598
RD
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4034 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = SWIG_Py_Void();
4039 return resultobj;
4040fail:
4041 return NULL;
4042}
4043
4044
4045SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj = 0;
4047 wxColour *arg1 = (wxColour *) 0 ;
4048 unsigned long arg2 ;
4049 void *argp1 = 0 ;
4050 int res1 = 0 ;
4051 unsigned long val2 ;
4052 int ecode2 = 0 ;
4053 PyObject * obj0 = 0 ;
4054 PyObject * obj1 = 0 ;
4055 char * kwnames[] = {
4056 (char *) "self",(char *) "colRGB", NULL
4057 };
4058
4059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4061 if (!SWIG_IsOK(res1)) {
4062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4063 }
4064 arg1 = reinterpret_cast< wxColour * >(argp1);
4065 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4066 if (!SWIG_IsOK(ecode2)) {
4067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4068 }
4069 arg2 = static_cast< unsigned long >(val2);
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 (arg1)->Set(arg2);
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 resultobj = SWIG_Py_Void();
4077 return resultobj;
4078fail:
4079 return NULL;
4080}
4081
4082
4083SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj = 0;
4085 wxColour *arg1 = (wxColour *) 0 ;
4086 wxString *arg2 = 0 ;
4087 void *argp1 = 0 ;
4088 int res1 = 0 ;
4089 bool temp2 = false ;
4090 PyObject * obj0 = 0 ;
4091 PyObject * obj1 = 0 ;
4092 char * kwnames[] = {
4093 (char *) "self",(char *) "colourName", NULL
4094 };
4095
4096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4098 if (!SWIG_IsOK(res1)) {
4099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4100 }
4101 arg1 = reinterpret_cast< wxColour * >(argp1);
4102 {
4103 arg2 = wxString_in_helper(obj1);
4104 if (arg2 == NULL) SWIG_fail;
4105 temp2 = true;
4106 }
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 (arg1)->InitFromName((wxString const &)*arg2);
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 resultobj = SWIG_Py_Void();
4114 {
4115 if (temp2)
4116 delete arg2;
4117 }
4118 return resultobj;
4119fail:
4120 {
4121 if (temp2)
4122 delete arg2;
4123 }
4124 return NULL;
d55e5bfc
RD
4125}
4126
4127
2131d850
RD
4128SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj = 0;
4130 wxColour *arg1 = (wxColour *) 0 ;
4131 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4132 wxString result;
4133 void *argp1 = 0 ;
4134 int res1 = 0 ;
4135 long val2 ;
4136 int ecode2 = 0 ;
4137 PyObject * obj0 = 0 ;
4138 PyObject * obj1 = 0 ;
4139 char * kwnames[] = {
4140 (char *) "self",(char *) "flags", NULL
4141 };
4142
4143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4145 if (!SWIG_IsOK(res1)) {
4146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4147 }
4148 arg1 = reinterpret_cast< wxColour * >(argp1);
4149 if (obj1) {
4150 ecode2 = SWIG_AsVal_long(obj1, &val2);
4151 if (!SWIG_IsOK(ecode2)) {
4152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4153 }
4154 arg2 = static_cast< long >(val2);
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 result = ((wxColour const *)arg1)->GetAsString(arg2);
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 {
4163#if wxUSE_UNICODE
4164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4165#else
4166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4167#endif
4168 }
4169 return resultobj;
4170fail:
4171 return NULL;
4172}
4173
4174
1bd55598
RD
4175SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176 PyObject *resultobj = 0;
4177 wxColour *arg1 = (wxColour *) 0 ;
4178 long result;
4179 void *argp1 = 0 ;
4180 int res1 = 0 ;
4181 PyObject *swig_obj[1] ;
4182
4183 if (!args) SWIG_fail;
4184 swig_obj[0] = args;
4185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4186 if (!SWIG_IsOK(res1)) {
4187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4188 }
4189 arg1 = reinterpret_cast< wxColour * >(argp1);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (long)((wxColour const *)arg1)->GetPixel();
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_From_long(static_cast< long >(result));
4197 return resultobj;
4198fail:
4199 return NULL;
4200}
4201
4202
4203SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = 0;
4205 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4206 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4207 bool result;
4208 void *argp1 = 0 ;
4209 int res1 = 0 ;
1bd55598
RD
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char * kwnames[] = {
e9d6f3a4 4213 (char *) "self",(char *) "other", NULL
1bd55598
RD
4214 };
4215
4216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4220 }
4221 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4222 arg2 = obj1;
1bd55598 4223 {
e9d6f3a4 4224 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 {
4228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4229 }
4230 return resultobj;
4231fail:
4232 return NULL;
4233}
4234
4235
4236SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj = 0;
4238 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4239 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4240 bool result;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
1bd55598
RD
4243 PyObject * obj0 = 0 ;
4244 PyObject * obj1 = 0 ;
4245 char * kwnames[] = {
e9d6f3a4 4246 (char *) "self",(char *) "other", NULL
1bd55598
RD
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4251 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4253 }
4254 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4255 arg2 = obj1;
1bd55598 4256 {
e9d6f3a4 4257 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 {
4261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4262 }
4263 return resultobj;
4264fail:
4265 return NULL;
d55e5bfc
RD
4266}
4267
4268
fc46b7f3 4269SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4270 PyObject *resultobj = 0;
4271 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4272 bool arg2 = (bool) false ;
1bd55598
RD
4273 PyObject *result = 0 ;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
fc46b7f3
RD
4276 bool val2 ;
4277 int ecode2 = 0 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char * kwnames[] = {
4281 (char *) "self",(char *) "includeAlpha", NULL
4282 };
1bd55598 4283
fc46b7f3
RD
4284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4286 if (!SWIG_IsOK(res1)) {
4287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4288 }
4289 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4290 if (obj1) {
4291 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4292 if (!SWIG_IsOK(ecode2)) {
4293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4294 }
4295 arg2 = static_cast< bool >(val2);
4296 }
1bd55598 4297 {
fc46b7f3 4298 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = result;
4302 return resultobj;
4303fail:
4304 return NULL;
d55e5bfc
RD
4305}
4306
4307
1bd55598
RD
4308SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4309 PyObject *resultobj = 0;
4310 wxColour *arg1 = (wxColour *) 0 ;
4311 unsigned long result;
4312 void *argp1 = 0 ;
4313 int res1 = 0 ;
4314 PyObject *swig_obj[1] ;
4315
4316 if (!args) SWIG_fail;
4317 swig_obj[0] = args;
4318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4319 if (!SWIG_IsOK(res1)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4321 }
4322 arg1 = reinterpret_cast< wxColour * >(argp1);
4323 {
1bd55598 4324 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4328 return resultobj;
4329fail:
4330 return NULL;
4331}
4332
4333
4334SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4335 PyObject *obj;
4336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4337 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4338 return SWIG_Py_Void();
4339}
4340
4341SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4342 return SWIG_Python_InitShadowInstance(args);
4343}
4344
4345SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 int arg1 ;
4348 unsigned char *arg2 = (unsigned char *) 0 ;
4349 unsigned char *arg3 = (unsigned char *) 0 ;
4350 unsigned char *arg4 = (unsigned char *) 0 ;
4351 wxPalette *result = 0 ;
4352 int val1 ;
4353 int ecode1 = 0 ;
4354 void *argp2 = 0 ;
4355 int res2 = 0 ;
4356 void *argp3 = 0 ;
4357 int res3 = 0 ;
4358 void *argp4 = 0 ;
4359 int res4 = 0 ;
4360 PyObject * obj0 = 0 ;
4361 PyObject * obj1 = 0 ;
4362 PyObject * obj2 = 0 ;
4363 PyObject * obj3 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4369 ecode1 = SWIG_AsVal_int(obj0, &val1);
4370 if (!SWIG_IsOK(ecode1)) {
4371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4372 }
4373 arg1 = static_cast< int >(val1);
4374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4375 if (!SWIG_IsOK(res2)) {
4376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4377 }
4378 arg2 = reinterpret_cast< unsigned char * >(argp2);
4379 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4380 if (!SWIG_IsOK(res3)) {
4381 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4382 }
4383 arg3 = reinterpret_cast< unsigned char * >(argp3);
4384 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4385 if (!SWIG_IsOK(res4)) {
4386 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4387 }
4388 arg4 = reinterpret_cast< unsigned char * >(argp4);
4389 {
4390 if (!wxPyCheckForApp()) SWIG_fail;
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4397 return resultobj;
4398fail:
4399 return NULL;
d55e5bfc
RD
4400}
4401
4402
1bd55598
RD
4403SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4404 PyObject *resultobj = 0;
4405 wxPalette *arg1 = (wxPalette *) 0 ;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4415 }
4416 arg1 = reinterpret_cast< wxPalette * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 delete arg1;
d55e5bfc 4420
1bd55598
RD
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = SWIG_Py_Void();
4425 return resultobj;
4426fail:
4427 return NULL;
4428}
4429
4430
4431SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4432 PyObject *resultobj = 0;
4433 wxPalette *arg1 = (wxPalette *) 0 ;
4434 byte arg2 ;
4435 byte arg3 ;
4436 byte arg4 ;
4437 int result;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 unsigned char val2 ;
4441 int ecode2 = 0 ;
4442 unsigned char val3 ;
4443 int ecode3 = 0 ;
4444 unsigned char val4 ;
4445 int ecode4 = 0 ;
4446 PyObject * obj0 = 0 ;
4447 PyObject * obj1 = 0 ;
4448 PyObject * obj2 = 0 ;
4449 PyObject * obj3 = 0 ;
4450 char * kwnames[] = {
4451 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4452 };
4453
4454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4458 }
4459 arg1 = reinterpret_cast< wxPalette * >(argp1);
4460 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4461 if (!SWIG_IsOK(ecode2)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4463 }
4464 arg2 = static_cast< byte >(val2);
4465 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4466 if (!SWIG_IsOK(ecode3)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4468 }
4469 arg3 = static_cast< byte >(val3);
4470 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4471 if (!SWIG_IsOK(ecode4)) {
4472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4473 }
4474 arg4 = static_cast< byte >(val4);
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_From_int(static_cast< int >(result));
4482 return resultobj;
4483fail:
4484 return NULL;
4485}
4486
4487
4488SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj = 0;
4490 wxPalette *arg1 = (wxPalette *) 0 ;
4491 int arg2 ;
4492 byte *arg3 = (byte *) 0 ;
4493 byte *arg4 = (byte *) 0 ;
4494 byte *arg5 = (byte *) 0 ;
4495 bool result;
4496 void *argp1 = 0 ;
4497 int res1 = 0 ;
4498 int val2 ;
4499 int ecode2 = 0 ;
4500 byte temp3 ;
4501 int res3 = SWIG_TMPOBJ ;
4502 byte temp4 ;
4503 int res4 = SWIG_TMPOBJ ;
4504 byte temp5 ;
4505 int res5 = SWIG_TMPOBJ ;
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 char * kwnames[] = {
4509 (char *) "self",(char *) "pixel", NULL
4510 };
4511
4512 arg3 = &temp3;
4513 arg4 = &temp4;
4514 arg5 = &temp5;
4515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4517 if (!SWIG_IsOK(res1)) {
4518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4519 }
4520 arg1 = reinterpret_cast< wxPalette * >(argp1);
4521 ecode2 = SWIG_AsVal_int(obj1, &val2);
4522 if (!SWIG_IsOK(ecode2)) {
4523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4524 }
4525 arg2 = static_cast< int >(val2);
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4534 }
4535 if (SWIG_IsTmpObj(res3)) {
4536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4537 } else {
4538 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4540 }
4541 if (SWIG_IsTmpObj(res4)) {
4542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4543 } else {
4544 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4546 }
4547 if (SWIG_IsTmpObj(res5)) {
4548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4549 } else {
4550 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4552 }
4553 return resultobj;
4554fail:
4555 return NULL;
d55e5bfc
RD
4556}
4557
4558
1bd55598
RD
4559SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4560 PyObject *resultobj = 0;
4561 wxPalette *arg1 = (wxPalette *) 0 ;
4562 int result;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 PyObject *swig_obj[1] ;
4566
4567 if (!args) SWIG_fail;
4568 swig_obj[0] = args;
4569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4570 if (!SWIG_IsOK(res1)) {
4571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4572 }
4573 arg1 = reinterpret_cast< wxPalette * >(argp1);
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4577 wxPyEndAllowThreads(__tstate);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 }
4580 resultobj = SWIG_From_int(static_cast< int >(result));
4581 return resultobj;
4582fail:
4583 return NULL;
d55e5bfc
RD
4584}
4585
4586
1bd55598
RD
4587SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4588 PyObject *resultobj = 0;
4589 wxPalette *arg1 = (wxPalette *) 0 ;
4590 bool result;
4591 void *argp1 = 0 ;
4592 int res1 = 0 ;
4593 PyObject *swig_obj[1] ;
4594
4595 if (!args) SWIG_fail;
4596 swig_obj[0] = args;
4597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4600 }
4601 arg1 = reinterpret_cast< wxPalette * >(argp1);
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (bool)(arg1)->Ok();
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 {
4609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4610 }
4611 return resultobj;
4612fail:
4613 return NULL;
4614}
4615
4616
4617SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4618 PyObject *obj;
4619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4620 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4621 return SWIG_Py_Void();
4622}
4623
4624SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4625 return SWIG_Python_InitShadowInstance(args);
4626}
4627
4628SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj = 0;
4630 wxColour *arg1 = 0 ;
4631 int arg2 = (int) 1 ;
4632 int arg3 = (int) wxSOLID ;
4633 wxPen *result = 0 ;
4634 wxColour temp1 ;
4635 int val2 ;
4636 int ecode2 = 0 ;
4637 int val3 ;
4638 int ecode3 = 0 ;
4639 PyObject * obj0 = 0 ;
4640 PyObject * obj1 = 0 ;
4641 PyObject * obj2 = 0 ;
4642 char * kwnames[] = {
4643 (char *) "colour",(char *) "width",(char *) "style", NULL
4644 };
4645
4646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4647 {
4648 arg1 = &temp1;
4649 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4650 }
4651 if (obj1) {
4652 ecode2 = SWIG_AsVal_int(obj1, &val2);
4653 if (!SWIG_IsOK(ecode2)) {
4654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4655 }
4656 arg2 = static_cast< int >(val2);
4657 }
4658 if (obj2) {
4659 ecode3 = SWIG_AsVal_int(obj2, &val3);
4660 if (!SWIG_IsOK(ecode3)) {
4661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4662 }
4663 arg3 = static_cast< int >(val3);
4664 }
4665 {
4666 if (!wxPyCheckForApp()) SWIG_fail;
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4673 return resultobj;
4674fail:
4675 return NULL;
d55e5bfc
RD
4676}
4677
4678
1bd55598
RD
4679SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4680 PyObject *resultobj = 0;
4681 wxPen *arg1 = (wxPen *) 0 ;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 PyObject *swig_obj[1] ;
4685
4686 if (!args) SWIG_fail;
4687 swig_obj[0] = args;
4688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4691 }
4692 arg1 = reinterpret_cast< wxPen * >(argp1);
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 delete arg1;
f78cc896 4696
1bd55598
RD
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 resultobj = SWIG_Py_Void();
4701 return resultobj;
4702fail:
4703 return NULL;
f78cc896
RD
4704}
4705
4706
1bd55598
RD
4707SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4708 PyObject *resultobj = 0;
4709 wxPen *arg1 = (wxPen *) 0 ;
4710 int result;
4711 void *argp1 = 0 ;
4712 int res1 = 0 ;
4713 PyObject *swig_obj[1] ;
4714
4715 if (!args) SWIG_fail;
4716 swig_obj[0] = args;
4717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4718 if (!SWIG_IsOK(res1)) {
4719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4720 }
4721 arg1 = reinterpret_cast< wxPen * >(argp1);
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 result = (int)(arg1)->GetCap();
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 resultobj = SWIG_From_int(static_cast< int >(result));
4729 return resultobj;
4730fail:
4731 return NULL;
d55e5bfc
RD
4732}
4733
4734
1bd55598
RD
4735SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4736 PyObject *resultobj = 0;
4737 wxPen *arg1 = (wxPen *) 0 ;
4738 wxColour result;
4739 void *argp1 = 0 ;
4740 int res1 = 0 ;
4741 PyObject *swig_obj[1] ;
4742
4743 if (!args) SWIG_fail;
4744 swig_obj[0] = args;
4745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4746 if (!SWIG_IsOK(res1)) {
4747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4748 }
4749 arg1 = reinterpret_cast< wxPen * >(argp1);
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (arg1)->GetColour();
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4757 return resultobj;
4758fail:
4759 return NULL;
d55e5bfc
RD
4760}
4761
4762
1bd55598
RD
4763SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4764 PyObject *resultobj = 0;
4765 wxPen *arg1 = (wxPen *) 0 ;
4766 int result;
4767 void *argp1 = 0 ;
4768 int res1 = 0 ;
4769 PyObject *swig_obj[1] ;
4770
4771 if (!args) SWIG_fail;
4772 swig_obj[0] = args;
4773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4774 if (!SWIG_IsOK(res1)) {
4775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4776 }
4777 arg1 = reinterpret_cast< wxPen * >(argp1);
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (int)(arg1)->GetJoin();
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 resultobj = SWIG_From_int(static_cast< int >(result));
4785 return resultobj;
4786fail:
4787 return NULL;
d55e5bfc
RD
4788}
4789
4790
1bd55598
RD
4791SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4792 PyObject *resultobj = 0;
4793 wxPen *arg1 = (wxPen *) 0 ;
4794 int result;
4795 void *argp1 = 0 ;
4796 int res1 = 0 ;
4797 PyObject *swig_obj[1] ;
4798
4799 if (!args) SWIG_fail;
4800 swig_obj[0] = args;
4801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4802 if (!SWIG_IsOK(res1)) {
4803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4804 }
4805 arg1 = reinterpret_cast< wxPen * >(argp1);
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 result = (int)(arg1)->GetStyle();
4809 wxPyEndAllowThreads(__tstate);
4810 if (PyErr_Occurred()) SWIG_fail;
4811 }
4812 resultobj = SWIG_From_int(static_cast< int >(result));
4813 return resultobj;
4814fail:
4815 return NULL;
d55e5bfc
RD
4816}
4817
4818
1bd55598
RD
4819SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4820 PyObject *resultobj = 0;
4821 wxPen *arg1 = (wxPen *) 0 ;
4822 int result;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 PyObject *swig_obj[1] ;
4826
4827 if (!args) SWIG_fail;
4828 swig_obj[0] = args;
4829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4830 if (!SWIG_IsOK(res1)) {
4831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4832 }
4833 arg1 = reinterpret_cast< wxPen * >(argp1);
4834 {
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 result = (int)(arg1)->GetWidth();
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) SWIG_fail;
4839 }
4840 resultobj = SWIG_From_int(static_cast< int >(result));
4841 return resultobj;
4842fail:
4843 return NULL;
d55e5bfc
RD
4844}
4845
4846
1bd55598
RD
4847SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4848 PyObject *resultobj = 0;
4849 wxPen *arg1 = (wxPen *) 0 ;
4850 bool result;
4851 void *argp1 = 0 ;
4852 int res1 = 0 ;
4853 PyObject *swig_obj[1] ;
4854
4855 if (!args) SWIG_fail;
4856 swig_obj[0] = args;
4857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4858 if (!SWIG_IsOK(res1)) {
4859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4860 }
4861 arg1 = reinterpret_cast< wxPen * >(argp1);
4862 {
4863 PyThreadState* __tstate = wxPyBeginAllowThreads();
4864 result = (bool)(arg1)->Ok();
4865 wxPyEndAllowThreads(__tstate);
4866 if (PyErr_Occurred()) SWIG_fail;
4867 }
4868 {
4869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4870 }
4871 return resultobj;
4872fail:
4873 return NULL;
4874}
4875
4876
4877SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj = 0;
4879 wxPen *arg1 = (wxPen *) 0 ;
4880 int arg2 ;
4881 void *argp1 = 0 ;
4882 int res1 = 0 ;
4883 int val2 ;
4884 int ecode2 = 0 ;
4885 PyObject * obj0 = 0 ;
4886 PyObject * obj1 = 0 ;
4887 char * kwnames[] = {
4888 (char *) "self",(char *) "cap_style", NULL
4889 };
4890
4891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4893 if (!SWIG_IsOK(res1)) {
4894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4895 }
4896 arg1 = reinterpret_cast< wxPen * >(argp1);
4897 ecode2 = SWIG_AsVal_int(obj1, &val2);
4898 if (!SWIG_IsOK(ecode2)) {
4899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4900 }
4901 arg2 = static_cast< int >(val2);
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 (arg1)->SetCap(arg2);
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_Py_Void();
4909 return resultobj;
4910fail:
4911 return NULL;
4912}
4913
4914
4915SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj = 0;
4917 wxPen *arg1 = (wxPen *) 0 ;
4918 wxColour *arg2 = 0 ;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 wxColour temp2 ;
4922 PyObject * obj0 = 0 ;
4923 PyObject * obj1 = 0 ;
4924 char * kwnames[] = {
4925 (char *) "self",(char *) "colour", NULL
4926 };
4927
4928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4930 if (!SWIG_IsOK(res1)) {
4931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4932 }
4933 arg1 = reinterpret_cast< wxPen * >(argp1);
4934 {
4935 arg2 = &temp2;
4936 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4937 }
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 (arg1)->SetColour(*arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_Py_Void();
4945 return resultobj;
4946fail:
4947 return NULL;
4948}
4949
4950
4951SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj = 0;
4953 wxPen *arg1 = (wxPen *) 0 ;
4954 int arg2 ;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 int val2 ;
4958 int ecode2 = 0 ;
4959 PyObject * obj0 = 0 ;
4960 PyObject * obj1 = 0 ;
4961 char * kwnames[] = {
4962 (char *) "self",(char *) "join_style", NULL
4963 };
4964
4965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4967 if (!SWIG_IsOK(res1)) {
4968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4969 }
4970 arg1 = reinterpret_cast< wxPen * >(argp1);
4971 ecode2 = SWIG_AsVal_int(obj1, &val2);
4972 if (!SWIG_IsOK(ecode2)) {
4973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4974 }
4975 arg2 = static_cast< int >(val2);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 (arg1)->SetJoin(arg2);
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_Py_Void();
4983 return resultobj;
4984fail:
4985 return NULL;
4986}
4987
4988
4989SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj = 0;
4991 wxPen *arg1 = (wxPen *) 0 ;
4992 int arg2 ;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 int val2 ;
4996 int ecode2 = 0 ;
4997 PyObject * obj0 = 0 ;
4998 PyObject * obj1 = 0 ;
4999 char * kwnames[] = {
5000 (char *) "self",(char *) "style", NULL
5001 };
5002
5003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5005 if (!SWIG_IsOK(res1)) {
5006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5007 }
5008 arg1 = reinterpret_cast< wxPen * >(argp1);
5009 ecode2 = SWIG_AsVal_int(obj1, &val2);
5010 if (!SWIG_IsOK(ecode2)) {
5011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5012 }
5013 arg2 = static_cast< int >(val2);
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 (arg1)->SetStyle(arg2);
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_Py_Void();
5021 return resultobj;
5022fail:
5023 return NULL;
5024}
5025
5026
5027SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj = 0;
5029 wxPen *arg1 = (wxPen *) 0 ;
5030 int arg2 ;
5031 void *argp1 = 0 ;
5032 int res1 = 0 ;
5033 int val2 ;
5034 int ecode2 = 0 ;
5035 PyObject * obj0 = 0 ;
5036 PyObject * obj1 = 0 ;
5037 char * kwnames[] = {
5038 (char *) "self",(char *) "width", NULL
5039 };
5040
5041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5043 if (!SWIG_IsOK(res1)) {
5044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5045 }
5046 arg1 = reinterpret_cast< wxPen * >(argp1);
5047 ecode2 = SWIG_AsVal_int(obj1, &val2);
5048 if (!SWIG_IsOK(ecode2)) {
5049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5050 }
5051 arg2 = static_cast< int >(val2);
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 (arg1)->SetWidth(arg2);
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 resultobj = SWIG_Py_Void();
5059 return resultobj;
5060fail:
5061 return NULL;
5062}
5063
5064
5065SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj = 0;
5067 wxPen *arg1 = (wxPen *) 0 ;
5068 int arg2 ;
5069 wxDash *arg3 = (wxDash *) 0 ;
5070 void *argp1 = 0 ;
5071 int res1 = 0 ;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 char * kwnames[] = {
5075 (char *) "self",(char *) "dashes", NULL
5076 };
5077
5078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5080 if (!SWIG_IsOK(res1)) {
5081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5082 }
5083 arg1 = reinterpret_cast< wxPen * >(argp1);
5084 {
5085 arg2 = PyList_Size(obj1);
5086 arg3 = (wxDash*)byte_LIST_helper(obj1);
5087 if (arg3 == NULL) SWIG_fail;
5088 }
5089 {
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 (arg1)->SetDashes(arg2,arg3);
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_Py_Void();
5096 {
5097 if (arg3) delete [] arg3;
5098 }
5099 return resultobj;
5100fail:
5101 {
5102 if (arg3) delete [] arg3;
5103 }
5104 return NULL;
d6c14a4c
RD
5105}
5106
5107
1bd55598
RD
5108SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5109 PyObject *resultobj = 0;
5110 wxPen *arg1 = (wxPen *) 0 ;
5111 PyObject *result = 0 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 PyObject *swig_obj[1] ;
5115
5116 if (!args) SWIG_fail;
5117 swig_obj[0] = args;
5118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5119 if (!SWIG_IsOK(res1)) {
5120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5121 }
5122 arg1 = reinterpret_cast< wxPen * >(argp1);
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 result = (PyObject *)wxPen_GetDashes(arg1);
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 }
5129 resultobj = result;
5130 return resultobj;
5131fail:
5132 return NULL;
5133}
5134
5135
5136SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5137 PyObject *resultobj = 0;
5138 wxPen *arg1 = (wxPen *) 0 ;
5139 PyObject *arg2 = (PyObject *) 0 ;
5140 PyObject *arg3 = (PyObject *) 0 ;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject * obj0 = 0 ;
5144 PyObject * obj1 = 0 ;
5145 PyObject * obj2 = 0 ;
5146 char * kwnames[] = {
5147 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5148 };
5149
5150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5154 }
5155 arg1 = reinterpret_cast< wxPen * >(argp1);
5156 arg2 = obj1;
5157 arg3 = obj2;
5158 {
5159 PyThreadState* __tstate = wxPyBeginAllowThreads();
5160 wxPen__SetDashes(arg1,arg2,arg3);
5161 wxPyEndAllowThreads(__tstate);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 resultobj = SWIG_Py_Void();
5165 return resultobj;
5166fail:
5167 return NULL;
5168}
5169
5170
5171SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5172 PyObject *resultobj = 0;
5173 wxPen *arg1 = (wxPen *) 0 ;
5174 wxPen *arg2 = (wxPen *) 0 ;
5175 bool result;
5176 void *argp1 = 0 ;
5177 int res1 = 0 ;
5178 void *argp2 = 0 ;
5179 int res2 = 0 ;
5180 PyObject * obj0 = 0 ;
5181 PyObject * obj1 = 0 ;
5182 char * kwnames[] = {
5183 (char *) "self",(char *) "other", NULL
5184 };
5185
5186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5188 if (!SWIG_IsOK(res1)) {
5189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5190 }
5191 arg1 = reinterpret_cast< wxPen * >(argp1);
5192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5193 if (!SWIG_IsOK(res2)) {
5194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5195 }
5196 arg2 = reinterpret_cast< wxPen * >(argp2);
5197 {
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 {
5204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5205 }
5206 return resultobj;
5207fail:
5208 return NULL;
5209}
5210
5211
5212SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj = 0;
5214 wxPen *arg1 = (wxPen *) 0 ;
5215 wxPen *arg2 = (wxPen *) 0 ;
5216 bool result;
5217 void *argp1 = 0 ;
5218 int res1 = 0 ;
5219 void *argp2 = 0 ;
5220 int res2 = 0 ;
5221 PyObject * obj0 = 0 ;
5222 PyObject * obj1 = 0 ;
5223 char * kwnames[] = {
5224 (char *) "self",(char *) "other", NULL
5225 };
5226
5227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5229 if (!SWIG_IsOK(res1)) {
5230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5231 }
5232 arg1 = reinterpret_cast< wxPen * >(argp1);
5233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5234 if (!SWIG_IsOK(res2)) {
5235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5236 }
5237 arg2 = reinterpret_cast< wxPen * >(argp2);
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5241 wxPyEndAllowThreads(__tstate);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 {
5245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5246 }
5247 return resultobj;
5248fail:
5249 return NULL;
5250}
d55e5bfc
RD
5251
5252
1bd55598
RD
5253SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5254 PyObject *obj;
5255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5256 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5257 return SWIG_Py_Void();
d55e5bfc
RD
5258}
5259
1bd55598
RD
5260SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5261 return SWIG_Python_InitShadowInstance(args);
5262}
d55e5bfc 5263
1bd55598
RD
5264SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5265 PyObject *resultobj = 0;
5266 wxColour *arg1 = 0 ;
5267 int arg2 = (int) wxSOLID ;
5268 wxBrush *result = 0 ;
5269 wxColour temp1 ;
5270 int val2 ;
5271 int ecode2 = 0 ;
5272 PyObject * obj0 = 0 ;
5273 PyObject * obj1 = 0 ;
5274 char * kwnames[] = {
5275 (char *) "colour",(char *) "style", NULL
5276 };
5277
5278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5279 {
5280 arg1 = &temp1;
5281 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5282 }
5283 if (obj1) {
5284 ecode2 = SWIG_AsVal_int(obj1, &val2);
5285 if (!SWIG_IsOK(ecode2)) {
5286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5287 }
5288 arg2 = static_cast< int >(val2);
5289 }
5290 {
5291 if (!wxPyCheckForApp()) SWIG_fail;
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5298 return resultobj;
5299fail:
5300 return NULL;
5301}
5302
5303
5304SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj = 0;
5306 wxBitmap *arg1 = 0 ;
5307 wxBrush *result = 0 ;
5308 void *argp1 = 0 ;
5309 int res1 = 0 ;
5310 PyObject * obj0 = 0 ;
5311 char * kwnames[] = {
5312 (char *) "stippleBitmap", NULL
5313 };
5314
5315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5316 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5317 if (!SWIG_IsOK(res1)) {
5318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5319 }
5320 if (!argp1) {
5321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5322 }
5323 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5324 {
5325 if (!wxPyCheckForApp()) SWIG_fail;
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5332 return resultobj;
5333fail:
5334 return NULL;
d55e5bfc
RD
5335}
5336
5337
1bd55598
RD
5338SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5339 PyObject *resultobj = 0;
5340 wxBrush *arg1 = (wxBrush *) 0 ;
5341 void *argp1 = 0 ;
5342 int res1 = 0 ;
5343 PyObject *swig_obj[1] ;
5344
5345 if (!args) SWIG_fail;
5346 swig_obj[0] = args;
5347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5348 if (!SWIG_IsOK(res1)) {
5349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5350 }
5351 arg1 = reinterpret_cast< wxBrush * >(argp1);
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 delete arg1;
d55e5bfc 5355
1bd55598
RD
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 resultobj = SWIG_Py_Void();
5360 return resultobj;
5361fail:
5362 return NULL;
5363}
5364
5365
5366SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj = 0;
5368 wxBrush *arg1 = (wxBrush *) 0 ;
5369 wxColour *arg2 = 0 ;
5370 void *argp1 = 0 ;
5371 int res1 = 0 ;
5372 wxColour temp2 ;
5373 PyObject * obj0 = 0 ;
5374 PyObject * obj1 = 0 ;
5375 char * kwnames[] = {
5376 (char *) "self",(char *) "col", NULL
5377 };
5378
5379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5381 if (!SWIG_IsOK(res1)) {
5382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5383 }
5384 arg1 = reinterpret_cast< wxBrush * >(argp1);
5385 {
5386 arg2 = &temp2;
5387 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5388 }
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 (arg1)->SetColour((wxColour const &)*arg2);
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_Py_Void();
5396 return resultobj;
5397fail:
5398 return NULL;
5399}
5400
5401
5402SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj = 0;
5404 wxBrush *arg1 = (wxBrush *) 0 ;
5405 int arg2 ;
5406 void *argp1 = 0 ;
5407 int res1 = 0 ;
5408 int val2 ;
5409 int ecode2 = 0 ;
5410 PyObject * obj0 = 0 ;
5411 PyObject * obj1 = 0 ;
5412 char * kwnames[] = {
5413 (char *) "self",(char *) "style", NULL
5414 };
5415
5416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5418 if (!SWIG_IsOK(res1)) {
5419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5420 }
5421 arg1 = reinterpret_cast< wxBrush * >(argp1);
5422 ecode2 = SWIG_AsVal_int(obj1, &val2);
5423 if (!SWIG_IsOK(ecode2)) {
5424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5425 }
5426 arg2 = static_cast< int >(val2);
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 (arg1)->SetStyle(arg2);
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) SWIG_fail;
5432 }
5433 resultobj = SWIG_Py_Void();
5434 return resultobj;
5435fail:
5436 return NULL;
5437}
5438
5439
5440SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj = 0;
5442 wxBrush *arg1 = (wxBrush *) 0 ;
5443 wxBitmap *arg2 = 0 ;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 void *argp2 = 0 ;
5447 int res2 = 0 ;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char * kwnames[] = {
5451 (char *) "self",(char *) "stipple", NULL
5452 };
5453
5454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5456 if (!SWIG_IsOK(res1)) {
5457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5458 }
5459 arg1 = reinterpret_cast< wxBrush * >(argp1);
5460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5461 if (!SWIG_IsOK(res2)) {
5462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5463 }
5464 if (!argp2) {
5465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5466 }
5467 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5468 {
5469 PyThreadState* __tstate = wxPyBeginAllowThreads();
5470 (arg1)->SetStipple((wxBitmap const &)*arg2);
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 resultobj = SWIG_Py_Void();
5475 return resultobj;
5476fail:
5477 return NULL;
d55e5bfc
RD
5478}
5479
5480
1bd55598
RD
5481SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5482 PyObject *resultobj = 0;
5483 wxBrush *arg1 = (wxBrush *) 0 ;
5484 wxColour result;
5485 void *argp1 = 0 ;
5486 int res1 = 0 ;
5487 PyObject *swig_obj[1] ;
5488
5489 if (!args) SWIG_fail;
5490 swig_obj[0] = args;
5491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5494 }
5495 arg1 = reinterpret_cast< wxBrush * >(argp1);
5496 {
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 result = ((wxBrush const *)arg1)->GetColour();
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5503 return resultobj;
5504fail:
5505 return NULL;
d55e5bfc
RD
5506}
5507
5508
1bd55598
RD
5509SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5510 PyObject *resultobj = 0;
5511 wxBrush *arg1 = (wxBrush *) 0 ;
5512 int result;
5513 void *argp1 = 0 ;
5514 int res1 = 0 ;
5515 PyObject *swig_obj[1] ;
5516
5517 if (!args) SWIG_fail;
5518 swig_obj[0] = args;
5519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5520 if (!SWIG_IsOK(res1)) {
5521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5522 }
5523 arg1 = reinterpret_cast< wxBrush * >(argp1);
5524 {
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (int)((wxBrush const *)arg1)->GetStyle();
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = SWIG_From_int(static_cast< int >(result));
5531 return resultobj;
5532fail:
5533 return NULL;
d55e5bfc
RD
5534}
5535
5536
1bd55598
RD
5537SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5538 PyObject *resultobj = 0;
5539 wxBrush *arg1 = (wxBrush *) 0 ;
5540 wxBitmap *result = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 PyObject *swig_obj[1] ;
5544
5545 if (!args) SWIG_fail;
5546 swig_obj[0] = args;
5547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5548 if (!SWIG_IsOK(res1)) {
5549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5550 }
5551 arg1 = reinterpret_cast< wxBrush * >(argp1);
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5559 return resultobj;
5560fail:
5561 return NULL;
d55e5bfc
RD
5562}
5563
5564
1bd55598
RD
5565SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5566 PyObject *resultobj = 0;
5567 wxBrush *arg1 = (wxBrush *) 0 ;
5568 bool result;
5569 void *argp1 = 0 ;
5570 int res1 = 0 ;
5571 PyObject *swig_obj[1] ;
5572
5573 if (!args) SWIG_fail;
5574 swig_obj[0] = args;
5575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5576 if (!SWIG_IsOK(res1)) {
5577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5578 }
5579 arg1 = reinterpret_cast< wxBrush * >(argp1);
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 result = (bool)((wxBrush const *)arg1)->IsHatch();
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 {
5587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5588 }
5589 return resultobj;
5590fail:
5591 return NULL;
d55e5bfc
RD
5592}
5593
5594
1bd55598
RD
5595SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5596 PyObject *resultobj = 0;
5597 wxBrush *arg1 = (wxBrush *) 0 ;
5598 bool result;
5599 void *argp1 = 0 ;
5600 int res1 = 0 ;
5601 PyObject *swig_obj[1] ;
5602
5603 if (!args) SWIG_fail;
5604 swig_obj[0] = args;
5605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5606 if (!SWIG_IsOK(res1)) {
5607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5608 }
5609 arg1 = reinterpret_cast< wxBrush * >(argp1);
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 result = (bool)(arg1)->Ok();
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 {
5617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5618 }
5619 return resultobj;
5620fail:
5621 return NULL;
d55e5bfc
RD
5622}
5623
5624
1bd55598
RD
5625SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5626 PyObject *resultobj = 0;
5627 wxBrush *arg1 = (wxBrush *) 0 ;
5628 short result;
5629 void *argp1 = 0 ;
5630 int res1 = 0 ;
5631 PyObject *swig_obj[1] ;
5632
5633 if (!args) SWIG_fail;
5634 swig_obj[0] = args;
5635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5636 if (!SWIG_IsOK(res1)) {
5637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5638 }
5639 arg1 = reinterpret_cast< wxBrush * >(argp1);
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 result = (short)(arg1)->MacGetTheme();
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 resultobj = SWIG_From_short(static_cast< short >(result));
5647 return resultobj;
5648fail:
5649 return NULL;
5650}
5651
5652
5653SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5654 PyObject *resultobj = 0;
5655 wxBrush *arg1 = (wxBrush *) 0 ;
5656 short arg2 ;
5657 void *argp1 = 0 ;
5658 int res1 = 0 ;
5659 short val2 ;
5660 int ecode2 = 0 ;
5661 PyObject * obj0 = 0 ;
5662 PyObject * obj1 = 0 ;
5663 char * kwnames[] = {
5664 (char *) "self",(char *) "macThemeBrush", NULL
5665 };
5666
5667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5669 if (!SWIG_IsOK(res1)) {
5670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5671 }
5672 arg1 = reinterpret_cast< wxBrush * >(argp1);
5673 ecode2 = SWIG_AsVal_short(obj1, &val2);
5674 if (!SWIG_IsOK(ecode2)) {
5675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5676 }
5677 arg2 = static_cast< short >(val2);
5678 {
5679 PyThreadState* __tstate = wxPyBeginAllowThreads();
5680 (arg1)->MacSetTheme(arg2);
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 resultobj = SWIG_Py_Void();
5685 return resultobj;
5686fail:
5687 return NULL;
d55e5bfc
RD
5688}
5689
5690
1bd55598
RD
5691SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *obj;
5693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5694 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5695 return SWIG_Py_Void();
d55e5bfc
RD
5696}
5697
1bd55598
RD
5698SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5699 return SWIG_Python_InitShadowInstance(args);
5700}
d55e5bfc 5701
1bd55598
RD
5702SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj = 0;
5704 wxString *arg1 = 0 ;
5705 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5706 wxBitmap *result = 0 ;
5707 bool temp1 = false ;
5708 int val2 ;
5709 int ecode2 = 0 ;
5710 PyObject * obj0 = 0 ;
5711 PyObject * obj1 = 0 ;
5712 char * kwnames[] = {
5713 (char *) "name",(char *) "type", NULL
5714 };
5715
5716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5717 {
5718 arg1 = wxString_in_helper(obj0);
5719 if (arg1 == NULL) SWIG_fail;
5720 temp1 = true;
5721 }
5722 if (obj1) {
5723 ecode2 = SWIG_AsVal_int(obj1, &val2);
5724 if (!SWIG_IsOK(ecode2)) {
5725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5726 }
5727 arg2 = static_cast< wxBitmapType >(val2);
5728 }
5729 {
5730 if (!wxPyCheckForApp()) SWIG_fail;
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5733 wxPyEndAllowThreads(__tstate);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5737 {
5738 if (temp1)
5739 delete arg1;
5740 }
5741 return resultobj;
5742fail:
5743 {
5744 if (temp1)
5745 delete arg1;
5746 }
5747 return NULL;
d55e5bfc
RD
5748}
5749
5750
1bd55598
RD
5751SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5752 PyObject *resultobj = 0;
5753 wxBitmap *arg1 = (wxBitmap *) 0 ;
5754 void *argp1 = 0 ;
5755 int res1 = 0 ;
5756 PyObject *swig_obj[1] ;
5757
5758 if (!args) SWIG_fail;
5759 swig_obj[0] = args;
5760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5761 if (!SWIG_IsOK(res1)) {
5762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5763 }
5764 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5765 {
1bd55598 5766 delete arg1;
d55e5bfc 5767
1bd55598
RD
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 resultobj = SWIG_Py_Void();
5771 return resultobj;
5772fail:
5773 return NULL;
5774}
5775
5776
5777SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj = 0;
5779 int arg1 ;
5780 int arg2 ;
5781 int arg3 = (int) -1 ;
5782 wxBitmap *result = 0 ;
5783 int val1 ;
5784 int ecode1 = 0 ;
5785 int val2 ;
5786 int ecode2 = 0 ;
5787 int val3 ;
5788 int ecode3 = 0 ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 PyObject * obj2 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "width",(char *) "height",(char *) "depth", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5797 ecode1 = SWIG_AsVal_int(obj0, &val1);
5798 if (!SWIG_IsOK(ecode1)) {
5799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5800 }
5801 arg1 = static_cast< int >(val1);
5802 ecode2 = SWIG_AsVal_int(obj1, &val2);
5803 if (!SWIG_IsOK(ecode2)) {
5804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5805 }
5806 arg2 = static_cast< int >(val2);
5807 if (obj2) {
5808 ecode3 = SWIG_AsVal_int(obj2, &val3);
5809 if (!SWIG_IsOK(ecode3)) {
5810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5811 }
5812 arg3 = static_cast< int >(val3);
5813 }
5814 {
5815 if (!wxPyCheckForApp()) SWIG_fail;
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5818 wxPyEndAllowThreads(__tstate);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5822 return resultobj;
5823fail:
5824 return NULL;
5825}
5826
5827
5828SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj = 0;
5830 wxIcon *arg1 = 0 ;
5831 wxBitmap *result = 0 ;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 PyObject * obj0 = 0 ;
5835 char * kwnames[] = {
5836 (char *) "icon", NULL
5837 };
5838
5839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5840 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5841 if (!SWIG_IsOK(res1)) {
5842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5843 }
5844 if (!argp1) {
5845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5846 }
5847 arg1 = reinterpret_cast< wxIcon * >(argp1);
5848 {
5849 if (!wxPyCheckForApp()) SWIG_fail;
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5856 return resultobj;
5857fail:
5858 return NULL;
5859}
5860
5861
5862SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj = 0;
5864 wxImage *arg1 = 0 ;
5865 int arg2 = (int) -1 ;
5866 wxBitmap *result = 0 ;
5867 void *argp1 = 0 ;
5868 int res1 = 0 ;
5869 int val2 ;
5870 int ecode2 = 0 ;
5871 PyObject * obj0 = 0 ;
5872 PyObject * obj1 = 0 ;
5873 char * kwnames[] = {
5874 (char *) "image",(char *) "depth", NULL
5875 };
5876
5877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5881 }
5882 if (!argp1) {
5883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5884 }
5885 arg1 = reinterpret_cast< wxImage * >(argp1);
5886 if (obj1) {
5887 ecode2 = SWIG_AsVal_int(obj1, &val2);
5888 if (!SWIG_IsOK(ecode2)) {
5889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5890 }
5891 arg2 = static_cast< int >(val2);
5892 }
5893 {
5894 if (!wxPyCheckForApp()) SWIG_fail;
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5901 return resultobj;
5902fail:
5903 return NULL;
d55e5bfc
RD
5904}
5905
5906
1bd55598
RD
5907SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj = 0;
5909 PyObject *arg1 = (PyObject *) 0 ;
5910 wxBitmap *result = 0 ;
5911 PyObject * obj0 = 0 ;
5912 char * kwnames[] = {
5913 (char *) "listOfStrings", NULL
5914 };
5915
5916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5917 arg1 = obj0;
5918 {
5919 if (!wxPyCheckForApp()) SWIG_fail;
5920 PyThreadState* __tstate = wxPyBeginAllowThreads();
5921 result = (wxBitmap *)new_wxBitmap(arg1);
5922 wxPyEndAllowThreads(__tstate);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5926 return resultobj;
5927fail:
5928 return NULL;
5929}
5930
5931
5932SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5933 PyObject *resultobj = 0;
5934 PyObject *arg1 = (PyObject *) 0 ;
5935 int arg2 ;
5936 int arg3 ;
5937 int arg4 = (int) 1 ;
5938 wxBitmap *result = 0 ;
5939 int val2 ;
5940 int ecode2 = 0 ;
5941 int val3 ;
5942 int ecode3 = 0 ;
5943 int val4 ;
5944 int ecode4 = 0 ;
5945 PyObject * obj0 = 0 ;
5946 PyObject * obj1 = 0 ;
5947 PyObject * obj2 = 0 ;
5948 PyObject * obj3 = 0 ;
5949 char * kwnames[] = {
5950 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5951 };
5952
5953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5954 arg1 = obj0;
5955 ecode2 = SWIG_AsVal_int(obj1, &val2);
5956 if (!SWIG_IsOK(ecode2)) {
5957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5958 }
5959 arg2 = static_cast< int >(val2);
5960 ecode3 = SWIG_AsVal_int(obj2, &val3);
5961 if (!SWIG_IsOK(ecode3)) {
5962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5963 }
5964 arg3 = static_cast< int >(val3);
5965 if (obj3) {
5966 ecode4 = SWIG_AsVal_int(obj3, &val4);
5967 if (!SWIG_IsOK(ecode4)) {
5968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5969 }
5970 arg4 = static_cast< int >(val4);
5971 }
5972 {
5973 if (!wxPyCheckForApp()) SWIG_fail;
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5980 return resultobj;
5981fail:
5982 return NULL;
d55e5bfc
RD
5983}
5984
5985
1bd55598
RD
5986SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5987 PyObject *resultobj = 0;
5988 wxBitmap *arg1 = (wxBitmap *) 0 ;
5989 bool result;
5990 void *argp1 = 0 ;
5991 int res1 = 0 ;
5992 PyObject *swig_obj[1] ;
5993
5994 if (!args) SWIG_fail;
5995 swig_obj[0] = args;
5996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5999 }
6000 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6001 {
1bd55598 6002 result = (bool)(arg1)->Ok();
1bd55598
RD
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 {
6006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6007 }
6008 return resultobj;
6009fail:
6010 return NULL;
d55e5bfc
RD
6011}
6012
6013
1bd55598
RD
6014SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6015 PyObject *resultobj = 0;
6016 wxBitmap *arg1 = (wxBitmap *) 0 ;
6017 int result;
6018 void *argp1 = 0 ;
6019 int res1 = 0 ;
6020 PyObject *swig_obj[1] ;
6021
6022 if (!args) SWIG_fail;
6023 swig_obj[0] = args;
6024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6025 if (!SWIG_IsOK(res1)) {
6026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6027 }
6028 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6029 {
1bd55598 6030 result = (int)(arg1)->GetWidth();
1bd55598
RD
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 resultobj = SWIG_From_int(static_cast< int >(result));
6034 return resultobj;
6035fail:
6036 return NULL;
070c48b4
RD
6037}
6038
6039
1bd55598
RD
6040SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6041 PyObject *resultobj = 0;
6042 wxBitmap *arg1 = (wxBitmap *) 0 ;
6043 int result;
6044 void *argp1 = 0 ;
6045 int res1 = 0 ;
6046 PyObject *swig_obj[1] ;
6047
6048 if (!args) SWIG_fail;
6049 swig_obj[0] = args;
6050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6051 if (!SWIG_IsOK(res1)) {
6052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6053 }
6054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6055 {
1bd55598 6056 result = (int)(arg1)->GetHeight();
1bd55598
RD
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 resultobj = SWIG_From_int(static_cast< int >(result));
6060 return resultobj;
6061fail:
6062 return NULL;
d55e5bfc
RD
6063}
6064
6065
1bd55598
RD
6066SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6067 PyObject *resultobj = 0;
6068 wxBitmap *arg1 = (wxBitmap *) 0 ;
6069 int result;
6070 void *argp1 = 0 ;
6071 int res1 = 0 ;
6072 PyObject *swig_obj[1] ;
6073
6074 if (!args) SWIG_fail;
6075 swig_obj[0] = args;
6076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6077 if (!SWIG_IsOK(res1)) {
6078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6079 }
6080 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6081 {
1bd55598 6082 result = (int)(arg1)->GetDepth();
1bd55598
RD
6083 if (PyErr_Occurred()) SWIG_fail;
6084 }
6085 resultobj = SWIG_From_int(static_cast< int >(result));
6086 return resultobj;
6087fail:
6088 return NULL;
d55e5bfc
RD
6089}
6090
6091
1bd55598
RD
6092SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6093 PyObject *resultobj = 0;
6094 wxBitmap *arg1 = (wxBitmap *) 0 ;
6095 wxSize result;
6096 void *argp1 = 0 ;
6097 int res1 = 0 ;
6098 PyObject *swig_obj[1] ;
6099
6100 if (!args) SWIG_fail;
6101 swig_obj[0] = args;
6102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6103 if (!SWIG_IsOK(res1)) {
6104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6105 }
6106 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6107 {
1bd55598 6108 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6112 return resultobj;
6113fail:
6114 return NULL;
d55e5bfc
RD
6115}
6116
6117
1bd55598
RD
6118SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6119 PyObject *resultobj = 0;
6120 wxBitmap *arg1 = (wxBitmap *) 0 ;
6121 SwigValueWrapper<wxImage > result;
6122 void *argp1 = 0 ;
6123 int res1 = 0 ;
6124 PyObject *swig_obj[1] ;
6125
6126 if (!args) SWIG_fail;
6127 swig_obj[0] = args;
6128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6129 if (!SWIG_IsOK(res1)) {
6130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6131 }
6132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6133 {
1bd55598 6134 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6138 return resultobj;
6139fail:
6140 return NULL;
d55e5bfc
RD
6141}
6142
6143
1bd55598
RD
6144SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6145 PyObject *resultobj = 0;
6146 wxBitmap *arg1 = (wxBitmap *) 0 ;
6147 wxMask *result = 0 ;
6148 void *argp1 = 0 ;
6149 int res1 = 0 ;
6150 PyObject *swig_obj[1] ;
6151
6152 if (!args) SWIG_fail;
6153 swig_obj[0] = args;
6154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6155 if (!SWIG_IsOK(res1)) {
6156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6157 }
6158 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6159 {
1bd55598 6160 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6164 return resultobj;
6165fail:
6166 return NULL;
6167}
6168
6169
6170SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = 0;
6172 wxBitmap *arg1 = (wxBitmap *) 0 ;
6173 wxMask *arg2 = (wxMask *) 0 ;
6174 void *argp1 = 0 ;
6175 int res1 = 0 ;
6176 int res2 = 0 ;
6177 PyObject * obj0 = 0 ;
6178 PyObject * obj1 = 0 ;
6179 char * kwnames[] = {
6180 (char *) "self",(char *) "mask", NULL
6181 };
6182
6183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6185 if (!SWIG_IsOK(res1)) {
6186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6187 }
6188 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6189 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6190 if (!SWIG_IsOK(res2)) {
6191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6192 }
6193 {
1bd55598 6194 (arg1)->SetMask(arg2);
1bd55598
RD
6195 if (PyErr_Occurred()) SWIG_fail;
6196 }
6197 resultobj = SWIG_Py_Void();
6198 return resultobj;
6199fail:
6200 return NULL;
6201}
6202
6203
6204SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj = 0;
6206 wxBitmap *arg1 = (wxBitmap *) 0 ;
6207 wxColour *arg2 = 0 ;
6208 void *argp1 = 0 ;
6209 int res1 = 0 ;
6210 wxColour temp2 ;
6211 PyObject * obj0 = 0 ;
6212 PyObject * obj1 = 0 ;
6213 char * kwnames[] = {
6214 (char *) "self",(char *) "colour", NULL
6215 };
6216
6217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6219 if (!SWIG_IsOK(res1)) {
6220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6221 }
6222 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6223 {
6224 arg2 = &temp2;
6225 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6226 }
6227 {
1bd55598 6228 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 resultobj = SWIG_Py_Void();
6232 return resultobj;
6233fail:
6234 return NULL;
6235}
6236
6237
6238SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj = 0;
6240 wxBitmap *arg1 = (wxBitmap *) 0 ;
6241 wxRect *arg2 = 0 ;
6242 SwigValueWrapper<wxBitmap > result;
6243 void *argp1 = 0 ;
6244 int res1 = 0 ;
6245 wxRect temp2 ;
6246 PyObject * obj0 = 0 ;
6247 PyObject * obj1 = 0 ;
6248 char * kwnames[] = {
6249 (char *) "self",(char *) "rect", NULL
6250 };
6251
6252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) 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_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 arg2 = &temp2;
6260 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6261 }
6262 {
1bd55598 6263 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6267 return resultobj;
6268fail:
6269 return NULL;
6270}
6271
6272
6273SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj = 0;
6275 wxBitmap *arg1 = (wxBitmap *) 0 ;
6276 wxString *arg2 = 0 ;
6277 wxBitmapType arg3 ;
6278 wxPalette *arg4 = (wxPalette *) NULL ;
6279 bool result;
6280 void *argp1 = 0 ;
6281 int res1 = 0 ;
6282 bool temp2 = false ;
6283 int val3 ;
6284 int ecode3 = 0 ;
6285 void *argp4 = 0 ;
6286 int res4 = 0 ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 PyObject * obj3 = 0 ;
6291 char * kwnames[] = {
6292 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6293 };
6294
6295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6299 }
6300 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6301 {
6302 arg2 = wxString_in_helper(obj1);
6303 if (arg2 == NULL) SWIG_fail;
6304 temp2 = true;
6305 }
6306 ecode3 = SWIG_AsVal_int(obj2, &val3);
6307 if (!SWIG_IsOK(ecode3)) {
6308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6309 }
6310 arg3 = static_cast< wxBitmapType >(val3);
6311 if (obj3) {
6312 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6313 if (!SWIG_IsOK(res4)) {
6314 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6315 }
1bd55598
RD
6316 arg4 = reinterpret_cast< wxPalette * >(argp4);
6317 }
6318 {
1bd55598 6319 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 {
6323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6324 }
6325 {
6326 if (temp2)
6327 delete arg2;
6328 }
6329 return resultobj;
6330fail:
6331 {
6332 if (temp2)
6333 delete arg2;
6334 }
6335 return NULL;
6336}
6337
6338
6339SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj = 0;
6341 wxBitmap *arg1 = (wxBitmap *) 0 ;
6342 wxString *arg2 = 0 ;
6343 wxBitmapType arg3 ;
6344 bool result;
6345 void *argp1 = 0 ;
6346 int res1 = 0 ;
6347 bool temp2 = false ;
6348 int val3 ;
6349 int ecode3 = 0 ;
6350 PyObject * obj0 = 0 ;
6351 PyObject * obj1 = 0 ;
6352 PyObject * obj2 = 0 ;
6353 char * kwnames[] = {
6354 (char *) "self",(char *) "name",(char *) "type", NULL
6355 };
6356
6357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6359 if (!SWIG_IsOK(res1)) {
6360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6361 }
6362 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6363 {
6364 arg2 = wxString_in_helper(obj1);
6365 if (arg2 == NULL) SWIG_fail;
6366 temp2 = true;
6367 }
6368 ecode3 = SWIG_AsVal_int(obj2, &val3);
6369 if (!SWIG_IsOK(ecode3)) {
6370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6371 }
6372 arg3 = static_cast< wxBitmapType >(val3);
6373 {
1bd55598 6374 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 {
6378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6379 }
6380 {
6381 if (temp2)
6382 delete arg2;
6383 }
6384 return resultobj;
6385fail:
6386 {
6387 if (temp2)
6388 delete arg2;
6389 }
6390 return NULL;
d04418a7
RD
6391}
6392
6393
1bd55598
RD
6394SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6395 PyObject *resultobj = 0;
6396 wxBitmap *arg1 = (wxBitmap *) 0 ;
6397 wxPalette *result = 0 ;
6398 void *argp1 = 0 ;
6399 int res1 = 0 ;
6400 PyObject *swig_obj[1] ;
6401
6402 if (!args) SWIG_fail;
6403 swig_obj[0] = args;
6404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6405 if (!SWIG_IsOK(res1)) {
6406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6407 }
6408 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6409 {
1bd55598 6410 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6414 return resultobj;
6415fail:
6416 return NULL;
6417}
6418
6419
6420SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 wxIcon *arg2 = 0 ;
6424 bool result;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 void *argp2 = 0 ;
6428 int res2 = 0 ;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6431 char * kwnames[] = {
6432 (char *) "self",(char *) "icon", NULL
6433 };
6434
6435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6437 if (!SWIG_IsOK(res1)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6439 }
6440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6442 if (!SWIG_IsOK(res2)) {
6443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6444 }
6445 if (!argp2) {
6446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6447 }
6448 arg2 = reinterpret_cast< wxIcon * >(argp2);
6449 {
1bd55598 6450 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 {
6454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6455 }
6456 return resultobj;
6457fail:
6458 return NULL;
6459}
6460
6461
6462SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6463 PyObject *resultobj = 0;
6464 wxBitmap *arg1 = (wxBitmap *) 0 ;
6465 int arg2 ;
6466 void *argp1 = 0 ;
6467 int res1 = 0 ;
6468 int val2 ;
6469 int ecode2 = 0 ;
6470 PyObject * obj0 = 0 ;
6471 PyObject * obj1 = 0 ;
6472 char * kwnames[] = {
6473 (char *) "self",(char *) "height", NULL
6474 };
6475
6476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6478 if (!SWIG_IsOK(res1)) {
6479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6480 }
6481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6482 ecode2 = SWIG_AsVal_int(obj1, &val2);
6483 if (!SWIG_IsOK(ecode2)) {
6484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6485 }
6486 arg2 = static_cast< int >(val2);
6487 {
1bd55598 6488 (arg1)->SetHeight(arg2);
1bd55598
RD
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 resultobj = SWIG_Py_Void();
6492 return resultobj;
6493fail:
6494 return NULL;
6495}
6496
6497
6498SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj = 0;
6500 wxBitmap *arg1 = (wxBitmap *) 0 ;
6501 int arg2 ;
6502 void *argp1 = 0 ;
6503 int res1 = 0 ;
6504 int val2 ;
6505 int ecode2 = 0 ;
6506 PyObject * obj0 = 0 ;
6507 PyObject * obj1 = 0 ;
6508 char * kwnames[] = {
6509 (char *) "self",(char *) "width", NULL
6510 };
6511
6512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6516 }
6517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6518 ecode2 = SWIG_AsVal_int(obj1, &val2);
6519 if (!SWIG_IsOK(ecode2)) {
6520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6521 }
6522 arg2 = static_cast< int >(val2);
6523 {
1bd55598 6524 (arg1)->SetWidth(arg2);
1bd55598
RD
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529fail:
6530 return NULL;
6531}
6532
6533
6534SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6535 PyObject *resultobj = 0;
6536 wxBitmap *arg1 = (wxBitmap *) 0 ;
6537 int arg2 ;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 int val2 ;
6541 int ecode2 = 0 ;
6542 PyObject * obj0 = 0 ;
6543 PyObject * obj1 = 0 ;
6544 char * kwnames[] = {
6545 (char *) "self",(char *) "depth", NULL
6546 };
6547
6548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6550 if (!SWIG_IsOK(res1)) {
6551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6552 }
6553 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6554 ecode2 = SWIG_AsVal_int(obj1, &val2);
6555 if (!SWIG_IsOK(ecode2)) {
6556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6557 }
6558 arg2 = static_cast< int >(val2);
6559 {
1bd55598 6560 (arg1)->SetDepth(arg2);
1bd55598
RD
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 resultobj = SWIG_Py_Void();
6564 return resultobj;
6565fail:
6566 return NULL;
6567}
6568
6569
6570SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj = 0;
6572 wxBitmap *arg1 = (wxBitmap *) 0 ;
6573 wxSize *arg2 = 0 ;
6574 void *argp1 = 0 ;
6575 int res1 = 0 ;
6576 wxSize temp2 ;
6577 PyObject * obj0 = 0 ;
6578 PyObject * obj1 = 0 ;
6579 char * kwnames[] = {
6580 (char *) "self",(char *) "size", NULL
6581 };
6582
6583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6585 if (!SWIG_IsOK(res1)) {
6586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6587 }
6588 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6589 {
6590 arg2 = &temp2;
6591 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6592 }
6593 {
1bd55598 6594 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_Py_Void();
6598 return resultobj;
6599fail:
6600 return NULL;
6601}
6602
6603
6604SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxBitmap *arg1 = (wxBitmap *) 0 ;
6607 wxBitmap *arg2 = (wxBitmap *) 0 ;
6608 bool result;
6609 void *argp1 = 0 ;
6610 int res1 = 0 ;
6611 void *argp2 = 0 ;
6612 int res2 = 0 ;
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 char * kwnames[] = {
6616 (char *) "self",(char *) "other", NULL
6617 };
6618
6619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6621 if (!SWIG_IsOK(res1)) {
6622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6623 }
6624 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6626 if (!SWIG_IsOK(res2)) {
6627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6628 }
6629 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6630 {
1bd55598 6631 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 {
fc46b7f3
RD
6635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6636 }
6637 return resultobj;
6638fail:
6639 return NULL;
6640}
6641
6642
6643SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj = 0;
6645 wxBitmap *arg1 = (wxBitmap *) 0 ;
6646 wxBitmap *arg2 = (wxBitmap *) 0 ;
6647 bool result;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 void *argp2 = 0 ;
6651 int res2 = 0 ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char * kwnames[] = {
6655 (char *) "self",(char *) "other", NULL
6656 };
6657
6658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6665 if (!SWIG_IsOK(res2)) {
6666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6667 }
6668 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6669 {
6670 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 {
6674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6675 }
6676 return resultobj;
6677fail:
6678 return NULL;
6679}
6680
6681
6682SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6683 PyObject *obj;
6684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6685 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6686 return SWIG_Py_Void();
6687}
6688
6689SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6690 return SWIG_Python_InitShadowInstance(args);
6691}
6692
6693SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6694 PyObject *resultobj = 0;
6695 int arg1 ;
6696 int arg2 ;
6697 buffer arg3 ;
6698 int arg4 ;
6699 buffer arg5 ;
6700 int arg6 ;
6701 wxBitmap *result = 0 ;
6702 int val1 ;
6703 int ecode1 = 0 ;
6704 int val2 ;
6705 int ecode2 = 0 ;
8c9c423b
RD
6706 Py_ssize_t temp3 ;
6707 Py_ssize_t temp5 ;
fc46b7f3
RD
6708 PyObject * obj0 = 0 ;
6709 PyObject * obj1 = 0 ;
6710 PyObject * obj2 = 0 ;
6711 PyObject * obj3 = 0 ;
6712 char * kwnames[] = {
6713 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6714 };
6715
6716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6717 ecode1 = SWIG_AsVal_int(obj0, &val1);
6718 if (!SWIG_IsOK(ecode1)) {
6719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6720 }
6721 arg1 = static_cast< int >(val1);
6722 ecode2 = SWIG_AsVal_int(obj1, &val2);
6723 if (!SWIG_IsOK(ecode2)) {
6724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6725 }
6726 arg2 = static_cast< int >(val2);
6727 {
8c9c423b
RD
6728 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6729 arg4 = (int)temp3;
fc46b7f3
RD
6730 }
6731 {
6732 if (obj3 != Py_None) {
8c9c423b
RD
6733 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6734 arg6 = (int)temp5;
fc46b7f3
RD
6735 }
6736 }
6737 {
6738 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6742 return resultobj;
6743fail:
6744 return NULL;
6745}
6746
6747
6748SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj = 0;
6750 int arg1 ;
6751 int arg2 ;
6752 buffer arg3 ;
6753 int arg4 ;
6754 wxBitmap *result = 0 ;
6755 int val1 ;
6756 int ecode1 = 0 ;
6757 int val2 ;
6758 int ecode2 = 0 ;
8c9c423b 6759 Py_ssize_t temp3 ;
fc46b7f3
RD
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 PyObject * obj2 = 0 ;
6763 char * kwnames[] = {
6764 (char *) "width",(char *) "height",(char *) "data", NULL
6765 };
6766
6767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6768 ecode1 = SWIG_AsVal_int(obj0, &val1);
6769 if (!SWIG_IsOK(ecode1)) {
6770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6771 }
6772 arg1 = static_cast< int >(val1);
6773 ecode2 = SWIG_AsVal_int(obj1, &val2);
6774 if (!SWIG_IsOK(ecode2)) {
6775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6776 }
6777 arg2 = static_cast< int >(val2);
6778 {
8c9c423b
RD
6779 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6780 arg4 = (int)temp3;
fc46b7f3
RD
6781 }
6782 {
6783 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6787 return resultobj;
6788fail:
6789 return NULL;
6790}
6791
6792
6793SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6794 PyObject *resultobj = 0;
6795 int arg1 ;
6796 int arg2 ;
6797 buffer arg3 ;
6798 int arg4 ;
6799 wxBitmap *result = 0 ;
6800 int val1 ;
6801 int ecode1 = 0 ;
6802 int val2 ;
6803 int ecode2 = 0 ;
8c9c423b 6804 Py_ssize_t temp3 ;
fc46b7f3
RD
6805 PyObject * obj0 = 0 ;
6806 PyObject * obj1 = 0 ;
6807 PyObject * obj2 = 0 ;
6808 char * kwnames[] = {
6809 (char *) "width",(char *) "height",(char *) "data", NULL
6810 };
6811
6812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6813 ecode1 = SWIG_AsVal_int(obj0, &val1);
6814 if (!SWIG_IsOK(ecode1)) {
6815 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6816 }
6817 arg1 = static_cast< int >(val1);
6818 ecode2 = SWIG_AsVal_int(obj1, &val2);
6819 if (!SWIG_IsOK(ecode2)) {
6820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6821 }
6822 arg2 = static_cast< int >(val2);
6823 {
8c9c423b
RD
6824 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6825 arg4 = (int)temp3;
fc46b7f3
RD
6826 }
6827 {
6828 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6832 return resultobj;
6833fail:
6834 return NULL;
6835}
6836
6837
6838SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6839 PyObject *resultobj = 0;
6840 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6841 wxPoint result;
6842 void *argp1 = 0 ;
6843 int res1 = 0 ;
6844 PyObject *swig_obj[1] ;
6845
6846 if (!args) SWIG_fail;
6847 swig_obj[0] = args;
6848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6849 if (!SWIG_IsOK(res1)) {
6850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6851 }
6852 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6853 {
6854 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6858 return resultobj;
6859fail:
6860 return NULL;
6861}
6862
6863
6864SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6865 PyObject *resultobj = 0;
6866 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6867 int result;
6868 void *argp1 = 0 ;
6869 int res1 = 0 ;
6870 PyObject *swig_obj[1] ;
6871
6872 if (!args) SWIG_fail;
6873 swig_obj[0] = args;
6874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6875 if (!SWIG_IsOK(res1)) {
6876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6877 }
6878 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6879 {
6880 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 resultobj = SWIG_From_int(static_cast< int >(result));
6884 return resultobj;
6885fail:
6886 return NULL;
6887}
6888
6889
6890SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6891 PyObject *resultobj = 0;
6892 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6893 int result;
6894 void *argp1 = 0 ;
6895 int res1 = 0 ;
6896 PyObject *swig_obj[1] ;
6897
6898 if (!args) SWIG_fail;
6899 swig_obj[0] = args;
6900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6901 if (!SWIG_IsOK(res1)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6903 }
6904 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6905 {
6906 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 resultobj = SWIG_From_int(static_cast< int >(result));
6910 return resultobj;
6911fail:
6912 return NULL;
6913}
6914
6915
6916SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6917 PyObject *resultobj = 0;
6918 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6919 wxSize result;
6920 void *argp1 = 0 ;
6921 int res1 = 0 ;
6922 PyObject *swig_obj[1] ;
6923
6924 if (!args) SWIG_fail;
6925 swig_obj[0] = args;
6926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6927 if (!SWIG_IsOK(res1)) {
6928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6929 }
6930 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6931 {
6932 result = ((wxPixelDataBase const *)arg1)->GetSize();
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6936 return resultobj;
6937fail:
6938 return NULL;
6939}
6940
6941
6942SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6943 PyObject *resultobj = 0;
6944 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6945 int result;
6946 void *argp1 = 0 ;
6947 int res1 = 0 ;
6948 PyObject *swig_obj[1] ;
6949
6950 if (!args) SWIG_fail;
6951 swig_obj[0] = args;
6952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6955 }
6956 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6957 {
6958 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_From_int(static_cast< int >(result));
6962 return resultobj;
6963fail:
6964 return NULL;
6965}
6966
6967
6968SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6969 PyObject *obj;
6970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6971 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6972 return SWIG_Py_Void();
6973}
6974
6975SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6976 PyObject *resultobj = 0;
6977 wxBitmap *arg1 = 0 ;
6978 wxNativePixelData *result = 0 ;
6979 void *argp1 = 0 ;
6980 int res1 = 0 ;
6981
6982 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6986 }
6987 if (!argp1) {
6988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6989 }
6990 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6991 {
6992 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6996 return resultobj;
6997fail:
6998 return NULL;
6999}
7000
7001
7002SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7003 PyObject *resultobj = 0;
7004 wxBitmap *arg1 = 0 ;
7005 wxRect *arg2 = 0 ;
7006 wxNativePixelData *result = 0 ;
7007 void *argp1 = 0 ;
7008 int res1 = 0 ;
7009 wxRect temp2 ;
7010
7011 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7013 if (!SWIG_IsOK(res1)) {
7014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7015 }
7016 if (!argp1) {
7017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7018 }
7019 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7020 {
7021 arg2 = &temp2;
7022 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7023 }
7024 {
7025 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7029 return resultobj;
7030fail:
7031 return NULL;
7032}
7033
7034
7035SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7036 PyObject *resultobj = 0;
7037 wxBitmap *arg1 = 0 ;
7038 wxPoint *arg2 = 0 ;
7039 wxSize *arg3 = 0 ;
7040 wxNativePixelData *result = 0 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 wxPoint temp2 ;
7044 wxSize temp3 ;
7045
7046 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7048 if (!SWIG_IsOK(res1)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7050 }
7051 if (!argp1) {
7052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7053 }
7054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7055 {
7056 arg2 = &temp2;
7057 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7058 }
7059 {
7060 arg3 = &temp3;
7061 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7062 }
7063 {
7064 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7068 return resultobj;
7069fail:
7070 return NULL;
7071}
7072
7073
7074SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7075 int argc;
7076 PyObject *argv[4];
7077
7078 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7079 --argc;
7080 if (argc == 1) {
7081 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7082 }
7083 if (argc == 2) {
7084 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7085 }
7086 if (argc == 3) {
7087 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7088 }
7089
7090fail:
7091 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7092 return NULL;
7093}
7094
7095
7096SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7097 PyObject *resultobj = 0;
7098 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7099 void *argp1 = 0 ;
7100 int res1 = 0 ;
7101 PyObject *swig_obj[1] ;
7102
7103 if (!args) SWIG_fail;
7104 swig_obj[0] = args;
7105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7106 if (!SWIG_IsOK(res1)) {
7107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7108 }
7109 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7110 {
7111 delete arg1;
7112
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_Py_Void();
7116 return resultobj;
7117fail:
7118 return NULL;
7119}
7120
7121
7122SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7123 PyObject *resultobj = 0;
7124 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7125 wxNativePixelData_Accessor result;
7126 void *argp1 = 0 ;
7127 int res1 = 0 ;
7128 PyObject *swig_obj[1] ;
7129
7130 if (!args) SWIG_fail;
7131 swig_obj[0] = args;
7132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7133 if (!SWIG_IsOK(res1)) {
7134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7135 }
7136 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7137 {
7138 result = ((wxNativePixelData const *)arg1)->GetPixels();
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7142 return resultobj;
7143fail:
7144 return NULL;
7145}
7146
7147
7148SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7149 PyObject *resultobj = 0;
7150 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 PyObject *swig_obj[1] ;
7154
7155 if (!args) SWIG_fail;
7156 swig_obj[0] = args;
7157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7158 if (!SWIG_IsOK(res1)) {
7159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7160 }
7161 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7162 {
7163 (arg1)->UseAlpha();
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_Py_Void();
7167 return resultobj;
7168fail:
7169 return NULL;
7170}
7171
7172
7173SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 PyObject *resultobj = 0;
7175 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7176 bool result;
7177 void *argp1 = 0 ;
7178 int res1 = 0 ;
7179 PyObject *swig_obj[1] ;
7180
7181 if (!args) SWIG_fail;
7182 swig_obj[0] = args;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7186 }
7187 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7188 {
7189 result = (bool)wxNativePixelData___nonzero__(arg1);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 {
7193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7194 }
7195 return resultobj;
7196fail:
7197 return NULL;
7198}
7199
7200
7201SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7202 PyObject *obj;
7203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7204 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7205 return SWIG_Py_Void();
7206}
7207
7208SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7209 return SWIG_Python_InitShadowInstance(args);
7210}
7211
7212SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7213 PyObject *resultobj = 0;
7214 wxNativePixelData *arg1 = 0 ;
7215 wxNativePixelData_Accessor *result = 0 ;
7216 void *argp1 = 0 ;
7217 int res1 = 0 ;
7218
7219 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7221 if (!SWIG_IsOK(res1)) {
7222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7223 }
7224 if (!argp1) {
7225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7226 }
7227 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7228 {
7229 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7233 return resultobj;
7234fail:
7235 return NULL;
7236}
7237
7238
7239SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7240 PyObject *resultobj = 0;
7241 wxBitmap *arg1 = 0 ;
7242 wxNativePixelData *arg2 = 0 ;
7243 wxNativePixelData_Accessor *result = 0 ;
7244 void *argp1 = 0 ;
7245 int res1 = 0 ;
7246 void *argp2 = 0 ;
7247 int res2 = 0 ;
7248
7249 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7251 if (!SWIG_IsOK(res1)) {
7252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7253 }
7254 if (!argp1) {
7255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7256 }
7257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7258 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7259 if (!SWIG_IsOK(res2)) {
7260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7261 }
7262 if (!argp2) {
7263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7264 }
7265 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7266 {
7267 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
7270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7271 return resultobj;
7272fail:
7273 return NULL;
7274}
7275
7276
7277SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7278 PyObject *resultobj = 0;
7279 wxNativePixelData_Accessor *result = 0 ;
7280
7281 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7282 {
7283 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7287 return resultobj;
7288fail:
7289 return NULL;
7290}
7291
7292
7293SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7294 int argc;
7295 PyObject *argv[3];
7296
7297 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7298 --argc;
7299 if (argc == 0) {
7300 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7301 }
7302 if (argc == 1) {
7303 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7304 }
7305 if (argc == 2) {
7306 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7307 }
7308
7309fail:
7310 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7311 return NULL;
7312}
7313
7314
7315SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7316 PyObject *resultobj = 0;
7317 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7318 void *argp1 = 0 ;
7319 int res1 = 0 ;
7320 PyObject *swig_obj[1] ;
7321
7322 if (!args) SWIG_fail;
7323 swig_obj[0] = args;
7324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7325 if (!SWIG_IsOK(res1)) {
7326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7327 }
7328 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7329 {
7330 delete arg1;
7331
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 resultobj = SWIG_Py_Void();
7335 return resultobj;
7336fail:
7337 return NULL;
7338}
7339
7340
7341SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7342 PyObject *resultobj = 0;
7343 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7344 wxNativePixelData *arg2 = 0 ;
7345 void *argp1 = 0 ;
7346 int res1 = 0 ;
7347 void *argp2 = 0 ;
7348 int res2 = 0 ;
7349 PyObject * obj0 = 0 ;
7350 PyObject * obj1 = 0 ;
7351 char * kwnames[] = {
7352 (char *) "self",(char *) "data", NULL
7353 };
7354
7355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7357 if (!SWIG_IsOK(res1)) {
7358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7359 }
7360 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7362 if (!SWIG_IsOK(res2)) {
7363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7364 }
7365 if (!argp2) {
7366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7367 }
7368 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7369 {
7370 (arg1)->Reset((wxNativePixelData const &)*arg2);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 resultobj = SWIG_Py_Void();
7374 return resultobj;
7375fail:
7376 return NULL;
7377}
7378
7379
7380SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7381 PyObject *resultobj = 0;
7382 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7383 bool result;
7384 void *argp1 = 0 ;
7385 int res1 = 0 ;
7386 PyObject *swig_obj[1] ;
7387
7388 if (!args) SWIG_fail;
7389 swig_obj[0] = args;
7390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7391 if (!SWIG_IsOK(res1)) {
7392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7393 }
7394 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7395 {
7396 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 {
7400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7401 }
7402 return resultobj;
7403fail:
7404 return NULL;
7405}
7406
7407
7408SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7409 PyObject *resultobj = 0;
7410 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7411 void *argp1 = 0 ;
7412 int res1 = 0 ;
7413 PyObject *swig_obj[1] ;
7414
7415 if (!args) SWIG_fail;
7416 swig_obj[0] = args;
7417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7418 if (!SWIG_IsOK(res1)) {
7419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7420 }
7421 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7422 {
7423 wxNativePixelData_Accessor_nextPixel(arg1);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 resultobj = SWIG_Py_Void();
7427 return resultobj;
7428fail:
7429 return NULL;
7430}
7431
7432
7433SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7434 PyObject *resultobj = 0;
7435 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7436 wxNativePixelData *arg2 = 0 ;
7437 int arg3 ;
7438 int arg4 ;
7439 void *argp1 = 0 ;
7440 int res1 = 0 ;
7441 void *argp2 = 0 ;
7442 int res2 = 0 ;
7443 int val3 ;
7444 int ecode3 = 0 ;
7445 int val4 ;
7446 int ecode4 = 0 ;
7447 PyObject * obj0 = 0 ;
7448 PyObject * obj1 = 0 ;
7449 PyObject * obj2 = 0 ;
7450 PyObject * obj3 = 0 ;
7451 char * kwnames[] = {
7452 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7453 };
7454
7455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7459 }
7460 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7462 if (!SWIG_IsOK(res2)) {
7463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7464 }
7465 if (!argp2) {
7466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7467 }
7468 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7469 ecode3 = SWIG_AsVal_int(obj2, &val3);
7470 if (!SWIG_IsOK(ecode3)) {
7471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7472 }
7473 arg3 = static_cast< int >(val3);
7474 ecode4 = SWIG_AsVal_int(obj3, &val4);
7475 if (!SWIG_IsOK(ecode4)) {
7476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7477 }
7478 arg4 = static_cast< int >(val4);
7479 {
7480 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = SWIG_Py_Void();
7484 return resultobj;
7485fail:
7486 return NULL;
7487}
7488
7489
7490SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7491 PyObject *resultobj = 0;
7492 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7493 wxNativePixelData *arg2 = 0 ;
7494 int arg3 ;
7495 void *argp1 = 0 ;
7496 int res1 = 0 ;
7497 void *argp2 = 0 ;
7498 int res2 = 0 ;
7499 int val3 ;
7500 int ecode3 = 0 ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 PyObject * obj2 = 0 ;
7504 char * kwnames[] = {
7505 (char *) "self",(char *) "data",(char *) "x", NULL
7506 };
7507
7508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7512 }
7513 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7515 if (!SWIG_IsOK(res2)) {
7516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7517 }
7518 if (!argp2) {
7519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7520 }
7521 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7522 ecode3 = SWIG_AsVal_int(obj2, &val3);
7523 if (!SWIG_IsOK(ecode3)) {
7524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7525 }
7526 arg3 = static_cast< int >(val3);
7527 {
7528 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 resultobj = SWIG_Py_Void();
7532 return resultobj;
7533fail:
7534 return NULL;
7535}
7536
7537
7538SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7539 PyObject *resultobj = 0;
7540 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7541 wxNativePixelData *arg2 = 0 ;
7542 int arg3 ;
7543 void *argp1 = 0 ;
7544 int res1 = 0 ;
7545 void *argp2 = 0 ;
7546 int res2 = 0 ;
7547 int val3 ;
7548 int ecode3 = 0 ;
7549 PyObject * obj0 = 0 ;
7550 PyObject * obj1 = 0 ;
7551 PyObject * obj2 = 0 ;
7552 char * kwnames[] = {
7553 (char *) "self",(char *) "data",(char *) "y", NULL
7554 };
7555
7556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7558 if (!SWIG_IsOK(res1)) {
7559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7560 }
7561 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7563 if (!SWIG_IsOK(res2)) {
7564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7565 }
7566 if (!argp2) {
7567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7568 }
7569 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7570 ecode3 = SWIG_AsVal_int(obj2, &val3);
7571 if (!SWIG_IsOK(ecode3)) {
7572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7573 }
7574 arg3 = static_cast< int >(val3);
7575 {
7576 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 resultobj = SWIG_Py_Void();
7580 return resultobj;
7581fail:
7582 return NULL;
7583}
7584
7585
7586SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7587 PyObject *resultobj = 0;
7588 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7589 wxNativePixelData *arg2 = 0 ;
7590 int arg3 ;
7591 int arg4 ;
7592 void *argp1 = 0 ;
7593 int res1 = 0 ;
7594 void *argp2 = 0 ;
7595 int res2 = 0 ;
7596 int val3 ;
7597 int ecode3 = 0 ;
7598 int val4 ;
7599 int ecode4 = 0 ;
7600 PyObject * obj0 = 0 ;
7601 PyObject * obj1 = 0 ;
7602 PyObject * obj2 = 0 ;
7603 PyObject * obj3 = 0 ;
7604 char * kwnames[] = {
7605 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7606 };
7607
7608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7612 }
7613 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7615 if (!SWIG_IsOK(res2)) {
7616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7617 }
7618 if (!argp2) {
7619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7620 }
7621 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7622 ecode3 = SWIG_AsVal_int(obj2, &val3);
7623 if (!SWIG_IsOK(ecode3)) {
7624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7625 }
7626 arg3 = static_cast< int >(val3);
7627 ecode4 = SWIG_AsVal_int(obj3, &val4);
7628 if (!SWIG_IsOK(ecode4)) {
7629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7630 }
7631 arg4 = static_cast< int >(val4);
7632 {
7633 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = SWIG_Py_Void();
7637 return resultobj;
7638fail:
7639 return NULL;
7640}
7641
7642
7643SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj = 0;
7645 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7646 byte arg2 ;
7647 byte arg3 ;
7648 byte arg4 ;
7649 void *argp1 = 0 ;
7650 int res1 = 0 ;
7651 unsigned char val2 ;
7652 int ecode2 = 0 ;
7653 unsigned char val3 ;
7654 int ecode3 = 0 ;
7655 unsigned char val4 ;
7656 int ecode4 = 0 ;
7657 PyObject * obj0 = 0 ;
7658 PyObject * obj1 = 0 ;
7659 PyObject * obj2 = 0 ;
7660 PyObject * obj3 = 0 ;
7661 char * kwnames[] = {
7662 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7663 };
7664
7665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7667 if (!SWIG_IsOK(res1)) {
7668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7669 }
7670 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7671 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7672 if (!SWIG_IsOK(ecode2)) {
7673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7674 }
7675 arg2 = static_cast< byte >(val2);
7676 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7677 if (!SWIG_IsOK(ecode3)) {
7678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7679 }
7680 arg3 = static_cast< byte >(val3);
7681 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7682 if (!SWIG_IsOK(ecode4)) {
7683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7684 }
7685 arg4 = static_cast< byte >(val4);
7686 {
7687 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 resultobj = SWIG_Py_Void();
7691 return resultobj;
7692fail:
7693 return NULL;
7694}
7695
7696
7697SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7698 PyObject *resultobj = 0;
7699 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7700 PyObject *result = 0 ;
7701 void *argp1 = 0 ;
7702 int res1 = 0 ;
7703 PyObject *swig_obj[1] ;
7704
7705 if (!args) SWIG_fail;
7706 swig_obj[0] = args;
7707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7708 if (!SWIG_IsOK(res1)) {
7709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7710 }
7711 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7712 {
7713 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = result;
7717 return resultobj;
7718fail:
7719 return NULL;
7720}
7721
7722
7723SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7724 PyObject *obj;
7725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7726 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7727 return SWIG_Py_Void();
7728}
7729
7730SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7731 return SWIG_Python_InitShadowInstance(args);
7732}
7733
7734SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7735 PyObject *resultobj = 0;
7736 wxBitmap *arg1 = 0 ;
7737 wxAlphaPixelData *result = 0 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740
7741 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7743 if (!SWIG_IsOK(res1)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7745 }
7746 if (!argp1) {
7747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7748 }
7749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7750 {
7751 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7752 if (PyErr_Occurred()) SWIG_fail;
7753 }
7754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7755 return resultobj;
7756fail:
7757 return NULL;
7758}
7759
7760
7761SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7762 PyObject *resultobj = 0;
7763 wxBitmap *arg1 = 0 ;
7764 wxRect *arg2 = 0 ;
7765 wxAlphaPixelData *result = 0 ;
7766 void *argp1 = 0 ;
7767 int res1 = 0 ;
7768 wxRect temp2 ;
7769
7770 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7772 if (!SWIG_IsOK(res1)) {
7773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7774 }
7775 if (!argp1) {
7776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7777 }
7778 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7779 {
7780 arg2 = &temp2;
7781 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7782 }
7783 {
7784 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7788 return resultobj;
7789fail:
7790 return NULL;
7791}
7792
7793
7794SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7795 PyObject *resultobj = 0;
7796 wxBitmap *arg1 = 0 ;
7797 wxPoint *arg2 = 0 ;
7798 wxSize *arg3 = 0 ;
7799 wxAlphaPixelData *result = 0 ;
7800 void *argp1 = 0 ;
7801 int res1 = 0 ;
7802 wxPoint temp2 ;
7803 wxSize temp3 ;
7804
7805 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7807 if (!SWIG_IsOK(res1)) {
7808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7809 }
7810 if (!argp1) {
7811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7812 }
7813 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7814 {
7815 arg2 = &temp2;
7816 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7817 }
7818 {
7819 arg3 = &temp3;
7820 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7821 }
7822 {
7823 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7827 return resultobj;
7828fail:
7829 return NULL;
7830}
7831
7832
7833SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7834 int argc;
7835 PyObject *argv[4];
7836
7837 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7838 --argc;
7839 if (argc == 1) {
7840 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7841 }
7842 if (argc == 2) {
7843 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7844 }
7845 if (argc == 3) {
7846 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7847 }
7848
7849fail:
7850 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7851 return NULL;
7852}
7853
7854
7855SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7856 PyObject *resultobj = 0;
7857 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 PyObject *swig_obj[1] ;
7861
7862 if (!args) SWIG_fail;
7863 swig_obj[0] = args;
7864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7867 }
7868 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7869 {
7870 delete arg1;
7871
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_Py_Void();
7875 return resultobj;
7876fail:
7877 return NULL;
7878}
7879
7880
7881SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 PyObject *resultobj = 0;
7883 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7884 wxAlphaPixelData_Accessor result;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 PyObject *swig_obj[1] ;
7888
7889 if (!args) SWIG_fail;
7890 swig_obj[0] = args;
7891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7892 if (!SWIG_IsOK(res1)) {
7893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7894 }
7895 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7896 {
7897 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7901 return resultobj;
7902fail:
7903 return NULL;
7904}
7905
7906
7907SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7908 PyObject *resultobj = 0;
7909 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7910 void *argp1 = 0 ;
7911 int res1 = 0 ;
7912 PyObject *swig_obj[1] ;
7913
7914 if (!args) SWIG_fail;
7915 swig_obj[0] = args;
7916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7917 if (!SWIG_IsOK(res1)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7919 }
7920 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7921 {
7922 (arg1)->UseAlpha();
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 resultobj = SWIG_Py_Void();
7926 return resultobj;
7927fail:
7928 return NULL;
7929}
7930
7931
7932SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7933 PyObject *resultobj = 0;
7934 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7935 bool result;
7936 void *argp1 = 0 ;
7937 int res1 = 0 ;
7938 PyObject *swig_obj[1] ;
7939
7940 if (!args) SWIG_fail;
7941 swig_obj[0] = args;
7942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7943 if (!SWIG_IsOK(res1)) {
7944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7945 }
7946 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7947 {
7948 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7949 if (PyErr_Occurred()) SWIG_fail;
7950 }
7951 {
7952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7953 }
7954 return resultobj;
7955fail:
7956 return NULL;
7957}
7958
7959
7960SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7961 PyObject *obj;
7962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7963 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7964 return SWIG_Py_Void();
7965}
7966
7967SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7968 return SWIG_Python_InitShadowInstance(args);
7969}
7970
7971SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7972 PyObject *resultobj = 0;
7973 wxAlphaPixelData *arg1 = 0 ;
7974 wxAlphaPixelData_Accessor *result = 0 ;
7975 void *argp1 = 0 ;
7976 int res1 = 0 ;
7977
7978 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7980 if (!SWIG_IsOK(res1)) {
7981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7982 }
7983 if (!argp1) {
7984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7985 }
7986 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7987 {
7988 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7992 return resultobj;
7993fail:
7994 return NULL;
7995}
7996
7997
7998SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7999 PyObject *resultobj = 0;
8000 wxBitmap *arg1 = 0 ;
8001 wxAlphaPixelData *arg2 = 0 ;
8002 wxAlphaPixelData_Accessor *result = 0 ;
8003 void *argp1 = 0 ;
8004 int res1 = 0 ;
8005 void *argp2 = 0 ;
8006 int res2 = 0 ;
8007
8008 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8012 }
8013 if (!argp1) {
8014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8015 }
8016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8017 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8018 if (!SWIG_IsOK(res2)) {
8019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8020 }
8021 if (!argp2) {
8022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8023 }
8024 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8025 {
8026 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8030 return resultobj;
8031fail:
8032 return NULL;
8033}
8034
8035
8036SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8037 PyObject *resultobj = 0;
8038 wxAlphaPixelData_Accessor *result = 0 ;
8039
8040 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8041 {
8042 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8046 return resultobj;
8047fail:
8048 return NULL;
8049}
8050
8051
8052SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8053 int argc;
8054 PyObject *argv[3];
8055
8056 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8057 --argc;
8058 if (argc == 0) {
8059 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8060 }
8061 if (argc == 1) {
8062 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8063 }
8064 if (argc == 2) {
8065 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8066 }
8067
8068fail:
8069 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8070 return NULL;
8071}
8072
8073
8074SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8075 PyObject *resultobj = 0;
8076 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 PyObject *swig_obj[1] ;
8080
8081 if (!args) SWIG_fail;
8082 swig_obj[0] = args;
8083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8084 if (!SWIG_IsOK(res1)) {
8085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8086 }
8087 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8088 {
8089 delete arg1;
8090
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 resultobj = SWIG_Py_Void();
8094 return resultobj;
8095fail:
8096 return NULL;
8097}
8098
8099
8100SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8101 PyObject *resultobj = 0;
8102 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8103 wxAlphaPixelData *arg2 = 0 ;
8104 void *argp1 = 0 ;
8105 int res1 = 0 ;
8106 void *argp2 = 0 ;
8107 int res2 = 0 ;
8108 PyObject * obj0 = 0 ;
8109 PyObject * obj1 = 0 ;
8110 char * kwnames[] = {
8111 (char *) "self",(char *) "data", NULL
8112 };
8113
8114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8116 if (!SWIG_IsOK(res1)) {
8117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8118 }
8119 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8121 if (!SWIG_IsOK(res2)) {
8122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8123 }
8124 if (!argp2) {
8125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8126 }
8127 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8128 {
8129 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8130 if (PyErr_Occurred()) SWIG_fail;
8131 }
8132 resultobj = SWIG_Py_Void();
8133 return resultobj;
8134fail:
8135 return NULL;
8136}
8137
8138
8139SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8140 PyObject *resultobj = 0;
8141 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8142 bool result;
8143 void *argp1 = 0 ;
8144 int res1 = 0 ;
8145 PyObject *swig_obj[1] ;
8146
8147 if (!args) SWIG_fail;
8148 swig_obj[0] = args;
8149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8150 if (!SWIG_IsOK(res1)) {
8151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8152 }
8153 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8154 {
8155 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 {
8159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8160 }
8161 return resultobj;
8162fail:
8163 return NULL;
8164}
8165
8166
8167SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8168 PyObject *resultobj = 0;
8169 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8170 void *argp1 = 0 ;
8171 int res1 = 0 ;
8172 PyObject *swig_obj[1] ;
8173
8174 if (!args) SWIG_fail;
8175 swig_obj[0] = args;
8176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8177 if (!SWIG_IsOK(res1)) {
8178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8179 }
8180 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8181 {
8182 wxAlphaPixelData_Accessor_nextPixel(arg1);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_Py_Void();
8186 return resultobj;
8187fail:
8188 return NULL;
8189}
8190
8191
8192SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj = 0;
8194 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8195 wxAlphaPixelData *arg2 = 0 ;
8196 int arg3 ;
8197 int arg4 ;
8198 void *argp1 = 0 ;
8199 int res1 = 0 ;
8200 void *argp2 = 0 ;
8201 int res2 = 0 ;
8202 int val3 ;
8203 int ecode3 = 0 ;
8204 int val4 ;
8205 int ecode4 = 0 ;
8206 PyObject * obj0 = 0 ;
8207 PyObject * obj1 = 0 ;
8208 PyObject * obj2 = 0 ;
8209 PyObject * obj3 = 0 ;
8210 char * kwnames[] = {
8211 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8212 };
8213
8214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8216 if (!SWIG_IsOK(res1)) {
8217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8218 }
8219 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8221 if (!SWIG_IsOK(res2)) {
8222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8223 }
8224 if (!argp2) {
8225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8226 }
8227 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8228 ecode3 = SWIG_AsVal_int(obj2, &val3);
8229 if (!SWIG_IsOK(ecode3)) {
8230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8231 }
8232 arg3 = static_cast< int >(val3);
8233 ecode4 = SWIG_AsVal_int(obj3, &val4);
8234 if (!SWIG_IsOK(ecode4)) {
8235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8236 }
8237 arg4 = static_cast< int >(val4);
8238 {
8239 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8240 if (PyErr_Occurred()) SWIG_fail;
8241 }
8242 resultobj = SWIG_Py_Void();
8243 return resultobj;
8244fail:
8245 return NULL;
8246}
8247
8248
8249SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8250 PyObject *resultobj = 0;
8251 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8252 wxAlphaPixelData *arg2 = 0 ;
8253 int arg3 ;
8254 void *argp1 = 0 ;
8255 int res1 = 0 ;
8256 void *argp2 = 0 ;
8257 int res2 = 0 ;
8258 int val3 ;
8259 int ecode3 = 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 PyObject * obj2 = 0 ;
8263 char * kwnames[] = {
8264 (char *) "self",(char *) "data",(char *) "x", NULL
8265 };
8266
8267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8269 if (!SWIG_IsOK(res1)) {
8270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8271 }
8272 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8274 if (!SWIG_IsOK(res2)) {
8275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8276 }
8277 if (!argp2) {
8278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8279 }
8280 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8281 ecode3 = SWIG_AsVal_int(obj2, &val3);
8282 if (!SWIG_IsOK(ecode3)) {
8283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8284 }
8285 arg3 = static_cast< int >(val3);
8286 {
8287 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 resultobj = SWIG_Py_Void();
8291 return resultobj;
8292fail:
8293 return NULL;
8294}
8295
8296
8297SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8298 PyObject *resultobj = 0;
8299 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8300 wxAlphaPixelData *arg2 = 0 ;
8301 int arg3 ;
8302 void *argp1 = 0 ;
8303 int res1 = 0 ;
8304 void *argp2 = 0 ;
8305 int res2 = 0 ;
8306 int val3 ;
8307 int ecode3 = 0 ;
8308 PyObject * obj0 = 0 ;
8309 PyObject * obj1 = 0 ;
8310 PyObject * obj2 = 0 ;
8311 char * kwnames[] = {
8312 (char *) "self",(char *) "data",(char *) "y", NULL
8313 };
8314
8315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8317 if (!SWIG_IsOK(res1)) {
8318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8319 }
8320 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8322 if (!SWIG_IsOK(res2)) {
8323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8324 }
8325 if (!argp2) {
8326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8327 }
8328 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8329 ecode3 = SWIG_AsVal_int(obj2, &val3);
8330 if (!SWIG_IsOK(ecode3)) {
8331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8332 }
8333 arg3 = static_cast< int >(val3);
8334 {
8335 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 resultobj = SWIG_Py_Void();
8339 return resultobj;
8340fail:
8341 return NULL;
8342}
8343
8344
8345SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8346 PyObject *resultobj = 0;
8347 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8348 wxAlphaPixelData *arg2 = 0 ;
8349 int arg3 ;
8350 int arg4 ;
8351 void *argp1 = 0 ;
8352 int res1 = 0 ;
8353 void *argp2 = 0 ;
8354 int res2 = 0 ;
8355 int val3 ;
8356 int ecode3 = 0 ;
8357 int val4 ;
8358 int ecode4 = 0 ;
8359 PyObject * obj0 = 0 ;
8360 PyObject * obj1 = 0 ;
8361 PyObject * obj2 = 0 ;
8362 PyObject * obj3 = 0 ;
8363 char * kwnames[] = {
8364 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8365 };
8366
8367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8369 if (!SWIG_IsOK(res1)) {
8370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8371 }
8372 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8374 if (!SWIG_IsOK(res2)) {
8375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8376 }
8377 if (!argp2) {
8378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8379 }
8380 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8381 ecode3 = SWIG_AsVal_int(obj2, &val3);
8382 if (!SWIG_IsOK(ecode3)) {
8383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8384 }
8385 arg3 = static_cast< int >(val3);
8386 ecode4 = SWIG_AsVal_int(obj3, &val4);
8387 if (!SWIG_IsOK(ecode4)) {
8388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8389 }
8390 arg4 = static_cast< int >(val4);
8391 {
8392 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 resultobj = SWIG_Py_Void();
8396 return resultobj;
8397fail:
8398 return NULL;
8399}
8400
8401
8402SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8403 PyObject *resultobj = 0;
8404 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8405 byte arg2 ;
8406 byte arg3 ;
8407 byte arg4 ;
8408 byte arg5 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 unsigned char val2 ;
8412 int ecode2 = 0 ;
8413 unsigned char val3 ;
8414 int ecode3 = 0 ;
8415 unsigned char val4 ;
8416 int ecode4 = 0 ;
8417 unsigned char val5 ;
8418 int ecode5 = 0 ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 PyObject * obj2 = 0 ;
8422 PyObject * obj3 = 0 ;
8423 PyObject * obj4 = 0 ;
8424 char * kwnames[] = {
8425 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8426 };
8427
8428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8430 if (!SWIG_IsOK(res1)) {
8431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8432 }
8433 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8434 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8435 if (!SWIG_IsOK(ecode2)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8437 }
8438 arg2 = static_cast< byte >(val2);
8439 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8440 if (!SWIG_IsOK(ecode3)) {
8441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8442 }
8443 arg3 = static_cast< byte >(val3);
8444 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8445 if (!SWIG_IsOK(ecode4)) {
8446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8447 }
8448 arg4 = static_cast< byte >(val4);
8449 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8450 if (!SWIG_IsOK(ecode5)) {
8451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8452 }
8453 arg5 = static_cast< byte >(val5);
8454 {
8455 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8456 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8457 }
fc46b7f3 8458 resultobj = SWIG_Py_Void();
1bd55598
RD
8459 return resultobj;
8460fail:
8461 return NULL;
8462}
8463
8464
fc46b7f3 8465SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8466 PyObject *resultobj = 0;
fc46b7f3
RD
8467 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8468 PyObject *result = 0 ;
1bd55598
RD
8469 void *argp1 = 0 ;
8470 int res1 = 0 ;
fc46b7f3 8471 PyObject *swig_obj[1] ;
1bd55598 8472
fc46b7f3
RD
8473 if (!args) SWIG_fail;
8474 swig_obj[0] = args;
8475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8476 if (!SWIG_IsOK(res1)) {
fc46b7f3 8477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8478 }
fc46b7f3 8479 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8480 {
fc46b7f3 8481 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
fc46b7f3 8484 resultobj = result;
1bd55598
RD
8485 return resultobj;
8486fail:
8487 return NULL;
d55e5bfc
RD
8488}
8489
8490
fc46b7f3 8491SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8492 PyObject *obj;
8493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8494 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8495 return SWIG_Py_Void();
d55e5bfc
RD
8496}
8497
fc46b7f3 8498SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8499 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8500}
8501
1bd55598
RD
8502SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8503 PyObject *resultobj = 0;
8504 wxBitmap *arg1 = 0 ;
8505 wxColour const &arg2_defvalue = wxNullColour ;
8506 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8507 wxMask *result = 0 ;
8508 void *argp1 = 0 ;
8509 int res1 = 0 ;
8510 wxColour temp2 ;
8511 PyObject * obj0 = 0 ;
8512 PyObject * obj1 = 0 ;
8513 char * kwnames[] = {
8514 (char *) "bitmap",(char *) "colour", NULL
8515 };
8516
8517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8518 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8519 if (!SWIG_IsOK(res1)) {
8520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8521 }
8522 if (!argp1) {
8523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8524 }
8525 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8526 if (obj1) {
d55e5bfc 8527 {
1bd55598
RD
8528 arg2 = &temp2;
8529 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8530 }
1bd55598
RD
8531 }
8532 {
8533 if (!wxPyCheckForApp()) SWIG_fail;
8534 PyThreadState* __tstate = wxPyBeginAllowThreads();
8535 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8540 return resultobj;
8541fail:
8542 return NULL;
d55e5bfc
RD
8543}
8544
8545
1bd55598
RD
8546SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8547 PyObject *resultobj = 0;
8548 wxMask *arg1 = (wxMask *) 0 ;
8549 void *argp1 = 0 ;
8550 int res1 = 0 ;
8551 PyObject *swig_obj[1] ;
8552
8553 if (!args) SWIG_fail;
8554 swig_obj[0] = args;
8555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8556 if (!SWIG_IsOK(res1)) {
8557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8558 }
8559 arg1 = reinterpret_cast< wxMask * >(argp1);
8560 {
1bd55598 8561 delete arg1;
d55e5bfc 8562
1bd55598
RD
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 resultobj = SWIG_Py_Void();
8566 return resultobj;
8567fail:
8568 return NULL;
8569}
8570
8571
8572SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8573 PyObject *obj;
8574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8575 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8576 return SWIG_Py_Void();
8577}
8578
8579SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8580 return SWIG_Python_InitShadowInstance(args);
8581}
8582
8583SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj = 0;
8585 wxString *arg1 = 0 ;
8586 wxBitmapType arg2 ;
8587 int arg3 = (int) -1 ;
8588 int arg4 = (int) -1 ;
8589 wxIcon *result = 0 ;
8590 bool temp1 = false ;
8591 int val2 ;
8592 int ecode2 = 0 ;
8593 int val3 ;
8594 int ecode3 = 0 ;
8595 int val4 ;
8596 int ecode4 = 0 ;
8597 PyObject * obj0 = 0 ;
8598 PyObject * obj1 = 0 ;
8599 PyObject * obj2 = 0 ;
8600 PyObject * obj3 = 0 ;
8601 char * kwnames[] = {
8602 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8603 };
8604
8605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8606 {
8607 arg1 = wxString_in_helper(obj0);
8608 if (arg1 == NULL) SWIG_fail;
8609 temp1 = true;
8610 }
8611 ecode2 = SWIG_AsVal_int(obj1, &val2);
8612 if (!SWIG_IsOK(ecode2)) {
8613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8614 }
8615 arg2 = static_cast< wxBitmapType >(val2);
8616 if (obj2) {
8617 ecode3 = SWIG_AsVal_int(obj2, &val3);
8618 if (!SWIG_IsOK(ecode3)) {
8619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8620 }
8621 arg3 = static_cast< int >(val3);
8622 }
8623 if (obj3) {
8624 ecode4 = SWIG_AsVal_int(obj3, &val4);
8625 if (!SWIG_IsOK(ecode4)) {
8626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8627 }
8628 arg4 = static_cast< int >(val4);
8629 }
8630 {
8631 if (!wxPyCheckForApp()) SWIG_fail;
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8638 {
8639 if (temp1)
8640 delete arg1;
8641 }
8642 return resultobj;
8643fail:
8644 {
8645 if (temp1)
8646 delete arg1;
8647 }
8648 return NULL;
d55e5bfc
RD
8649}
8650
8651
1bd55598
RD
8652SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8653 PyObject *resultobj = 0;
8654 wxIcon *arg1 = (wxIcon *) 0 ;
8655 void *argp1 = 0 ;
8656 int res1 = 0 ;
8657 PyObject *swig_obj[1] ;
8658
8659 if (!args) SWIG_fail;
8660 swig_obj[0] = args;
8661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8664 }
8665 arg1 = reinterpret_cast< wxIcon * >(argp1);
8666 {
8667 PyThreadState* __tstate = wxPyBeginAllowThreads();
8668 delete arg1;
d55e5bfc 8669
1bd55598
RD
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = SWIG_Py_Void();
8674 return resultobj;
8675fail:
8676 return NULL;
d55e5bfc
RD
8677}
8678
8679
1bd55598
RD
8680SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8681 PyObject *resultobj = 0;
8682 wxIcon *result = 0 ;
8683
8684 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8685 {
8686 if (!wxPyCheckForApp()) SWIG_fail;
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 result = (wxIcon *)new wxIcon();
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8693 return resultobj;
8694fail:
8695 return NULL;
8696}
8697
8698
8699SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8700 PyObject *resultobj = 0;
8701 wxIconLocation *arg1 = 0 ;
8702 wxIcon *result = 0 ;
8703 void *argp1 = 0 ;
8704 int res1 = 0 ;
8705 PyObject * obj0 = 0 ;
8706 char * kwnames[] = {
8707 (char *) "loc", NULL
8708 };
8709
8710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8711 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8712 if (!SWIG_IsOK(res1)) {
8713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8714 }
8715 if (!argp1) {
8716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8717 }
8718 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8719 {
8720 if (!wxPyCheckForApp()) SWIG_fail;
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8727 return resultobj;
8728fail:
8729 return NULL;
8730}
8731
8732
8733SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8734 PyObject *resultobj = 0;
8735 wxBitmap *arg1 = 0 ;
8736 wxIcon *result = 0 ;
8737 void *argp1 = 0 ;
8738 int res1 = 0 ;
8739 PyObject * obj0 = 0 ;
8740 char * kwnames[] = {
8741 (char *) "bmp", NULL
8742 };
8743
8744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8745 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8746 if (!SWIG_IsOK(res1)) {
8747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8748 }
8749 if (!argp1) {
8750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8751 }
8752 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8753 {
8754 if (!wxPyCheckForApp()) SWIG_fail;
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8757 wxPyEndAllowThreads(__tstate);
8758 if (PyErr_Occurred()) SWIG_fail;
8759 }
8760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8761 return resultobj;
8762fail:
8763 return NULL;
d55e5bfc
RD
8764}
8765
8766
1bd55598
RD
8767SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8768 PyObject *resultobj = 0;
8769 PyObject *arg1 = (PyObject *) 0 ;
8770 wxIcon *result = 0 ;
8771 PyObject * obj0 = 0 ;
8772 char * kwnames[] = {
8773 (char *) "listOfStrings", NULL
8774 };
8775
8776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8777 arg1 = obj0;
8778 {
8779 if (!wxPyCheckForApp()) SWIG_fail;
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 result = (wxIcon *)new_wxIcon(arg1);
8782 wxPyEndAllowThreads(__tstate);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 }
8785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8786 return resultobj;
8787fail:
8788 return NULL;
d55e5bfc
RD
8789}
8790
8791
1bd55598
RD
8792SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8793 PyObject *resultobj = 0;
8794 wxIcon *arg1 = (wxIcon *) 0 ;
8795 bool result;
8796 void *argp1 = 0 ;
8797 int res1 = 0 ;
8798 PyObject *swig_obj[1] ;
8799
8800 if (!args) SWIG_fail;
8801 swig_obj[0] = args;
8802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8805 }
8806 arg1 = reinterpret_cast< wxIcon * >(argp1);
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 result = (bool)(arg1)->Ok();
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 {
8814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8815 }
8816 return resultobj;
8817fail:
8818 return NULL;
d55e5bfc
RD
8819}
8820
8821
1bd55598
RD
8822SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8823 PyObject *resultobj = 0;
8824 wxIcon *arg1 = (wxIcon *) 0 ;
8825 int result;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 PyObject *swig_obj[1] ;
8829
8830 if (!args) SWIG_fail;
8831 swig_obj[0] = args;
8832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8833 if (!SWIG_IsOK(res1)) {
8834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8835 }
8836 arg1 = reinterpret_cast< wxIcon * >(argp1);
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 result = (int)(arg1)->GetWidth();
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 resultobj = SWIG_From_int(static_cast< int >(result));
8844 return resultobj;
8845fail:
8846 return NULL;
d55e5bfc
RD
8847}
8848
8849
1bd55598
RD
8850SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8851 PyObject *resultobj = 0;
8852 wxIcon *arg1 = (wxIcon *) 0 ;
8853 int result;
8854 void *argp1 = 0 ;
8855 int res1 = 0 ;
8856 PyObject *swig_obj[1] ;
8857
8858 if (!args) SWIG_fail;
8859 swig_obj[0] = args;
8860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8861 if (!SWIG_IsOK(res1)) {
8862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8863 }
8864 arg1 = reinterpret_cast< wxIcon * >(argp1);
8865 {
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 result = (int)(arg1)->GetHeight();
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 resultobj = SWIG_From_int(static_cast< int >(result));
8872 return resultobj;
8873fail:
8874 return NULL;
d55e5bfc
RD
8875}
8876
8877
1bd55598
RD
8878SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8879 PyObject *resultobj = 0;
8880 wxIcon *arg1 = (wxIcon *) 0 ;
8881 int result;
8882 void *argp1 = 0 ;
8883 int res1 = 0 ;
8884 PyObject *swig_obj[1] ;
8885
8886 if (!args) SWIG_fail;
8887 swig_obj[0] = args;
8888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8891 }
8892 arg1 = reinterpret_cast< wxIcon * >(argp1);
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 result = (int)(arg1)->GetDepth();
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 resultobj = SWIG_From_int(static_cast< int >(result));
8900 return resultobj;
8901fail:
8902 return NULL;
8903}
8904
8905
8906SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj = 0;
8908 wxIcon *arg1 = (wxIcon *) 0 ;
8909 int arg2 ;
8910 void *argp1 = 0 ;
8911 int res1 = 0 ;
8912 int val2 ;
8913 int ecode2 = 0 ;
8914 PyObject * obj0 = 0 ;
8915 PyObject * obj1 = 0 ;
8916 char * kwnames[] = {
8917 (char *) "self",(char *) "w", NULL
8918 };
8919
8920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8922 if (!SWIG_IsOK(res1)) {
8923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8924 }
8925 arg1 = reinterpret_cast< wxIcon * >(argp1);
8926 ecode2 = SWIG_AsVal_int(obj1, &val2);
8927 if (!SWIG_IsOK(ecode2)) {
8928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8929 }
8930 arg2 = static_cast< int >(val2);
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 (arg1)->SetWidth(arg2);
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_Py_Void();
8938 return resultobj;
8939fail:
8940 return NULL;
8941}
8942
8943
8944SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj = 0;
8946 wxIcon *arg1 = (wxIcon *) 0 ;
8947 int arg2 ;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 int val2 ;
8951 int ecode2 = 0 ;
8952 PyObject * obj0 = 0 ;
8953 PyObject * obj1 = 0 ;
8954 char * kwnames[] = {
8955 (char *) "self",(char *) "h", NULL
8956 };
8957
8958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8960 if (!SWIG_IsOK(res1)) {
8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8962 }
8963 arg1 = reinterpret_cast< wxIcon * >(argp1);
8964 ecode2 = SWIG_AsVal_int(obj1, &val2);
8965 if (!SWIG_IsOK(ecode2)) {
8966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8967 }
8968 arg2 = static_cast< int >(val2);
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 (arg1)->SetHeight(arg2);
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 resultobj = SWIG_Py_Void();
8976 return resultobj;
8977fail:
8978 return NULL;
8979}
8980
8981
8982SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj = 0;
8984 wxIcon *arg1 = (wxIcon *) 0 ;
8985 int arg2 ;
8986 void *argp1 = 0 ;
8987 int res1 = 0 ;
8988 int val2 ;
8989 int ecode2 = 0 ;
8990 PyObject * obj0 = 0 ;
8991 PyObject * obj1 = 0 ;
8992 char * kwnames[] = {
8993 (char *) "self",(char *) "d", NULL
8994 };
8995
8996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8998 if (!SWIG_IsOK(res1)) {
8999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9000 }
9001 arg1 = reinterpret_cast< wxIcon * >(argp1);
9002 ecode2 = SWIG_AsVal_int(obj1, &val2);
9003 if (!SWIG_IsOK(ecode2)) {
9004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9005 }
9006 arg2 = static_cast< int >(val2);
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 (arg1)->SetDepth(arg2);
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 resultobj = SWIG_Py_Void();
9014 return resultobj;
9015fail:
9016 return NULL;
9017}
9018
9019
9020SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj = 0;
9022 wxIcon *arg1 = (wxIcon *) 0 ;
9023 wxBitmap *arg2 = 0 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 void *argp2 = 0 ;
9027 int res2 = 0 ;
9028 PyObject * obj0 = 0 ;
9029 PyObject * obj1 = 0 ;
9030 char * kwnames[] = {
9031 (char *) "self",(char *) "bmp", NULL
9032 };
9033
9034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9036 if (!SWIG_IsOK(res1)) {
9037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9038 }
9039 arg1 = reinterpret_cast< wxIcon * >(argp1);
9040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9041 if (!SWIG_IsOK(res2)) {
9042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9043 }
9044 if (!argp2) {
9045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9046 }
9047 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9051 wxPyEndAllowThreads(__tstate);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 resultobj = SWIG_Py_Void();
9055 return resultobj;
9056fail:
9057 return NULL;
d55e5bfc
RD
9058}
9059
9060
1bd55598
RD
9061SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9062 PyObject *obj;
9063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9064 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9065 return SWIG_Py_Void();
d55e5bfc
RD
9066}
9067
1bd55598
RD
9068SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9069 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9070}
9071
1bd55598
RD
9072SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9073 PyObject *resultobj = 0;
9074 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9075 int arg2 = (int) 0 ;
9076 wxIconLocation *result = 0 ;
9077 bool temp1 = false ;
9078 int val2 ;
9079 int ecode2 = 0 ;
9080 PyObject * obj0 = 0 ;
9081 PyObject * obj1 = 0 ;
9082 char * kwnames[] = {
9083 (char *) "filename",(char *) "num", NULL
9084 };
9085
9086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9087 if (obj0) {
d55e5bfc 9088 {
1bd55598
RD
9089 arg1 = wxString_in_helper(obj0);
9090 if (arg1 == NULL) SWIG_fail;
9091 temp1 = true;
d55e5bfc 9092 }
1bd55598
RD
9093 }
9094 if (obj1) {
9095 ecode2 = SWIG_AsVal_int(obj1, &val2);
9096 if (!SWIG_IsOK(ecode2)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9098 }
9099 arg2 = static_cast< int >(val2);
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9108 {
9109 if (temp1)
9110 delete arg1;
9111 }
9112 return resultobj;
9113fail:
9114 {
9115 if (temp1)
9116 delete arg1;
9117 }
9118 return NULL;
d55e5bfc
RD
9119}
9120
9121
1bd55598
RD
9122SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9123 PyObject *resultobj = 0;
9124 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9125 void *argp1 = 0 ;
9126 int res1 = 0 ;
9127 PyObject *swig_obj[1] ;
9128
9129 if (!args) SWIG_fail;
9130 swig_obj[0] = args;
9131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9134 }
9135 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9136 {
9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
9138 delete arg1;
d55e5bfc 9139
1bd55598
RD
9140 wxPyEndAllowThreads(__tstate);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 resultobj = SWIG_Py_Void();
9144 return resultobj;
9145fail:
9146 return NULL;
d55e5bfc
RD
9147}
9148
9149
1bd55598
RD
9150SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9151 PyObject *resultobj = 0;
9152 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9153 bool result;
9154 void *argp1 = 0 ;
9155 int res1 = 0 ;
9156 PyObject *swig_obj[1] ;
9157
9158 if (!args) SWIG_fail;
9159 swig_obj[0] = args;
9160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9161 if (!SWIG_IsOK(res1)) {
9162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9163 }
9164 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9165 {
9166 PyThreadState* __tstate = wxPyBeginAllowThreads();
9167 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 {
9172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9173 }
9174 return resultobj;
9175fail:
9176 return NULL;
9177}
9178
9179
9180SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj = 0;
9182 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9183 wxString *arg2 = 0 ;
9184 void *argp1 = 0 ;
9185 int res1 = 0 ;
9186 bool temp2 = false ;
9187 PyObject * obj0 = 0 ;
9188 PyObject * obj1 = 0 ;
9189 char * kwnames[] = {
9190 (char *) "self",(char *) "filename", NULL
9191 };
9192
9193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9195 if (!SWIG_IsOK(res1)) {
9196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9197 }
9198 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9199 {
9200 arg2 = wxString_in_helper(obj1);
9201 if (arg2 == NULL) SWIG_fail;
9202 temp2 = true;
9203 }
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 (arg1)->SetFileName((wxString const &)*arg2);
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_Py_Void();
9211 {
9212 if (temp2)
9213 delete arg2;
9214 }
9215 return resultobj;
9216fail:
9217 {
9218 if (temp2)
9219 delete arg2;
9220 }
9221 return NULL;
d55e5bfc
RD
9222}
9223
9224
1bd55598
RD
9225SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226 PyObject *resultobj = 0;
9227 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9228 wxString *result = 0 ;
9229 void *argp1 = 0 ;
9230 int res1 = 0 ;
9231 PyObject *swig_obj[1] ;
9232
9233 if (!args) SWIG_fail;
9234 swig_obj[0] = args;
9235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9236 if (!SWIG_IsOK(res1)) {
9237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9238 }
9239 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9240 {
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9242 {
1bd55598
RD
9243 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9244 result = (wxString *) &_result_ref;
d55e5bfc 9245 }
1bd55598
RD
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 {
9250#if wxUSE_UNICODE
9251 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9252#else
9253 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9254#endif
9255 }
9256 return resultobj;
9257fail:
9258 return NULL;
9259}
9260
9261
9262SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj = 0;
9264 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9265 int arg2 ;
9266 void *argp1 = 0 ;
9267 int res1 = 0 ;
9268 int val2 ;
9269 int ecode2 = 0 ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "num", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9280 }
9281 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9282 ecode2 = SWIG_AsVal_int(obj1, &val2);
9283 if (!SWIG_IsOK(ecode2)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9285 }
9286 arg2 = static_cast< int >(val2);
9287 {
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 wxIconLocation_SetIndex(arg1,arg2);
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 resultobj = SWIG_Py_Void();
9294 return resultobj;
9295fail:
9296 return NULL;
d55e5bfc
RD
9297}
9298
9299
1bd55598
RD
9300SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9301 PyObject *resultobj = 0;
9302 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9303 int result;
9304 void *argp1 = 0 ;
9305 int res1 = 0 ;
9306 PyObject *swig_obj[1] ;
9307
9308 if (!args) SWIG_fail;
9309 swig_obj[0] = args;
9310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9311 if (!SWIG_IsOK(res1)) {
9312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9313 }
9314 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (int)wxIconLocation_GetIndex(arg1);
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 resultobj = SWIG_From_int(static_cast< int >(result));
9322 return resultobj;
9323fail:
9324 return NULL;
d55e5bfc
RD
9325}
9326
9327
1bd55598
RD
9328SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9329 PyObject *obj;
9330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9331 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9332 return SWIG_Py_Void();
d55e5bfc
RD
9333}
9334
1bd55598
RD
9335SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9336 return SWIG_Python_InitShadowInstance(args);
9337}
d55e5bfc 9338
1bd55598
RD
9339SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9340 PyObject *resultobj = 0;
9341 wxIconBundle *result = 0 ;
9342
9343 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (wxIconBundle *)new wxIconBundle();
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9351 return resultobj;
9352fail:
9353 return NULL;
9354}
9355
9356
9357SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9358 PyObject *resultobj = 0;
9359 wxString *arg1 = 0 ;
9360 long arg2 ;
9361 wxIconBundle *result = 0 ;
9362 bool temp1 = false ;
9363 long val2 ;
9364 int ecode2 = 0 ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9367 char * kwnames[] = {
9368 (char *) "file",(char *) "type", NULL
9369 };
9370
9371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9372 {
9373 arg1 = wxString_in_helper(obj0);
9374 if (arg1 == NULL) SWIG_fail;
9375 temp1 = true;
9376 }
9377 ecode2 = SWIG_AsVal_long(obj1, &val2);
9378 if (!SWIG_IsOK(ecode2)) {
9379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9380 }
9381 arg2 = static_cast< long >(val2);
9382 {
9383 PyThreadState* __tstate = wxPyBeginAllowThreads();
9384 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9385 wxPyEndAllowThreads(__tstate);
9386 if (PyErr_Occurred()) SWIG_fail;
9387 }
9388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9389 {
9390 if (temp1)
9391 delete arg1;
9392 }
9393 return resultobj;
9394fail:
9395 {
9396 if (temp1)
9397 delete arg1;
9398 }
9399 return NULL;
d55e5bfc
RD
9400}
9401
9402
1bd55598
RD
9403SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxIcon *arg1 = 0 ;
9406 wxIconBundle *result = 0 ;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 PyObject * obj0 = 0 ;
9410 char * kwnames[] = {
9411 (char *) "icon", NULL
9412 };
9413
9414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9415 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9416 if (!SWIG_IsOK(res1)) {
9417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9418 }
9419 if (!argp1) {
9420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9421 }
9422 arg1 = reinterpret_cast< wxIcon * >(argp1);
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9430 return resultobj;
9431fail:
9432 return NULL;
d55e5bfc
RD
9433}
9434
9435
1bd55598
RD
9436SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9437 PyObject *resultobj = 0;
9438 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9439 void *argp1 = 0 ;
9440 int res1 = 0 ;
9441 PyObject *swig_obj[1] ;
9442
9443 if (!args) SWIG_fail;
9444 swig_obj[0] = args;
9445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9448 }
9449 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 delete arg1;
d55e5bfc 9453
1bd55598
RD
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 resultobj = SWIG_Py_Void();
9458 return resultobj;
9459fail:
9460 return NULL;
9461}
9462
9463
9464SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9465 PyObject *resultobj = 0;
9466 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9467 wxIcon *arg2 = 0 ;
9468 void *argp1 = 0 ;
9469 int res1 = 0 ;
9470 void *argp2 = 0 ;
9471 int res2 = 0 ;
9472 PyObject * obj0 = 0 ;
9473 PyObject * obj1 = 0 ;
9474 char * kwnames[] = {
9475 (char *) "self",(char *) "icon", NULL
9476 };
9477
9478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9480 if (!SWIG_IsOK(res1)) {
9481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9482 }
9483 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9485 if (!SWIG_IsOK(res2)) {
9486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9487 }
9488 if (!argp2) {
9489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9490 }
9491 arg2 = reinterpret_cast< wxIcon * >(argp2);
9492 {
9493 PyThreadState* __tstate = wxPyBeginAllowThreads();
9494 (arg1)->AddIcon((wxIcon const &)*arg2);
9495 wxPyEndAllowThreads(__tstate);
9496 if (PyErr_Occurred()) SWIG_fail;
9497 }
9498 resultobj = SWIG_Py_Void();
9499 return resultobj;
9500fail:
9501 return NULL;
9502}
9503
9504
9505SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9506 PyObject *resultobj = 0;
9507 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9508 wxString *arg2 = 0 ;
9509 long arg3 ;
9510 void *argp1 = 0 ;
9511 int res1 = 0 ;
9512 bool temp2 = false ;
9513 long val3 ;
9514 int ecode3 = 0 ;
9515 PyObject * obj0 = 0 ;
9516 PyObject * obj1 = 0 ;
9517 PyObject * obj2 = 0 ;
9518 char * kwnames[] = {
9519 (char *) "self",(char *) "file",(char *) "type", NULL
9520 };
9521
9522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9524 if (!SWIG_IsOK(res1)) {
9525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9526 }
9527 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9528 {
9529 arg2 = wxString_in_helper(obj1);
9530 if (arg2 == NULL) SWIG_fail;
9531 temp2 = true;
9532 }
9533 ecode3 = SWIG_AsVal_long(obj2, &val3);
9534 if (!SWIG_IsOK(ecode3)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9536 }
9537 arg3 = static_cast< long >(val3);
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 resultobj = SWIG_Py_Void();
9545 {
9546 if (temp2)
9547 delete arg2;
9548 }
9549 return resultobj;
9550fail:
9551 {
9552 if (temp2)
9553 delete arg2;
9554 }
9555 return NULL;
9556}
9557
9558
9559SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj = 0;
9561 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9562 wxSize *arg2 = 0 ;
9563 wxIcon *result = 0 ;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 wxSize temp2 ;
9567 PyObject * obj0 = 0 ;
9568 PyObject * obj1 = 0 ;
9569 char * kwnames[] = {
9570 (char *) "self",(char *) "size", NULL
9571 };
9572
9573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9575 if (!SWIG_IsOK(res1)) {
9576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9577 }
9578 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9579 {
9580 arg2 = &temp2;
9581 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9582 }
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9585 {
1bd55598
RD
9586 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9587 result = (wxIcon *) &_result_ref;
d55e5bfc 9588 }
1bd55598
RD
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 {
9593 wxIcon* resultptr = new wxIcon(*result);
9594 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9595 }
9596 return resultobj;
9597fail:
9598 return NULL;
9599}
9600
9601
9602SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9603 PyObject *obj;
9604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9605 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9606 return SWIG_Py_Void();
9607}
9608
9609SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9610 return SWIG_Python_InitShadowInstance(args);
9611}
9612
9613SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj = 0;
9615 wxString *arg1 = 0 ;
9616 long arg2 ;
9617 int arg3 = (int) 0 ;
9618 int arg4 = (int) 0 ;
9619 wxCursor *result = 0 ;
9620 bool temp1 = false ;
9621 long val2 ;
9622 int ecode2 = 0 ;
9623 int val3 ;
9624 int ecode3 = 0 ;
9625 int val4 ;
9626 int ecode4 = 0 ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 PyObject * obj2 = 0 ;
9630 PyObject * obj3 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9636 {
9637 arg1 = wxString_in_helper(obj0);
9638 if (arg1 == NULL) SWIG_fail;
9639 temp1 = true;
9640 }
9641 ecode2 = SWIG_AsVal_long(obj1, &val2);
9642 if (!SWIG_IsOK(ecode2)) {
9643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9644 }
9645 arg2 = static_cast< long >(val2);
9646 if (obj2) {
9647 ecode3 = SWIG_AsVal_int(obj2, &val3);
9648 if (!SWIG_IsOK(ecode3)) {
9649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9650 }
9651 arg3 = static_cast< int >(val3);
9652 }
9653 if (obj3) {
9654 ecode4 = SWIG_AsVal_int(obj3, &val4);
9655 if (!SWIG_IsOK(ecode4)) {
9656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9657 }
9658 arg4 = static_cast< int >(val4);
9659 }
9660 {
9661 if (!wxPyCheckForApp()) SWIG_fail;
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9668 {
9669 if (temp1)
9670 delete arg1;
9671 }
9672 return resultobj;
9673fail:
9674 {
9675 if (temp1)
9676 delete arg1;
9677 }
9678 return NULL;
d55e5bfc
RD
9679}
9680
9681
1bd55598
RD
9682SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683 PyObject *resultobj = 0;
9684 wxCursor *arg1 = (wxCursor *) 0 ;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 PyObject *swig_obj[1] ;
9688
9689 if (!args) SWIG_fail;
9690 swig_obj[0] = args;
9691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9692 if (!SWIG_IsOK(res1)) {
9693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9694 }
9695 arg1 = reinterpret_cast< wxCursor * >(argp1);
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 delete arg1;
d55e5bfc 9699
1bd55598
RD
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 resultobj = SWIG_Py_Void();
9704 return resultobj;
9705fail:
9706 return NULL;
9707}
9708
9709
9710SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj = 0;
9712 int arg1 ;
9713 wxCursor *result = 0 ;
9714 int val1 ;
9715 int ecode1 = 0 ;
9716 PyObject * obj0 = 0 ;
9717 char * kwnames[] = {
9718 (char *) "id", NULL
9719 };
9720
9721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9722 ecode1 = SWIG_AsVal_int(obj0, &val1);
9723 if (!SWIG_IsOK(ecode1)) {
9724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9725 }
9726 arg1 = static_cast< int >(val1);
9727 {
9728 if (!wxPyCheckForApp()) SWIG_fail;
9729 PyThreadState* __tstate = wxPyBeginAllowThreads();
9730 result = (wxCursor *)new wxCursor(arg1);
9731 wxPyEndAllowThreads(__tstate);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9735 return resultobj;
9736fail:
9737 return NULL;
9738}
9739
9740
9741SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9742 PyObject *resultobj = 0;
9743 wxImage *arg1 = 0 ;
9744 wxCursor *result = 0 ;
9745 void *argp1 = 0 ;
9746 int res1 = 0 ;
9747 PyObject * obj0 = 0 ;
9748 char * kwnames[] = {
9749 (char *) "image", NULL
9750 };
9751
9752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9753 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9754 if (!SWIG_IsOK(res1)) {
9755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9756 }
9757 if (!argp1) {
9758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9759 }
9760 arg1 = reinterpret_cast< wxImage * >(argp1);
9761 {
9762 if (!wxPyCheckForApp()) SWIG_fail;
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9769 return resultobj;
9770fail:
9771 return NULL;
d55e5bfc
RD
9772}
9773
9774
1bd55598
RD
9775SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9776 PyObject *resultobj = 0;
9777 wxCursor *arg1 = (wxCursor *) 0 ;
9778 bool result;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 PyObject *swig_obj[1] ;
9782
9783 if (!args) SWIG_fail;
9784 swig_obj[0] = args;
9785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9786 if (!SWIG_IsOK(res1)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9788 }
9789 arg1 = reinterpret_cast< wxCursor * >(argp1);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 result = (bool)(arg1)->Ok();
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 {
9797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9798 }
9799 return resultobj;
9800fail:
9801 return NULL;
9802}
9803
9804
9805SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9806 PyObject *obj;
9807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9808 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9809 return SWIG_Py_Void();
9810}
9811
9812SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9813 return SWIG_Python_InitShadowInstance(args);
9814}
9815
9816SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj = 0;
9818 int arg1 = (int) 0 ;
9819 int arg2 = (int) 0 ;
9820 int arg3 = (int) 0 ;
9821 int arg4 = (int) 0 ;
9822 wxRegion *result = 0 ;
9823 int val1 ;
9824 int ecode1 = 0 ;
9825 int val2 ;
9826 int ecode2 = 0 ;
9827 int val3 ;
9828 int ecode3 = 0 ;
9829 int val4 ;
9830 int ecode4 = 0 ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 PyObject * obj2 = 0 ;
9834 PyObject * obj3 = 0 ;
9835 char * kwnames[] = {
9836 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9837 };
9838
9839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9840 if (obj0) {
9841 ecode1 = SWIG_AsVal_int(obj0, &val1);
9842 if (!SWIG_IsOK(ecode1)) {
9843 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9844 }
9845 arg1 = static_cast< int >(val1);
9846 }
9847 if (obj1) {
9848 ecode2 = SWIG_AsVal_int(obj1, &val2);
9849 if (!SWIG_IsOK(ecode2)) {
9850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9851 }
9852 arg2 = static_cast< int >(val2);
9853 }
9854 if (obj2) {
9855 ecode3 = SWIG_AsVal_int(obj2, &val3);
9856 if (!SWIG_IsOK(ecode3)) {
9857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9858 }
9859 arg3 = static_cast< int >(val3);
9860 }
9861 if (obj3) {
9862 ecode4 = SWIG_AsVal_int(obj3, &val4);
9863 if (!SWIG_IsOK(ecode4)) {
9864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9865 }
9866 arg4 = static_cast< int >(val4);
9867 }
9868 {
9869 if (!wxPyCheckForApp()) SWIG_fail;
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9876 return resultobj;
9877fail:
9878 return NULL;
9879}
9880
9881
9882SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj = 0;
9884 wxBitmap *arg1 = 0 ;
9885 wxRegion *result = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 PyObject * obj0 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "bmp", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9897 }
9898 if (!argp1) {
9899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9900 }
9901 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9902 {
9903 if (!wxPyCheckForApp()) SWIG_fail;
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9910 return resultobj;
9911fail:
9912 return NULL;
9913}
9914
9915
9916SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj = 0;
9918 wxBitmap *arg1 = 0 ;
9919 wxColour *arg2 = 0 ;
9920 int arg3 = (int) 0 ;
9921 wxRegion *result = 0 ;
9922 void *argp1 = 0 ;
9923 int res1 = 0 ;
9924 wxColour temp2 ;
9925 int val3 ;
9926 int ecode3 = 0 ;
9927 PyObject * obj0 = 0 ;
9928 PyObject * obj1 = 0 ;
9929 PyObject * obj2 = 0 ;
9930 char * kwnames[] = {
9931 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9932 };
9933
9934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9935 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9936 if (!SWIG_IsOK(res1)) {
9937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9938 }
9939 if (!argp1) {
9940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9941 }
9942 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9943 {
9944 arg2 = &temp2;
9945 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9946 }
9947 if (obj2) {
9948 ecode3 = SWIG_AsVal_int(obj2, &val3);
9949 if (!SWIG_IsOK(ecode3)) {
9950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9951 }
9952 arg3 = static_cast< int >(val3);
9953 }
9954 {
9955 if (!wxPyCheckForApp()) SWIG_fail;
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9962 return resultobj;
9963fail:
9964 return NULL;
9965}
9966
9967
9968SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj = 0;
9970 int arg1 ;
9971 wxPoint *arg2 = (wxPoint *) 0 ;
9972 int arg3 = (int) wxWINDING_RULE ;
9973 wxRegion *result = 0 ;
9974 int val3 ;
9975 int ecode3 = 0 ;
9976 PyObject * obj0 = 0 ;
9977 PyObject * obj1 = 0 ;
9978 char * kwnames[] = {
9979 (char *) "points",(char *) "fillStyle", NULL
9980 };
9981
9982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9983 {
9984 arg2 = wxPoint_LIST_helper(obj0, &arg1);
9985 if (arg2 == NULL) SWIG_fail;
9986 }
9987 if (obj1) {
9988 ecode3 = SWIG_AsVal_int(obj1, &val3);
9989 if (!SWIG_IsOK(ecode3)) {
9990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
9991 }
9992 arg3 = static_cast< int >(val3);
9993 }
9994 {
9995 if (!wxPyCheckForApp()) SWIG_fail;
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10002 {
10003 if (arg2) delete [] arg2;
10004 }
10005 return resultobj;
10006fail:
10007 {
10008 if (arg2) delete [] arg2;
10009 }
10010 return NULL;
d55e5bfc
RD
10011}
10012
10013
1bd55598
RD
10014SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10015 PyObject *resultobj = 0;
10016 wxRegion *arg1 = (wxRegion *) 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 PyObject *swig_obj[1] ;
10020
10021 if (!args) SWIG_fail;
10022 swig_obj[0] = args;
10023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10024 if (!SWIG_IsOK(res1)) {
10025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10026 }
10027 arg1 = reinterpret_cast< wxRegion * >(argp1);
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 delete arg1;
d55e5bfc 10031
1bd55598
RD
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 resultobj = SWIG_Py_Void();
10036 return resultobj;
10037fail:
10038 return NULL;
d55e5bfc
RD
10039}
10040
10041
1bd55598
RD
10042SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10043 PyObject *resultobj = 0;
10044 wxRegion *arg1 = (wxRegion *) 0 ;
10045 void *argp1 = 0 ;
10046 int res1 = 0 ;
10047 PyObject *swig_obj[1] ;
10048
10049 if (!args) SWIG_fail;
10050 swig_obj[0] = args;
10051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10052 if (!SWIG_IsOK(res1)) {
10053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10054 }
10055 arg1 = reinterpret_cast< wxRegion * >(argp1);
10056 {
10057 PyThreadState* __tstate = wxPyBeginAllowThreads();
10058 (arg1)->Clear();
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 resultobj = SWIG_Py_Void();
10063 return resultobj;
10064fail:
10065 return NULL;
10066}
10067
10068
10069SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj = 0;
10071 wxRegion *arg1 = (wxRegion *) 0 ;
10072 int arg2 ;
10073 int arg3 ;
10074 bool result;
10075 void *argp1 = 0 ;
10076 int res1 = 0 ;
10077 int val2 ;
10078 int ecode2 = 0 ;
10079 int val3 ;
10080 int ecode3 = 0 ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 PyObject * obj2 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "x",(char *) "y", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10092 }
10093 arg1 = reinterpret_cast< wxRegion * >(argp1);
10094 ecode2 = SWIG_AsVal_int(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10097 }
10098 arg2 = static_cast< int >(val2);
10099 ecode3 = SWIG_AsVal_int(obj2, &val3);
10100 if (!SWIG_IsOK(ecode3)) {
10101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10102 }
10103 arg3 = static_cast< int >(val3);
10104 {
10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
10106 result = (bool)(arg1)->Offset(arg2,arg3);
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 {
10111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10112 }
10113 return resultobj;
10114fail:
10115 return NULL;
10116}
10117
10118
10119SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj = 0;
10121 wxRegion *arg1 = (wxRegion *) 0 ;
10122 int arg2 ;
10123 int arg3 ;
10124 wxRegionContain result;
10125 void *argp1 = 0 ;
10126 int res1 = 0 ;
10127 int val2 ;
10128 int ecode2 = 0 ;
10129 int val3 ;
10130 int ecode3 = 0 ;
10131 PyObject * obj0 = 0 ;
10132 PyObject * obj1 = 0 ;
10133 PyObject * obj2 = 0 ;
10134 char * kwnames[] = {
10135 (char *) "self",(char *) "x",(char *) "y", NULL
10136 };
10137
10138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10140 if (!SWIG_IsOK(res1)) {
10141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10142 }
10143 arg1 = reinterpret_cast< wxRegion * >(argp1);
10144 ecode2 = SWIG_AsVal_int(obj1, &val2);
10145 if (!SWIG_IsOK(ecode2)) {
10146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10147 }
10148 arg2 = static_cast< int >(val2);
10149 ecode3 = SWIG_AsVal_int(obj2, &val3);
10150 if (!SWIG_IsOK(ecode3)) {
10151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10152 }
10153 arg3 = static_cast< int >(val3);
10154 {
10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
10156 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 resultobj = SWIG_From_int(static_cast< int >(result));
10161 return resultobj;
10162fail:
10163 return NULL;
10164}
10165
10166
10167SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj = 0;
10169 wxRegion *arg1 = (wxRegion *) 0 ;
10170 wxPoint *arg2 = 0 ;
10171 wxRegionContain result;
10172 void *argp1 = 0 ;
10173 int res1 = 0 ;
10174 wxPoint temp2 ;
10175 PyObject * obj0 = 0 ;
10176 PyObject * obj1 = 0 ;
10177 char * kwnames[] = {
10178 (char *) "self",(char *) "pt", NULL
10179 };
10180
10181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10183 if (!SWIG_IsOK(res1)) {
10184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10185 }
10186 arg1 = reinterpret_cast< wxRegion * >(argp1);
10187 {
10188 arg2 = &temp2;
10189 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_From_int(static_cast< int >(result));
10198 return resultobj;
10199fail:
10200 return NULL;
10201}
10202
10203
10204SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj = 0;
10206 wxRegion *arg1 = (wxRegion *) 0 ;
10207 wxRect *arg2 = 0 ;
10208 wxRegionContain result;
10209 void *argp1 = 0 ;
10210 int res1 = 0 ;
10211 wxRect temp2 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 char * kwnames[] = {
10215 (char *) "self",(char *) "rect", NULL
10216 };
10217
10218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10222 }
10223 arg1 = reinterpret_cast< wxRegion * >(argp1);
10224 {
10225 arg2 = &temp2;
10226 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10227 }
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_From_int(static_cast< int >(result));
10235 return resultobj;
10236fail:
10237 return NULL;
10238}
10239
10240
10241SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj = 0;
10243 wxRegion *arg1 = (wxRegion *) 0 ;
10244 int arg2 ;
10245 int arg3 ;
10246 int arg4 ;
10247 int arg5 ;
10248 wxRegionContain result;
10249 void *argp1 = 0 ;
10250 int res1 = 0 ;
10251 int val2 ;
10252 int ecode2 = 0 ;
10253 int val3 ;
10254 int ecode3 = 0 ;
10255 int val4 ;
10256 int ecode4 = 0 ;
10257 int val5 ;
10258 int ecode5 = 0 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 PyObject * obj2 = 0 ;
10262 PyObject * obj3 = 0 ;
10263 PyObject * obj4 = 0 ;
10264 char * kwnames[] = {
10265 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10266 };
10267
10268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10270 if (!SWIG_IsOK(res1)) {
10271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10272 }
10273 arg1 = reinterpret_cast< wxRegion * >(argp1);
10274 ecode2 = SWIG_AsVal_int(obj1, &val2);
10275 if (!SWIG_IsOK(ecode2)) {
10276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10277 }
10278 arg2 = static_cast< int >(val2);
10279 ecode3 = SWIG_AsVal_int(obj2, &val3);
10280 if (!SWIG_IsOK(ecode3)) {
10281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10282 }
10283 arg3 = static_cast< int >(val3);
10284 ecode4 = SWIG_AsVal_int(obj3, &val4);
10285 if (!SWIG_IsOK(ecode4)) {
10286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10287 }
10288 arg4 = static_cast< int >(val4);
10289 ecode5 = SWIG_AsVal_int(obj4, &val5);
10290 if (!SWIG_IsOK(ecode5)) {
10291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10292 }
10293 arg5 = static_cast< int >(val5);
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 resultobj = SWIG_From_int(static_cast< int >(result));
10301 return resultobj;
10302fail:
10303 return NULL;
d55e5bfc
RD
10304}
10305
10306
1bd55598
RD
10307SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10308 PyObject *resultobj = 0;
10309 wxRegion *arg1 = (wxRegion *) 0 ;
10310 wxRect result;
10311 void *argp1 = 0 ;
10312 int res1 = 0 ;
10313 PyObject *swig_obj[1] ;
10314
10315 if (!args) SWIG_fail;
10316 swig_obj[0] = args;
10317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10318 if (!SWIG_IsOK(res1)) {
10319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10320 }
10321 arg1 = reinterpret_cast< wxRegion * >(argp1);
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 result = (arg1)->GetBox();
10325 wxPyEndAllowThreads(__tstate);
10326 if (PyErr_Occurred()) SWIG_fail;
10327 }
10328 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10329 return resultobj;
10330fail:
10331 return NULL;
10332}
10333
10334
10335SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10336 PyObject *resultobj = 0;
10337 wxRegion *arg1 = (wxRegion *) 0 ;
10338 int arg2 ;
10339 int arg3 ;
10340 int arg4 ;
10341 int arg5 ;
10342 bool result;
10343 void *argp1 = 0 ;
10344 int res1 = 0 ;
10345 int val2 ;
10346 int ecode2 = 0 ;
10347 int val3 ;
10348 int ecode3 = 0 ;
10349 int val4 ;
10350 int ecode4 = 0 ;
10351 int val5 ;
10352 int ecode5 = 0 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 PyObject * obj2 = 0 ;
10356 PyObject * obj3 = 0 ;
10357 PyObject * obj4 = 0 ;
10358 char * kwnames[] = {
10359 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10360 };
10361
10362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10364 if (!SWIG_IsOK(res1)) {
10365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10366 }
10367 arg1 = reinterpret_cast< wxRegion * >(argp1);
10368 ecode2 = SWIG_AsVal_int(obj1, &val2);
10369 if (!SWIG_IsOK(ecode2)) {
10370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10371 }
10372 arg2 = static_cast< int >(val2);
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 ecode4 = SWIG_AsVal_int(obj3, &val4);
10379 if (!SWIG_IsOK(ecode4)) {
10380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10381 }
10382 arg4 = static_cast< int >(val4);
10383 ecode5 = SWIG_AsVal_int(obj4, &val5);
10384 if (!SWIG_IsOK(ecode5)) {
10385 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10386 }
10387 arg5 = static_cast< int >(val5);
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10396 }
10397 return resultobj;
10398fail:
10399 return NULL;
10400}
10401
10402
10403SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxRegion *arg1 = (wxRegion *) 0 ;
10406 wxRect *arg2 = 0 ;
10407 bool result;
10408 void *argp1 = 0 ;
10409 int res1 = 0 ;
10410 wxRect temp2 ;
10411 PyObject * obj0 = 0 ;
10412 PyObject * obj1 = 0 ;
10413 char * kwnames[] = {
10414 (char *) "self",(char *) "rect", NULL
10415 };
10416
10417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10419 if (!SWIG_IsOK(res1)) {
10420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10421 }
10422 arg1 = reinterpret_cast< wxRegion * >(argp1);
10423 {
10424 arg2 = &temp2;
10425 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10426 }
10427 {
10428 PyThreadState* __tstate = wxPyBeginAllowThreads();
10429 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 {
10434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10435 }
10436 return resultobj;
10437fail:
10438 return NULL;
10439}
10440
10441
10442SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj = 0;
10444 wxRegion *arg1 = (wxRegion *) 0 ;
10445 wxRegion *arg2 = 0 ;
10446 bool result;
10447 void *argp1 = 0 ;
10448 int res1 = 0 ;
10449 void *argp2 = 0 ;
10450 int res2 = 0 ;
10451 PyObject * obj0 = 0 ;
10452 PyObject * obj1 = 0 ;
10453 char * kwnames[] = {
10454 (char *) "self",(char *) "region", NULL
10455 };
10456
10457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10459 if (!SWIG_IsOK(res1)) {
10460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10461 }
10462 arg1 = reinterpret_cast< wxRegion * >(argp1);
10463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10464 if (!SWIG_IsOK(res2)) {
10465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10466 }
10467 if (!argp2) {
10468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10469 }
10470 arg2 = reinterpret_cast< wxRegion * >(argp2);
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 {
10478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10479 }
10480 return resultobj;
10481fail:
10482 return NULL;
d55e5bfc
RD
10483}
10484
10485
1bd55598
RD
10486SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10487 PyObject *resultobj = 0;
10488 wxRegion *arg1 = (wxRegion *) 0 ;
10489 bool result;
10490 void *argp1 = 0 ;
10491 int res1 = 0 ;
10492 PyObject *swig_obj[1] ;
10493
10494 if (!args) SWIG_fail;
10495 swig_obj[0] = args;
10496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10497 if (!SWIG_IsOK(res1)) {
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10499 }
10500 arg1 = reinterpret_cast< wxRegion * >(argp1);
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (bool)(arg1)->IsEmpty();
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 {
10508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10509 }
10510 return resultobj;
10511fail:
10512 return NULL;
10513}
10514
10515
f5263701
RD
10516SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj = 0;
10518 wxRegion *arg1 = (wxRegion *) 0 ;
10519 wxRegion *arg2 = 0 ;
10520 bool result;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 void *argp2 = 0 ;
10524 int res2 = 0 ;
10525 PyObject * obj0 = 0 ;
10526 PyObject * obj1 = 0 ;
10527 char * kwnames[] = {
10528 (char *) "self",(char *) "region", NULL
10529 };
10530
10531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10533 if (!SWIG_IsOK(res1)) {
10534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10535 }
10536 arg1 = reinterpret_cast< wxRegion * >(argp1);
10537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10538 if (!SWIG_IsOK(res2)) {
10539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10540 }
10541 if (!argp2) {
10542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10543 }
10544 arg2 = reinterpret_cast< wxRegion * >(argp2);
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 {
10552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10553 }
10554 return resultobj;
10555fail:
10556 return NULL;
10557}
10558
10559
1bd55598
RD
10560SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj = 0;
10562 wxRegion *arg1 = (wxRegion *) 0 ;
10563 int arg2 ;
10564 int arg3 ;
10565 int arg4 ;
10566 int arg5 ;
10567 bool result;
10568 void *argp1 = 0 ;
10569 int res1 = 0 ;
10570 int val2 ;
10571 int ecode2 = 0 ;
10572 int val3 ;
10573 int ecode3 = 0 ;
10574 int val4 ;
10575 int ecode4 = 0 ;
10576 int val5 ;
10577 int ecode5 = 0 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 PyObject * obj2 = 0 ;
10581 PyObject * obj3 = 0 ;
10582 PyObject * obj4 = 0 ;
10583 char * kwnames[] = {
10584 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10585 };
10586
10587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10589 if (!SWIG_IsOK(res1)) {
10590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10591 }
10592 arg1 = reinterpret_cast< wxRegion * >(argp1);
10593 ecode2 = SWIG_AsVal_int(obj1, &val2);
10594 if (!SWIG_IsOK(ecode2)) {
10595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10596 }
10597 arg2 = static_cast< int >(val2);
10598 ecode3 = SWIG_AsVal_int(obj2, &val3);
10599 if (!SWIG_IsOK(ecode3)) {
10600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10601 }
10602 arg3 = static_cast< int >(val3);
10603 ecode4 = SWIG_AsVal_int(obj3, &val4);
10604 if (!SWIG_IsOK(ecode4)) {
10605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10606 }
10607 arg4 = static_cast< int >(val4);
10608 ecode5 = SWIG_AsVal_int(obj4, &val5);
10609 if (!SWIG_IsOK(ecode5)) {
10610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10611 }
10612 arg5 = static_cast< int >(val5);
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 {
10620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10621 }
10622 return resultobj;
10623fail:
10624 return NULL;
10625}
10626
10627
10628SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj = 0;
10630 wxRegion *arg1 = (wxRegion *) 0 ;
10631 wxRect *arg2 = 0 ;
10632 bool result;
10633 void *argp1 = 0 ;
10634 int res1 = 0 ;
10635 wxRect temp2 ;
10636 PyObject * obj0 = 0 ;
10637 PyObject * obj1 = 0 ;
10638 char * kwnames[] = {
10639 (char *) "self",(char *) "rect", NULL
10640 };
10641
10642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10644 if (!SWIG_IsOK(res1)) {
10645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10646 }
10647 arg1 = reinterpret_cast< wxRegion * >(argp1);
10648 {
10649 arg2 = &temp2;
10650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10651 }
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 {
10659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10660 }
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 wxRegion *arg2 = 0 ;
10671 bool result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 void *argp2 = 0 ;
10675 int res2 = 0 ;
10676 PyObject * obj0 = 0 ;
10677 PyObject * obj1 = 0 ;
10678 char * kwnames[] = {
10679 (char *) "self",(char *) "region", NULL
10680 };
10681
10682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10684 if (!SWIG_IsOK(res1)) {
10685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10686 }
10687 arg1 = reinterpret_cast< wxRegion * >(argp1);
10688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10689 if (!SWIG_IsOK(res2)) {
10690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10691 }
10692 if (!argp2) {
10693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10694 }
10695 arg2 = reinterpret_cast< wxRegion * >(argp2);
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 {
10703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10704 }
10705 return resultobj;
10706fail:
10707 return NULL;
10708}
10709
10710
10711SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj = 0;
10713 wxRegion *arg1 = (wxRegion *) 0 ;
10714 int arg2 ;
10715 int arg3 ;
10716 int arg4 ;
10717 int arg5 ;
10718 bool result;
10719 void *argp1 = 0 ;
10720 int res1 = 0 ;
10721 int val2 ;
10722 int ecode2 = 0 ;
10723 int val3 ;
10724 int ecode3 = 0 ;
10725 int val4 ;
10726 int ecode4 = 0 ;
10727 int val5 ;
10728 int ecode5 = 0 ;
10729 PyObject * obj0 = 0 ;
10730 PyObject * obj1 = 0 ;
10731 PyObject * obj2 = 0 ;
10732 PyObject * obj3 = 0 ;
10733 PyObject * obj4 = 0 ;
10734 char * kwnames[] = {
10735 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10736 };
10737
10738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10740 if (!SWIG_IsOK(res1)) {
10741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10742 }
10743 arg1 = reinterpret_cast< wxRegion * >(argp1);
10744 ecode2 = SWIG_AsVal_int(obj1, &val2);
10745 if (!SWIG_IsOK(ecode2)) {
10746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10747 }
10748 arg2 = static_cast< int >(val2);
10749 ecode3 = SWIG_AsVal_int(obj2, &val3);
10750 if (!SWIG_IsOK(ecode3)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10752 }
10753 arg3 = static_cast< int >(val3);
10754 ecode4 = SWIG_AsVal_int(obj3, &val4);
10755 if (!SWIG_IsOK(ecode4)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10757 }
10758 arg4 = static_cast< int >(val4);
10759 ecode5 = SWIG_AsVal_int(obj4, &val5);
10760 if (!SWIG_IsOK(ecode5)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10762 }
10763 arg5 = static_cast< int >(val5);
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 {
10771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10772 }
10773 return resultobj;
10774fail:
10775 return NULL;
10776}
10777
10778
10779SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj = 0;
10781 wxRegion *arg1 = (wxRegion *) 0 ;
10782 wxRect *arg2 = 0 ;
10783 bool result;
10784 void *argp1 = 0 ;
10785 int res1 = 0 ;
10786 wxRect temp2 ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char * kwnames[] = {
10790 (char *) "self",(char *) "rect", NULL
10791 };
10792
10793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10797 }
10798 arg1 = reinterpret_cast< wxRegion * >(argp1);
10799 {
10800 arg2 = &temp2;
10801 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10802 }
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 {
10810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10811 }
10812 return resultobj;
10813fail:
10814 return NULL;
10815}
10816
10817
10818SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj = 0;
10820 wxRegion *arg1 = (wxRegion *) 0 ;
10821 wxRegion *arg2 = 0 ;
10822 bool result;
10823 void *argp1 = 0 ;
10824 int res1 = 0 ;
10825 void *argp2 = 0 ;
10826 int res2 = 0 ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 char * kwnames[] = {
10830 (char *) "self",(char *) "region", NULL
10831 };
10832
10833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10835 if (!SWIG_IsOK(res1)) {
10836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10837 }
10838 arg1 = reinterpret_cast< wxRegion * >(argp1);
10839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10840 if (!SWIG_IsOK(res2)) {
10841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10842 }
10843 if (!argp2) {
10844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10845 }
10846 arg2 = reinterpret_cast< wxRegion * >(argp2);
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10850 wxPyEndAllowThreads(__tstate);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 }
10853 {
10854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10855 }
10856 return resultobj;
10857fail:
10858 return NULL;
10859}
10860
10861
10862SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10863 PyObject *resultobj = 0;
10864 wxRegion *arg1 = (wxRegion *) 0 ;
10865 int arg2 ;
10866 int arg3 ;
10867 int arg4 ;
10868 int arg5 ;
10869 bool result;
10870 void *argp1 = 0 ;
10871 int res1 = 0 ;
10872 int val2 ;
10873 int ecode2 = 0 ;
10874 int val3 ;
10875 int ecode3 = 0 ;
10876 int val4 ;
10877 int ecode4 = 0 ;
10878 int val5 ;
10879 int ecode5 = 0 ;
10880 PyObject * obj0 = 0 ;
10881 PyObject * obj1 = 0 ;
10882 PyObject * obj2 = 0 ;
10883 PyObject * obj3 = 0 ;
10884 PyObject * obj4 = 0 ;
10885 char * kwnames[] = {
10886 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10887 };
10888
10889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10893 }
10894 arg1 = reinterpret_cast< wxRegion * >(argp1);
10895 ecode2 = SWIG_AsVal_int(obj1, &val2);
10896 if (!SWIG_IsOK(ecode2)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10898 }
10899 arg2 = static_cast< int >(val2);
10900 ecode3 = SWIG_AsVal_int(obj2, &val3);
10901 if (!SWIG_IsOK(ecode3)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10903 }
10904 arg3 = static_cast< int >(val3);
10905 ecode4 = SWIG_AsVal_int(obj3, &val4);
10906 if (!SWIG_IsOK(ecode4)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10908 }
10909 arg4 = static_cast< int >(val4);
10910 ecode5 = SWIG_AsVal_int(obj4, &val5);
10911 if (!SWIG_IsOK(ecode5)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10913 }
10914 arg5 = static_cast< int >(val5);
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10918 wxPyEndAllowThreads(__tstate);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 }
10921 {
10922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10923 }
10924 return resultobj;
10925fail:
10926 return NULL;
10927}
10928
10929
10930SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj = 0;
10932 wxRegion *arg1 = (wxRegion *) 0 ;
10933 wxRect *arg2 = 0 ;
10934 bool result;
10935 void *argp1 = 0 ;
10936 int res1 = 0 ;
10937 wxRect temp2 ;
10938 PyObject * obj0 = 0 ;
10939 PyObject * obj1 = 0 ;
10940 char * kwnames[] = {
10941 (char *) "self",(char *) "rect", NULL
10942 };
10943
10944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10946 if (!SWIG_IsOK(res1)) {
10947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10948 }
10949 arg1 = reinterpret_cast< wxRegion * >(argp1);
10950 {
10951 arg2 = &temp2;
10952 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10953 }
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964fail:
10965 return NULL;
10966}
10967
10968
10969SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10970 PyObject *resultobj = 0;
10971 wxRegion *arg1 = (wxRegion *) 0 ;
10972 wxRegion *arg2 = 0 ;
10973 bool result;
10974 void *argp1 = 0 ;
10975 int res1 = 0 ;
10976 void *argp2 = 0 ;
10977 int res2 = 0 ;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 char * kwnames[] = {
10981 (char *) "self",(char *) "region", NULL
10982 };
10983
10984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10986 if (!SWIG_IsOK(res1)) {
10987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10988 }
10989 arg1 = reinterpret_cast< wxRegion * >(argp1);
10990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10991 if (!SWIG_IsOK(res2)) {
10992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10993 }
10994 if (!argp2) {
10995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10996 }
10997 arg2 = reinterpret_cast< wxRegion * >(argp2);
10998 {
10999 PyThreadState* __tstate = wxPyBeginAllowThreads();
11000 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 {
11005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11006 }
11007 return resultobj;
11008fail:
11009 return NULL;
d55e5bfc
RD
11010}
11011
11012
1bd55598
RD
11013SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11014 PyObject *resultobj = 0;
11015 wxRegion *arg1 = (wxRegion *) 0 ;
11016 SwigValueWrapper<wxBitmap > result;
11017 void *argp1 = 0 ;
11018 int res1 = 0 ;
11019 PyObject *swig_obj[1] ;
11020
11021 if (!args) SWIG_fail;
11022 swig_obj[0] = args;
11023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11024 if (!SWIG_IsOK(res1)) {
11025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11026 }
11027 arg1 = reinterpret_cast< wxRegion * >(argp1);
11028 {
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 result = (arg1)->ConvertToBitmap();
11031 wxPyEndAllowThreads(__tstate);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 }
11034 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11035 return resultobj;
11036fail:
11037 return NULL;
11038}
11039
11040
11041SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11042 PyObject *resultobj = 0;
11043 wxRegion *arg1 = (wxRegion *) 0 ;
11044 wxBitmap *arg2 = 0 ;
11045 bool result;
11046 void *argp1 = 0 ;
11047 int res1 = 0 ;
11048 void *argp2 = 0 ;
11049 int res2 = 0 ;
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
11052 char * kwnames[] = {
11053 (char *) "self",(char *) "bmp", NULL
11054 };
11055
11056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11058 if (!SWIG_IsOK(res1)) {
11059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11060 }
11061 arg1 = reinterpret_cast< wxRegion * >(argp1);
11062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11063 if (!SWIG_IsOK(res2)) {
11064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11065 }
11066 if (!argp2) {
11067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11068 }
11069 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 {
11077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11078 }
11079 return resultobj;
11080fail:
11081 return NULL;
11082}
11083
11084
11085SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11086 PyObject *resultobj = 0;
11087 wxRegion *arg1 = (wxRegion *) 0 ;
11088 wxBitmap *arg2 = 0 ;
11089 wxColour *arg3 = 0 ;
11090 int arg4 = (int) 0 ;
11091 bool result;
11092 void *argp1 = 0 ;
11093 int res1 = 0 ;
11094 void *argp2 = 0 ;
11095 int res2 = 0 ;
11096 wxColour temp3 ;
11097 int val4 ;
11098 int ecode4 = 0 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 PyObject * obj2 = 0 ;
11102 PyObject * obj3 = 0 ;
11103 char * kwnames[] = {
11104 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11105 };
11106
11107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11109 if (!SWIG_IsOK(res1)) {
11110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11111 }
11112 arg1 = reinterpret_cast< wxRegion * >(argp1);
11113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11114 if (!SWIG_IsOK(res2)) {
11115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11116 }
11117 if (!argp2) {
11118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11119 }
11120 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11121 {
11122 arg3 = &temp3;
11123 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11124 }
11125 if (obj3) {
11126 ecode4 = SWIG_AsVal_int(obj3, &val4);
11127 if (!SWIG_IsOK(ecode4)) {
11128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11129 }
11130 arg4 = static_cast< int >(val4);
11131 }
11132 {
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 {
11139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11140 }
11141 return resultobj;
11142fail:
11143 return NULL;
d55e5bfc
RD
11144}
11145
11146
1bd55598
RD
11147SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11148 PyObject *obj;
11149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11150 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11151 return SWIG_Py_Void();
d55e5bfc
RD
11152}
11153
1bd55598
RD
11154SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 return SWIG_Python_InitShadowInstance(args);
11156}
d55e5bfc 11157
1bd55598
RD
11158SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11159 PyObject *resultobj = 0;
11160 wxRegion *arg1 = 0 ;
11161 wxRegionIterator *result = 0 ;
11162 void *argp1 = 0 ;
11163 int res1 = 0 ;
11164 PyObject * obj0 = 0 ;
11165 char * kwnames[] = {
11166 (char *) "region", NULL
11167 };
11168
11169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11170 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11171 if (!SWIG_IsOK(res1)) {
11172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11173 }
11174 if (!argp1) {
11175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11176 }
11177 arg1 = reinterpret_cast< wxRegion * >(argp1);
11178 {
11179 if (!wxPyCheckForApp()) SWIG_fail;
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 }
11185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11186 return resultobj;
11187fail:
11188 return NULL;
d55e5bfc
RD
11189}
11190
11191
1bd55598
RD
11192SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11193 PyObject *resultobj = 0;
11194 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11195 void *argp1 = 0 ;
11196 int res1 = 0 ;
11197 PyObject *swig_obj[1] ;
11198
11199 if (!args) SWIG_fail;
11200 swig_obj[0] = args;
11201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11204 }
11205 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 delete arg1;
d55e5bfc 11209
1bd55598
RD
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 resultobj = SWIG_Py_Void();
11214 return resultobj;
11215fail:
11216 return NULL;
d55e5bfc
RD
11217}
11218
11219
1bd55598
RD
11220SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11221 PyObject *resultobj = 0;
11222 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11223 int result;
11224 void *argp1 = 0 ;
11225 int res1 = 0 ;
11226 PyObject *swig_obj[1] ;
11227
11228 if (!args) SWIG_fail;
11229 swig_obj[0] = args;
11230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11231 if (!SWIG_IsOK(res1)) {
11232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11233 }
11234 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11235 {
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 result = (int)(arg1)->GetX();
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 resultobj = SWIG_From_int(static_cast< int >(result));
11242 return resultobj;
11243fail:
11244 return NULL;
d55e5bfc
RD
11245}
11246
11247
1bd55598
RD
11248SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11249 PyObject *resultobj = 0;
11250 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11251 int result;
11252 void *argp1 = 0 ;
11253 int res1 = 0 ;
11254 PyObject *swig_obj[1] ;
11255
11256 if (!args) SWIG_fail;
11257 swig_obj[0] = args;
11258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11259 if (!SWIG_IsOK(res1)) {
11260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11261 }
11262 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 result = (int)(arg1)->GetY();
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 resultobj = SWIG_From_int(static_cast< int >(result));
11270 return resultobj;
11271fail:
11272 return NULL;
d55e5bfc
RD
11273}
11274
11275
1bd55598
RD
11276SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11277 PyObject *resultobj = 0;
11278 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11279 int result;
11280 void *argp1 = 0 ;
11281 int res1 = 0 ;
11282 PyObject *swig_obj[1] ;
11283
11284 if (!args) SWIG_fail;
11285 swig_obj[0] = args;
11286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11287 if (!SWIG_IsOK(res1)) {
11288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11289 }
11290 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 result = (int)(arg1)->GetW();
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 resultobj = SWIG_From_int(static_cast< int >(result));
11298 return resultobj;
11299fail:
11300 return NULL;
d55e5bfc
RD
11301}
11302
11303
1bd55598
RD
11304SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11305 PyObject *resultobj = 0;
11306 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11307 int result;
11308 void *argp1 = 0 ;
11309 int res1 = 0 ;
11310 PyObject *swig_obj[1] ;
11311
11312 if (!args) SWIG_fail;
11313 swig_obj[0] = args;
11314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11315 if (!SWIG_IsOK(res1)) {
11316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11317 }
11318 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 result = (int)(arg1)->GetWidth();
11322 wxPyEndAllowThreads(__tstate);
11323 if (PyErr_Occurred()) SWIG_fail;
11324 }
11325 resultobj = SWIG_From_int(static_cast< int >(result));
11326 return resultobj;
11327fail:
11328 return NULL;
d55e5bfc
RD
11329}
11330
11331
1bd55598
RD
11332SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11333 PyObject *resultobj = 0;
11334 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11335 int result;
11336 void *argp1 = 0 ;
11337 int res1 = 0 ;
11338 PyObject *swig_obj[1] ;
11339
11340 if (!args) SWIG_fail;
11341 swig_obj[0] = args;
11342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11343 if (!SWIG_IsOK(res1)) {
11344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11345 }
11346 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 result = (int)(arg1)->GetH();
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 resultobj = SWIG_From_int(static_cast< int >(result));
11354 return resultobj;
11355fail:
11356 return NULL;
d07096ad
RD
11357}
11358
11359
1bd55598
RD
11360SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11361 PyObject *resultobj = 0;
11362 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11363 int result;
11364 void *argp1 = 0 ;
11365 int res1 = 0 ;
11366 PyObject *swig_obj[1] ;
11367
11368 if (!args) SWIG_fail;
11369 swig_obj[0] = args;
11370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11371 if (!SWIG_IsOK(res1)) {
11372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11373 }
11374 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 result = (int)(arg1)->GetHeight();
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 resultobj = SWIG_From_int(static_cast< int >(result));
11382 return resultobj;
11383fail:
11384 return NULL;
d55e5bfc
RD
11385}
11386
11387
1bd55598
RD
11388SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11389 PyObject *resultobj = 0;
11390 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11391 wxRect result;
11392 void *argp1 = 0 ;
11393 int res1 = 0 ;
11394 PyObject *swig_obj[1] ;
11395
11396 if (!args) SWIG_fail;
11397 swig_obj[0] = args;
11398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11399 if (!SWIG_IsOK(res1)) {
11400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11401 }
11402 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 result = (arg1)->GetRect();
11406 wxPyEndAllowThreads(__tstate);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11410 return resultobj;
11411fail:
11412 return NULL;
d55e5bfc
RD
11413}
11414
11415
1bd55598
RD
11416SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11417 PyObject *resultobj = 0;
11418 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11419 bool result;
11420 void *argp1 = 0 ;
11421 int res1 = 0 ;
11422 PyObject *swig_obj[1] ;
11423
11424 if (!args) SWIG_fail;
11425 swig_obj[0] = args;
11426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11427 if (!SWIG_IsOK(res1)) {
11428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11429 }
11430 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11431 {
11432 PyThreadState* __tstate = wxPyBeginAllowThreads();
11433 result = (bool)(arg1)->HaveRects();
11434 wxPyEndAllowThreads(__tstate);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 {
11438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11439 }
11440 return resultobj;
11441fail:
11442 return NULL;
d55e5bfc
RD
11443}
11444
11445
1bd55598
RD
11446SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11447 PyObject *resultobj = 0;
11448 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 PyObject *swig_obj[1] ;
11452
11453 if (!args) SWIG_fail;
11454 swig_obj[0] = args;
11455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11456 if (!SWIG_IsOK(res1)) {
11457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11458 }
11459 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11460 {
11461 PyThreadState* __tstate = wxPyBeginAllowThreads();
11462 (arg1)->Reset();
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 resultobj = SWIG_Py_Void();
11467 return resultobj;
11468fail:
11469 return NULL;
d55e5bfc
RD
11470}
11471
11472
1bd55598
RD
11473SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11476 void *argp1 = 0 ;
11477 int res1 = 0 ;
11478 PyObject *swig_obj[1] ;
11479
11480 if (!args) SWIG_fail;
11481 swig_obj[0] = args;
11482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11483 if (!SWIG_IsOK(res1)) {
11484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11485 }
11486 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 wxRegionIterator_Next(arg1);
11490 wxPyEndAllowThreads(__tstate);
11491 if (PyErr_Occurred()) SWIG_fail;
11492 }
11493 resultobj = SWIG_Py_Void();
11494 return resultobj;
11495fail:
11496 return NULL;
070c48b4
RD
11497}
11498
11499
1bd55598
RD
11500SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11501 PyObject *resultobj = 0;
11502 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11503 bool result;
11504 void *argp1 = 0 ;
11505 int res1 = 0 ;
11506 PyObject *swig_obj[1] ;
11507
11508 if (!args) SWIG_fail;
11509 swig_obj[0] = args;
11510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11511 if (!SWIG_IsOK(res1)) {
11512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11513 }
11514 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
11517 result = (bool)wxRegionIterator___nonzero__(arg1);
11518 wxPyEndAllowThreads(__tstate);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 {
11522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11523 }
11524 return resultobj;
11525fail:
11526 return NULL;
d55e5bfc
RD
11527}
11528
11529
1bd55598
RD
11530SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11531 PyObject *obj;
11532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11533 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11534 return SWIG_Py_Void();
d55e5bfc
RD
11535}
11536
1bd55598
RD
11537SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11538 return SWIG_Python_InitShadowInstance(args);
11539}
d55e5bfc 11540
1bd55598
RD
11541SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11542 PyObject *resultobj = 0;
11543 wxNativeFontInfo *result = 0 ;
11544
11545 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11546 {
11547 PyThreadState* __tstate = wxPyBeginAllowThreads();
11548 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11553 return resultobj;
11554fail:
11555 return NULL;
d55e5bfc
RD
11556}
11557
11558
1bd55598
RD
11559SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11560 PyObject *resultobj = 0;
11561 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11562 void *argp1 = 0 ;
11563 int res1 = 0 ;
11564 PyObject *swig_obj[1] ;
11565
11566 if (!args) SWIG_fail;
11567 swig_obj[0] = args;
11568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11569 if (!SWIG_IsOK(res1)) {
11570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11571 }
11572 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11573 {
11574 PyThreadState* __tstate = wxPyBeginAllowThreads();
11575 delete arg1;
d55e5bfc 11576
1bd55598
RD
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 resultobj = SWIG_Py_Void();
11581 return resultobj;
11582fail:
11583 return NULL;
d55e5bfc
RD
11584}
11585
11586
1bd55598
RD
11587SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11588 PyObject *resultobj = 0;
11589 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11590 void *argp1 = 0 ;
11591 int res1 = 0 ;
11592 PyObject *swig_obj[1] ;
11593
11594 if (!args) SWIG_fail;
11595 swig_obj[0] = args;
11596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11597 if (!SWIG_IsOK(res1)) {
11598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11599 }
11600 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 (arg1)->Init();
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_Py_Void();
11608 return resultobj;
11609fail:
11610 return NULL;
11611}
11612
11613
11614SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj = 0;
11616 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11617 wxFont *arg2 = 0 ;
11618 void *argp1 = 0 ;
11619 int res1 = 0 ;
11620 void *argp2 = 0 ;
11621 int res2 = 0 ;
11622 PyObject * obj0 = 0 ;
11623 PyObject * obj1 = 0 ;
11624 char * kwnames[] = {
11625 (char *) "self",(char *) "font", NULL
11626 };
11627
11628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11630 if (!SWIG_IsOK(res1)) {
11631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11632 }
11633 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11635 if (!SWIG_IsOK(res2)) {
11636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11637 }
11638 if (!argp2) {
11639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11640 }
11641 arg2 = reinterpret_cast< wxFont * >(argp2);
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 (arg1)->InitFromFont((wxFont const &)*arg2);
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 resultobj = SWIG_Py_Void();
11649 return resultobj;
11650fail:
11651 return NULL;
d55e5bfc
RD
11652}
11653
11654
1bd55598
RD
11655SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11656 PyObject *resultobj = 0;
11657 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11658 int result;
11659 void *argp1 = 0 ;
11660 int res1 = 0 ;
11661 PyObject *swig_obj[1] ;
11662
11663 if (!args) SWIG_fail;
11664 swig_obj[0] = args;
11665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11666 if (!SWIG_IsOK(res1)) {
11667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11668 }
11669 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 resultobj = SWIG_From_int(static_cast< int >(result));
11677 return resultobj;
11678fail:
11679 return NULL;
d55e5bfc
RD
11680}
11681
11682
1bd55598
RD
11683SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 PyObject *resultobj = 0;
11685 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11686 wxFontStyle result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 PyObject *swig_obj[1] ;
11690
11691 if (!args) SWIG_fail;
11692 swig_obj[0] = args;
11693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11694 if (!SWIG_IsOK(res1)) {
11695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11696 }
11697 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 resultobj = SWIG_From_int(static_cast< int >(result));
11705 return resultobj;
11706fail:
11707 return NULL;
d55e5bfc
RD
11708}
11709
11710
1bd55598
RD
11711SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11712 PyObject *resultobj = 0;
11713 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11714 wxFontWeight result;
11715 void *argp1 = 0 ;
11716 int res1 = 0 ;
11717 PyObject *swig_obj[1] ;
11718
11719 if (!args) SWIG_fail;
11720 swig_obj[0] = args;
11721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11722 if (!SWIG_IsOK(res1)) {
11723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11724 }
11725 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 resultobj = SWIG_From_int(static_cast< int >(result));
11733 return resultobj;
11734fail:
11735 return NULL;
d55e5bfc
RD
11736}
11737
11738
1bd55598
RD
11739SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11740 PyObject *resultobj = 0;
11741 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11742 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11752 }
11753 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 {
11761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11762 }
11763 return resultobj;
11764fail:
11765 return NULL;
d55e5bfc
RD
11766}
11767
11768
1bd55598
RD
11769SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11770 PyObject *resultobj = 0;
11771 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11772 wxString result;
11773 void *argp1 = 0 ;
11774 int res1 = 0 ;
11775 PyObject *swig_obj[1] ;
11776
11777 if (!args) SWIG_fail;
11778 swig_obj[0] = args;
11779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11780 if (!SWIG_IsOK(res1)) {
11781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11782 }
11783 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 {
11791#if wxUSE_UNICODE
11792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11793#else
11794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11795#endif
11796 }
11797 return resultobj;
11798fail:
11799 return NULL;
d55e5bfc
RD
11800}
11801
11802
1bd55598
RD
11803SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11804 PyObject *resultobj = 0;
11805 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11806 wxFontFamily result;
11807 void *argp1 = 0 ;
11808 int res1 = 0 ;
11809 PyObject *swig_obj[1] ;
11810
11811 if (!args) SWIG_fail;
11812 swig_obj[0] = args;
11813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11814 if (!SWIG_IsOK(res1)) {
11815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11816 }
11817 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 resultobj = SWIG_From_int(static_cast< int >(result));
11825 return resultobj;
11826fail:
11827 return NULL;
d55e5bfc
RD
11828}
11829
11830
1bd55598
RD
11831SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11832 PyObject *resultobj = 0;
11833 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11834 wxFontEncoding result;
11835 void *argp1 = 0 ;
11836 int res1 = 0 ;
11837 PyObject *swig_obj[1] ;
11838
11839 if (!args) SWIG_fail;
11840 swig_obj[0] = args;
11841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11844 }
11845 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 resultobj = SWIG_From_int(static_cast< int >(result));
11853 return resultobj;
11854fail:
11855 return NULL;
11856}
11857
11858
11859SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj = 0;
11861 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11862 int arg2 ;
11863 void *argp1 = 0 ;
11864 int res1 = 0 ;
11865 int val2 ;
11866 int ecode2 = 0 ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 char * kwnames[] = {
11870 (char *) "self",(char *) "pointsize", NULL
11871 };
11872
11873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11875 if (!SWIG_IsOK(res1)) {
11876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11877 }
11878 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11879 ecode2 = SWIG_AsVal_int(obj1, &val2);
11880 if (!SWIG_IsOK(ecode2)) {
11881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11882 }
11883 arg2 = static_cast< int >(val2);
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 (arg1)->SetPointSize(arg2);
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 resultobj = SWIG_Py_Void();
11891 return resultobj;
11892fail:
11893 return NULL;
11894}
11895
11896
11897SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj = 0;
11899 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11900 wxFontStyle arg2 ;
11901 void *argp1 = 0 ;
11902 int res1 = 0 ;
11903 int val2 ;
11904 int ecode2 = 0 ;
11905 PyObject * obj0 = 0 ;
11906 PyObject * obj1 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "self",(char *) "style", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11915 }
11916 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11917 ecode2 = SWIG_AsVal_int(obj1, &val2);
11918 if (!SWIG_IsOK(ecode2)) {
11919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11920 }
11921 arg2 = static_cast< wxFontStyle >(val2);
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 (arg1)->SetStyle(arg2);
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_Py_Void();
11929 return resultobj;
11930fail:
11931 return NULL;
11932}
11933
11934
11935SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj = 0;
11937 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11938 wxFontWeight arg2 ;
11939 void *argp1 = 0 ;
11940 int res1 = 0 ;
11941 int val2 ;
11942 int ecode2 = 0 ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 char * kwnames[] = {
11946 (char *) "self",(char *) "weight", NULL
11947 };
11948
11949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11951 if (!SWIG_IsOK(res1)) {
11952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11953 }
11954 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11955 ecode2 = SWIG_AsVal_int(obj1, &val2);
11956 if (!SWIG_IsOK(ecode2)) {
11957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11958 }
11959 arg2 = static_cast< wxFontWeight >(val2);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->SetWeight(arg2);
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 return resultobj;
11968fail:
11969 return NULL;
11970}
11971
11972
11973SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11974 PyObject *resultobj = 0;
11975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11976 bool arg2 ;
11977 void *argp1 = 0 ;
11978 int res1 = 0 ;
11979 bool val2 ;
11980 int ecode2 = 0 ;
11981 PyObject * obj0 = 0 ;
11982 PyObject * obj1 = 0 ;
11983 char * kwnames[] = {
11984 (char *) "self",(char *) "underlined", NULL
11985 };
11986
11987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
11988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11989 if (!SWIG_IsOK(res1)) {
11990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11991 }
11992 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11993 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11994 if (!SWIG_IsOK(ecode2)) {
11995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
11996 }
11997 arg2 = static_cast< bool >(val2);
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 (arg1)->SetUnderlined(arg2);
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 resultobj = SWIG_Py_Void();
12005 return resultobj;
12006fail:
12007 return NULL;
12008}
12009
12010
12011SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj = 0;
12013 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12014 wxString arg2 ;
704eda0c 12015 bool result;
1bd55598
RD
12016 void *argp1 = 0 ;
12017 int res1 = 0 ;
12018 PyObject * obj0 = 0 ;
12019 PyObject * obj1 = 0 ;
12020 char * kwnames[] = {
12021 (char *) "self",(char *) "facename", NULL
12022 };
12023
12024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12026 if (!SWIG_IsOK(res1)) {
12027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12028 }
12029 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12030 {
12031 wxString* sptr = wxString_in_helper(obj1);
12032 if (sptr == NULL) SWIG_fail;
12033 arg2 = *sptr;
12034 delete sptr;
12035 }
12036 {
12037 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12038 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
704eda0c
RD
12042 {
12043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12044 }
1bd55598
RD
12045 return resultobj;
12046fail:
12047 return NULL;
12048}
12049
12050
12051SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12052 PyObject *resultobj = 0;
12053 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12054 wxFontFamily arg2 ;
12055 void *argp1 = 0 ;
12056 int res1 = 0 ;
12057 int val2 ;
12058 int ecode2 = 0 ;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 char * kwnames[] = {
12062 (char *) "self",(char *) "family", NULL
12063 };
12064
12065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12069 }
12070 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12071 ecode2 = SWIG_AsVal_int(obj1, &val2);
12072 if (!SWIG_IsOK(ecode2)) {
12073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12074 }
12075 arg2 = static_cast< wxFontFamily >(val2);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 (arg1)->SetFamily(arg2);
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = SWIG_Py_Void();
12083 return resultobj;
12084fail:
12085 return NULL;
12086}
12087
12088
12089SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12090 PyObject *resultobj = 0;
12091 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12092 wxFontEncoding arg2 ;
12093 void *argp1 = 0 ;
12094 int res1 = 0 ;
12095 int val2 ;
12096 int ecode2 = 0 ;
12097 PyObject * obj0 = 0 ;
12098 PyObject * obj1 = 0 ;
12099 char * kwnames[] = {
12100 (char *) "self",(char *) "encoding", NULL
12101 };
12102
12103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12105 if (!SWIG_IsOK(res1)) {
12106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12107 }
12108 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12109 ecode2 = SWIG_AsVal_int(obj1, &val2);
12110 if (!SWIG_IsOK(ecode2)) {
12111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12112 }
12113 arg2 = static_cast< wxFontEncoding >(val2);
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 (arg1)->SetEncoding(arg2);
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 resultobj = SWIG_Py_Void();
12121 return resultobj;
12122fail:
12123 return NULL;
12124}
12125
12126
12127SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12128 PyObject *resultobj = 0;
12129 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12130 wxString *arg2 = 0 ;
12131 bool result;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 bool temp2 = false ;
12135 PyObject * obj0 = 0 ;
12136 PyObject * obj1 = 0 ;
12137 char * kwnames[] = {
12138 (char *) "self",(char *) "s", NULL
12139 };
12140
12141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12145 }
12146 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12147 {
12148 arg2 = wxString_in_helper(obj1);
12149 if (arg2 == NULL) SWIG_fail;
12150 temp2 = true;
12151 }
12152 {
12153 PyThreadState* __tstate = wxPyBeginAllowThreads();
12154 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12155 wxPyEndAllowThreads(__tstate);
12156 if (PyErr_Occurred()) SWIG_fail;
12157 }
12158 {
12159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12160 }
12161 {
12162 if (temp2)
12163 delete arg2;
12164 }
12165 return resultobj;
12166fail:
12167 {
12168 if (temp2)
12169 delete arg2;
12170 }
12171 return NULL;
d55e5bfc
RD
12172}
12173
12174
1bd55598
RD
12175SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12176 PyObject *resultobj = 0;
12177 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12178 wxString result;
12179 void *argp1 = 0 ;
12180 int res1 = 0 ;
12181 PyObject *swig_obj[1] ;
12182
12183 if (!args) SWIG_fail;
12184 swig_obj[0] = args;
12185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12186 if (!SWIG_IsOK(res1)) {
12187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12188 }
12189 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12190 {
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 result = ((wxNativeFontInfo const *)arg1)->ToString();
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 {
12197#if wxUSE_UNICODE
12198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12199#else
12200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12201#endif
12202 }
12203 return resultobj;
12204fail:
12205 return NULL;
d55e5bfc
RD
12206}
12207
12208
1bd55598
RD
12209SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12212 wxString result;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 PyObject *swig_obj[1] ;
12216
12217 if (!args) SWIG_fail;
12218 swig_obj[0] = args;
12219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12222 }
12223 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = wxNativeFontInfo___str__(arg1);
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231#if wxUSE_UNICODE
12232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12233#else
12234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12235#endif
12236 }
12237 return resultobj;
12238fail:
12239 return NULL;
12240}
12241
12242
12243SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12244 PyObject *resultobj = 0;
12245 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12246 wxString *arg2 = 0 ;
12247 bool result;
12248 void *argp1 = 0 ;
12249 int res1 = 0 ;
12250 bool temp2 = false ;
12251 PyObject * obj0 = 0 ;
12252 PyObject * obj1 = 0 ;
12253 char * kwnames[] = {
12254 (char *) "self",(char *) "s", NULL
12255 };
12256
12257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12259 if (!SWIG_IsOK(res1)) {
12260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12261 }
12262 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12263 {
12264 arg2 = wxString_in_helper(obj1);
12265 if (arg2 == NULL) SWIG_fail;
12266 temp2 = true;
12267 }
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12276 }
12277 {
12278 if (temp2)
12279 delete arg2;
12280 }
12281 return resultobj;
12282fail:
12283 {
12284 if (temp2)
12285 delete arg2;
12286 }
12287 return NULL;
d55e5bfc
RD
12288}
12289
12290
1bd55598
RD
12291SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12292 PyObject *resultobj = 0;
12293 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12294 wxString result;
12295 void *argp1 = 0 ;
12296 int res1 = 0 ;
12297 PyObject *swig_obj[1] ;
12298
12299 if (!args) SWIG_fail;
12300 swig_obj[0] = args;
12301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12302 if (!SWIG_IsOK(res1)) {
12303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12304 }
12305 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12306 {
12307 PyThreadState* __tstate = wxPyBeginAllowThreads();
12308 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 {
36ed4f51 12313#if wxUSE_UNICODE
1bd55598 12314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12315#else
1bd55598 12316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12317#endif
1bd55598
RD
12318 }
12319 return resultobj;
12320fail:
12321 return NULL;
d55e5bfc
RD
12322}
12323
12324
1bd55598
RD
12325SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12326 PyObject *obj;
12327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12328 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12329 return SWIG_Py_Void();
d55e5bfc
RD
12330}
12331
1bd55598
RD
12332SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 return SWIG_Python_InitShadowInstance(args);
12334}
d55e5bfc 12335
1bd55598
RD
12336SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12337 PyObject *resultobj = 0;
12338 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12339 wxString *arg2 = (wxString *) 0 ;
12340 void *argp1 = 0 ;
12341 int res1 = 0 ;
12342 bool temp2 = false ;
12343 PyObject *swig_obj[2] ;
12344
12345 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12347 if (!SWIG_IsOK(res1)) {
12348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12349 }
12350 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12351 {
12352 arg2 = wxString_in_helper(swig_obj[1]);
12353 if (arg2 == NULL) SWIG_fail;
12354 temp2 = true;
12355 }
12356 if (arg1) (arg1)->facename = *arg2;
12357
12358 resultobj = SWIG_Py_Void();
12359 {
12360 if (temp2)
12361 delete arg2;
12362 }
12363 return resultobj;
12364fail:
12365 {
12366 if (temp2)
12367 delete arg2;
12368 }
12369 return NULL;
d55e5bfc
RD
12370}
12371
12372
1bd55598
RD
12373SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12374 PyObject *resultobj = 0;
12375 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12376 wxString *result = 0 ;
12377 void *argp1 = 0 ;
12378 int res1 = 0 ;
12379 PyObject *swig_obj[1] ;
12380
12381 if (!args) SWIG_fail;
12382 swig_obj[0] = args;
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_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12386 }
12387 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12388 result = (wxString *)& ((arg1)->facename);
12389 {
12390#if wxUSE_UNICODE
12391 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12392#else
12393 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12394#endif
12395 }
12396 return resultobj;
12397fail:
12398 return NULL;
d55e5bfc
RD
12399}
12400
12401
1bd55598
RD
12402SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12403 PyObject *resultobj = 0;
12404 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12405 wxFontEncoding arg2 ;
12406 void *argp1 = 0 ;
12407 int res1 = 0 ;
12408 int val2 ;
12409 int ecode2 = 0 ;
12410 PyObject *swig_obj[2] ;
12411
12412 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12416 }
12417 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12418 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12419 if (!SWIG_IsOK(ecode2)) {
12420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12421 }
12422 arg2 = static_cast< wxFontEncoding >(val2);
12423 if (arg1) (arg1)->encoding = arg2;
12424
12425 resultobj = SWIG_Py_Void();
12426 return resultobj;
12427fail:
12428 return NULL;
d55e5bfc
RD
12429}
12430
12431
1bd55598
RD
12432SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12433 PyObject *resultobj = 0;
12434 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12435 wxFontEncoding result;
12436 void *argp1 = 0 ;
12437 int res1 = 0 ;
12438 PyObject *swig_obj[1] ;
12439
12440 if (!args) SWIG_fail;
12441 swig_obj[0] = args;
12442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12443 if (!SWIG_IsOK(res1)) {
12444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12445 }
12446 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12447 result = (wxFontEncoding) ((arg1)->encoding);
12448 resultobj = SWIG_From_int(static_cast< int >(result));
12449 return resultobj;
12450fail:
12451 return NULL;
d07096ad
RD
12452}
12453
12454
1bd55598
RD
12455SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12456 PyObject *resultobj = 0;
12457 wxNativeEncodingInfo *result = 0 ;
12458
12459 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12467 return resultobj;
12468fail:
12469 return NULL;
d55e5bfc
RD
12470}
12471
12472
1bd55598
RD
12473SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12474 PyObject *resultobj = 0;
12475 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 PyObject *swig_obj[1] ;
12479
12480 if (!args) SWIG_fail;
12481 swig_obj[0] = args;
12482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12485 }
12486 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 delete arg1;
d55e5bfc 12490
1bd55598
RD
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 resultobj = SWIG_Py_Void();
12495 return resultobj;
12496fail:
12497 return NULL;
12498}
12499
12500
12501SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12502 PyObject *resultobj = 0;
12503 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12504 wxString *arg2 = 0 ;
12505 bool result;
12506 void *argp1 = 0 ;
12507 int res1 = 0 ;
12508 bool temp2 = false ;
12509 PyObject * obj0 = 0 ;
12510 PyObject * obj1 = 0 ;
12511 char * kwnames[] = {
12512 (char *) "self",(char *) "s", NULL
12513 };
12514
12515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12517 if (!SWIG_IsOK(res1)) {
12518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12519 }
12520 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12521 {
12522 arg2 = wxString_in_helper(obj1);
12523 if (arg2 == NULL) SWIG_fail;
12524 temp2 = true;
12525 }
12526 {
12527 PyThreadState* __tstate = wxPyBeginAllowThreads();
12528 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12529 wxPyEndAllowThreads(__tstate);
12530 if (PyErr_Occurred()) SWIG_fail;
12531 }
12532 {
12533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12534 }
12535 {
12536 if (temp2)
12537 delete arg2;
12538 }
12539 return resultobj;
12540fail:
12541 {
12542 if (temp2)
12543 delete arg2;
12544 }
12545 return NULL;
d55e5bfc
RD
12546}
12547
12548
1bd55598
RD
12549SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12550 PyObject *resultobj = 0;
12551 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12552 wxString result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12562 }
12563 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 {
12571#if wxUSE_UNICODE
12572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12573#else
12574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12575#endif
12576 }
12577 return resultobj;
12578fail:
12579 return NULL;
d55e5bfc
RD
12580}
12581
12582
1bd55598
RD
12583SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12584 PyObject *obj;
12585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12586 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12587 return SWIG_Py_Void();
d55e5bfc
RD
12588}
12589
1bd55598
RD
12590SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12591 return SWIG_Python_InitShadowInstance(args);
12592}
d55e5bfc 12593
1bd55598
RD
12594SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12595 PyObject *resultobj = 0;
12596 wxFontEncoding arg1 ;
12597 wxNativeEncodingInfo *result = 0 ;
12598 int val1 ;
12599 int ecode1 = 0 ;
12600 PyObject * obj0 = 0 ;
12601 char * kwnames[] = {
12602 (char *) "encoding", NULL
12603 };
12604
12605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12606 ecode1 = SWIG_AsVal_int(obj0, &val1);
12607 if (!SWIG_IsOK(ecode1)) {
12608 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12609 }
12610 arg1 = static_cast< wxFontEncoding >(val1);
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12618 return resultobj;
12619fail:
12620 return NULL;
12621}
12622
12623
12624SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj = 0;
12626 wxNativeEncodingInfo *arg1 = 0 ;
12627 bool result;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 PyObject * obj0 = 0 ;
12631 char * kwnames[] = {
12632 (char *) "info", NULL
12633 };
12634
12635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12636 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12637 if (!SWIG_IsOK(res1)) {
12638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12639 }
12640 if (!argp1) {
12641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12642 }
12643 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 {
12651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12652 }
12653 return resultobj;
12654fail:
12655 return NULL;
d55e5bfc
RD
12656}
12657
12658
1bd55598
RD
12659SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12660 PyObject *resultobj = 0;
12661 wxFontMapper *result = 0 ;
12662
12663 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12664 {
12665 PyThreadState* __tstate = wxPyBeginAllowThreads();
12666 result = (wxFontMapper *)new wxFontMapper();
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12671 return resultobj;
12672fail:
12673 return NULL;
d55e5bfc
RD
12674}
12675
12676
1bd55598
RD
12677SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12678 PyObject *resultobj = 0;
12679 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12680 void *argp1 = 0 ;
12681 int res1 = 0 ;
12682 PyObject *swig_obj[1] ;
12683
12684 if (!args) SWIG_fail;
12685 swig_obj[0] = args;
12686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12687 if (!SWIG_IsOK(res1)) {
12688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12689 }
12690 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 delete arg1;
d55e5bfc 12694
1bd55598
RD
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 resultobj = SWIG_Py_Void();
12699 return resultobj;
12700fail:
12701 return NULL;
d55e5bfc
RD
12702}
12703
12704
1bd55598
RD
12705SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12706 PyObject *resultobj = 0;
12707 wxFontMapper *result = 0 ;
12708
12709 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12710 {
12711 PyThreadState* __tstate = wxPyBeginAllowThreads();
12712 result = (wxFontMapper *)wxFontMapper::Get();
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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj = 0;
12725 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12726 wxFontMapper *result = 0 ;
12727 void *argp1 = 0 ;
12728 int res1 = 0 ;
12729 PyObject * obj0 = 0 ;
12730 char * kwnames[] = {
12731 (char *) "mapper", NULL
12732 };
12733
12734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12736 if (!SWIG_IsOK(res1)) {
12737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12738 }
12739 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12747 return resultobj;
12748fail:
12749 return NULL;
12750}
12751
12752
12753SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj = 0;
12755 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12756 wxString *arg2 = 0 ;
12757 bool arg3 = (bool) true ;
12758 wxFontEncoding result;
12759 void *argp1 = 0 ;
12760 int res1 = 0 ;
12761 bool temp2 = false ;
12762 bool val3 ;
12763 int ecode3 = 0 ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 PyObject * obj2 = 0 ;
12767 char * kwnames[] = {
12768 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12769 };
12770
12771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12773 if (!SWIG_IsOK(res1)) {
12774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12775 }
12776 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12777 {
12778 arg2 = wxString_in_helper(obj1);
12779 if (arg2 == NULL) SWIG_fail;
12780 temp2 = true;
12781 }
12782 if (obj2) {
12783 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12784 if (!SWIG_IsOK(ecode3)) {
12785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12786 }
12787 arg3 = static_cast< bool >(val3);
12788 }
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 resultobj = SWIG_From_int(static_cast< int >(result));
12796 {
12797 if (temp2)
12798 delete arg2;
12799 }
12800 return resultobj;
12801fail:
12802 {
12803 if (temp2)
12804 delete arg2;
12805 }
12806 return NULL;
d55e5bfc
RD
12807}
12808
12809
1bd55598
RD
12810SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12811 PyObject *resultobj = 0;
12812 size_t result;
12813
12814 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12822 return resultobj;
12823fail:
12824 return NULL;
12825}
12826
12827
12828SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj = 0;
12830 size_t arg1 ;
12831 wxFontEncoding result;
12832 size_t val1 ;
12833 int ecode1 = 0 ;
12834 PyObject * obj0 = 0 ;
12835 char * kwnames[] = {
12836 (char *) "n", NULL
12837 };
12838
12839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12840 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12841 if (!SWIG_IsOK(ecode1)) {
12842 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12843 }
12844 arg1 = static_cast< size_t >(val1);
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 resultobj = SWIG_From_int(static_cast< int >(result));
12852 return resultobj;
12853fail:
12854 return NULL;
12855}
12856
12857
12858SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxFontEncoding arg1 ;
12861 wxString result;
12862 int val1 ;
12863 int ecode1 = 0 ;
12864 PyObject * obj0 = 0 ;
12865 char * kwnames[] = {
12866 (char *) "encoding", NULL
12867 };
12868
12869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12870 ecode1 = SWIG_AsVal_int(obj0, &val1);
12871 if (!SWIG_IsOK(ecode1)) {
12872 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12873 }
12874 arg1 = static_cast< wxFontEncoding >(val1);
12875 {
12876 PyThreadState* __tstate = wxPyBeginAllowThreads();
12877 result = wxFontMapper::GetEncodingName(arg1);
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 {
12882#if wxUSE_UNICODE
12883 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12884#else
12885 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12886#endif
12887 }
12888 return resultobj;
12889fail:
12890 return NULL;
d55e5bfc
RD
12891}
12892
12893
1bd55598
RD
12894SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj = 0;
12896 wxFontEncoding arg1 ;
12897 wxString result;
12898 int val1 ;
12899 int ecode1 = 0 ;
12900 PyObject * obj0 = 0 ;
12901 char * kwnames[] = {
12902 (char *) "encoding", NULL
12903 };
12904
12905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12906 ecode1 = SWIG_AsVal_int(obj0, &val1);
12907 if (!SWIG_IsOK(ecode1)) {
12908 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12909 }
12910 arg1 = static_cast< wxFontEncoding >(val1);
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = wxFontMapper::GetEncodingDescription(arg1);
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 {
12918#if wxUSE_UNICODE
12919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12920#else
12921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12922#endif
12923 }
12924 return resultobj;
12925fail:
12926 return NULL;
d55e5bfc
RD
12927}
12928
12929
1bd55598
RD
12930SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12931 PyObject *resultobj = 0;
12932 wxString *arg1 = 0 ;
12933 wxFontEncoding result;
12934 bool temp1 = false ;
12935 PyObject * obj0 = 0 ;
12936 char * kwnames[] = {
12937 (char *) "name", NULL
12938 };
12939
12940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12941 {
12942 arg1 = wxString_in_helper(obj0);
12943 if (arg1 == NULL) SWIG_fail;
12944 temp1 = true;
12945 }
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
12948 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12949 wxPyEndAllowThreads(__tstate);
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 resultobj = SWIG_From_int(static_cast< int >(result));
12953 {
12954 if (temp1)
12955 delete arg1;
12956 }
12957 return resultobj;
12958fail:
12959 {
12960 if (temp1)
12961 delete arg1;
12962 }
12963 return NULL;
d55e5bfc
RD
12964}
12965
12966
1bd55598
RD
12967SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj = 0;
12969 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12970 wxString *arg2 = 0 ;
12971 void *argp1 = 0 ;
12972 int res1 = 0 ;
12973 bool temp2 = false ;
12974 PyObject * obj0 = 0 ;
12975 PyObject * obj1 = 0 ;
12976 char * kwnames[] = {
12977 (char *) "self",(char *) "prefix", NULL
12978 };
12979
12980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12982 if (!SWIG_IsOK(res1)) {
12983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12984 }
12985 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12986 {
12987 arg2 = wxString_in_helper(obj1);
12988 if (arg2 == NULL) SWIG_fail;
12989 temp2 = true;
12990 }
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 (arg1)->SetConfigPath((wxString const &)*arg2);
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 resultobj = SWIG_Py_Void();
12998 {
12999 if (temp2)
13000 delete arg2;
13001 }
13002 return resultobj;
13003fail:
13004 {
13005 if (temp2)
13006 delete arg2;
13007 }
13008 return NULL;
13009}
13010
13011
13012SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13013 PyObject *resultobj = 0;
13014 wxString result;
13015
13016 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13017 {
13018 PyThreadState* __tstate = wxPyBeginAllowThreads();
13019 result = wxFontMapper::GetDefaultConfigPath();
13020 wxPyEndAllowThreads(__tstate);
13021 if (PyErr_Occurred()) SWIG_fail;
13022 }
13023 {
13024#if wxUSE_UNICODE
13025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13026#else
13027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13028#endif
13029 }
13030 return resultobj;
13031fail:
13032 return NULL;
13033}
13034
13035
13036SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj = 0;
13038 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13039 wxFontEncoding arg2 ;
13040 wxString const &arg3_defvalue = wxPyEmptyString ;
13041 wxString *arg3 = (wxString *) &arg3_defvalue ;
13042 bool arg4 = (bool) true ;
13043 PyObject *result = 0 ;
13044 void *argp1 = 0 ;
13045 int res1 = 0 ;
13046 int val2 ;
13047 int ecode2 = 0 ;
13048 bool temp3 = false ;
13049 bool val4 ;
13050 int ecode4 = 0 ;
13051 PyObject * obj0 = 0 ;
13052 PyObject * obj1 = 0 ;
13053 PyObject * obj2 = 0 ;
13054 PyObject * obj3 = 0 ;
13055 char * kwnames[] = {
13056 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13057 };
13058
13059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13061 if (!SWIG_IsOK(res1)) {
13062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13063 }
13064 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13065 ecode2 = SWIG_AsVal_int(obj1, &val2);
13066 if (!SWIG_IsOK(ecode2)) {
13067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13068 }
13069 arg2 = static_cast< wxFontEncoding >(val2);
13070 if (obj2) {
36ed4f51 13071 {
1bd55598
RD
13072 arg3 = wxString_in_helper(obj2);
13073 if (arg3 == NULL) SWIG_fail;
13074 temp3 = true;
36ed4f51 13075 }
1bd55598
RD
13076 }
13077 if (obj3) {
13078 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13079 if (!SWIG_IsOK(ecode4)) {
13080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13081 }
13082 arg4 = static_cast< bool >(val4);
13083 }
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 resultobj = result;
13091 {
13092 if (temp3)
13093 delete arg3;
13094 }
13095 return resultobj;
13096fail:
13097 {
13098 if (temp3)
13099 delete arg3;
13100 }
13101 return NULL;
13102}
13103
13104
13105SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj = 0;
13107 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13108 wxFontEncoding arg2 ;
13109 wxString const &arg3_defvalue = wxPyEmptyString ;
13110 wxString *arg3 = (wxString *) &arg3_defvalue ;
13111 bool result;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 int val2 ;
13115 int ecode2 = 0 ;
13116 bool temp3 = false ;
13117 PyObject * obj0 = 0 ;
13118 PyObject * obj1 = 0 ;
13119 PyObject * obj2 = 0 ;
13120 char * kwnames[] = {
13121 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13122 };
13123
13124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13126 if (!SWIG_IsOK(res1)) {
13127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13128 }
13129 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13130 ecode2 = SWIG_AsVal_int(obj1, &val2);
13131 if (!SWIG_IsOK(ecode2)) {
13132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13133 }
13134 arg2 = static_cast< wxFontEncoding >(val2);
13135 if (obj2) {
36ed4f51 13136 {
1bd55598
RD
13137 arg3 = wxString_in_helper(obj2);
13138 if (arg3 == NULL) SWIG_fail;
13139 temp3 = true;
36ed4f51 13140 }
1bd55598
RD
13141 }
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13145 wxPyEndAllowThreads(__tstate);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 {
13149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13150 }
13151 {
13152 if (temp3)
13153 delete arg3;
13154 }
13155 return resultobj;
13156fail:
13157 {
13158 if (temp3)
13159 delete arg3;
13160 }
13161 return NULL;
13162}
13163
13164
13165SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13166 PyObject *resultobj = 0;
13167 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13168 wxWindow *arg2 = (wxWindow *) 0 ;
13169 void *argp1 = 0 ;
13170 int res1 = 0 ;
13171 void *argp2 = 0 ;
13172 int res2 = 0 ;
13173 PyObject * obj0 = 0 ;
13174 PyObject * obj1 = 0 ;
13175 char * kwnames[] = {
13176 (char *) "self",(char *) "parent", NULL
13177 };
13178
13179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13181 if (!SWIG_IsOK(res1)) {
13182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13183 }
13184 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13185 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13186 if (!SWIG_IsOK(res2)) {
13187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13188 }
13189 arg2 = reinterpret_cast< wxWindow * >(argp2);
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 (arg1)->SetDialogParent(arg2);
13193 wxPyEndAllowThreads(__tstate);
13194 if (PyErr_Occurred()) SWIG_fail;
13195 }
13196 resultobj = SWIG_Py_Void();
13197 return resultobj;
13198fail:
13199 return NULL;
13200}
13201
13202
13203SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13204 PyObject *resultobj = 0;
13205 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13206 wxString *arg2 = 0 ;
13207 void *argp1 = 0 ;
13208 int res1 = 0 ;
13209 bool temp2 = false ;
13210 PyObject * obj0 = 0 ;
13211 PyObject * obj1 = 0 ;
13212 char * kwnames[] = {
13213 (char *) "self",(char *) "title", NULL
13214 };
13215
13216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13220 }
13221 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13222 {
13223 arg2 = wxString_in_helper(obj1);
13224 if (arg2 == NULL) SWIG_fail;
13225 temp2 = true;
13226 }
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 (arg1)->SetDialogTitle((wxString const &)*arg2);
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 resultobj = SWIG_Py_Void();
13234 {
13235 if (temp2)
13236 delete arg2;
13237 }
13238 return resultobj;
13239fail:
13240 {
13241 if (temp2)
13242 delete arg2;
13243 }
13244 return NULL;
13245}
13246
13247
13248SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13249 PyObject *obj;
13250 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13251 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13252 return SWIG_Py_Void();
13253}
13254
13255SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13256 return SWIG_Python_InitShadowInstance(args);
13257}
13258
13259SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13260 PyObject *resultobj = 0;
13261 int arg1 ;
13262 int arg2 ;
13263 int arg3 ;
13264 int arg4 ;
13265 bool arg5 = (bool) false ;
13266 wxString const &arg6_defvalue = wxPyEmptyString ;
13267 wxString *arg6 = (wxString *) &arg6_defvalue ;
13268 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13269 wxFont *result = 0 ;
13270 int val1 ;
13271 int ecode1 = 0 ;
13272 int val2 ;
13273 int ecode2 = 0 ;
13274 int val3 ;
13275 int ecode3 = 0 ;
13276 int val4 ;
13277 int ecode4 = 0 ;
13278 bool val5 ;
13279 int ecode5 = 0 ;
13280 bool temp6 = false ;
13281 int val7 ;
13282 int ecode7 = 0 ;
13283 PyObject * obj0 = 0 ;
13284 PyObject * obj1 = 0 ;
13285 PyObject * obj2 = 0 ;
13286 PyObject * obj3 = 0 ;
13287 PyObject * obj4 = 0 ;
13288 PyObject * obj5 = 0 ;
13289 PyObject * obj6 = 0 ;
13290 char * kwnames[] = {
13291 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13292 };
13293
13294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13295 ecode1 = SWIG_AsVal_int(obj0, &val1);
13296 if (!SWIG_IsOK(ecode1)) {
13297 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13298 }
13299 arg1 = static_cast< int >(val1);
13300 ecode2 = SWIG_AsVal_int(obj1, &val2);
13301 if (!SWIG_IsOK(ecode2)) {
13302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13303 }
13304 arg2 = static_cast< int >(val2);
13305 ecode3 = SWIG_AsVal_int(obj2, &val3);
13306 if (!SWIG_IsOK(ecode3)) {
13307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13308 }
13309 arg3 = static_cast< int >(val3);
13310 ecode4 = SWIG_AsVal_int(obj3, &val4);
13311 if (!SWIG_IsOK(ecode4)) {
13312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13313 }
13314 arg4 = static_cast< int >(val4);
13315 if (obj4) {
13316 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13317 if (!SWIG_IsOK(ecode5)) {
13318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13319 }
13320 arg5 = static_cast< bool >(val5);
13321 }
13322 if (obj5) {
d55e5bfc 13323 {
1bd55598
RD
13324 arg6 = wxString_in_helper(obj5);
13325 if (arg6 == NULL) SWIG_fail;
13326 temp6 = true;
d55e5bfc 13327 }
1bd55598
RD
13328 }
13329 if (obj6) {
13330 ecode7 = SWIG_AsVal_int(obj6, &val7);
13331 if (!SWIG_IsOK(ecode7)) {
13332 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13333 }
13334 arg7 = static_cast< wxFontEncoding >(val7);
13335 }
13336 {
13337 if (!wxPyCheckForApp()) SWIG_fail;
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13344 {
13345 if (temp6)
13346 delete arg6;
13347 }
13348 return resultobj;
13349fail:
13350 {
13351 if (temp6)
13352 delete arg6;
13353 }
13354 return NULL;
d55e5bfc
RD
13355}
13356
13357
1bd55598
RD
13358SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13359 PyObject *resultobj = 0;
13360 wxFont *arg1 = (wxFont *) 0 ;
13361 void *argp1 = 0 ;
13362 int res1 = 0 ;
13363 PyObject *swig_obj[1] ;
13364
13365 if (!args) SWIG_fail;
13366 swig_obj[0] = args;
13367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13368 if (!SWIG_IsOK(res1)) {
13369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13370 }
13371 arg1 = reinterpret_cast< wxFont * >(argp1);
13372 {
13373 PyThreadState* __tstate = wxPyBeginAllowThreads();
13374 delete arg1;
d55e5bfc 13375
1bd55598
RD
13376 wxPyEndAllowThreads(__tstate);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 resultobj = SWIG_Py_Void();
13380 return resultobj;
13381fail:
13382 return NULL;
13383}
13384
13385
13386SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13387 PyObject *resultobj = 0;
13388 wxNativeFontInfo *arg1 = 0 ;
13389 wxFont *result = 0 ;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject * obj0 = 0 ;
13393 char * kwnames[] = {
13394 (char *) "info", NULL
13395 };
13396
13397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13399 if (!SWIG_IsOK(res1)) {
13400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13401 }
13402 if (!argp1) {
13403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13404 }
13405 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13406 {
13407 if (!wxPyCheckForApp()) SWIG_fail;
13408 PyThreadState* __tstate = wxPyBeginAllowThreads();
13409 result = (wxFont *)new wxFont((wxNativeFontInfo 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 return resultobj;
13415fail:
13416 return NULL;
d55e5bfc
RD
13417}
13418
13419
1bd55598
RD
13420SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj = 0;
13422 wxString *arg1 = 0 ;
13423 wxFont *result = 0 ;
13424 bool temp1 = false ;
13425 PyObject * obj0 = 0 ;
13426 char * kwnames[] = {
13427 (char *) "info", NULL
13428 };
13429
13430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13431 {
13432 arg1 = wxString_in_helper(obj0);
13433 if (arg1 == NULL) SWIG_fail;
13434 temp1 = true;
13435 }
13436 {
13437 if (!wxPyCheckForApp()) SWIG_fail;
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13444 {
13445 if (temp1)
13446 delete arg1;
13447 }
13448 return resultobj;
13449fail:
13450 {
13451 if (temp1)
13452 delete arg1;
13453 }
13454 return NULL;
13455}
13456
13457
13458SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13459 PyObject *resultobj = 0;
13460 int arg1 ;
13461 wxFontFamily arg2 ;
13462 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13463 wxString const &arg4_defvalue = wxPyEmptyString ;
13464 wxString *arg4 = (wxString *) &arg4_defvalue ;
13465 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13466 wxFont *result = 0 ;
13467 int val1 ;
13468 int ecode1 = 0 ;
13469 int val2 ;
13470 int ecode2 = 0 ;
13471 int val3 ;
13472 int ecode3 = 0 ;
13473 bool temp4 = false ;
13474 int val5 ;
13475 int ecode5 = 0 ;
13476 PyObject * obj0 = 0 ;
13477 PyObject * obj1 = 0 ;
13478 PyObject * obj2 = 0 ;
13479 PyObject * obj3 = 0 ;
13480 PyObject * obj4 = 0 ;
13481 char * kwnames[] = {
13482 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13483 };
13484
13485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13486 ecode1 = SWIG_AsVal_int(obj0, &val1);
13487 if (!SWIG_IsOK(ecode1)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13489 }
13490 arg1 = static_cast< int >(val1);
13491 ecode2 = SWIG_AsVal_int(obj1, &val2);
13492 if (!SWIG_IsOK(ecode2)) {
13493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13494 }
13495 arg2 = static_cast< wxFontFamily >(val2);
13496 if (obj2) {
13497 ecode3 = SWIG_AsVal_int(obj2, &val3);
13498 if (!SWIG_IsOK(ecode3)) {
13499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13500 }
13501 arg3 = static_cast< int >(val3);
13502 }
13503 if (obj3) {
36ed4f51 13504 {
1bd55598
RD
13505 arg4 = wxString_in_helper(obj3);
13506 if (arg4 == NULL) SWIG_fail;
13507 temp4 = true;
36ed4f51 13508 }
1bd55598
RD
13509 }
13510 if (obj4) {
13511 ecode5 = SWIG_AsVal_int(obj4, &val5);
13512 if (!SWIG_IsOK(ecode5)) {
13513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13514 }
13515 arg5 = static_cast< wxFontEncoding >(val5);
13516 }
13517 {
13518 if (!wxPyCheckForApp()) SWIG_fail;
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13525 {
13526 if (temp4)
13527 delete arg4;
13528 }
13529 return resultobj;
13530fail:
13531 {
13532 if (temp4)
13533 delete arg4;
13534 }
13535 return NULL;
13536}
13537
13538
13539SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13540 PyObject *resultobj = 0;
13541 wxSize *arg1 = 0 ;
13542 int arg2 ;
13543 int arg3 ;
13544 int arg4 ;
13545 bool arg5 = (bool) false ;
13546 wxString const &arg6_defvalue = wxEmptyString ;
13547 wxString *arg6 = (wxString *) &arg6_defvalue ;
13548 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13549 wxFont *result = 0 ;
13550 wxSize temp1 ;
13551 int val2 ;
13552 int ecode2 = 0 ;
13553 int val3 ;
13554 int ecode3 = 0 ;
13555 int val4 ;
13556 int ecode4 = 0 ;
13557 bool val5 ;
13558 int ecode5 = 0 ;
13559 bool temp6 = false ;
13560 int val7 ;
13561 int ecode7 = 0 ;
13562 PyObject * obj0 = 0 ;
13563 PyObject * obj1 = 0 ;
13564 PyObject * obj2 = 0 ;
13565 PyObject * obj3 = 0 ;
13566 PyObject * obj4 = 0 ;
13567 PyObject * obj5 = 0 ;
13568 PyObject * obj6 = 0 ;
13569 char * kwnames[] = {
13570 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13571 };
13572
13573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13574 {
13575 arg1 = &temp1;
13576 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13577 }
13578 ecode2 = SWIG_AsVal_int(obj1, &val2);
13579 if (!SWIG_IsOK(ecode2)) {
13580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13581 }
13582 arg2 = static_cast< int >(val2);
13583 ecode3 = SWIG_AsVal_int(obj2, &val3);
13584 if (!SWIG_IsOK(ecode3)) {
13585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13586 }
13587 arg3 = static_cast< int >(val3);
13588 ecode4 = SWIG_AsVal_int(obj3, &val4);
13589 if (!SWIG_IsOK(ecode4)) {
13590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13591 }
13592 arg4 = static_cast< int >(val4);
13593 if (obj4) {
13594 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13595 if (!SWIG_IsOK(ecode5)) {
13596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13597 }
13598 arg5 = static_cast< bool >(val5);
13599 }
13600 if (obj5) {
d55e5bfc 13601 {
1bd55598
RD
13602 arg6 = wxString_in_helper(obj5);
13603 if (arg6 == NULL) SWIG_fail;
13604 temp6 = true;
d55e5bfc 13605 }
1bd55598
RD
13606 }
13607 if (obj6) {
13608 ecode7 = SWIG_AsVal_int(obj6, &val7);
13609 if (!SWIG_IsOK(ecode7)) {
13610 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13611 }
13612 arg7 = static_cast< wxFontEncoding >(val7);
13613 }
13614 {
13615 if (!wxPyCheckForApp()) SWIG_fail;
13616 PyThreadState* __tstate = wxPyBeginAllowThreads();
13617 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13618 wxPyEndAllowThreads(__tstate);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 }
13621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13622 {
13623 if (temp6)
13624 delete arg6;
13625 }
13626 return resultobj;
13627fail:
13628 {
13629 if (temp6)
13630 delete arg6;
13631 }
13632 return NULL;
13633}
13634
13635
13636SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13637 PyObject *resultobj = 0;
13638 wxSize *arg1 = 0 ;
13639 wxFontFamily arg2 ;
13640 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13641 wxString const &arg4_defvalue = wxEmptyString ;
13642 wxString *arg4 = (wxString *) &arg4_defvalue ;
13643 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13644 wxFont *result = 0 ;
13645 wxSize temp1 ;
13646 int val2 ;
13647 int ecode2 = 0 ;
13648 int val3 ;
13649 int ecode3 = 0 ;
13650 bool temp4 = false ;
13651 int val5 ;
13652 int ecode5 = 0 ;
13653 PyObject * obj0 = 0 ;
13654 PyObject * obj1 = 0 ;
13655 PyObject * obj2 = 0 ;
13656 PyObject * obj3 = 0 ;
13657 PyObject * obj4 = 0 ;
13658 char * kwnames[] = {
13659 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13660 };
13661
13662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13663 {
13664 arg1 = &temp1;
13665 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13666 }
13667 ecode2 = SWIG_AsVal_int(obj1, &val2);
13668 if (!SWIG_IsOK(ecode2)) {
13669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13670 }
13671 arg2 = static_cast< wxFontFamily >(val2);
13672 if (obj2) {
13673 ecode3 = SWIG_AsVal_int(obj2, &val3);
13674 if (!SWIG_IsOK(ecode3)) {
13675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13676 }
13677 arg3 = static_cast< int >(val3);
13678 }
13679 if (obj3) {
36ed4f51 13680 {
1bd55598
RD
13681 arg4 = wxString_in_helper(obj3);
13682 if (arg4 == NULL) SWIG_fail;
13683 temp4 = true;
36ed4f51 13684 }
1bd55598
RD
13685 }
13686 if (obj4) {
13687 ecode5 = SWIG_AsVal_int(obj4, &val5);
13688 if (!SWIG_IsOK(ecode5)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13690 }
13691 arg5 = static_cast< wxFontEncoding >(val5);
13692 }
13693 {
13694 if (!wxPyCheckForApp()) SWIG_fail;
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13701 {
13702 if (temp4)
13703 delete arg4;
13704 }
13705 return resultobj;
13706fail:
13707 {
13708 if (temp4)
13709 delete arg4;
13710 }
13711 return NULL;
d55e5bfc
RD
13712}
13713
13714
1bd55598
RD
13715SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13716 PyObject *resultobj = 0;
13717 wxFont *arg1 = (wxFont *) 0 ;
13718 bool result;
13719 void *argp1 = 0 ;
13720 int res1 = 0 ;
13721 PyObject *swig_obj[1] ;
13722
13723 if (!args) SWIG_fail;
13724 swig_obj[0] = args;
13725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13726 if (!SWIG_IsOK(res1)) {
13727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13728 }
13729 arg1 = reinterpret_cast< wxFont * >(argp1);
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 result = (bool)((wxFont const *)arg1)->Ok();
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 {
13737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13738 }
13739 return resultobj;
13740fail:
13741 return NULL;
13742}
13743
13744
13745SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13746 PyObject *resultobj = 0;
13747 wxFont *arg1 = (wxFont *) 0 ;
13748 wxFont *arg2 = (wxFont *) 0 ;
13749 bool result;
13750 void *argp1 = 0 ;
13751 int res1 = 0 ;
13752 void *argp2 = 0 ;
13753 int res2 = 0 ;
13754 PyObject * obj0 = 0 ;
13755 PyObject * obj1 = 0 ;
13756 char * kwnames[] = {
13757 (char *) "self",(char *) "other", NULL
13758 };
13759
13760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13762 if (!SWIG_IsOK(res1)) {
13763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13764 }
13765 arg1 = reinterpret_cast< wxFont * >(argp1);
13766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13767 if (!SWIG_IsOK(res2)) {
13768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13769 }
13770 arg2 = reinterpret_cast< wxFont * >(argp2);
13771 {
13772 PyThreadState* __tstate = wxPyBeginAllowThreads();
13773 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 {
13778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13779 }
13780 return resultobj;
13781fail:
13782 return NULL;
13783}
13784
13785
13786SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj = 0;
13788 wxFont *arg1 = (wxFont *) 0 ;
13789 wxFont *arg2 = (wxFont *) 0 ;
13790 bool result;
13791 void *argp1 = 0 ;
13792 int res1 = 0 ;
13793 void *argp2 = 0 ;
13794 int res2 = 0 ;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 char * kwnames[] = {
13798 (char *) "self",(char *) "other", NULL
13799 };
13800
13801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13803 if (!SWIG_IsOK(res1)) {
13804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13805 }
13806 arg1 = reinterpret_cast< wxFont * >(argp1);
13807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13808 if (!SWIG_IsOK(res2)) {
13809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13810 }
13811 arg2 = reinterpret_cast< wxFont * >(argp2);
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 {
13819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13820 }
13821 return resultobj;
13822fail:
13823 return NULL;
d55e5bfc
RD
13824}
13825
13826
1bd55598
RD
13827SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13828 PyObject *resultobj = 0;
13829 wxFont *arg1 = (wxFont *) 0 ;
13830 int result;
13831 void *argp1 = 0 ;
13832 int res1 = 0 ;
13833 PyObject *swig_obj[1] ;
13834
13835 if (!args) SWIG_fail;
13836 swig_obj[0] = args;
13837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13838 if (!SWIG_IsOK(res1)) {
13839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13840 }
13841 arg1 = reinterpret_cast< wxFont * >(argp1);
13842 {
13843 PyThreadState* __tstate = wxPyBeginAllowThreads();
13844 result = (int)((wxFont const *)arg1)->GetPointSize();
13845 wxPyEndAllowThreads(__tstate);
13846 if (PyErr_Occurred()) SWIG_fail;
13847 }
13848 resultobj = SWIG_From_int(static_cast< int >(result));
13849 return resultobj;
13850fail:
13851 return NULL;
d55e5bfc
RD
13852}
13853
13854
1bd55598
RD
13855SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13856 PyObject *resultobj = 0;
13857 wxFont *arg1 = (wxFont *) 0 ;
13858 wxSize result;
13859 void *argp1 = 0 ;
13860 int res1 = 0 ;
13861 PyObject *swig_obj[1] ;
13862
13863 if (!args) SWIG_fail;
13864 swig_obj[0] = args;
13865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13866 if (!SWIG_IsOK(res1)) {
13867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13868 }
13869 arg1 = reinterpret_cast< wxFont * >(argp1);
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 result = ((wxFont const *)arg1)->GetPixelSize();
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13877 return resultobj;
13878fail:
13879 return NULL;
d55e5bfc
RD
13880}
13881
13882
1bd55598
RD
13883SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13884 PyObject *resultobj = 0;
13885 wxFont *arg1 = (wxFont *) 0 ;
13886 bool 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_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13896 }
13897 arg1 = reinterpret_cast< wxFont * >(argp1);
13898 {
13899 PyThreadState* __tstate = wxPyBeginAllowThreads();
13900 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 {
13905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13906 }
13907 return resultobj;
13908fail:
13909 return NULL;
d55e5bfc
RD
13910}
13911
13912
1bd55598
RD
13913SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13914 PyObject *resultobj = 0;
13915 wxFont *arg1 = (wxFont *) 0 ;
13916 int result;
13917 void *argp1 = 0 ;
13918 int res1 = 0 ;
13919 PyObject *swig_obj[1] ;
13920
13921 if (!args) SWIG_fail;
13922 swig_obj[0] = args;
13923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13924 if (!SWIG_IsOK(res1)) {
13925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13926 }
13927 arg1 = reinterpret_cast< wxFont * >(argp1);
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 result = (int)((wxFont const *)arg1)->GetFamily();
13931 wxPyEndAllowThreads(__tstate);
13932 if (PyErr_Occurred()) SWIG_fail;
13933 }
13934 resultobj = SWIG_From_int(static_cast< int >(result));
13935 return resultobj;
13936fail:
13937 return NULL;
d55e5bfc
RD
13938}
13939
13940
1bd55598
RD
13941SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13942 PyObject *resultobj = 0;
13943 wxFont *arg1 = (wxFont *) 0 ;
13944 int result;
13945 void *argp1 = 0 ;
13946 int res1 = 0 ;
13947 PyObject *swig_obj[1] ;
13948
13949 if (!args) SWIG_fail;
13950 swig_obj[0] = args;
13951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13952 if (!SWIG_IsOK(res1)) {
13953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13954 }
13955 arg1 = reinterpret_cast< wxFont * >(argp1);
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = (int)((wxFont const *)arg1)->GetStyle();
13959 wxPyEndAllowThreads(__tstate);
13960 if (PyErr_Occurred()) SWIG_fail;
13961 }
13962 resultobj = SWIG_From_int(static_cast< int >(result));
13963 return resultobj;
13964fail:
13965 return NULL;
d55e5bfc
RD
13966}
13967
13968
1bd55598
RD
13969SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13970 PyObject *resultobj = 0;
13971 wxFont *arg1 = (wxFont *) 0 ;
13972 int result;
13973 void *argp1 = 0 ;
13974 int res1 = 0 ;
13975 PyObject *swig_obj[1] ;
13976
13977 if (!args) SWIG_fail;
13978 swig_obj[0] = args;
13979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13980 if (!SWIG_IsOK(res1)) {
13981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13982 }
13983 arg1 = reinterpret_cast< wxFont * >(argp1);
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (int)((wxFont const *)arg1)->GetWeight();
13987 wxPyEndAllowThreads(__tstate);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 }
13990 resultobj = SWIG_From_int(static_cast< int >(result));
13991 return resultobj;
13992fail:
13993 return NULL;
d55e5bfc
RD
13994}
13995
13996
1bd55598
RD
13997SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13998 PyObject *resultobj = 0;
13999 wxFont *arg1 = (wxFont *) 0 ;
14000 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14010 }
14011 arg1 = reinterpret_cast< wxFont * >(argp1);
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 {
14019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14020 }
14021 return resultobj;
14022fail:
14023 return NULL;
d55e5bfc
RD
14024}
14025
14026
1bd55598
RD
14027SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14028 PyObject *resultobj = 0;
14029 wxFont *arg1 = (wxFont *) 0 ;
14030 wxString result;
14031 void *argp1 = 0 ;
14032 int res1 = 0 ;
14033 PyObject *swig_obj[1] ;
14034
14035 if (!args) SWIG_fail;
14036 swig_obj[0] = args;
14037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14038 if (!SWIG_IsOK(res1)) {
14039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14040 }
14041 arg1 = reinterpret_cast< wxFont * >(argp1);
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
14044 result = ((wxFont const *)arg1)->GetFaceName();
14045 wxPyEndAllowThreads(__tstate);
14046 if (PyErr_Occurred()) SWIG_fail;
14047 }
14048 {
14049#if wxUSE_UNICODE
14050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14051#else
14052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14053#endif
14054 }
14055 return resultobj;
14056fail:
14057 return NULL;
d55e5bfc
RD
14058}
14059
14060
1bd55598
RD
14061SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14062 PyObject *resultobj = 0;
14063 wxFont *arg1 = (wxFont *) 0 ;
14064 wxFontEncoding result;
14065 void *argp1 = 0 ;
14066 int res1 = 0 ;
14067 PyObject *swig_obj[1] ;
14068
14069 if (!args) SWIG_fail;
14070 swig_obj[0] = args;
14071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14072 if (!SWIG_IsOK(res1)) {
14073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14074 }
14075 arg1 = reinterpret_cast< wxFont * >(argp1);
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 resultobj = SWIG_From_int(static_cast< int >(result));
14083 return resultobj;
14084fail:
14085 return NULL;
d55e5bfc
RD
14086}
14087
14088
1bd55598
RD
14089SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14090 PyObject *resultobj = 0;
14091 wxFont *arg1 = (wxFont *) 0 ;
14092 wxNativeFontInfo *result = 0 ;
14093 void *argp1 = 0 ;
14094 int res1 = 0 ;
14095 PyObject *swig_obj[1] ;
14096
14097 if (!args) SWIG_fail;
14098 swig_obj[0] = args;
14099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14100 if (!SWIG_IsOK(res1)) {
14101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14102 }
14103 arg1 = reinterpret_cast< wxFont * >(argp1);
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14107 wxPyEndAllowThreads(__tstate);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 }
14110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14111 return resultobj;
14112fail:
14113 return NULL;
d55e5bfc
RD
14114}
14115
14116
1bd55598
RD
14117SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14118 PyObject *resultobj = 0;
14119 wxFont *arg1 = (wxFont *) 0 ;
14120 bool 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_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14130 }
14131 arg1 = reinterpret_cast< wxFont * >(argp1);
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 {
14139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14140 }
14141 return resultobj;
14142fail:
14143 return NULL;
d55e5bfc
RD
14144}
14145
14146
1bd55598
RD
14147SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14148 PyObject *resultobj = 0;
14149 wxFont *arg1 = (wxFont *) 0 ;
14150 wxString result;
14151 void *argp1 = 0 ;
14152 int res1 = 0 ;
14153 PyObject *swig_obj[1] ;
14154
14155 if (!args) SWIG_fail;
14156 swig_obj[0] = args;
14157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14158 if (!SWIG_IsOK(res1)) {
14159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14160 }
14161 arg1 = reinterpret_cast< wxFont * >(argp1);
14162 {
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
14164 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14165 wxPyEndAllowThreads(__tstate);
14166 if (PyErr_Occurred()) SWIG_fail;
14167 }
14168 {
14169#if wxUSE_UNICODE
14170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14171#else
14172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14173#endif
14174 }
14175 return resultobj;
14176fail:
14177 return NULL;
d55e5bfc
RD
14178}
14179
14180
1bd55598
RD
14181SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14182 PyObject *resultobj = 0;
14183 wxFont *arg1 = (wxFont *) 0 ;
14184 wxString result;
14185 void *argp1 = 0 ;
14186 int res1 = 0 ;
14187 PyObject *swig_obj[1] ;
14188
14189 if (!args) SWIG_fail;
14190 swig_obj[0] = args;
14191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14192 if (!SWIG_IsOK(res1)) {
14193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14194 }
14195 arg1 = reinterpret_cast< wxFont * >(argp1);
14196 {
14197 PyThreadState* __tstate = wxPyBeginAllowThreads();
14198 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 {
14203#if wxUSE_UNICODE
14204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14205#else
14206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14207#endif
14208 }
14209 return resultobj;
14210fail:
14211 return NULL;
14212}
14213
14214
14215SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14216 PyObject *resultobj = 0;
14217 wxFont *arg1 = (wxFont *) 0 ;
14218 int arg2 ;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 int val2 ;
14222 int ecode2 = 0 ;
14223 PyObject * obj0 = 0 ;
14224 PyObject * obj1 = 0 ;
14225 char * kwnames[] = {
14226 (char *) "self",(char *) "pointSize", NULL
14227 };
14228
14229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14231 if (!SWIG_IsOK(res1)) {
14232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14233 }
14234 arg1 = reinterpret_cast< wxFont * >(argp1);
14235 ecode2 = SWIG_AsVal_int(obj1, &val2);
14236 if (!SWIG_IsOK(ecode2)) {
14237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14238 }
14239 arg2 = static_cast< int >(val2);
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 (arg1)->SetPointSize(arg2);
14243 wxPyEndAllowThreads(__tstate);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 resultobj = SWIG_Py_Void();
14247 return resultobj;
14248fail:
14249 return NULL;
14250}
14251
14252
14253SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14254 PyObject *resultobj = 0;
14255 wxFont *arg1 = (wxFont *) 0 ;
14256 wxSize *arg2 = 0 ;
14257 void *argp1 = 0 ;
14258 int res1 = 0 ;
14259 wxSize temp2 ;
14260 PyObject * obj0 = 0 ;
14261 PyObject * obj1 = 0 ;
14262 char * kwnames[] = {
14263 (char *) "self",(char *) "pixelSize", NULL
14264 };
14265
14266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14268 if (!SWIG_IsOK(res1)) {
14269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14270 }
14271 arg1 = reinterpret_cast< wxFont * >(argp1);
14272 {
14273 arg2 = &temp2;
14274 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14275 }
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 (arg1)->SetPixelSize((wxSize const &)*arg2);
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 resultobj = SWIG_Py_Void();
14283 return resultobj;
14284fail:
14285 return NULL;
14286}
14287
14288
14289SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj = 0;
14291 wxFont *arg1 = (wxFont *) 0 ;
14292 int arg2 ;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 int val2 ;
14296 int ecode2 = 0 ;
14297 PyObject * obj0 = 0 ;
14298 PyObject * obj1 = 0 ;
14299 char * kwnames[] = {
14300 (char *) "self",(char *) "family", NULL
14301 };
14302
14303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14305 if (!SWIG_IsOK(res1)) {
14306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14307 }
14308 arg1 = reinterpret_cast< wxFont * >(argp1);
14309 ecode2 = SWIG_AsVal_int(obj1, &val2);
14310 if (!SWIG_IsOK(ecode2)) {
14311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14312 }
14313 arg2 = static_cast< int >(val2);
14314 {
14315 PyThreadState* __tstate = wxPyBeginAllowThreads();
14316 (arg1)->SetFamily(arg2);
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 resultobj = SWIG_Py_Void();
14321 return resultobj;
14322fail:
14323 return NULL;
14324}
14325
14326
14327SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj = 0;
14329 wxFont *arg1 = (wxFont *) 0 ;
14330 int arg2 ;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 int val2 ;
14334 int ecode2 = 0 ;
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 char * kwnames[] = {
14338 (char *) "self",(char *) "style", NULL
14339 };
14340
14341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14343 if (!SWIG_IsOK(res1)) {
14344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14345 }
14346 arg1 = reinterpret_cast< wxFont * >(argp1);
14347 ecode2 = SWIG_AsVal_int(obj1, &val2);
14348 if (!SWIG_IsOK(ecode2)) {
14349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14350 }
14351 arg2 = static_cast< int >(val2);
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 (arg1)->SetStyle(arg2);
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 resultobj = SWIG_Py_Void();
14359 return resultobj;
14360fail:
14361 return NULL;
14362}
14363
14364
14365SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj = 0;
14367 wxFont *arg1 = (wxFont *) 0 ;
14368 int arg2 ;
14369 void *argp1 = 0 ;
14370 int res1 = 0 ;
14371 int val2 ;
14372 int ecode2 = 0 ;
14373 PyObject * obj0 = 0 ;
14374 PyObject * obj1 = 0 ;
14375 char * kwnames[] = {
14376 (char *) "self",(char *) "weight", NULL
14377 };
14378
14379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14383 }
14384 arg1 = reinterpret_cast< wxFont * >(argp1);
14385 ecode2 = SWIG_AsVal_int(obj1, &val2);
14386 if (!SWIG_IsOK(ecode2)) {
14387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14388 }
14389 arg2 = static_cast< int >(val2);
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 (arg1)->SetWeight(arg2);
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 resultobj = SWIG_Py_Void();
14397 return resultobj;
14398fail:
14399 return NULL;
14400}
14401
14402
14403SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14404 PyObject *resultobj = 0;
14405 wxFont *arg1 = (wxFont *) 0 ;
14406 wxString *arg2 = 0 ;
704eda0c 14407 bool result;
1bd55598
RD
14408 void *argp1 = 0 ;
14409 int res1 = 0 ;
14410 bool temp2 = false ;
14411 PyObject * obj0 = 0 ;
14412 PyObject * obj1 = 0 ;
14413 char * kwnames[] = {
14414 (char *) "self",(char *) "faceName", NULL
14415 };
14416
14417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14419 if (!SWIG_IsOK(res1)) {
14420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14421 }
14422 arg1 = reinterpret_cast< wxFont * >(argp1);
14423 {
14424 arg2 = wxString_in_helper(obj1);
14425 if (arg2 == NULL) SWIG_fail;
14426 temp2 = true;
14427 }
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14430 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
704eda0c
RD
14434 {
14435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14436 }
1bd55598
RD
14437 {
14438 if (temp2)
14439 delete arg2;
14440 }
14441 return resultobj;
14442fail:
14443 {
14444 if (temp2)
14445 delete arg2;
14446 }
14447 return NULL;
14448}
14449
14450
14451SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14452 PyObject *resultobj = 0;
14453 wxFont *arg1 = (wxFont *) 0 ;
14454 bool arg2 ;
14455 void *argp1 = 0 ;
14456 int res1 = 0 ;
14457 bool val2 ;
14458 int ecode2 = 0 ;
14459 PyObject * obj0 = 0 ;
14460 PyObject * obj1 = 0 ;
14461 char * kwnames[] = {
14462 (char *) "self",(char *) "underlined", NULL
14463 };
14464
14465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14469 }
14470 arg1 = reinterpret_cast< wxFont * >(argp1);
14471 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14472 if (!SWIG_IsOK(ecode2)) {
14473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14474 }
14475 arg2 = static_cast< bool >(val2);
14476 {
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 (arg1)->SetUnderlined(arg2);
14479 wxPyEndAllowThreads(__tstate);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 }
14482 resultobj = SWIG_Py_Void();
14483 return resultobj;
14484fail:
14485 return NULL;
14486}
14487
14488
14489SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14490 PyObject *resultobj = 0;
14491 wxFont *arg1 = (wxFont *) 0 ;
14492 wxFontEncoding arg2 ;
14493 void *argp1 = 0 ;
14494 int res1 = 0 ;
14495 int val2 ;
14496 int ecode2 = 0 ;
14497 PyObject * obj0 = 0 ;
14498 PyObject * obj1 = 0 ;
14499 char * kwnames[] = {
14500 (char *) "self",(char *) "encoding", NULL
14501 };
14502
14503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14505 if (!SWIG_IsOK(res1)) {
14506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14507 }
14508 arg1 = reinterpret_cast< wxFont * >(argp1);
14509 ecode2 = SWIG_AsVal_int(obj1, &val2);
14510 if (!SWIG_IsOK(ecode2)) {
14511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14512 }
14513 arg2 = static_cast< wxFontEncoding >(val2);
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 (arg1)->SetEncoding(arg2);
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 resultobj = SWIG_Py_Void();
14521 return resultobj;
14522fail:
14523 return NULL;
14524}
14525
14526
14527SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj = 0;
14529 wxFont *arg1 = (wxFont *) 0 ;
14530 wxNativeFontInfo *arg2 = 0 ;
14531 void *argp1 = 0 ;
14532 int res1 = 0 ;
14533 void *argp2 = 0 ;
14534 int res2 = 0 ;
14535 PyObject * obj0 = 0 ;
14536 PyObject * obj1 = 0 ;
14537 char * kwnames[] = {
14538 (char *) "self",(char *) "info", NULL
14539 };
14540
14541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14543 if (!SWIG_IsOK(res1)) {
14544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14545 }
14546 arg1 = reinterpret_cast< wxFont * >(argp1);
14547 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14548 if (!SWIG_IsOK(res2)) {
14549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14550 }
14551 if (!argp2) {
14552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14553 }
14554 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14558 wxPyEndAllowThreads(__tstate);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 }
14561 resultobj = SWIG_Py_Void();
14562 return resultobj;
14563fail:
14564 return NULL;
14565}
14566
14567
14568SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14569 PyObject *resultobj = 0;
14570 wxFont *arg1 = (wxFont *) 0 ;
14571 wxString *arg2 = 0 ;
704eda0c 14572 bool result;
1bd55598
RD
14573 void *argp1 = 0 ;
14574 int res1 = 0 ;
14575 bool temp2 = false ;
14576 PyObject * obj0 = 0 ;
14577 PyObject * obj1 = 0 ;
14578 char * kwnames[] = {
14579 (char *) "self",(char *) "info", NULL
14580 };
14581
14582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14584 if (!SWIG_IsOK(res1)) {
14585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14586 }
14587 arg1 = reinterpret_cast< wxFont * >(argp1);
14588 {
14589 arg2 = wxString_in_helper(obj1);
14590 if (arg2 == NULL) SWIG_fail;
14591 temp2 = true;
14592 }
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14595 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
704eda0c
RD
14599 {
14600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14601 }
1bd55598
RD
14602 {
14603 if (temp2)
14604 delete arg2;
14605 }
14606 return resultobj;
14607fail:
14608 {
14609 if (temp2)
14610 delete arg2;
14611 }
14612 return NULL;
d55e5bfc
RD
14613}
14614
14615
1bd55598
RD
14616SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj = 0;
14618 wxFont *arg1 = (wxFont *) 0 ;
14619 wxString *arg2 = 0 ;
704eda0c 14620 bool result;
1bd55598
RD
14621 void *argp1 = 0 ;
14622 int res1 = 0 ;
14623 bool temp2 = false ;
14624 PyObject * obj0 = 0 ;
14625 PyObject * obj1 = 0 ;
14626 char * kwnames[] = {
14627 (char *) "self",(char *) "info", NULL
14628 };
14629
14630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14632 if (!SWIG_IsOK(res1)) {
14633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14634 }
14635 arg1 = reinterpret_cast< wxFont * >(argp1);
14636 {
14637 arg2 = wxString_in_helper(obj1);
14638 if (arg2 == NULL) SWIG_fail;
14639 temp2 = true;
14640 }
14641 {
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14643 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
14644 wxPyEndAllowThreads(__tstate);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
704eda0c
RD
14647 {
14648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14649 }
1bd55598
RD
14650 {
14651 if (temp2)
14652 delete arg2;
14653 }
14654 return resultobj;
14655fail:
14656 {
14657 if (temp2)
14658 delete arg2;
14659 }
14660 return NULL;
d55e5bfc
RD
14661}
14662
14663
1bd55598
RD
14664SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14665 PyObject *resultobj = 0;
14666 wxFont *arg1 = (wxFont *) 0 ;
14667 wxString result;
14668 void *argp1 = 0 ;
14669 int res1 = 0 ;
14670 PyObject *swig_obj[1] ;
14671
14672 if (!args) SWIG_fail;
14673 swig_obj[0] = args;
14674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14675 if (!SWIG_IsOK(res1)) {
14676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14677 }
14678 arg1 = reinterpret_cast< wxFont * >(argp1);
14679 {
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 result = ((wxFont const *)arg1)->GetFamilyString();
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 {
14686#if wxUSE_UNICODE
14687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14688#else
14689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14690#endif
14691 }
14692 return resultobj;
14693fail:
14694 return NULL;
d55e5bfc
RD
14695}
14696
14697
1bd55598
RD
14698SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14699 PyObject *resultobj = 0;
14700 wxFont *arg1 = (wxFont *) 0 ;
14701 wxString result;
14702 void *argp1 = 0 ;
14703 int res1 = 0 ;
14704 PyObject *swig_obj[1] ;
14705
14706 if (!args) SWIG_fail;
14707 swig_obj[0] = args;
14708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14709 if (!SWIG_IsOK(res1)) {
14710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14711 }
14712 arg1 = reinterpret_cast< wxFont * >(argp1);
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 result = ((wxFont const *)arg1)->GetStyleString();
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 {
14720#if wxUSE_UNICODE
14721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14722#else
14723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14724#endif
14725 }
14726 return resultobj;
14727fail:
14728 return NULL;
d55e5bfc
RD
14729}
14730
14731
1bd55598
RD
14732SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14733 PyObject *resultobj = 0;
14734 wxFont *arg1 = (wxFont *) 0 ;
14735 wxString result;
14736 void *argp1 = 0 ;
14737 int res1 = 0 ;
14738 PyObject *swig_obj[1] ;
14739
14740 if (!args) SWIG_fail;
14741 swig_obj[0] = args;
14742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14743 if (!SWIG_IsOK(res1)) {
14744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14745 }
14746 arg1 = reinterpret_cast< wxFont * >(argp1);
14747 {
14748 PyThreadState* __tstate = wxPyBeginAllowThreads();
14749 result = ((wxFont const *)arg1)->GetWeightString();
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 {
14754#if wxUSE_UNICODE
14755 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14756#else
14757 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14758#endif
14759 }
14760 return resultobj;
14761fail:
14762 return NULL;
14763}
14764
14765
14766SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14767 PyObject *resultobj = 0;
14768 wxFont *arg1 = (wxFont *) 0 ;
14769 bool arg2 = (bool) true ;
14770 void *argp1 = 0 ;
14771 int res1 = 0 ;
14772 bool val2 ;
14773 int ecode2 = 0 ;
14774 PyObject * obj0 = 0 ;
14775 PyObject * obj1 = 0 ;
14776 char * kwnames[] = {
14777 (char *) "self",(char *) "no", NULL
14778 };
14779
14780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14782 if (!SWIG_IsOK(res1)) {
14783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14784 }
14785 arg1 = reinterpret_cast< wxFont * >(argp1);
14786 if (obj1) {
14787 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14788 if (!SWIG_IsOK(ecode2)) {
14789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14790 }
14791 arg2 = static_cast< bool >(val2);
14792 }
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 (arg1)->SetNoAntiAliasing(arg2);
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 resultobj = SWIG_Py_Void();
14800 return resultobj;
14801fail:
14802 return NULL;
d55e5bfc
RD
14803}
14804
14805
1bd55598
RD
14806SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14807 PyObject *resultobj = 0;
14808 wxFont *arg1 = (wxFont *) 0 ;
14809 bool result;
14810 void *argp1 = 0 ;
14811 int res1 = 0 ;
14812 PyObject *swig_obj[1] ;
14813
14814 if (!args) SWIG_fail;
14815 swig_obj[0] = args;
14816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14817 if (!SWIG_IsOK(res1)) {
14818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14819 }
14820 arg1 = reinterpret_cast< wxFont * >(argp1);
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 {
14828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14829 }
14830 return resultobj;
14831fail:
14832 return NULL;
d55e5bfc
RD
14833}
14834
14835
1bd55598
RD
14836SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14837 PyObject *resultobj = 0;
14838 wxFontEncoding result;
14839
14840 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14841 {
14842 if (!wxPyCheckForApp()) SWIG_fail;
14843 PyThreadState* __tstate = wxPyBeginAllowThreads();
14844 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14845 wxPyEndAllowThreads(__tstate);
14846 if (PyErr_Occurred()) SWIG_fail;
14847 }
14848 resultobj = SWIG_From_int(static_cast< int >(result));
14849 return resultobj;
14850fail:
14851 return NULL;
d55e5bfc
RD
14852}
14853
14854
1bd55598
RD
14855SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14856 PyObject *resultobj = 0;
14857 wxFontEncoding arg1 ;
14858 int val1 ;
14859 int ecode1 = 0 ;
14860 PyObject * obj0 = 0 ;
14861 char * kwnames[] = {
14862 (char *) "encoding", NULL
14863 };
14864
14865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14866 ecode1 = SWIG_AsVal_int(obj0, &val1);
14867 if (!SWIG_IsOK(ecode1)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14869 }
14870 arg1 = static_cast< wxFontEncoding >(val1);
14871 {
14872 if (!wxPyCheckForApp()) SWIG_fail;
14873 PyThreadState* __tstate = wxPyBeginAllowThreads();
14874 wxFont::SetDefaultEncoding(arg1);
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 resultobj = SWIG_Py_Void();
14879 return resultobj;
14880fail:
14881 return NULL;
d55e5bfc
RD
14882}
14883
14884
1bd55598
RD
14885SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14886 PyObject *obj;
14887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14888 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14889 return SWIG_Py_Void();
d55e5bfc 14890}
d55e5bfc 14891
1bd55598
RD
14892SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14893 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14894}
14895
1bd55598
RD
14896SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14897 PyObject *resultobj = 0;
14898 wxPyFontEnumerator *result = 0 ;
14899
14900 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14901 {
14902 if (!wxPyCheckForApp()) SWIG_fail;
14903 PyThreadState* __tstate = wxPyBeginAllowThreads();
14904 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14909 return resultobj;
14910fail:
14911 return NULL;
d55e5bfc
RD
14912}
14913
14914
1bd55598
RD
14915SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14916 PyObject *resultobj = 0;
14917 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14918 void *argp1 = 0 ;
14919 int res1 = 0 ;
14920 PyObject *swig_obj[1] ;
14921
14922 if (!args) SWIG_fail;
14923 swig_obj[0] = args;
14924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14927 }
14928 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 delete arg1;
d55e5bfc 14932
1bd55598
RD
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 resultobj = SWIG_Py_Void();
14937 return resultobj;
14938fail:
14939 return NULL;
14940}
14941
14942
14943SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj = 0;
14945 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14946 PyObject *arg2 = (PyObject *) 0 ;
14947 PyObject *arg3 = (PyObject *) 0 ;
14948 bool arg4 ;
14949 void *argp1 = 0 ;
14950 int res1 = 0 ;
14951 bool val4 ;
14952 int ecode4 = 0 ;
14953 PyObject * obj0 = 0 ;
14954 PyObject * obj1 = 0 ;
14955 PyObject * obj2 = 0 ;
14956 PyObject * obj3 = 0 ;
14957 char * kwnames[] = {
14958 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14959 };
14960
14961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14963 if (!SWIG_IsOK(res1)) {
14964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14965 }
14966 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14967 arg2 = obj1;
14968 arg3 = obj2;
14969 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14970 if (!SWIG_IsOK(ecode4)) {
14971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14972 }
14973 arg4 = static_cast< bool >(val4);
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
14980 resultobj = SWIG_Py_Void();
14981 return resultobj;
14982fail:
14983 return NULL;
14984}
14985
14986
14987SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj = 0;
14989 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14990 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
14991 bool arg3 = (bool) false ;
14992 bool result;
14993 void *argp1 = 0 ;
14994 int res1 = 0 ;
14995 int val2 ;
14996 int ecode2 = 0 ;
14997 bool val3 ;
14998 int ecode3 = 0 ;
14999 PyObject * obj0 = 0 ;
15000 PyObject * obj1 = 0 ;
15001 PyObject * obj2 = 0 ;
15002 char * kwnames[] = {
15003 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15004 };
15005
15006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15010 }
15011 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15012 if (obj1) {
15013 ecode2 = SWIG_AsVal_int(obj1, &val2);
15014 if (!SWIG_IsOK(ecode2)) {
15015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15016 }
15017 arg2 = static_cast< wxFontEncoding >(val2);
15018 }
15019 if (obj2) {
15020 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15021 if (!SWIG_IsOK(ecode3)) {
15022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15023 }
15024 arg3 = static_cast< bool >(val3);
15025 }
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15029 wxPyEndAllowThreads(__tstate);
15030 if (PyErr_Occurred()) SWIG_fail;
15031 }
15032 {
15033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15034 }
15035 return resultobj;
15036fail:
15037 return NULL;
15038}
15039
15040
15041SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15042 PyObject *resultobj = 0;
15043 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15044 wxString const &arg2_defvalue = wxPyEmptyString ;
15045 wxString *arg2 = (wxString *) &arg2_defvalue ;
15046 bool result;
15047 void *argp1 = 0 ;
15048 int res1 = 0 ;
15049 bool temp2 = false ;
15050 PyObject * obj0 = 0 ;
15051 PyObject * obj1 = 0 ;
15052 char * kwnames[] = {
15053 (char *) "self",(char *) "facename", NULL
15054 };
15055
15056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15058 if (!SWIG_IsOK(res1)) {
15059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15060 }
15061 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15062 if (obj1) {
36ed4f51 15063 {
1bd55598
RD
15064 arg2 = wxString_in_helper(obj1);
15065 if (arg2 == NULL) SWIG_fail;
15066 temp2 = true;
36ed4f51 15067 }
1bd55598
RD
15068 }
15069 {
15070 PyThreadState* __tstate = wxPyBeginAllowThreads();
15071 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15072 wxPyEndAllowThreads(__tstate);
15073 if (PyErr_Occurred()) SWIG_fail;
15074 }
15075 {
15076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15077 }
15078 {
15079 if (temp2)
15080 delete arg2;
15081 }
15082 return resultobj;
15083fail:
15084 {
15085 if (temp2)
15086 delete arg2;
15087 }
15088 return NULL;
d55e5bfc
RD
15089}
15090
15091
1bd55598
RD
15092SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15093 PyObject *resultobj = 0;
1bd55598 15094 PyObject *result = 0 ;
1bd55598 15095
704eda0c 15096 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15099 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 resultobj = result;
15104 return resultobj;
15105fail:
15106 return NULL;
d55e5bfc
RD
15107}
15108
15109
1bd55598
RD
15110SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15111 PyObject *resultobj = 0;
1bd55598 15112 PyObject *result = 0 ;
1bd55598 15113
704eda0c 15114 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15117 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15118 wxPyEndAllowThreads(__tstate);
15119 if (PyErr_Occurred()) SWIG_fail;
15120 }
15121 resultobj = result;
15122 return resultobj;
15123fail:
15124 return NULL;
d55e5bfc
RD
15125}
15126
15127
704eda0c
RD
15128SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15129 PyObject *resultobj = 0;
15130 wxString *arg1 = 0 ;
15131 bool result;
15132 bool temp1 = false ;
15133 PyObject * obj0 = 0 ;
15134 char * kwnames[] = {
15135 (char *) "str", NULL
15136 };
15137
15138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15139 {
15140 arg1 = wxString_in_helper(obj0);
15141 if (arg1 == NULL) SWIG_fail;
15142 temp1 = true;
15143 }
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 {
15151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15152 }
15153 {
15154 if (temp1)
15155 delete arg1;
15156 }
15157 return resultobj;
15158fail:
15159 {
15160 if (temp1)
15161 delete arg1;
15162 }
15163 return NULL;
15164}
15165
15166
1bd55598
RD
15167SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15168 PyObject *obj;
15169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15170 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15171 return SWIG_Py_Void();
d55e5bfc
RD
15172}
15173
1bd55598
RD
15174SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15175 return SWIG_Python_InitShadowInstance(args);
15176}
d55e5bfc 15177
1bd55598
RD
15178SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15179 PyObject *resultobj = 0;
15180 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15181 int arg2 ;
15182 void *argp1 = 0 ;
15183 int res1 = 0 ;
15184 int val2 ;
15185 int ecode2 = 0 ;
15186 PyObject *swig_obj[2] ;
15187
15188 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15192 }
15193 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15194 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15195 if (!SWIG_IsOK(ecode2)) {
15196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15197 }
15198 arg2 = static_cast< int >(val2);
15199 if (arg1) (arg1)->Language = arg2;
15200
15201 resultobj = SWIG_Py_Void();
15202 return resultobj;
15203fail:
15204 return NULL;
d55e5bfc
RD
15205}
15206
15207
1bd55598
RD
15208SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15209 PyObject *resultobj = 0;
15210 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15211 int result;
15212 void *argp1 = 0 ;
15213 int res1 = 0 ;
15214 PyObject *swig_obj[1] ;
15215
15216 if (!args) SWIG_fail;
15217 swig_obj[0] = args;
15218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15219 if (!SWIG_IsOK(res1)) {
15220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15221 }
15222 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15223 result = (int) ((arg1)->Language);
15224 resultobj = SWIG_From_int(static_cast< int >(result));
15225 return resultobj;
15226fail:
15227 return NULL;
15228}
15229
15230
15231SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15232 PyObject *resultobj = 0;
15233 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15234 wxString *arg2 = (wxString *) 0 ;
15235 void *argp1 = 0 ;
15236 int res1 = 0 ;
15237 bool temp2 = false ;
15238 PyObject *swig_obj[2] ;
15239
15240 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15242 if (!SWIG_IsOK(res1)) {
15243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15244 }
15245 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15246 {
15247 arg2 = wxString_in_helper(swig_obj[1]);
15248 if (arg2 == NULL) SWIG_fail;
15249 temp2 = true;
15250 }
15251 if (arg1) (arg1)->CanonicalName = *arg2;
15252
15253 resultobj = SWIG_Py_Void();
15254 {
15255 if (temp2)
15256 delete arg2;
15257 }
15258 return resultobj;
15259fail:
15260 {
15261 if (temp2)
15262 delete arg2;
15263 }
15264 return NULL;
d55e5bfc
RD
15265}
15266
15267
1bd55598
RD
15268SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15269 PyObject *resultobj = 0;
15270 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15271 wxString *result = 0 ;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 PyObject *swig_obj[1] ;
15275
15276 if (!args) SWIG_fail;
15277 swig_obj[0] = args;
15278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15279 if (!SWIG_IsOK(res1)) {
15280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15281 }
15282 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15283 result = (wxString *)& ((arg1)->CanonicalName);
15284 {
15285#if wxUSE_UNICODE
15286 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15287#else
15288 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15289#endif
15290 }
15291 return resultobj;
15292fail:
15293 return NULL;
d55e5bfc
RD
15294}
15295
15296
1bd55598
RD
15297SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15298 PyObject *resultobj = 0;
15299 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15300 wxString *arg2 = (wxString *) 0 ;
15301 void *argp1 = 0 ;
15302 int res1 = 0 ;
15303 bool temp2 = false ;
15304 PyObject *swig_obj[2] ;
15305
15306 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15308 if (!SWIG_IsOK(res1)) {
15309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15310 }
15311 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15312 {
15313 arg2 = wxString_in_helper(swig_obj[1]);
15314 if (arg2 == NULL) SWIG_fail;
15315 temp2 = true;
15316 }
15317 if (arg1) (arg1)->Description = *arg2;
15318
15319 resultobj = SWIG_Py_Void();
15320 {
15321 if (temp2)
15322 delete arg2;
15323 }
15324 return resultobj;
15325fail:
15326 {
15327 if (temp2)
15328 delete arg2;
15329 }
15330 return NULL;
d55e5bfc
RD
15331}
15332
15333
1bd55598
RD
15334SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15335 PyObject *resultobj = 0;
15336 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15337 wxString *result = 0 ;
15338 void *argp1 = 0 ;
15339 int res1 = 0 ;
15340 PyObject *swig_obj[1] ;
15341
15342 if (!args) SWIG_fail;
15343 swig_obj[0] = args;
15344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15345 if (!SWIG_IsOK(res1)) {
15346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15347 }
15348 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15349 result = (wxString *)& ((arg1)->Description);
15350 {
15351#if wxUSE_UNICODE
15352 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15353#else
15354 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15355#endif
15356 }
15357 return resultobj;
15358fail:
15359 return NULL;
15360}
15361
15362
15363SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15364 PyObject *obj;
15365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15366 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15367 return SWIG_Py_Void();
15368}
15369
15370SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj = 0;
15372 int arg1 = (int) -1 ;
15373 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15374 wxLocale *result = 0 ;
15375 int val1 ;
15376 int ecode1 = 0 ;
15377 int val2 ;
15378 int ecode2 = 0 ;
15379 PyObject * obj0 = 0 ;
15380 PyObject * obj1 = 0 ;
15381 char * kwnames[] = {
15382 (char *) "language",(char *) "flags", NULL
15383 };
15384
15385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15386 if (obj0) {
15387 ecode1 = SWIG_AsVal_int(obj0, &val1);
15388 if (!SWIG_IsOK(ecode1)) {
15389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15390 }
15391 arg1 = static_cast< int >(val1);
15392 }
15393 if (obj1) {
15394 ecode2 = SWIG_AsVal_int(obj1, &val2);
15395 if (!SWIG_IsOK(ecode2)) {
15396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15397 }
15398 arg2 = static_cast< int >(val2);
15399 }
15400 {
15401 PyThreadState* __tstate = wxPyBeginAllowThreads();
15402 result = (wxLocale *)new_wxLocale(arg1,arg2);
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15407 return resultobj;
15408fail:
15409 return NULL;
d55e5bfc
RD
15410}
15411
15412
1bd55598
RD
15413SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15414 PyObject *resultobj = 0;
15415 wxLocale *arg1 = (wxLocale *) 0 ;
15416 void *argp1 = 0 ;
15417 int res1 = 0 ;
15418 PyObject *swig_obj[1] ;
15419
15420 if (!args) SWIG_fail;
15421 swig_obj[0] = args;
15422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15423 if (!SWIG_IsOK(res1)) {
15424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15425 }
15426 arg1 = reinterpret_cast< wxLocale * >(argp1);
15427 {
15428 PyThreadState* __tstate = wxPyBeginAllowThreads();
15429 delete arg1;
d55e5bfc 15430
1bd55598
RD
15431 wxPyEndAllowThreads(__tstate);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 }
15434 resultobj = SWIG_Py_Void();
15435 return resultobj;
15436fail:
15437 return NULL;
15438}
15439
15440
15441SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15442 PyObject *resultobj = 0;
15443 wxLocale *arg1 = (wxLocale *) 0 ;
15444 wxString *arg2 = 0 ;
15445 wxString const &arg3_defvalue = wxPyEmptyString ;
15446 wxString *arg3 = (wxString *) &arg3_defvalue ;
15447 wxString const &arg4_defvalue = wxPyEmptyString ;
15448 wxString *arg4 = (wxString *) &arg4_defvalue ;
15449 bool arg5 = (bool) true ;
15450 bool arg6 = (bool) false ;
15451 bool result;
15452 void *argp1 = 0 ;
15453 int res1 = 0 ;
15454 bool temp2 = false ;
15455 bool temp3 = false ;
15456 bool temp4 = false ;
15457 bool val5 ;
15458 int ecode5 = 0 ;
15459 bool val6 ;
15460 int ecode6 = 0 ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 PyObject * obj2 = 0 ;
15464 PyObject * obj3 = 0 ;
15465 PyObject * obj4 = 0 ;
15466 PyObject * obj5 = 0 ;
15467 char * kwnames[] = {
15468 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15469 };
15470
15471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15473 if (!SWIG_IsOK(res1)) {
15474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15475 }
15476 arg1 = reinterpret_cast< wxLocale * >(argp1);
15477 {
15478 arg2 = wxString_in_helper(obj1);
15479 if (arg2 == NULL) SWIG_fail;
15480 temp2 = true;
15481 }
15482 if (obj2) {
d55e5bfc 15483 {
1bd55598
RD
15484 arg3 = wxString_in_helper(obj2);
15485 if (arg3 == NULL) SWIG_fail;
15486 temp3 = true;
d55e5bfc 15487 }
1bd55598
RD
15488 }
15489 if (obj3) {
36ed4f51 15490 {
1bd55598
RD
15491 arg4 = wxString_in_helper(obj3);
15492 if (arg4 == NULL) SWIG_fail;
15493 temp4 = true;
36ed4f51 15494 }
1bd55598
RD
15495 }
15496 if (obj4) {
15497 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15498 if (!SWIG_IsOK(ecode5)) {
15499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15500 }
15501 arg5 = static_cast< bool >(val5);
15502 }
15503 if (obj5) {
15504 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15505 if (!SWIG_IsOK(ecode6)) {
15506 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15507 }
15508 arg6 = static_cast< bool >(val6);
15509 }
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 {
15517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15518 }
15519 {
15520 if (temp2)
15521 delete arg2;
15522 }
15523 {
15524 if (temp3)
15525 delete arg3;
15526 }
15527 {
15528 if (temp4)
15529 delete arg4;
15530 }
15531 return resultobj;
15532fail:
15533 {
15534 if (temp2)
15535 delete arg2;
15536 }
15537 {
15538 if (temp3)
15539 delete arg3;
15540 }
15541 {
15542 if (temp4)
15543 delete arg4;
15544 }
15545 return NULL;
15546}
15547
15548
15549SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15550 PyObject *resultobj = 0;
15551 wxLocale *arg1 = (wxLocale *) 0 ;
15552 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15553 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15554 bool result;
15555 void *argp1 = 0 ;
15556 int res1 = 0 ;
15557 int val2 ;
15558 int ecode2 = 0 ;
15559 int val3 ;
15560 int ecode3 = 0 ;
15561 PyObject * obj0 = 0 ;
15562 PyObject * obj1 = 0 ;
15563 PyObject * obj2 = 0 ;
15564 char * kwnames[] = {
15565 (char *) "self",(char *) "language",(char *) "flags", NULL
15566 };
15567
15568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15570 if (!SWIG_IsOK(res1)) {
15571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15572 }
15573 arg1 = reinterpret_cast< wxLocale * >(argp1);
15574 if (obj1) {
15575 ecode2 = SWIG_AsVal_int(obj1, &val2);
15576 if (!SWIG_IsOK(ecode2)) {
15577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15578 }
15579 arg2 = static_cast< int >(val2);
15580 }
15581 if (obj2) {
15582 ecode3 = SWIG_AsVal_int(obj2, &val3);
15583 if (!SWIG_IsOK(ecode3)) {
15584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15585 }
15586 arg3 = static_cast< int >(val3);
15587 }
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15591 wxPyEndAllowThreads(__tstate);
15592 if (PyErr_Occurred()) SWIG_fail;
15593 }
15594 {
15595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15596 }
15597 return resultobj;
15598fail:
15599 return NULL;
d55e5bfc
RD
15600}
15601
15602
1bd55598
RD
15603SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15604 PyObject *resultobj = 0;
15605 int result;
15606
15607 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15608 {
15609 PyThreadState* __tstate = wxPyBeginAllowThreads();
15610 result = (int)wxLocale::GetSystemLanguage();
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 resultobj = SWIG_From_int(static_cast< int >(result));
15615 return resultobj;
15616fail:
15617 return NULL;
d55e5bfc
RD
15618}
15619
15620
1bd55598
RD
15621SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15622 PyObject *resultobj = 0;
15623 wxFontEncoding result;
15624
15625 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15626 {
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15629 wxPyEndAllowThreads(__tstate);
15630 if (PyErr_Occurred()) SWIG_fail;
15631 }
15632 resultobj = SWIG_From_int(static_cast< int >(result));
15633 return resultobj;
15634fail:
15635 return NULL;
d55e5bfc
RD
15636}
15637
15638
1bd55598
RD
15639SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15640 PyObject *resultobj = 0;
15641 wxString result;
15642
15643 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 result = wxLocale::GetSystemEncodingName();
15647 wxPyEndAllowThreads(__tstate);
15648 if (PyErr_Occurred()) SWIG_fail;
15649 }
15650 {
15651#if wxUSE_UNICODE
15652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15653#else
15654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15655#endif
15656 }
15657 return resultobj;
15658fail:
15659 return NULL;
d55e5bfc
RD
15660}
15661
15662
1bd55598
RD
15663SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15664 PyObject *resultobj = 0;
15665 wxLocale *arg1 = (wxLocale *) 0 ;
15666 bool 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_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15676 }
15677 arg1 = reinterpret_cast< wxLocale * >(argp1);
15678 {
15679 PyThreadState* __tstate = wxPyBeginAllowThreads();
15680 result = (bool)((wxLocale const *)arg1)->IsOk();
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
15684 {
15685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15686 }
15687 return resultobj;
15688fail:
15689 return NULL;
d55e5bfc
RD
15690}
15691
15692
1bd55598
RD
15693SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 PyObject *resultobj = 0;
15695 wxLocale *arg1 = (wxLocale *) 0 ;
15696 wxString result;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 PyObject *swig_obj[1] ;
15700
15701 if (!args) SWIG_fail;
15702 swig_obj[0] = args;
15703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15704 if (!SWIG_IsOK(res1)) {
15705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15706 }
15707 arg1 = reinterpret_cast< wxLocale * >(argp1);
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 result = ((wxLocale const *)arg1)->GetLocale();
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 {
15715#if wxUSE_UNICODE
15716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15717#else
15718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15719#endif
15720 }
15721 return resultobj;
15722fail:
15723 return NULL;
d55e5bfc
RD
15724}
15725
15726
1bd55598
RD
15727SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15728 PyObject *resultobj = 0;
15729 wxLocale *arg1 = (wxLocale *) 0 ;
15730 int result;
15731 void *argp1 = 0 ;
15732 int res1 = 0 ;
15733 PyObject *swig_obj[1] ;
15734
15735 if (!args) SWIG_fail;
15736 swig_obj[0] = args;
15737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15738 if (!SWIG_IsOK(res1)) {
15739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15740 }
15741 arg1 = reinterpret_cast< wxLocale * >(argp1);
15742 {
15743 PyThreadState* __tstate = wxPyBeginAllowThreads();
15744 result = (int)((wxLocale const *)arg1)->GetLanguage();
15745 wxPyEndAllowThreads(__tstate);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 resultobj = SWIG_From_int(static_cast< int >(result));
15749 return resultobj;
15750fail:
15751 return NULL;
d55e5bfc
RD
15752}
15753
15754
1bd55598
RD
15755SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15756 PyObject *resultobj = 0;
15757 wxLocale *arg1 = (wxLocale *) 0 ;
15758 wxString result;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 PyObject *swig_obj[1] ;
15762
15763 if (!args) SWIG_fail;
15764 swig_obj[0] = args;
15765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15766 if (!SWIG_IsOK(res1)) {
15767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15768 }
15769 arg1 = reinterpret_cast< wxLocale * >(argp1);
15770 {
15771 PyThreadState* __tstate = wxPyBeginAllowThreads();
15772 result = ((wxLocale const *)arg1)->GetSysName();
15773 wxPyEndAllowThreads(__tstate);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 {
36ed4f51 15777#if wxUSE_UNICODE
1bd55598 15778 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 15779#else
1bd55598 15780 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 15781#endif
1bd55598
RD
15782 }
15783 return resultobj;
15784fail:
15785 return NULL;
d55e5bfc
RD
15786}
15787
15788
1bd55598
RD
15789SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15790 PyObject *resultobj = 0;
15791 wxLocale *arg1 = (wxLocale *) 0 ;
15792 wxString result;
15793 void *argp1 = 0 ;
15794 int res1 = 0 ;
15795 PyObject *swig_obj[1] ;
15796
15797 if (!args) SWIG_fail;
15798 swig_obj[0] = args;
15799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15800 if (!SWIG_IsOK(res1)) {
15801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15802 }
15803 arg1 = reinterpret_cast< wxLocale * >(argp1);
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 result = ((wxLocale const *)arg1)->GetCanonicalName();
15807 wxPyEndAllowThreads(__tstate);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 {
15811#if wxUSE_UNICODE
15812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15813#else
15814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15815#endif
15816 }
15817 return resultobj;
15818fail:
15819 return NULL;
d55e5bfc
RD
15820}
15821
15822
1bd55598
RD
15823SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15824 PyObject *resultobj = 0;
15825 wxString *arg1 = 0 ;
15826 bool temp1 = false ;
15827 PyObject * obj0 = 0 ;
15828 char * kwnames[] = {
15829 (char *) "prefix", NULL
15830 };
15831
15832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15833 {
15834 arg1 = wxString_in_helper(obj0);
15835 if (arg1 == NULL) SWIG_fail;
15836 temp1 = true;
15837 }
15838 {
15839 PyThreadState* __tstate = wxPyBeginAllowThreads();
15840 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15841 wxPyEndAllowThreads(__tstate);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 resultobj = SWIG_Py_Void();
15845 {
15846 if (temp1)
15847 delete arg1;
15848 }
15849 return resultobj;
15850fail:
15851 {
15852 if (temp1)
15853 delete arg1;
15854 }
15855 return NULL;
15856}
15857
15858
15859SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15860 PyObject *resultobj = 0;
15861 wxLocale *arg1 = (wxLocale *) 0 ;
15862 wxString *arg2 = 0 ;
15863 bool result;
15864 void *argp1 = 0 ;
15865 int res1 = 0 ;
15866 bool temp2 = false ;
15867 PyObject * obj0 = 0 ;
15868 PyObject * obj1 = 0 ;
15869 char * kwnames[] = {
15870 (char *) "self",(char *) "szDomain", NULL
15871 };
15872
15873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15875 if (!SWIG_IsOK(res1)) {
15876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15877 }
15878 arg1 = reinterpret_cast< wxLocale * >(argp1);
15879 {
15880 arg2 = wxString_in_helper(obj1);
15881 if (arg2 == NULL) SWIG_fail;
15882 temp2 = true;
15883 }
15884 {
15885 PyThreadState* __tstate = wxPyBeginAllowThreads();
15886 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 {
15891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15892 }
15893 {
15894 if (temp2)
15895 delete arg2;
15896 }
15897 return resultobj;
15898fail:
15899 {
15900 if (temp2)
15901 delete arg2;
15902 }
15903 return NULL;
15904}
15905
15906
33d6fd3b
RD
15907SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15908 PyObject *resultobj = 0;
15909 int arg1 ;
15910 bool result;
15911 int val1 ;
15912 int ecode1 = 0 ;
15913 PyObject * obj0 = 0 ;
15914 char * kwnames[] = {
15915 (char *) "lang", NULL
15916 };
15917
15918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
15919 ecode1 = SWIG_AsVal_int(obj0, &val1);
15920 if (!SWIG_IsOK(ecode1)) {
15921 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
15922 }
15923 arg1 = static_cast< int >(val1);
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = (bool)wxLocale::IsAvailable(arg1);
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 {
15931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15932 }
15933 return resultobj;
15934fail:
15935 return NULL;
15936}
15937
15938
1bd55598
RD
15939SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15940 PyObject *resultobj = 0;
15941 wxLocale *arg1 = (wxLocale *) 0 ;
15942 wxString *arg2 = 0 ;
15943 bool result;
15944 void *argp1 = 0 ;
15945 int res1 = 0 ;
15946 bool temp2 = false ;
15947 PyObject * obj0 = 0 ;
15948 PyObject * obj1 = 0 ;
15949 char * kwnames[] = {
15950 (char *) "self",(char *) "szDomain", NULL
15951 };
15952
15953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15955 if (!SWIG_IsOK(res1)) {
15956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15957 }
15958 arg1 = reinterpret_cast< wxLocale * >(argp1);
15959 {
15960 arg2 = wxString_in_helper(obj1);
15961 if (arg2 == NULL) SWIG_fail;
15962 temp2 = true;
15963 }
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 {
15971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15972 }
15973 {
15974 if (temp2)
15975 delete arg2;
15976 }
15977 return resultobj;
15978fail:
15979 {
15980 if (temp2)
15981 delete arg2;
15982 }
15983 return NULL;
d55e5bfc
RD
15984}
15985
15986
1bd55598
RD
15987SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj = 0;
15989 int arg1 ;
15990 wxLanguageInfo *result = 0 ;
15991 int val1 ;
15992 int ecode1 = 0 ;
15993 PyObject * obj0 = 0 ;
15994 char * kwnames[] = {
15995 (char *) "lang", NULL
15996 };
15997
15998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
15999 ecode1 = SWIG_AsVal_int(obj0, &val1);
16000 if (!SWIG_IsOK(ecode1)) {
16001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16002 }
16003 arg1 = static_cast< int >(val1);
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16007 wxPyEndAllowThreads(__tstate);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16011 return resultobj;
16012fail:
16013 return NULL;
16014}
16015
16016
16017SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16018 PyObject *resultobj = 0;
16019 int arg1 ;
16020 wxString result;
16021 int val1 ;
16022 int ecode1 = 0 ;
16023 PyObject * obj0 = 0 ;
16024 char * kwnames[] = {
16025 (char *) "lang", NULL
16026 };
16027
16028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16029 ecode1 = SWIG_AsVal_int(obj0, &val1);
16030 if (!SWIG_IsOK(ecode1)) {
16031 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16032 }
16033 arg1 = static_cast< int >(val1);
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = wxLocale::GetLanguageName(arg1);
16037 wxPyEndAllowThreads(__tstate);
16038 if (PyErr_Occurred()) SWIG_fail;
16039 }
16040 {
16041#if wxUSE_UNICODE
16042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16043#else
16044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16045#endif
16046 }
16047 return resultobj;
16048fail:
16049 return NULL;
d55e5bfc
RD
16050}
16051
16052
1bd55598
RD
16053SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16054 PyObject *resultobj = 0;
16055 wxString *arg1 = 0 ;
16056 wxLanguageInfo *result = 0 ;
16057 bool temp1 = false ;
16058 PyObject * obj0 = 0 ;
16059 char * kwnames[] = {
16060 (char *) "locale", NULL
16061 };
16062
16063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16064 {
16065 arg1 = wxString_in_helper(obj0);
16066 if (arg1 == NULL) SWIG_fail;
16067 temp1 = true;
16068 }
16069 {
16070 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16071 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16076 {
16077 if (temp1)
16078 delete arg1;
16079 }
16080 return resultobj;
16081fail:
16082 {
16083 if (temp1)
16084 delete arg1;
16085 }
16086 return NULL;
16087}
16088
16089
16090SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16091 PyObject *resultobj = 0;
16092 wxLanguageInfo *arg1 = 0 ;
16093 void *argp1 = 0 ;
16094 int res1 = 0 ;
16095 PyObject * obj0 = 0 ;
16096 char * kwnames[] = {
16097 (char *) "info", NULL
16098 };
16099
16100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16101 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16102 if (!SWIG_IsOK(res1)) {
16103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16104 }
16105 if (!argp1) {
16106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16107 }
16108 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 resultobj = SWIG_Py_Void();
16116 return resultobj;
16117fail:
16118 return NULL;
16119}
16120
16121
16122SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj = 0;
16124 wxLocale *arg1 = (wxLocale *) 0 ;
16125 wxString *arg2 = 0 ;
16126 wxString const &arg3_defvalue = wxPyEmptyString ;
16127 wxString *arg3 = (wxString *) &arg3_defvalue ;
16128 wxString result;
16129 void *argp1 = 0 ;
16130 int res1 = 0 ;
16131 bool temp2 = false ;
16132 bool temp3 = false ;
16133 PyObject * obj0 = 0 ;
16134 PyObject * obj1 = 0 ;
16135 PyObject * obj2 = 0 ;
16136 char * kwnames[] = {
16137 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16138 };
16139
16140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16142 if (!SWIG_IsOK(res1)) {
16143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16144 }
16145 arg1 = reinterpret_cast< wxLocale * >(argp1);
16146 {
16147 arg2 = wxString_in_helper(obj1);
16148 if (arg2 == NULL) SWIG_fail;
16149 temp2 = true;
16150 }
16151 if (obj2) {
16152 {
16153 arg3 = wxString_in_helper(obj2);
16154 if (arg3 == NULL) SWIG_fail;
16155 temp3 = true;
16156 }
16157 }
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 {
16165#if wxUSE_UNICODE
16166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16167#else
16168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16169#endif
16170 }
16171 {
16172 if (temp2)
16173 delete arg2;
16174 }
16175 {
16176 if (temp3)
16177 delete arg3;
16178 }
16179 return resultobj;
16180fail:
16181 {
16182 if (temp2)
16183 delete arg2;
16184 }
16185 {
16186 if (temp3)
16187 delete arg3;
16188 }
16189 return NULL;
16190}
16191
16192
16193SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16194 PyObject *resultobj = 0;
16195 wxLocale *arg1 = (wxLocale *) 0 ;
16196 wxString *result = 0 ;
16197 void *argp1 = 0 ;
16198 int res1 = 0 ;
16199 PyObject *swig_obj[1] ;
16200
16201 if (!args) SWIG_fail;
16202 swig_obj[0] = args;
16203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16204 if (!SWIG_IsOK(res1)) {
16205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16206 }
16207 arg1 = reinterpret_cast< wxLocale * >(argp1);
16208 {
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 {
16211 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16212 result = (wxString *) &_result_ref;
16213 }
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 {
16218#if wxUSE_UNICODE
16219 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16220#else
16221 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16222#endif
16223 }
16224 return resultobj;
16225fail:
16226 return NULL;
16227}
16228
16229
16230SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16231 PyObject *obj;
16232 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16233 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16234 return SWIG_Py_Void();
16235}
16236
16237SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16238 return SWIG_Python_InitShadowInstance(args);
16239}
16240
16241SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16242 PyObject *resultobj = 0;
16243 int arg1 = (int) -1 ;
16244 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16245 wxPyLocale *result = 0 ;
16246 int val1 ;
16247 int ecode1 = 0 ;
16248 int val2 ;
16249 int ecode2 = 0 ;
16250 PyObject * obj0 = 0 ;
16251 PyObject * obj1 = 0 ;
16252 char * kwnames[] = {
16253 (char *) "language",(char *) "flags", NULL
16254 };
16255
16256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16257 if (obj0) {
16258 ecode1 = SWIG_AsVal_int(obj0, &val1);
16259 if (!SWIG_IsOK(ecode1)) {
16260 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16261 }
16262 arg1 = static_cast< int >(val1);
16263 }
16264 if (obj1) {
16265 ecode2 = SWIG_AsVal_int(obj1, &val2);
16266 if (!SWIG_IsOK(ecode2)) {
16267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16268 }
16269 arg2 = static_cast< int >(val2);
16270 }
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16278 return resultobj;
16279fail:
16280 return NULL;
16281}
16282
16283
16284SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16285 PyObject *resultobj = 0;
16286 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16287 void *argp1 = 0 ;
16288 int res1 = 0 ;
16289 PyObject *swig_obj[1] ;
16290
16291 if (!args) SWIG_fail;
16292 swig_obj[0] = args;
16293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16296 }
16297 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 delete arg1;
16301
1bd55598
RD
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
fc46b7f3 16305 resultobj = SWIG_Py_Void();
1bd55598
RD
16306 return resultobj;
16307fail:
1bd55598 16308 return NULL;
d55e5bfc
RD
16309}
16310
16311
fc46b7f3 16312SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16313 PyObject *resultobj = 0;
fc46b7f3
RD
16314 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16315 PyObject *arg2 = (PyObject *) 0 ;
16316 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16317 void *argp1 = 0 ;
16318 int res1 = 0 ;
16319 PyObject * obj0 = 0 ;
fc46b7f3
RD
16320 PyObject * obj1 = 0 ;
16321 PyObject * obj2 = 0 ;
1bd55598 16322 char * kwnames[] = {
fc46b7f3 16323 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16324 };
16325
fc46b7f3
RD
16326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16328 if (!SWIG_IsOK(res1)) {
fc46b7f3 16329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16330 }
fc46b7f3
RD
16331 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16332 arg2 = obj1;
16333 arg3 = obj2;
1bd55598
RD
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16336 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 resultobj = SWIG_Py_Void();
16341 return resultobj;
16342fail:
16343 return NULL;
16344}
16345
16346
fc46b7f3 16347SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16348 PyObject *resultobj = 0;
fc46b7f3
RD
16349 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16350 wxChar *arg2 = (wxChar *) 0 ;
16351 wxChar *arg3 = (wxChar *) NULL ;
16352 wxChar *result = 0 ;
1bd55598
RD
16353 void *argp1 = 0 ;
16354 int res1 = 0 ;
fc46b7f3
RD
16355 void *argp2 = 0 ;
16356 int res2 = 0 ;
16357 void *argp3 = 0 ;
16358 int res3 = 0 ;
1bd55598
RD
16359 PyObject * obj0 = 0 ;
16360 PyObject * obj1 = 0 ;
16361 PyObject * obj2 = 0 ;
16362 char * kwnames[] = {
16363 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16364 };
16365
fc46b7f3
RD
16366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16368 if (!SWIG_IsOK(res1)) {
fc46b7f3 16369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16370 }
fc46b7f3
RD
16371 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16373 if (!SWIG_IsOK(res2)) {
16374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16375 }
fc46b7f3 16376 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16377 if (obj2) {
fc46b7f3
RD
16378 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16379 if (!SWIG_IsOK(res3)) {
16380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16381 }
fc46b7f3 16382 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16383 }
16384 {
16385 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16386 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16387 wxPyEndAllowThreads(__tstate);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
fc46b7f3 16390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16391 return resultobj;
16392fail:
1bd55598 16393 return NULL;
d55e5bfc
RD
16394}
16395
16396
fc46b7f3 16397SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16398 PyObject *resultobj = 0;
fc46b7f3
RD
16399 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16400 wxChar *arg2 = (wxChar *) 0 ;
16401 wxChar *arg3 = (wxChar *) 0 ;
16402 size_t arg4 ;
16403 wxChar *arg5 = (wxChar *) NULL ;
16404 wxChar *result = 0 ;
1bd55598
RD
16405 void *argp1 = 0 ;
16406 int res1 = 0 ;
fc46b7f3
RD
16407 void *argp2 = 0 ;
16408 int res2 = 0 ;
16409 void *argp3 = 0 ;
16410 int res3 = 0 ;
16411 size_t val4 ;
16412 int ecode4 = 0 ;
16413 void *argp5 = 0 ;
16414 int res5 = 0 ;
16415 PyObject * obj0 = 0 ;
16416 PyObject * obj1 = 0 ;
16417 PyObject * obj2 = 0 ;
16418 PyObject * obj3 = 0 ;
16419 PyObject * obj4 = 0 ;
16420 char * kwnames[] = {
16421 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16422 };
1bd55598 16423
fc46b7f3
RD
16424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16426 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16428 }
16429 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16431 if (!SWIG_IsOK(res2)) {
16432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16433 }
16434 arg2 = reinterpret_cast< wxChar * >(argp2);
16435 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16436 if (!SWIG_IsOK(res3)) {
16437 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16438 }
16439 arg3 = reinterpret_cast< wxChar * >(argp3);
16440 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16441 if (!SWIG_IsOK(ecode4)) {
16442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16443 }
16444 arg4 = static_cast< size_t >(val4);
16445 if (obj4) {
16446 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16447 if (!SWIG_IsOK(res5)) {
16448 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16449 }
16450 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16451 }
1bd55598
RD
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16454 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
fc46b7f3 16458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16459 return resultobj;
16460fail:
16461 return NULL;
d55e5bfc
RD
16462}
16463
16464
fc46b7f3 16465SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16466 PyObject *obj;
16467 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16468 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16469 return SWIG_Py_Void();
d55e5bfc
RD
16470}
16471
fc46b7f3 16472SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16473 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16474}
16475
1bd55598
RD
16476SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16477 PyObject *resultobj = 0;
16478 wxLocale *result = 0 ;
16479
16480 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16481 {
16482 PyThreadState* __tstate = wxPyBeginAllowThreads();
16483 result = (wxLocale *)wxGetLocale();
16484 wxPyEndAllowThreads(__tstate);
16485 if (PyErr_Occurred()) SWIG_fail;
16486 }
16487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16488 return resultobj;
16489fail:
16490 return NULL;
d55e5bfc
RD
16491}
16492
16493
1bd55598
RD
16494SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16495 PyObject *resultobj = 0;
16496 wxString *arg1 = 0 ;
16497 wxString result;
16498 bool temp1 = false ;
16499
16500 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16501 {
16502 arg1 = wxString_in_helper(swig_obj[0]);
16503 if (arg1 == NULL) SWIG_fail;
16504 temp1 = true;
16505 }
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 result = wxGetTranslation((wxString const &)*arg1);
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 {
36ed4f51 16513#if wxUSE_UNICODE
1bd55598 16514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16515#else
1bd55598 16516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16517#endif
1bd55598
RD
16518 }
16519 {
16520 if (temp1)
16521 delete arg1;
16522 }
16523 return resultobj;
16524fail:
16525 {
16526 if (temp1)
16527 delete arg1;
16528 }
16529 return NULL;
5e483524
RD
16530}
16531
16532
1bd55598 16533SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16534 PyObject *resultobj = 0;
16535 wxString *arg1 = 0 ;
16536 wxString *arg2 = 0 ;
16537 wxString result;
16538 bool temp1 = false ;
16539 bool temp2 = false ;
16540
16541 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16542 {
16543 arg1 = wxString_in_helper(swig_obj[0]);
16544 if (arg1 == NULL) SWIG_fail;
16545 temp1 = true;
16546 }
16547 {
16548 arg2 = wxString_in_helper(swig_obj[1]);
16549 if (arg2 == NULL) SWIG_fail;
16550 temp2 = true;
16551 }
16552 {
16553 PyThreadState* __tstate = wxPyBeginAllowThreads();
16554 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
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;
16584}
16585
16586
16587SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
16588 PyObject *resultobj = 0;
16589 wxString *arg1 = 0 ;
16590 wxString *arg2 = 0 ;
16591 size_t arg3 ;
16592 wxString result;
16593 bool temp1 = false ;
16594 bool temp2 = false ;
16595 size_t val3 ;
16596 int ecode3 = 0 ;
16597
16598 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16599 {
16600 arg1 = wxString_in_helper(swig_obj[0]);
16601 if (arg1 == NULL) SWIG_fail;
16602 temp1 = true;
16603 }
16604 {
16605 arg2 = wxString_in_helper(swig_obj[1]);
16606 if (arg2 == NULL) SWIG_fail;
16607 temp2 = true;
16608 }
16609 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16610 if (!SWIG_IsOK(ecode3)) {
16611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16612 }
16613 arg3 = static_cast< size_t >(val3);
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16617 wxPyEndAllowThreads(__tstate);
16618 if (PyErr_Occurred()) SWIG_fail;
16619 }
16620 {
36ed4f51 16621#if wxUSE_UNICODE
1bd55598 16622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16623#else
1bd55598 16624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16625#endif
1bd55598
RD
16626 }
16627 {
16628 if (temp1)
16629 delete arg1;
16630 }
16631 {
16632 if (temp2)
16633 delete arg2;
16634 }
16635 return resultobj;
16636fail:
16637 {
16638 if (temp1)
16639 delete arg1;
16640 }
16641 {
16642 if (temp2)
16643 delete arg2;
16644 }
16645 return NULL;
d55e5bfc
RD
16646}
16647
16648
fc46b7f3
RD
16649SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16650 PyObject *resultobj = 0;
16651 wxString *arg1 = 0 ;
16652 wxString *arg2 = 0 ;
16653 size_t arg3 ;
16654 wxString *arg4 = 0 ;
16655 wxString result;
16656 bool temp1 = false ;
16657 bool temp2 = false ;
16658 size_t val3 ;
16659 int ecode3 = 0 ;
16660 bool temp4 = false ;
16661
16662 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16663 {
16664 arg1 = wxString_in_helper(swig_obj[0]);
16665 if (arg1 == NULL) SWIG_fail;
16666 temp1 = true;
16667 }
16668 {
16669 arg2 = wxString_in_helper(swig_obj[1]);
16670 if (arg2 == NULL) SWIG_fail;
16671 temp2 = true;
16672 }
16673 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16674 if (!SWIG_IsOK(ecode3)) {
16675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16676 }
16677 arg3 = static_cast< size_t >(val3);
16678 {
16679 arg4 = wxString_in_helper(swig_obj[3]);
16680 if (arg4 == NULL) SWIG_fail;
16681 temp4 = true;
16682 }
16683 {
16684 PyThreadState* __tstate = wxPyBeginAllowThreads();
16685 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 {
16690#if wxUSE_UNICODE
16691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16692#else
16693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16694#endif
16695 }
16696 {
16697 if (temp1)
16698 delete arg1;
16699 }
16700 {
16701 if (temp2)
16702 delete arg2;
16703 }
16704 {
16705 if (temp4)
16706 delete arg4;
16707 }
16708 return resultobj;
16709fail:
16710 {
16711 if (temp1)
16712 delete arg1;
16713 }
16714 {
16715 if (temp2)
16716 delete arg2;
16717 }
16718 {
16719 if (temp4)
16720 delete arg4;
16721 }
16722 return NULL;
16723}
16724
16725
1bd55598
RD
16726SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16727 int argc;
fc46b7f3 16728 PyObject *argv[5];
1bd55598 16729
fc46b7f3 16730 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
16731 --argc;
16732 if (argc == 1) {
16733 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16734 }
fc46b7f3 16735 if (argc == 2) {
1bd55598
RD
16736 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16737 }
fc46b7f3
RD
16738 if (argc == 3) {
16739 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16740 }
16741 if (argc == 4) {
16742 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16743 }
1bd55598
RD
16744
16745fail:
16746 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16747 return NULL;
d55e5bfc
RD
16748}
16749
16750
1bd55598
RD
16751SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16752 PyObject *resultobj = 0;
16753 wxEncodingConverter *result = 0 ;
16754
16755 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16756 {
16757 PyThreadState* __tstate = wxPyBeginAllowThreads();
16758 result = (wxEncodingConverter *)new wxEncodingConverter();
16759 wxPyEndAllowThreads(__tstate);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 }
16762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16763 return resultobj;
16764fail:
16765 return NULL;
d55e5bfc
RD
16766}
16767
16768
1bd55598
RD
16769SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16770 PyObject *resultobj = 0;
16771 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16772 void *argp1 = 0 ;
16773 int res1 = 0 ;
16774 PyObject *swig_obj[1] ;
16775
16776 if (!args) SWIG_fail;
16777 swig_obj[0] = args;
16778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16779 if (!SWIG_IsOK(res1)) {
16780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16781 }
16782 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16783 {
16784 PyThreadState* __tstate = wxPyBeginAllowThreads();
16785 delete arg1;
d55e5bfc 16786
1bd55598
RD
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 resultobj = SWIG_Py_Void();
16791 return resultobj;
16792fail:
16793 return NULL;
16794}
16795
16796
16797SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16798 PyObject *resultobj = 0;
16799 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16800 wxFontEncoding arg2 ;
16801 wxFontEncoding arg3 ;
16802 int arg4 = (int) wxCONVERT_STRICT ;
16803 bool result;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 int val2 ;
16807 int ecode2 = 0 ;
16808 int val3 ;
16809 int ecode3 = 0 ;
16810 int val4 ;
16811 int ecode4 = 0 ;
16812 PyObject * obj0 = 0 ;
16813 PyObject * obj1 = 0 ;
16814 PyObject * obj2 = 0 ;
16815 PyObject * obj3 = 0 ;
16816 char * kwnames[] = {
16817 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16818 };
16819
16820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16822 if (!SWIG_IsOK(res1)) {
16823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16824 }
16825 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16826 ecode2 = SWIG_AsVal_int(obj1, &val2);
16827 if (!SWIG_IsOK(ecode2)) {
16828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16829 }
16830 arg2 = static_cast< wxFontEncoding >(val2);
16831 ecode3 = SWIG_AsVal_int(obj2, &val3);
16832 if (!SWIG_IsOK(ecode3)) {
16833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16834 }
16835 arg3 = static_cast< wxFontEncoding >(val3);
16836 if (obj3) {
16837 ecode4 = SWIG_AsVal_int(obj3, &val4);
16838 if (!SWIG_IsOK(ecode4)) {
16839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16840 }
16841 arg4 = static_cast< int >(val4);
16842 }
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
16845 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16846 wxPyEndAllowThreads(__tstate);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
16849 {
16850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16851 }
16852 return resultobj;
16853fail:
16854 return NULL;
16855}
16856
16857
16858SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16859 PyObject *resultobj = 0;
16860 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16861 wxString *arg2 = 0 ;
16862 wxString result;
16863 void *argp1 = 0 ;
16864 int res1 = 0 ;
16865 bool temp2 = false ;
16866 PyObject * obj0 = 0 ;
16867 PyObject * obj1 = 0 ;
16868 char * kwnames[] = {
16869 (char *) "self",(char *) "input", NULL
16870 };
16871
16872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16874 if (!SWIG_IsOK(res1)) {
16875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16876 }
16877 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16878 {
16879 arg2 = wxString_in_helper(obj1);
16880 if (arg2 == NULL) SWIG_fail;
16881 temp2 = true;
16882 }
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 result = (arg1)->Convert((wxString const &)*arg2);
16886 wxPyEndAllowThreads(__tstate);
16887 if (PyErr_Occurred()) SWIG_fail;
16888 }
16889 {
d55e5bfc 16890#if wxUSE_UNICODE
1bd55598 16891 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 16892#else
1bd55598 16893 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 16894#endif
1bd55598
RD
16895 }
16896 {
16897 if (temp2)
16898 delete arg2;
16899 }
16900 return resultobj;
16901fail:
16902 {
16903 if (temp2)
16904 delete arg2;
16905 }
16906 return NULL;
16907}
16908
16909
16910SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxFontEncoding arg1 ;
16913 int arg2 = (int) wxPLATFORM_CURRENT ;
16914 wxFontEncodingArray result;
16915 int val1 ;
16916 int ecode1 = 0 ;
16917 int val2 ;
16918 int ecode2 = 0 ;
16919 PyObject * obj0 = 0 ;
16920 PyObject * obj1 = 0 ;
16921 char * kwnames[] = {
16922 (char *) "enc",(char *) "platform", NULL
16923 };
16924
16925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16926 ecode1 = SWIG_AsVal_int(obj0, &val1);
16927 if (!SWIG_IsOK(ecode1)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16929 }
16930 arg1 = static_cast< wxFontEncoding >(val1);
16931 if (obj1) {
16932 ecode2 = SWIG_AsVal_int(obj1, &val2);
16933 if (!SWIG_IsOK(ecode2)) {
16934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16935 }
16936 arg2 = static_cast< int >(val2);
16937 }
16938 {
16939 PyThreadState* __tstate = wxPyBeginAllowThreads();
16940 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16941 wxPyEndAllowThreads(__tstate);
16942 if (PyErr_Occurred()) SWIG_fail;
16943 }
16944 {
16945 resultobj = PyList_New(0);
16946 for (size_t i=0; i < (&result)->GetCount(); i++) {
16947 PyObject* number = PyInt_FromLong((&result)->Item(i));
16948 PyList_Append(resultobj, number);
16949 Py_DECREF(number);
d55e5bfc 16950 }
1bd55598
RD
16951 }
16952 return resultobj;
16953fail:
16954 return NULL;
d55e5bfc
RD
16955}
16956
16957
1bd55598
RD
16958SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16959 PyObject *resultobj = 0;
16960 wxFontEncoding arg1 ;
16961 wxFontEncodingArray result;
16962 int val1 ;
16963 int ecode1 = 0 ;
16964 PyObject * obj0 = 0 ;
16965 char * kwnames[] = {
16966 (char *) "enc", NULL
16967 };
16968
16969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16970 ecode1 = SWIG_AsVal_int(obj0, &val1);
16971 if (!SWIG_IsOK(ecode1)) {
16972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16973 }
16974 arg1 = static_cast< wxFontEncoding >(val1);
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = wxEncodingConverter::GetAllEquivalents(arg1);
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 {
16982 resultobj = PyList_New(0);
16983 for (size_t i=0; i < (&result)->GetCount(); i++) {
16984 PyObject* number = PyInt_FromLong((&result)->Item(i));
16985 PyList_Append(resultobj, number);
16986 Py_DECREF(number);
d55e5bfc 16987 }
1bd55598
RD
16988 }
16989 return resultobj;
16990fail:
16991 return NULL;
16992}
16993
16994
16995SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 wxFontEncoding arg1 ;
16998 wxFontEncoding arg2 ;
16999 bool result;
17000 int val1 ;
17001 int ecode1 = 0 ;
17002 int val2 ;
17003 int ecode2 = 0 ;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "encIn",(char *) "encOut", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17011 ecode1 = SWIG_AsVal_int(obj0, &val1);
17012 if (!SWIG_IsOK(ecode1)) {
17013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17014 }
17015 arg1 = static_cast< wxFontEncoding >(val1);
17016 ecode2 = SWIG_AsVal_int(obj1, &val2);
17017 if (!SWIG_IsOK(ecode2)) {
17018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17019 }
17020 arg2 = static_cast< wxFontEncoding >(val2);
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17024 wxPyEndAllowThreads(__tstate);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 }
17027 {
17028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17029 }
17030 return resultobj;
17031fail:
17032 return NULL;
d55e5bfc
RD
17033}
17034
17035
1bd55598
RD
17036SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17037 PyObject *obj;
17038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17039 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17040 return SWIG_Py_Void();
d55e5bfc
RD
17041}
17042
1bd55598
RD
17043SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17044 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17045}
17046
1bd55598
RD
17047SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17048 PyObject *resultobj = 0;
17049 wxDC *arg1 = (wxDC *) 0 ;
17050 void *argp1 = 0 ;
17051 int res1 = 0 ;
17052 PyObject *swig_obj[1] ;
17053
17054 if (!args) SWIG_fail;
17055 swig_obj[0] = args;
17056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17057 if (!SWIG_IsOK(res1)) {
17058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17059 }
17060 arg1 = reinterpret_cast< wxDC * >(argp1);
17061 {
17062 PyThreadState* __tstate = wxPyBeginAllowThreads();
17063 delete arg1;
d55e5bfc 17064
1bd55598
RD
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 resultobj = SWIG_Py_Void();
17069 return resultobj;
17070fail:
17071 return NULL;
17072}
17073
17074
17075SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj = 0;
17077 wxDC *arg1 = (wxDC *) 0 ;
17078 int arg2 ;
17079 int arg3 ;
17080 wxColour *arg4 = 0 ;
17081 int arg5 = (int) wxFLOOD_SURFACE ;
17082 bool result;
17083 void *argp1 = 0 ;
17084 int res1 = 0 ;
17085 int val2 ;
17086 int ecode2 = 0 ;
17087 int val3 ;
17088 int ecode3 = 0 ;
17089 wxColour temp4 ;
17090 int val5 ;
17091 int ecode5 = 0 ;
17092 PyObject * obj0 = 0 ;
17093 PyObject * obj1 = 0 ;
17094 PyObject * obj2 = 0 ;
17095 PyObject * obj3 = 0 ;
17096 PyObject * obj4 = 0 ;
17097 char * kwnames[] = {
17098 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17099 };
17100
17101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17103 if (!SWIG_IsOK(res1)) {
17104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17105 }
17106 arg1 = reinterpret_cast< wxDC * >(argp1);
17107 ecode2 = SWIG_AsVal_int(obj1, &val2);
17108 if (!SWIG_IsOK(ecode2)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17110 }
17111 arg2 = static_cast< int >(val2);
17112 ecode3 = SWIG_AsVal_int(obj2, &val3);
17113 if (!SWIG_IsOK(ecode3)) {
17114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17115 }
17116 arg3 = static_cast< int >(val3);
17117 {
17118 arg4 = &temp4;
17119 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17120 }
17121 if (obj4) {
17122 ecode5 = SWIG_AsVal_int(obj4, &val5);
17123 if (!SWIG_IsOK(ecode5)) {
17124 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17125 }
17126 arg5 = static_cast< int >(val5);
17127 }
17128 {
17129 PyThreadState* __tstate = wxPyBeginAllowThreads();
17130 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 {
17135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17136 }
17137 return resultobj;
17138fail:
17139 return NULL;
17140}
17141
17142
17143SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj = 0;
17145 wxDC *arg1 = (wxDC *) 0 ;
17146 wxPoint *arg2 = 0 ;
17147 wxColour *arg3 = 0 ;
17148 int arg4 = (int) wxFLOOD_SURFACE ;
17149 bool result;
17150 void *argp1 = 0 ;
17151 int res1 = 0 ;
17152 wxPoint temp2 ;
17153 wxColour temp3 ;
17154 int val4 ;
17155 int ecode4 = 0 ;
17156 PyObject * obj0 = 0 ;
17157 PyObject * obj1 = 0 ;
17158 PyObject * obj2 = 0 ;
17159 PyObject * obj3 = 0 ;
17160 char * kwnames[] = {
17161 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17162 };
17163
17164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17166 if (!SWIG_IsOK(res1)) {
17167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17168 }
17169 arg1 = reinterpret_cast< wxDC * >(argp1);
17170 {
17171 arg2 = &temp2;
17172 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17173 }
17174 {
17175 arg3 = &temp3;
17176 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17177 }
17178 if (obj3) {
17179 ecode4 = SWIG_AsVal_int(obj3, &val4);
17180 if (!SWIG_IsOK(ecode4)) {
17181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17182 }
17183 arg4 = static_cast< int >(val4);
17184 }
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17193 }
17194 return resultobj;
17195fail:
17196 return NULL;
17197}
17198
17199
17200SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17201 PyObject *resultobj = 0;
17202 wxDC *arg1 = (wxDC *) 0 ;
17203 wxRect *arg2 = 0 ;
17204 wxColour *arg3 = 0 ;
17205 wxColour *arg4 = 0 ;
17206 wxPoint *arg5 = 0 ;
17207 void *argp1 = 0 ;
17208 int res1 = 0 ;
17209 wxRect temp2 ;
17210 wxColour temp3 ;
17211 wxColour temp4 ;
17212 wxPoint temp5 ;
17213 PyObject * obj0 = 0 ;
17214 PyObject * obj1 = 0 ;
17215 PyObject * obj2 = 0 ;
17216 PyObject * obj3 = 0 ;
17217 PyObject * obj4 = 0 ;
17218 char * kwnames[] = {
17219 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17220 };
17221
17222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17224 if (!SWIG_IsOK(res1)) {
17225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17226 }
17227 arg1 = reinterpret_cast< wxDC * >(argp1);
17228 {
17229 arg2 = &temp2;
17230 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17231 }
17232 {
17233 arg3 = &temp3;
17234 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17235 }
17236 {
17237 arg4 = &temp4;
17238 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17239 }
17240 {
17241 arg5 = &temp5;
17242 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17243 }
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 resultobj = SWIG_Py_Void();
17251 return resultobj;
17252fail:
17253 return NULL;
17254}
17255
17256
17257SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj = 0;
17259 wxDC *arg1 = (wxDC *) 0 ;
17260 wxRect *arg2 = 0 ;
17261 wxColour *arg3 = 0 ;
17262 wxColour *arg4 = 0 ;
17263 wxDirection arg5 = (wxDirection) wxEAST ;
17264 void *argp1 = 0 ;
17265 int res1 = 0 ;
17266 wxRect temp2 ;
17267 wxColour temp3 ;
17268 wxColour temp4 ;
17269 int val5 ;
17270 int ecode5 = 0 ;
17271 PyObject * obj0 = 0 ;
17272 PyObject * obj1 = 0 ;
17273 PyObject * obj2 = 0 ;
17274 PyObject * obj3 = 0 ;
17275 PyObject * obj4 = 0 ;
17276 char * kwnames[] = {
17277 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17278 };
17279
17280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17282 if (!SWIG_IsOK(res1)) {
17283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17284 }
17285 arg1 = reinterpret_cast< wxDC * >(argp1);
17286 {
17287 arg2 = &temp2;
17288 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17289 }
17290 {
17291 arg3 = &temp3;
17292 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17293 }
17294 {
17295 arg4 = &temp4;
17296 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17297 }
17298 if (obj4) {
17299 ecode5 = SWIG_AsVal_int(obj4, &val5);
17300 if (!SWIG_IsOK(ecode5)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17302 }
17303 arg5 = static_cast< wxDirection >(val5);
17304 }
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 resultobj = SWIG_Py_Void();
17312 return resultobj;
17313fail:
17314 return NULL;
17315}
17316
17317
17318SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17319 PyObject *resultobj = 0;
17320 wxDC *arg1 = (wxDC *) 0 ;
17321 int arg2 ;
17322 int arg3 ;
17323 wxColour result;
17324 void *argp1 = 0 ;
17325 int res1 = 0 ;
17326 int val2 ;
17327 int ecode2 = 0 ;
17328 int val3 ;
17329 int ecode3 = 0 ;
17330 PyObject * obj0 = 0 ;
17331 PyObject * obj1 = 0 ;
17332 PyObject * obj2 = 0 ;
17333 char * kwnames[] = {
17334 (char *) "self",(char *) "x",(char *) "y", NULL
17335 };
17336
17337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17339 if (!SWIG_IsOK(res1)) {
17340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17341 }
17342 arg1 = reinterpret_cast< wxDC * >(argp1);
17343 ecode2 = SWIG_AsVal_int(obj1, &val2);
17344 if (!SWIG_IsOK(ecode2)) {
17345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17346 }
17347 arg2 = static_cast< int >(val2);
17348 ecode3 = SWIG_AsVal_int(obj2, &val3);
17349 if (!SWIG_IsOK(ecode3)) {
17350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17351 }
17352 arg3 = static_cast< int >(val3);
17353 {
17354 PyThreadState* __tstate = wxPyBeginAllowThreads();
17355 result = wxDC_GetPixel(arg1,arg2,arg3);
17356 wxPyEndAllowThreads(__tstate);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17360 return resultobj;
17361fail:
17362 return NULL;
17363}
17364
17365
17366SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17367 PyObject *resultobj = 0;
17368 wxDC *arg1 = (wxDC *) 0 ;
17369 wxPoint *arg2 = 0 ;
17370 wxColour result;
17371 void *argp1 = 0 ;
17372 int res1 = 0 ;
17373 wxPoint temp2 ;
17374 PyObject * obj0 = 0 ;
17375 PyObject * obj1 = 0 ;
17376 char * kwnames[] = {
17377 (char *) "self",(char *) "pt", NULL
17378 };
17379
17380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17382 if (!SWIG_IsOK(res1)) {
17383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17384 }
17385 arg1 = reinterpret_cast< wxDC * >(argp1);
17386 {
17387 arg2 = &temp2;
17388 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17389 }
17390 {
17391 PyThreadState* __tstate = wxPyBeginAllowThreads();
17392 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17393 wxPyEndAllowThreads(__tstate);
17394 if (PyErr_Occurred()) SWIG_fail;
17395 }
17396 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17397 return resultobj;
17398fail:
17399 return NULL;
17400}
17401
17402
17403SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17404 PyObject *resultobj = 0;
17405 wxDC *arg1 = (wxDC *) 0 ;
17406 int arg2 ;
17407 int arg3 ;
17408 int arg4 ;
17409 int arg5 ;
17410 void *argp1 = 0 ;
17411 int res1 = 0 ;
17412 int val2 ;
17413 int ecode2 = 0 ;
17414 int val3 ;
17415 int ecode3 = 0 ;
17416 int val4 ;
17417 int ecode4 = 0 ;
17418 int val5 ;
17419 int ecode5 = 0 ;
17420 PyObject * obj0 = 0 ;
17421 PyObject * obj1 = 0 ;
17422 PyObject * obj2 = 0 ;
17423 PyObject * obj3 = 0 ;
17424 PyObject * obj4 = 0 ;
17425 char * kwnames[] = {
17426 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17427 };
17428
17429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17431 if (!SWIG_IsOK(res1)) {
17432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17433 }
17434 arg1 = reinterpret_cast< wxDC * >(argp1);
17435 ecode2 = SWIG_AsVal_int(obj1, &val2);
17436 if (!SWIG_IsOK(ecode2)) {
17437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17438 }
17439 arg2 = static_cast< int >(val2);
17440 ecode3 = SWIG_AsVal_int(obj2, &val3);
17441 if (!SWIG_IsOK(ecode3)) {
17442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17443 }
17444 arg3 = static_cast< int >(val3);
17445 ecode4 = SWIG_AsVal_int(obj3, &val4);
17446 if (!SWIG_IsOK(ecode4)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17448 }
17449 arg4 = static_cast< int >(val4);
17450 ecode5 = SWIG_AsVal_int(obj4, &val5);
17451 if (!SWIG_IsOK(ecode5)) {
17452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17453 }
17454 arg5 = static_cast< int >(val5);
17455 {
17456 PyThreadState* __tstate = wxPyBeginAllowThreads();
17457 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17458 wxPyEndAllowThreads(__tstate);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 resultobj = SWIG_Py_Void();
17462 return resultobj;
17463fail:
17464 return NULL;
17465}
17466
17467
17468SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17469 PyObject *resultobj = 0;
17470 wxDC *arg1 = (wxDC *) 0 ;
17471 wxPoint *arg2 = 0 ;
17472 wxPoint *arg3 = 0 ;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 wxPoint temp2 ;
17476 wxPoint temp3 ;
17477 PyObject * obj0 = 0 ;
17478 PyObject * obj1 = 0 ;
17479 PyObject * obj2 = 0 ;
17480 char * kwnames[] = {
17481 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17482 };
17483
17484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17486 if (!SWIG_IsOK(res1)) {
17487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17488 }
17489 arg1 = reinterpret_cast< wxDC * >(argp1);
17490 {
17491 arg2 = &temp2;
17492 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17493 }
17494 {
17495 arg3 = &temp3;
17496 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17497 }
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17501 wxPyEndAllowThreads(__tstate);
17502 if (PyErr_Occurred()) SWIG_fail;
17503 }
17504 resultobj = SWIG_Py_Void();
17505 return resultobj;
17506fail:
17507 return NULL;
17508}
17509
17510
17511SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17512 PyObject *resultobj = 0;
17513 wxDC *arg1 = (wxDC *) 0 ;
17514 int arg2 ;
17515 int arg3 ;
17516 void *argp1 = 0 ;
17517 int res1 = 0 ;
17518 int val2 ;
17519 int ecode2 = 0 ;
17520 int val3 ;
17521 int ecode3 = 0 ;
17522 PyObject * obj0 = 0 ;
17523 PyObject * obj1 = 0 ;
17524 PyObject * obj2 = 0 ;
17525 char * kwnames[] = {
17526 (char *) "self",(char *) "x",(char *) "y", NULL
17527 };
17528
17529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17531 if (!SWIG_IsOK(res1)) {
17532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17533 }
17534 arg1 = reinterpret_cast< wxDC * >(argp1);
17535 ecode2 = SWIG_AsVal_int(obj1, &val2);
17536 if (!SWIG_IsOK(ecode2)) {
17537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17538 }
17539 arg2 = static_cast< int >(val2);
17540 ecode3 = SWIG_AsVal_int(obj2, &val3);
17541 if (!SWIG_IsOK(ecode3)) {
17542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17543 }
17544 arg3 = static_cast< int >(val3);
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 (arg1)->CrossHair(arg2,arg3);
17548 wxPyEndAllowThreads(__tstate);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 }
17551 resultobj = SWIG_Py_Void();
17552 return resultobj;
17553fail:
17554 return NULL;
17555}
17556
17557
17558SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj = 0;
17560 wxDC *arg1 = (wxDC *) 0 ;
17561 wxPoint *arg2 = 0 ;
17562 void *argp1 = 0 ;
17563 int res1 = 0 ;
17564 wxPoint temp2 ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 char * kwnames[] = {
17568 (char *) "self",(char *) "pt", NULL
17569 };
17570
17571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17573 if (!SWIG_IsOK(res1)) {
17574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17575 }
17576 arg1 = reinterpret_cast< wxDC * >(argp1);
17577 {
17578 arg2 = &temp2;
17579 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17580 }
17581 {
17582 PyThreadState* __tstate = wxPyBeginAllowThreads();
17583 (arg1)->CrossHair((wxPoint const &)*arg2);
17584 wxPyEndAllowThreads(__tstate);
17585 if (PyErr_Occurred()) SWIG_fail;
17586 }
17587 resultobj = SWIG_Py_Void();
17588 return resultobj;
17589fail:
17590 return NULL;
17591}
17592
17593
17594SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17595 PyObject *resultobj = 0;
17596 wxDC *arg1 = (wxDC *) 0 ;
17597 int arg2 ;
17598 int arg3 ;
17599 int arg4 ;
17600 int arg5 ;
17601 int arg6 ;
17602 int arg7 ;
17603 void *argp1 = 0 ;
17604 int res1 = 0 ;
17605 int val2 ;
17606 int ecode2 = 0 ;
17607 int val3 ;
17608 int ecode3 = 0 ;
17609 int val4 ;
17610 int ecode4 = 0 ;
17611 int val5 ;
17612 int ecode5 = 0 ;
17613 int val6 ;
17614 int ecode6 = 0 ;
17615 int val7 ;
17616 int ecode7 = 0 ;
17617 PyObject * obj0 = 0 ;
17618 PyObject * obj1 = 0 ;
17619 PyObject * obj2 = 0 ;
17620 PyObject * obj3 = 0 ;
17621 PyObject * obj4 = 0 ;
17622 PyObject * obj5 = 0 ;
17623 PyObject * obj6 = 0 ;
17624 char * kwnames[] = {
17625 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17626 };
17627
17628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17630 if (!SWIG_IsOK(res1)) {
17631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17632 }
17633 arg1 = reinterpret_cast< wxDC * >(argp1);
17634 ecode2 = SWIG_AsVal_int(obj1, &val2);
17635 if (!SWIG_IsOK(ecode2)) {
17636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17637 }
17638 arg2 = static_cast< int >(val2);
17639 ecode3 = SWIG_AsVal_int(obj2, &val3);
17640 if (!SWIG_IsOK(ecode3)) {
17641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17642 }
17643 arg3 = static_cast< int >(val3);
17644 ecode4 = SWIG_AsVal_int(obj3, &val4);
17645 if (!SWIG_IsOK(ecode4)) {
17646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17647 }
17648 arg4 = static_cast< int >(val4);
17649 ecode5 = SWIG_AsVal_int(obj4, &val5);
17650 if (!SWIG_IsOK(ecode5)) {
17651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17652 }
17653 arg5 = static_cast< int >(val5);
17654 ecode6 = SWIG_AsVal_int(obj5, &val6);
17655 if (!SWIG_IsOK(ecode6)) {
17656 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17657 }
17658 arg6 = static_cast< int >(val6);
17659 ecode7 = SWIG_AsVal_int(obj6, &val7);
17660 if (!SWIG_IsOK(ecode7)) {
17661 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17662 }
17663 arg7 = static_cast< int >(val7);
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 resultobj = SWIG_Py_Void();
17671 return resultobj;
17672fail:
17673 return NULL;
17674}
17675
17676
17677SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17678 PyObject *resultobj = 0;
17679 wxDC *arg1 = (wxDC *) 0 ;
17680 wxPoint *arg2 = 0 ;
17681 wxPoint *arg3 = 0 ;
17682 wxPoint *arg4 = 0 ;
17683 void *argp1 = 0 ;
17684 int res1 = 0 ;
17685 wxPoint temp2 ;
17686 wxPoint temp3 ;
17687 wxPoint temp4 ;
17688 PyObject * obj0 = 0 ;
17689 PyObject * obj1 = 0 ;
17690 PyObject * obj2 = 0 ;
17691 PyObject * obj3 = 0 ;
17692 char * kwnames[] = {
17693 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17694 };
17695
17696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17698 if (!SWIG_IsOK(res1)) {
17699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17700 }
17701 arg1 = reinterpret_cast< wxDC * >(argp1);
17702 {
17703 arg2 = &temp2;
17704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17705 }
17706 {
17707 arg3 = &temp3;
17708 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17709 }
17710 {
17711 arg4 = &temp4;
17712 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17713 }
17714 {
17715 PyThreadState* __tstate = wxPyBeginAllowThreads();
17716 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17717 wxPyEndAllowThreads(__tstate);
17718 if (PyErr_Occurred()) SWIG_fail;
17719 }
17720 resultobj = SWIG_Py_Void();
17721 return resultobj;
17722fail:
17723 return NULL;
17724}
17725
17726
17727SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17728 PyObject *resultobj = 0;
17729 wxDC *arg1 = (wxDC *) 0 ;
17730 int arg2 ;
17731 int arg3 ;
17732 int arg4 ;
17733 int arg5 ;
17734 void *argp1 = 0 ;
17735 int res1 = 0 ;
17736 int val2 ;
17737 int ecode2 = 0 ;
17738 int val3 ;
17739 int ecode3 = 0 ;
17740 int val4 ;
17741 int ecode4 = 0 ;
17742 int val5 ;
17743 int ecode5 = 0 ;
17744 PyObject * obj0 = 0 ;
17745 PyObject * obj1 = 0 ;
17746 PyObject * obj2 = 0 ;
17747 PyObject * obj3 = 0 ;
17748 PyObject * obj4 = 0 ;
17749 char * kwnames[] = {
17750 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17751 };
17752
17753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17755 if (!SWIG_IsOK(res1)) {
17756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17757 }
17758 arg1 = reinterpret_cast< wxDC * >(argp1);
17759 ecode2 = SWIG_AsVal_int(obj1, &val2);
17760 if (!SWIG_IsOK(ecode2)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17762 }
17763 arg2 = static_cast< int >(val2);
17764 ecode3 = SWIG_AsVal_int(obj2, &val3);
17765 if (!SWIG_IsOK(ecode3)) {
17766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17767 }
17768 arg3 = static_cast< int >(val3);
17769 ecode4 = SWIG_AsVal_int(obj3, &val4);
17770 if (!SWIG_IsOK(ecode4)) {
17771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17772 }
17773 arg4 = static_cast< int >(val4);
17774 ecode5 = SWIG_AsVal_int(obj4, &val5);
17775 if (!SWIG_IsOK(ecode5)) {
17776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17777 }
17778 arg5 = static_cast< int >(val5);
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17782 wxPyEndAllowThreads(__tstate);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 }
17785 resultobj = SWIG_Py_Void();
17786 return resultobj;
17787fail:
17788 return NULL;
17789}
17790
17791
17792SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17793 PyObject *resultobj = 0;
17794 wxDC *arg1 = (wxDC *) 0 ;
17795 wxRect *arg2 = 0 ;
17796 void *argp1 = 0 ;
17797 int res1 = 0 ;
17798 wxRect temp2 ;
17799 PyObject * obj0 = 0 ;
17800 PyObject * obj1 = 0 ;
17801 char * kwnames[] = {
17802 (char *) "self",(char *) "rect", NULL
17803 };
17804
17805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17807 if (!SWIG_IsOK(res1)) {
17808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17809 }
17810 arg1 = reinterpret_cast< wxDC * >(argp1);
17811 {
17812 arg2 = &temp2;
17813 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17814 }
17815 {
17816 PyThreadState* __tstate = wxPyBeginAllowThreads();
17817 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17818 wxPyEndAllowThreads(__tstate);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 }
17821 resultobj = SWIG_Py_Void();
17822 return resultobj;
17823fail:
17824 return NULL;
17825}
17826
17827
17828SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17829 PyObject *resultobj = 0;
17830 wxDC *arg1 = (wxDC *) 0 ;
17831 int arg2 ;
17832 int arg3 ;
17833 int arg4 ;
17834 int arg5 ;
17835 double arg6 ;
17836 double arg7 ;
17837 void *argp1 = 0 ;
17838 int res1 = 0 ;
17839 int val2 ;
17840 int ecode2 = 0 ;
17841 int val3 ;
17842 int ecode3 = 0 ;
17843 int val4 ;
17844 int ecode4 = 0 ;
17845 int val5 ;
17846 int ecode5 = 0 ;
17847 double val6 ;
17848 int ecode6 = 0 ;
17849 double val7 ;
17850 int ecode7 = 0 ;
17851 PyObject * obj0 = 0 ;
17852 PyObject * obj1 = 0 ;
17853 PyObject * obj2 = 0 ;
17854 PyObject * obj3 = 0 ;
17855 PyObject * obj4 = 0 ;
17856 PyObject * obj5 = 0 ;
17857 PyObject * obj6 = 0 ;
17858 char * kwnames[] = {
17859 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17860 };
17861
17862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17864 if (!SWIG_IsOK(res1)) {
17865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17866 }
17867 arg1 = reinterpret_cast< wxDC * >(argp1);
17868 ecode2 = SWIG_AsVal_int(obj1, &val2);
17869 if (!SWIG_IsOK(ecode2)) {
17870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17871 }
17872 arg2 = static_cast< int >(val2);
17873 ecode3 = SWIG_AsVal_int(obj2, &val3);
17874 if (!SWIG_IsOK(ecode3)) {
17875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17876 }
17877 arg3 = static_cast< int >(val3);
17878 ecode4 = SWIG_AsVal_int(obj3, &val4);
17879 if (!SWIG_IsOK(ecode4)) {
17880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17881 }
17882 arg4 = static_cast< int >(val4);
17883 ecode5 = SWIG_AsVal_int(obj4, &val5);
17884 if (!SWIG_IsOK(ecode5)) {
17885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17886 }
17887 arg5 = static_cast< int >(val5);
17888 ecode6 = SWIG_AsVal_double(obj5, &val6);
17889 if (!SWIG_IsOK(ecode6)) {
17890 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17891 }
17892 arg6 = static_cast< double >(val6);
17893 ecode7 = SWIG_AsVal_double(obj6, &val7);
17894 if (!SWIG_IsOK(ecode7)) {
17895 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17896 }
17897 arg7 = static_cast< double >(val7);
17898 {
17899 PyThreadState* __tstate = wxPyBeginAllowThreads();
17900 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 resultobj = SWIG_Py_Void();
17905 return resultobj;
17906fail:
17907 return NULL;
17908}
17909
17910
17911SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj = 0;
17913 wxDC *arg1 = (wxDC *) 0 ;
17914 wxPoint *arg2 = 0 ;
17915 wxSize *arg3 = 0 ;
17916 double arg4 ;
17917 double arg5 ;
17918 void *argp1 = 0 ;
17919 int res1 = 0 ;
17920 wxPoint temp2 ;
17921 wxSize temp3 ;
17922 double val4 ;
17923 int ecode4 = 0 ;
17924 double val5 ;
17925 int ecode5 = 0 ;
17926 PyObject * obj0 = 0 ;
17927 PyObject * obj1 = 0 ;
17928 PyObject * obj2 = 0 ;
17929 PyObject * obj3 = 0 ;
17930 PyObject * obj4 = 0 ;
17931 char * kwnames[] = {
17932 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17933 };
17934
17935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17937 if (!SWIG_IsOK(res1)) {
17938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17939 }
17940 arg1 = reinterpret_cast< wxDC * >(argp1);
17941 {
17942 arg2 = &temp2;
17943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17944 }
17945 {
17946 arg3 = &temp3;
17947 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17948 }
17949 ecode4 = SWIG_AsVal_double(obj3, &val4);
17950 if (!SWIG_IsOK(ecode4)) {
17951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17952 }
17953 arg4 = static_cast< double >(val4);
17954 ecode5 = SWIG_AsVal_double(obj4, &val5);
17955 if (!SWIG_IsOK(ecode5)) {
17956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17957 }
17958 arg5 = static_cast< double >(val5);
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 resultobj = SWIG_Py_Void();
17966 return resultobj;
17967fail:
17968 return NULL;
17969}
17970
17971
17972SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj = 0;
17974 wxDC *arg1 = (wxDC *) 0 ;
17975 int arg2 ;
17976 int arg3 ;
17977 void *argp1 = 0 ;
17978 int res1 = 0 ;
17979 int val2 ;
17980 int ecode2 = 0 ;
17981 int val3 ;
17982 int ecode3 = 0 ;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 PyObject * obj2 = 0 ;
17986 char * kwnames[] = {
17987 (char *) "self",(char *) "x",(char *) "y", NULL
17988 };
17989
17990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17992 if (!SWIG_IsOK(res1)) {
17993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17994 }
17995 arg1 = reinterpret_cast< wxDC * >(argp1);
17996 ecode2 = SWIG_AsVal_int(obj1, &val2);
17997 if (!SWIG_IsOK(ecode2)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
17999 }
18000 arg2 = static_cast< int >(val2);
18001 ecode3 = SWIG_AsVal_int(obj2, &val3);
18002 if (!SWIG_IsOK(ecode3)) {
18003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18004 }
18005 arg3 = static_cast< int >(val3);
18006 {
18007 PyThreadState* __tstate = wxPyBeginAllowThreads();
18008 (arg1)->DrawPoint(arg2,arg3);
18009 wxPyEndAllowThreads(__tstate);
18010 if (PyErr_Occurred()) SWIG_fail;
18011 }
18012 resultobj = SWIG_Py_Void();
18013 return resultobj;
18014fail:
18015 return NULL;
18016}
18017
18018
18019SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18020 PyObject *resultobj = 0;
18021 wxDC *arg1 = (wxDC *) 0 ;
18022 wxPoint *arg2 = 0 ;
18023 void *argp1 = 0 ;
18024 int res1 = 0 ;
18025 wxPoint temp2 ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 char * kwnames[] = {
18029 (char *) "self",(char *) "pt", NULL
18030 };
18031
18032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18034 if (!SWIG_IsOK(res1)) {
18035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18036 }
18037 arg1 = reinterpret_cast< wxDC * >(argp1);
18038 {
18039 arg2 = &temp2;
18040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18041 }
18042 {
18043 PyThreadState* __tstate = wxPyBeginAllowThreads();
18044 (arg1)->DrawPoint((wxPoint const &)*arg2);
18045 wxPyEndAllowThreads(__tstate);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 }
18048 resultobj = SWIG_Py_Void();
18049 return resultobj;
18050fail:
18051 return NULL;
18052}
18053
18054
18055SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18056 PyObject *resultobj = 0;
18057 wxDC *arg1 = (wxDC *) 0 ;
18058 int arg2 ;
18059 int arg3 ;
18060 int arg4 ;
18061 int arg5 ;
18062 void *argp1 = 0 ;
18063 int res1 = 0 ;
18064 int val2 ;
18065 int ecode2 = 0 ;
18066 int val3 ;
18067 int ecode3 = 0 ;
18068 int val4 ;
18069 int ecode4 = 0 ;
18070 int val5 ;
18071 int ecode5 = 0 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 PyObject * obj2 = 0 ;
18075 PyObject * obj3 = 0 ;
18076 PyObject * obj4 = 0 ;
18077 char * kwnames[] = {
18078 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18079 };
18080
18081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18083 if (!SWIG_IsOK(res1)) {
18084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18085 }
18086 arg1 = reinterpret_cast< wxDC * >(argp1);
18087 ecode2 = SWIG_AsVal_int(obj1, &val2);
18088 if (!SWIG_IsOK(ecode2)) {
18089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18090 }
18091 arg2 = static_cast< int >(val2);
18092 ecode3 = SWIG_AsVal_int(obj2, &val3);
18093 if (!SWIG_IsOK(ecode3)) {
18094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18095 }
18096 arg3 = static_cast< int >(val3);
18097 ecode4 = SWIG_AsVal_int(obj3, &val4);
18098 if (!SWIG_IsOK(ecode4)) {
18099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18100 }
18101 arg4 = static_cast< int >(val4);
18102 ecode5 = SWIG_AsVal_int(obj4, &val5);
18103 if (!SWIG_IsOK(ecode5)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18105 }
18106 arg5 = static_cast< int >(val5);
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18110 wxPyEndAllowThreads(__tstate);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 }
18113 resultobj = SWIG_Py_Void();
18114 return resultobj;
18115fail:
18116 return NULL;
18117}
18118
18119
18120SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18121 PyObject *resultobj = 0;
18122 wxDC *arg1 = (wxDC *) 0 ;
18123 wxRect *arg2 = 0 ;
18124 void *argp1 = 0 ;
18125 int res1 = 0 ;
18126 wxRect temp2 ;
18127 PyObject * obj0 = 0 ;
18128 PyObject * obj1 = 0 ;
18129 char * kwnames[] = {
18130 (char *) "self",(char *) "rect", NULL
18131 };
18132
18133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18137 }
18138 arg1 = reinterpret_cast< wxDC * >(argp1);
18139 {
18140 arg2 = &temp2;
18141 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18142 }
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->DrawRectangle((wxRect const &)*arg2);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151fail:
18152 return NULL;
18153}
18154
18155
18156SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj = 0;
18158 wxDC *arg1 = (wxDC *) 0 ;
18159 wxPoint *arg2 = 0 ;
18160 wxSize *arg3 = 0 ;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 wxPoint temp2 ;
18164 wxSize temp3 ;
18165 PyObject * obj0 = 0 ;
18166 PyObject * obj1 = 0 ;
18167 PyObject * obj2 = 0 ;
18168 char * kwnames[] = {
18169 (char *) "self",(char *) "pt",(char *) "sz", NULL
18170 };
18171
18172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18174 if (!SWIG_IsOK(res1)) {
18175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18176 }
18177 arg1 = reinterpret_cast< wxDC * >(argp1);
18178 {
18179 arg2 = &temp2;
18180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18181 }
18182 {
18183 arg3 = &temp3;
18184 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18185 }
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_Py_Void();
18193 return resultobj;
18194fail:
18195 return NULL;
18196}
18197
18198
18199SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18200 PyObject *resultobj = 0;
18201 wxDC *arg1 = (wxDC *) 0 ;
18202 int arg2 ;
18203 int arg3 ;
18204 int arg4 ;
18205 int arg5 ;
18206 double arg6 ;
18207 void *argp1 = 0 ;
18208 int res1 = 0 ;
18209 int val2 ;
18210 int ecode2 = 0 ;
18211 int val3 ;
18212 int ecode3 = 0 ;
18213 int val4 ;
18214 int ecode4 = 0 ;
18215 int val5 ;
18216 int ecode5 = 0 ;
18217 double val6 ;
18218 int ecode6 = 0 ;
18219 PyObject * obj0 = 0 ;
18220 PyObject * obj1 = 0 ;
18221 PyObject * obj2 = 0 ;
18222 PyObject * obj3 = 0 ;
18223 PyObject * obj4 = 0 ;
18224 PyObject * obj5 = 0 ;
18225 char * kwnames[] = {
18226 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18227 };
18228
18229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18231 if (!SWIG_IsOK(res1)) {
18232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18233 }
18234 arg1 = reinterpret_cast< wxDC * >(argp1);
18235 ecode2 = SWIG_AsVal_int(obj1, &val2);
18236 if (!SWIG_IsOK(ecode2)) {
18237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18238 }
18239 arg2 = static_cast< int >(val2);
18240 ecode3 = SWIG_AsVal_int(obj2, &val3);
18241 if (!SWIG_IsOK(ecode3)) {
18242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18243 }
18244 arg3 = static_cast< int >(val3);
18245 ecode4 = SWIG_AsVal_int(obj3, &val4);
18246 if (!SWIG_IsOK(ecode4)) {
18247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18248 }
18249 arg4 = static_cast< int >(val4);
18250 ecode5 = SWIG_AsVal_int(obj4, &val5);
18251 if (!SWIG_IsOK(ecode5)) {
18252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18253 }
18254 arg5 = static_cast< int >(val5);
18255 ecode6 = SWIG_AsVal_double(obj5, &val6);
18256 if (!SWIG_IsOK(ecode6)) {
18257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18258 }
18259 arg6 = static_cast< double >(val6);
18260 {
18261 PyThreadState* __tstate = wxPyBeginAllowThreads();
18262 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18263 wxPyEndAllowThreads(__tstate);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 }
18266 resultobj = SWIG_Py_Void();
18267 return resultobj;
18268fail:
18269 return NULL;
18270}
18271
18272
18273SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18274 PyObject *resultobj = 0;
18275 wxDC *arg1 = (wxDC *) 0 ;
18276 wxRect *arg2 = 0 ;
18277 double arg3 ;
18278 void *argp1 = 0 ;
18279 int res1 = 0 ;
18280 wxRect temp2 ;
18281 double val3 ;
18282 int ecode3 = 0 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 PyObject * obj2 = 0 ;
18286 char * kwnames[] = {
18287 (char *) "self",(char *) "r",(char *) "radius", NULL
18288 };
18289
18290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18292 if (!SWIG_IsOK(res1)) {
18293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18294 }
18295 arg1 = reinterpret_cast< wxDC * >(argp1);
18296 {
18297 arg2 = &temp2;
18298 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18299 }
18300 ecode3 = SWIG_AsVal_double(obj2, &val3);
18301 if (!SWIG_IsOK(ecode3)) {
18302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18303 }
18304 arg3 = static_cast< double >(val3);
18305 {
18306 PyThreadState* __tstate = wxPyBeginAllowThreads();
18307 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18308 wxPyEndAllowThreads(__tstate);
18309 if (PyErr_Occurred()) SWIG_fail;
18310 }
18311 resultobj = SWIG_Py_Void();
18312 return resultobj;
18313fail:
18314 return NULL;
18315}
18316
18317
18318SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18319 PyObject *resultobj = 0;
18320 wxDC *arg1 = (wxDC *) 0 ;
18321 wxPoint *arg2 = 0 ;
18322 wxSize *arg3 = 0 ;
18323 double arg4 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 wxPoint temp2 ;
18327 wxSize temp3 ;
18328 double val4 ;
18329 int ecode4 = 0 ;
18330 PyObject * obj0 = 0 ;
18331 PyObject * obj1 = 0 ;
18332 PyObject * obj2 = 0 ;
18333 PyObject * obj3 = 0 ;
18334 char * kwnames[] = {
18335 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18336 };
18337
18338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18340 if (!SWIG_IsOK(res1)) {
18341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18342 }
18343 arg1 = reinterpret_cast< wxDC * >(argp1);
18344 {
18345 arg2 = &temp2;
18346 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18347 }
18348 {
18349 arg3 = &temp3;
18350 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18351 }
18352 ecode4 = SWIG_AsVal_double(obj3, &val4);
18353 if (!SWIG_IsOK(ecode4)) {
18354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18355 }
18356 arg4 = static_cast< double >(val4);
18357 {
18358 PyThreadState* __tstate = wxPyBeginAllowThreads();
18359 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 resultobj = SWIG_Py_Void();
18364 return resultobj;
18365fail:
18366 return NULL;
18367}
18368
18369
18370SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj = 0;
18372 wxDC *arg1 = (wxDC *) 0 ;
18373 int arg2 ;
18374 int arg3 ;
18375 int arg4 ;
18376 void *argp1 = 0 ;
18377 int res1 = 0 ;
18378 int val2 ;
18379 int ecode2 = 0 ;
18380 int val3 ;
18381 int ecode3 = 0 ;
18382 int val4 ;
18383 int ecode4 = 0 ;
18384 PyObject * obj0 = 0 ;
18385 PyObject * obj1 = 0 ;
18386 PyObject * obj2 = 0 ;
18387 PyObject * obj3 = 0 ;
18388 char * kwnames[] = {
18389 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18390 };
18391
18392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18394 if (!SWIG_IsOK(res1)) {
18395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18396 }
18397 arg1 = reinterpret_cast< wxDC * >(argp1);
18398 ecode2 = SWIG_AsVal_int(obj1, &val2);
18399 if (!SWIG_IsOK(ecode2)) {
18400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18401 }
18402 arg2 = static_cast< int >(val2);
18403 ecode3 = SWIG_AsVal_int(obj2, &val3);
18404 if (!SWIG_IsOK(ecode3)) {
18405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18406 }
18407 arg3 = static_cast< int >(val3);
18408 ecode4 = SWIG_AsVal_int(obj3, &val4);
18409 if (!SWIG_IsOK(ecode4)) {
18410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18411 }
18412 arg4 = static_cast< int >(val4);
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 (arg1)->DrawCircle(arg2,arg3,arg4);
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_Py_Void();
18420 return resultobj;
18421fail:
18422 return NULL;
18423}
18424
18425
18426SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18427 PyObject *resultobj = 0;
18428 wxDC *arg1 = (wxDC *) 0 ;
18429 wxPoint *arg2 = 0 ;
18430 int arg3 ;
18431 void *argp1 = 0 ;
18432 int res1 = 0 ;
18433 wxPoint temp2 ;
18434 int val3 ;
18435 int ecode3 = 0 ;
18436 PyObject * obj0 = 0 ;
18437 PyObject * obj1 = 0 ;
18438 PyObject * obj2 = 0 ;
18439 char * kwnames[] = {
18440 (char *) "self",(char *) "pt",(char *) "radius", NULL
18441 };
18442
18443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18445 if (!SWIG_IsOK(res1)) {
18446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18447 }
18448 arg1 = reinterpret_cast< wxDC * >(argp1);
18449 {
18450 arg2 = &temp2;
18451 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18452 }
18453 ecode3 = SWIG_AsVal_int(obj2, &val3);
18454 if (!SWIG_IsOK(ecode3)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18456 }
18457 arg3 = static_cast< int >(val3);
18458 {
18459 PyThreadState* __tstate = wxPyBeginAllowThreads();
18460 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 resultobj = SWIG_Py_Void();
18465 return resultobj;
18466fail:
18467 return NULL;
18468}
18469
18470
18471SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj = 0;
18473 wxDC *arg1 = (wxDC *) 0 ;
18474 int arg2 ;
18475 int arg3 ;
18476 int arg4 ;
18477 int arg5 ;
18478 void *argp1 = 0 ;
18479 int res1 = 0 ;
18480 int val2 ;
18481 int ecode2 = 0 ;
18482 int val3 ;
18483 int ecode3 = 0 ;
18484 int val4 ;
18485 int ecode4 = 0 ;
18486 int val5 ;
18487 int ecode5 = 0 ;
18488 PyObject * obj0 = 0 ;
18489 PyObject * obj1 = 0 ;
18490 PyObject * obj2 = 0 ;
18491 PyObject * obj3 = 0 ;
18492 PyObject * obj4 = 0 ;
18493 char * kwnames[] = {
18494 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18495 };
18496
18497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18499 if (!SWIG_IsOK(res1)) {
18500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18501 }
18502 arg1 = reinterpret_cast< wxDC * >(argp1);
18503 ecode2 = SWIG_AsVal_int(obj1, &val2);
18504 if (!SWIG_IsOK(ecode2)) {
18505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18506 }
18507 arg2 = static_cast< int >(val2);
18508 ecode3 = SWIG_AsVal_int(obj2, &val3);
18509 if (!SWIG_IsOK(ecode3)) {
18510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18511 }
18512 arg3 = static_cast< int >(val3);
18513 ecode4 = SWIG_AsVal_int(obj3, &val4);
18514 if (!SWIG_IsOK(ecode4)) {
18515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18516 }
18517 arg4 = static_cast< int >(val4);
18518 ecode5 = SWIG_AsVal_int(obj4, &val5);
18519 if (!SWIG_IsOK(ecode5)) {
18520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18521 }
18522 arg5 = static_cast< int >(val5);
18523 {
18524 PyThreadState* __tstate = wxPyBeginAllowThreads();
18525 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18526 wxPyEndAllowThreads(__tstate);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 resultobj = SWIG_Py_Void();
18530 return resultobj;
18531fail:
18532 return NULL;
18533}
18534
18535
18536SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18537 PyObject *resultobj = 0;
18538 wxDC *arg1 = (wxDC *) 0 ;
18539 wxRect *arg2 = 0 ;
18540 void *argp1 = 0 ;
18541 int res1 = 0 ;
18542 wxRect temp2 ;
18543 PyObject * obj0 = 0 ;
18544 PyObject * obj1 = 0 ;
18545 char * kwnames[] = {
18546 (char *) "self",(char *) "rect", NULL
18547 };
18548
18549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18551 if (!SWIG_IsOK(res1)) {
18552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18553 }
18554 arg1 = reinterpret_cast< wxDC * >(argp1);
18555 {
18556 arg2 = &temp2;
18557 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18558 }
18559 {
18560 PyThreadState* __tstate = wxPyBeginAllowThreads();
18561 (arg1)->DrawEllipse((wxRect const &)*arg2);
18562 wxPyEndAllowThreads(__tstate);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 resultobj = SWIG_Py_Void();
18566 return resultobj;
18567fail:
18568 return NULL;
18569}
18570
18571
18572SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj = 0;
18574 wxDC *arg1 = (wxDC *) 0 ;
18575 wxPoint *arg2 = 0 ;
18576 wxSize *arg3 = 0 ;
18577 void *argp1 = 0 ;
18578 int res1 = 0 ;
18579 wxPoint temp2 ;
18580 wxSize temp3 ;
18581 PyObject * obj0 = 0 ;
18582 PyObject * obj1 = 0 ;
18583 PyObject * obj2 = 0 ;
18584 char * kwnames[] = {
18585 (char *) "self",(char *) "pt",(char *) "sz", NULL
18586 };
18587
18588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18590 if (!SWIG_IsOK(res1)) {
18591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18592 }
18593 arg1 = reinterpret_cast< wxDC * >(argp1);
18594 {
18595 arg2 = &temp2;
18596 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18597 }
18598 {
18599 arg3 = &temp3;
18600 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18601 }
18602 {
18603 PyThreadState* __tstate = wxPyBeginAllowThreads();
18604 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 resultobj = SWIG_Py_Void();
18609 return resultobj;
18610fail:
18611 return NULL;
18612}
18613
18614
18615SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18616 PyObject *resultobj = 0;
18617 wxDC *arg1 = (wxDC *) 0 ;
18618 wxIcon *arg2 = 0 ;
18619 int arg3 ;
18620 int arg4 ;
18621 void *argp1 = 0 ;
18622 int res1 = 0 ;
18623 void *argp2 = 0 ;
18624 int res2 = 0 ;
18625 int val3 ;
18626 int ecode3 = 0 ;
18627 int val4 ;
18628 int ecode4 = 0 ;
18629 PyObject * obj0 = 0 ;
18630 PyObject * obj1 = 0 ;
18631 PyObject * obj2 = 0 ;
18632 PyObject * obj3 = 0 ;
18633 char * kwnames[] = {
18634 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18635 };
18636
18637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18639 if (!SWIG_IsOK(res1)) {
18640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18641 }
18642 arg1 = reinterpret_cast< wxDC * >(argp1);
18643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18644 if (!SWIG_IsOK(res2)) {
18645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18646 }
18647 if (!argp2) {
18648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18649 }
18650 arg2 = reinterpret_cast< wxIcon * >(argp2);
18651 ecode3 = SWIG_AsVal_int(obj2, &val3);
18652 if (!SWIG_IsOK(ecode3)) {
18653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18654 }
18655 arg3 = static_cast< int >(val3);
18656 ecode4 = SWIG_AsVal_int(obj3, &val4);
18657 if (!SWIG_IsOK(ecode4)) {
18658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18659 }
18660 arg4 = static_cast< int >(val4);
18661 {
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18664 wxPyEndAllowThreads(__tstate);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
18667 resultobj = SWIG_Py_Void();
18668 return resultobj;
18669fail:
18670 return NULL;
18671}
18672
18673
18674SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18675 PyObject *resultobj = 0;
18676 wxDC *arg1 = (wxDC *) 0 ;
18677 wxIcon *arg2 = 0 ;
18678 wxPoint *arg3 = 0 ;
18679 void *argp1 = 0 ;
18680 int res1 = 0 ;
18681 void *argp2 = 0 ;
18682 int res2 = 0 ;
18683 wxPoint temp3 ;
18684 PyObject * obj0 = 0 ;
18685 PyObject * obj1 = 0 ;
18686 PyObject * obj2 = 0 ;
18687 char * kwnames[] = {
18688 (char *) "self",(char *) "icon",(char *) "pt", NULL
18689 };
18690
18691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18693 if (!SWIG_IsOK(res1)) {
18694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18695 }
18696 arg1 = reinterpret_cast< wxDC * >(argp1);
18697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18698 if (!SWIG_IsOK(res2)) {
18699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18700 }
18701 if (!argp2) {
18702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18703 }
18704 arg2 = reinterpret_cast< wxIcon * >(argp2);
18705 {
18706 arg3 = &temp3;
18707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 resultobj = SWIG_Py_Void();
18716 return resultobj;
18717fail:
18718 return NULL;
18719}
18720
18721
18722SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18723 PyObject *resultobj = 0;
18724 wxDC *arg1 = (wxDC *) 0 ;
18725 wxBitmap *arg2 = 0 ;
18726 int arg3 ;
18727 int arg4 ;
18728 bool arg5 = (bool) false ;
18729 void *argp1 = 0 ;
18730 int res1 = 0 ;
18731 void *argp2 = 0 ;
18732 int res2 = 0 ;
18733 int val3 ;
18734 int ecode3 = 0 ;
18735 int val4 ;
18736 int ecode4 = 0 ;
18737 bool val5 ;
18738 int ecode5 = 0 ;
18739 PyObject * obj0 = 0 ;
18740 PyObject * obj1 = 0 ;
18741 PyObject * obj2 = 0 ;
18742 PyObject * obj3 = 0 ;
18743 PyObject * obj4 = 0 ;
18744 char * kwnames[] = {
18745 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18746 };
18747
18748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18750 if (!SWIG_IsOK(res1)) {
18751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18752 }
18753 arg1 = reinterpret_cast< wxDC * >(argp1);
18754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18755 if (!SWIG_IsOK(res2)) {
18756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18757 }
18758 if (!argp2) {
18759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18760 }
18761 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18762 ecode3 = SWIG_AsVal_int(obj2, &val3);
18763 if (!SWIG_IsOK(ecode3)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18765 }
18766 arg3 = static_cast< int >(val3);
18767 ecode4 = SWIG_AsVal_int(obj3, &val4);
18768 if (!SWIG_IsOK(ecode4)) {
18769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18770 }
18771 arg4 = static_cast< int >(val4);
18772 if (obj4) {
18773 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18774 if (!SWIG_IsOK(ecode5)) {
18775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18776 }
18777 arg5 = static_cast< bool >(val5);
18778 }
18779 {
18780 PyThreadState* __tstate = wxPyBeginAllowThreads();
18781 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18782 wxPyEndAllowThreads(__tstate);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 resultobj = SWIG_Py_Void();
18786 return resultobj;
18787fail:
18788 return NULL;
18789}
18790
18791
18792SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18793 PyObject *resultobj = 0;
18794 wxDC *arg1 = (wxDC *) 0 ;
18795 wxBitmap *arg2 = 0 ;
18796 wxPoint *arg3 = 0 ;
18797 bool arg4 = (bool) false ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 void *argp2 = 0 ;
18801 int res2 = 0 ;
18802 wxPoint temp3 ;
18803 bool val4 ;
18804 int ecode4 = 0 ;
18805 PyObject * obj0 = 0 ;
18806 PyObject * obj1 = 0 ;
18807 PyObject * obj2 = 0 ;
18808 PyObject * obj3 = 0 ;
18809 char * kwnames[] = {
18810 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18811 };
18812
18813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18815 if (!SWIG_IsOK(res1)) {
18816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18817 }
18818 arg1 = reinterpret_cast< wxDC * >(argp1);
18819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18820 if (!SWIG_IsOK(res2)) {
18821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18822 }
18823 if (!argp2) {
18824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18825 }
18826 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18827 {
18828 arg3 = &temp3;
18829 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18830 }
18831 if (obj3) {
18832 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18833 if (!SWIG_IsOK(ecode4)) {
18834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18835 }
18836 arg4 = static_cast< bool >(val4);
18837 }
18838 {
18839 PyThreadState* __tstate = wxPyBeginAllowThreads();
18840 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18841 wxPyEndAllowThreads(__tstate);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 }
18844 resultobj = SWIG_Py_Void();
18845 return resultobj;
18846fail:
18847 return NULL;
18848}
18849
18850
18851SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18852 PyObject *resultobj = 0;
18853 wxDC *arg1 = (wxDC *) 0 ;
18854 wxString *arg2 = 0 ;
18855 int arg3 ;
18856 int arg4 ;
18857 void *argp1 = 0 ;
18858 int res1 = 0 ;
18859 bool temp2 = false ;
18860 int val3 ;
18861 int ecode3 = 0 ;
18862 int val4 ;
18863 int ecode4 = 0 ;
18864 PyObject * obj0 = 0 ;
18865 PyObject * obj1 = 0 ;
18866 PyObject * obj2 = 0 ;
18867 PyObject * obj3 = 0 ;
18868 char * kwnames[] = {
18869 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18870 };
18871
18872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18874 if (!SWIG_IsOK(res1)) {
18875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18876 }
18877 arg1 = reinterpret_cast< wxDC * >(argp1);
18878 {
18879 arg2 = wxString_in_helper(obj1);
18880 if (arg2 == NULL) SWIG_fail;
18881 temp2 = true;
18882 }
18883 ecode3 = SWIG_AsVal_int(obj2, &val3);
18884 if (!SWIG_IsOK(ecode3)) {
18885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18886 }
18887 arg3 = static_cast< int >(val3);
18888 ecode4 = SWIG_AsVal_int(obj3, &val4);
18889 if (!SWIG_IsOK(ecode4)) {
18890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18891 }
18892 arg4 = static_cast< int >(val4);
18893 {
18894 PyThreadState* __tstate = wxPyBeginAllowThreads();
18895 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18896 wxPyEndAllowThreads(__tstate);
18897 if (PyErr_Occurred()) SWIG_fail;
18898 }
18899 resultobj = SWIG_Py_Void();
18900 {
18901 if (temp2)
18902 delete arg2;
18903 }
18904 return resultobj;
18905fail:
18906 {
18907 if (temp2)
18908 delete arg2;
18909 }
18910 return NULL;
18911}
18912
18913
18914SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18915 PyObject *resultobj = 0;
18916 wxDC *arg1 = (wxDC *) 0 ;
18917 wxString *arg2 = 0 ;
18918 wxPoint *arg3 = 0 ;
18919 void *argp1 = 0 ;
18920 int res1 = 0 ;
18921 bool temp2 = false ;
18922 wxPoint temp3 ;
18923 PyObject * obj0 = 0 ;
18924 PyObject * obj1 = 0 ;
18925 PyObject * obj2 = 0 ;
18926 char * kwnames[] = {
18927 (char *) "self",(char *) "text",(char *) "pt", NULL
18928 };
18929
18930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18932 if (!SWIG_IsOK(res1)) {
18933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18934 }
18935 arg1 = reinterpret_cast< wxDC * >(argp1);
18936 {
18937 arg2 = wxString_in_helper(obj1);
18938 if (arg2 == NULL) SWIG_fail;
18939 temp2 = true;
18940 }
18941 {
18942 arg3 = &temp3;
18943 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18944 }
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18948 wxPyEndAllowThreads(__tstate);
18949 if (PyErr_Occurred()) SWIG_fail;
18950 }
18951 resultobj = SWIG_Py_Void();
18952 {
18953 if (temp2)
18954 delete arg2;
18955 }
18956 return resultobj;
18957fail:
18958 {
18959 if (temp2)
18960 delete arg2;
18961 }
18962 return NULL;
18963}
18964
18965
18966SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18967 PyObject *resultobj = 0;
18968 wxDC *arg1 = (wxDC *) 0 ;
18969 wxString *arg2 = 0 ;
18970 int arg3 ;
18971 int arg4 ;
18972 double arg5 ;
18973 void *argp1 = 0 ;
18974 int res1 = 0 ;
18975 bool temp2 = false ;
18976 int val3 ;
18977 int ecode3 = 0 ;
18978 int val4 ;
18979 int ecode4 = 0 ;
18980 double val5 ;
18981 int ecode5 = 0 ;
18982 PyObject * obj0 = 0 ;
18983 PyObject * obj1 = 0 ;
18984 PyObject * obj2 = 0 ;
18985 PyObject * obj3 = 0 ;
18986 PyObject * obj4 = 0 ;
18987 char * kwnames[] = {
18988 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
18989 };
18990
18991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18993 if (!SWIG_IsOK(res1)) {
18994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
18995 }
18996 arg1 = reinterpret_cast< wxDC * >(argp1);
18997 {
18998 arg2 = wxString_in_helper(obj1);
18999 if (arg2 == NULL) SWIG_fail;
19000 temp2 = true;
19001 }
19002 ecode3 = SWIG_AsVal_int(obj2, &val3);
19003 if (!SWIG_IsOK(ecode3)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19005 }
19006 arg3 = static_cast< int >(val3);
19007 ecode4 = SWIG_AsVal_int(obj3, &val4);
19008 if (!SWIG_IsOK(ecode4)) {
19009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19010 }
19011 arg4 = static_cast< int >(val4);
19012 ecode5 = SWIG_AsVal_double(obj4, &val5);
19013 if (!SWIG_IsOK(ecode5)) {
19014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19015 }
19016 arg5 = static_cast< double >(val5);
19017 {
19018 PyThreadState* __tstate = wxPyBeginAllowThreads();
19019 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19020 wxPyEndAllowThreads(__tstate);
19021 if (PyErr_Occurred()) SWIG_fail;
19022 }
19023 resultobj = SWIG_Py_Void();
19024 {
19025 if (temp2)
19026 delete arg2;
19027 }
19028 return resultobj;
19029fail:
19030 {
19031 if (temp2)
19032 delete arg2;
19033 }
19034 return NULL;
19035}
19036
19037
19038SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj = 0;
19040 wxDC *arg1 = (wxDC *) 0 ;
19041 wxString *arg2 = 0 ;
19042 wxPoint *arg3 = 0 ;
19043 double arg4 ;
19044 void *argp1 = 0 ;
19045 int res1 = 0 ;
19046 bool temp2 = false ;
19047 wxPoint temp3 ;
19048 double val4 ;
19049 int ecode4 = 0 ;
19050 PyObject * obj0 = 0 ;
19051 PyObject * obj1 = 0 ;
19052 PyObject * obj2 = 0 ;
19053 PyObject * obj3 = 0 ;
19054 char * kwnames[] = {
19055 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19056 };
19057
19058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19060 if (!SWIG_IsOK(res1)) {
19061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19062 }
19063 arg1 = reinterpret_cast< wxDC * >(argp1);
19064 {
19065 arg2 = wxString_in_helper(obj1);
19066 if (arg2 == NULL) SWIG_fail;
19067 temp2 = true;
19068 }
19069 {
19070 arg3 = &temp3;
19071 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19072 }
19073 ecode4 = SWIG_AsVal_double(obj3, &val4);
19074 if (!SWIG_IsOK(ecode4)) {
19075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19076 }
19077 arg4 = static_cast< double >(val4);
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19081 wxPyEndAllowThreads(__tstate);
19082 if (PyErr_Occurred()) SWIG_fail;
19083 }
19084 resultobj = SWIG_Py_Void();
19085 {
19086 if (temp2)
19087 delete arg2;
19088 }
19089 return resultobj;
19090fail:
19091 {
19092 if (temp2)
19093 delete arg2;
19094 }
19095 return NULL;
19096}
19097
19098
19099SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19100 PyObject *resultobj = 0;
19101 wxDC *arg1 = (wxDC *) 0 ;
19102 int arg2 ;
19103 int arg3 ;
19104 int arg4 ;
19105 int arg5 ;
19106 wxDC *arg6 = (wxDC *) 0 ;
19107 int arg7 ;
19108 int arg8 ;
19109 int arg9 = (int) wxCOPY ;
19110 bool arg10 = (bool) false ;
19111 int arg11 = (int) -1 ;
19112 int arg12 = (int) -1 ;
19113 bool result;
19114 void *argp1 = 0 ;
19115 int res1 = 0 ;
19116 int val2 ;
19117 int ecode2 = 0 ;
19118 int val3 ;
19119 int ecode3 = 0 ;
19120 int val4 ;
19121 int ecode4 = 0 ;
19122 int val5 ;
19123 int ecode5 = 0 ;
19124 void *argp6 = 0 ;
19125 int res6 = 0 ;
19126 int val7 ;
19127 int ecode7 = 0 ;
19128 int val8 ;
19129 int ecode8 = 0 ;
19130 int val9 ;
19131 int ecode9 = 0 ;
19132 bool val10 ;
19133 int ecode10 = 0 ;
19134 int val11 ;
19135 int ecode11 = 0 ;
19136 int val12 ;
19137 int ecode12 = 0 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 PyObject * obj2 = 0 ;
19141 PyObject * obj3 = 0 ;
19142 PyObject * obj4 = 0 ;
19143 PyObject * obj5 = 0 ;
19144 PyObject * obj6 = 0 ;
19145 PyObject * obj7 = 0 ;
19146 PyObject * obj8 = 0 ;
19147 PyObject * obj9 = 0 ;
19148 PyObject * obj10 = 0 ;
19149 PyObject * obj11 = 0 ;
19150 char * kwnames[] = {
19151 (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
19152 };
19153
19154 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;
19155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19156 if (!SWIG_IsOK(res1)) {
19157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19158 }
19159 arg1 = reinterpret_cast< wxDC * >(argp1);
19160 ecode2 = SWIG_AsVal_int(obj1, &val2);
19161 if (!SWIG_IsOK(ecode2)) {
19162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19163 }
19164 arg2 = static_cast< int >(val2);
19165 ecode3 = SWIG_AsVal_int(obj2, &val3);
19166 if (!SWIG_IsOK(ecode3)) {
19167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19168 }
19169 arg3 = static_cast< int >(val3);
19170 ecode4 = SWIG_AsVal_int(obj3, &val4);
19171 if (!SWIG_IsOK(ecode4)) {
19172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19173 }
19174 arg4 = static_cast< int >(val4);
19175 ecode5 = SWIG_AsVal_int(obj4, &val5);
19176 if (!SWIG_IsOK(ecode5)) {
19177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19178 }
19179 arg5 = static_cast< int >(val5);
19180 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19181 if (!SWIG_IsOK(res6)) {
19182 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19183 }
19184 arg6 = reinterpret_cast< wxDC * >(argp6);
19185 ecode7 = SWIG_AsVal_int(obj6, &val7);
19186 if (!SWIG_IsOK(ecode7)) {
19187 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19188 }
19189 arg7 = static_cast< int >(val7);
19190 ecode8 = SWIG_AsVal_int(obj7, &val8);
19191 if (!SWIG_IsOK(ecode8)) {
19192 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19193 }
19194 arg8 = static_cast< int >(val8);
19195 if (obj8) {
19196 ecode9 = SWIG_AsVal_int(obj8, &val9);
19197 if (!SWIG_IsOK(ecode9)) {
19198 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19199 }
19200 arg9 = static_cast< int >(val9);
19201 }
19202 if (obj9) {
19203 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19204 if (!SWIG_IsOK(ecode10)) {
19205 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19206 }
19207 arg10 = static_cast< bool >(val10);
19208 }
19209 if (obj10) {
19210 ecode11 = SWIG_AsVal_int(obj10, &val11);
19211 if (!SWIG_IsOK(ecode11)) {
19212 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19213 }
19214 arg11 = static_cast< int >(val11);
19215 }
19216 if (obj11) {
19217 ecode12 = SWIG_AsVal_int(obj11, &val12);
19218 if (!SWIG_IsOK(ecode12)) {
19219 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19220 }
19221 arg12 = static_cast< int >(val12);
19222 }
19223 {
19224 PyThreadState* __tstate = wxPyBeginAllowThreads();
19225 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19226 wxPyEndAllowThreads(__tstate);
19227 if (PyErr_Occurred()) SWIG_fail;
19228 }
19229 {
19230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19231 }
19232 return resultobj;
19233fail:
19234 return NULL;
19235}
19236
19237
19238SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19239 PyObject *resultobj = 0;
19240 wxDC *arg1 = (wxDC *) 0 ;
19241 wxPoint *arg2 = 0 ;
19242 wxSize *arg3 = 0 ;
19243 wxDC *arg4 = (wxDC *) 0 ;
19244 wxPoint *arg5 = 0 ;
19245 int arg6 = (int) wxCOPY ;
19246 bool arg7 = (bool) false ;
19247 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19248 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19249 bool result;
19250 void *argp1 = 0 ;
19251 int res1 = 0 ;
19252 wxPoint temp2 ;
19253 wxSize temp3 ;
19254 void *argp4 = 0 ;
19255 int res4 = 0 ;
19256 wxPoint temp5 ;
19257 int val6 ;
19258 int ecode6 = 0 ;
19259 bool val7 ;
19260 int ecode7 = 0 ;
19261 wxPoint temp8 ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 PyObject * obj2 = 0 ;
19265 PyObject * obj3 = 0 ;
19266 PyObject * obj4 = 0 ;
19267 PyObject * obj5 = 0 ;
19268 PyObject * obj6 = 0 ;
19269 PyObject * obj7 = 0 ;
19270 char * kwnames[] = {
19271 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19272 };
19273
19274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19276 if (!SWIG_IsOK(res1)) {
19277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19278 }
19279 arg1 = reinterpret_cast< wxDC * >(argp1);
19280 {
19281 arg2 = &temp2;
19282 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19283 }
19284 {
19285 arg3 = &temp3;
19286 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19287 }
19288 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19289 if (!SWIG_IsOK(res4)) {
19290 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19291 }
19292 arg4 = reinterpret_cast< wxDC * >(argp4);
19293 {
19294 arg5 = &temp5;
19295 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19296 }
19297 if (obj5) {
19298 ecode6 = SWIG_AsVal_int(obj5, &val6);
19299 if (!SWIG_IsOK(ecode6)) {
19300 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19301 }
19302 arg6 = static_cast< int >(val6);
19303 }
19304 if (obj6) {
19305 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19306 if (!SWIG_IsOK(ecode7)) {
19307 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19308 }
19309 arg7 = static_cast< bool >(val7);
19310 }
19311 if (obj7) {
36ed4f51 19312 {
1bd55598
RD
19313 arg8 = &temp8;
19314 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19315 }
1bd55598
RD
19316 }
19317 {
19318 PyThreadState* __tstate = wxPyBeginAllowThreads();
19319 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19320 wxPyEndAllowThreads(__tstate);
19321 if (PyErr_Occurred()) SWIG_fail;
19322 }
19323 {
19324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19325 }
19326 return resultobj;
19327fail:
19328 return NULL;
19329}
19330
19331
19332SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19333 PyObject *resultobj = 0;
19334 wxDC *arg1 = (wxDC *) 0 ;
19335 int arg2 ;
19336 int arg3 ;
19337 int arg4 ;
19338 int arg5 ;
19339 void *argp1 = 0 ;
19340 int res1 = 0 ;
19341 int val2 ;
19342 int ecode2 = 0 ;
19343 int val3 ;
19344 int ecode3 = 0 ;
19345 int val4 ;
19346 int ecode4 = 0 ;
19347 int val5 ;
19348 int ecode5 = 0 ;
19349 PyObject * obj0 = 0 ;
19350 PyObject * obj1 = 0 ;
19351 PyObject * obj2 = 0 ;
19352 PyObject * obj3 = 0 ;
19353 PyObject * obj4 = 0 ;
19354 char * kwnames[] = {
19355 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19356 };
19357
19358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19360 if (!SWIG_IsOK(res1)) {
19361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19362 }
19363 arg1 = reinterpret_cast< wxDC * >(argp1);
19364 ecode2 = SWIG_AsVal_int(obj1, &val2);
19365 if (!SWIG_IsOK(ecode2)) {
19366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19367 }
19368 arg2 = static_cast< int >(val2);
19369 ecode3 = SWIG_AsVal_int(obj2, &val3);
19370 if (!SWIG_IsOK(ecode3)) {
19371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19372 }
19373 arg3 = static_cast< int >(val3);
19374 ecode4 = SWIG_AsVal_int(obj3, &val4);
19375 if (!SWIG_IsOK(ecode4)) {
19376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19377 }
19378 arg4 = static_cast< int >(val4);
19379 ecode5 = SWIG_AsVal_int(obj4, &val5);
19380 if (!SWIG_IsOK(ecode5)) {
19381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19382 }
19383 arg5 = static_cast< int >(val5);
19384 {
19385 PyThreadState* __tstate = wxPyBeginAllowThreads();
19386 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_Py_Void();
19391 return resultobj;
19392fail:
19393 return NULL;
19394}
19395
19396
19397SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj = 0;
19399 wxDC *arg1 = (wxDC *) 0 ;
19400 wxPoint *arg2 = 0 ;
19401 wxSize *arg3 = 0 ;
19402 void *argp1 = 0 ;
19403 int res1 = 0 ;
19404 wxPoint temp2 ;
19405 wxSize temp3 ;
19406 PyObject * obj0 = 0 ;
19407 PyObject * obj1 = 0 ;
19408 PyObject * obj2 = 0 ;
19409 char * kwnames[] = {
19410 (char *) "self",(char *) "pt",(char *) "sz", NULL
19411 };
19412
19413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19415 if (!SWIG_IsOK(res1)) {
19416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19417 }
19418 arg1 = reinterpret_cast< wxDC * >(argp1);
19419 {
19420 arg2 = &temp2;
19421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19422 }
19423 {
19424 arg3 = &temp3;
19425 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19426 }
19427 {
19428 PyThreadState* __tstate = wxPyBeginAllowThreads();
19429 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19430 wxPyEndAllowThreads(__tstate);
19431 if (PyErr_Occurred()) SWIG_fail;
19432 }
19433 resultobj = SWIG_Py_Void();
19434 return resultobj;
19435fail:
19436 return NULL;
19437}
19438
19439
19440SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19441 PyObject *resultobj = 0;
19442 wxDC *arg1 = (wxDC *) 0 ;
19443 wxRegion *arg2 = 0 ;
19444 void *argp1 = 0 ;
19445 int res1 = 0 ;
19446 void *argp2 = 0 ;
19447 int res2 = 0 ;
19448 PyObject * obj0 = 0 ;
19449 PyObject * obj1 = 0 ;
19450 char * kwnames[] = {
19451 (char *) "self",(char *) "region", NULL
19452 };
19453
19454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19456 if (!SWIG_IsOK(res1)) {
19457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19458 }
19459 arg1 = reinterpret_cast< wxDC * >(argp1);
19460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19461 if (!SWIG_IsOK(res2)) {
19462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19463 }
19464 if (!argp2) {
19465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19466 }
19467 arg2 = reinterpret_cast< wxRegion * >(argp2);
19468 {
19469 PyThreadState* __tstate = wxPyBeginAllowThreads();
19470 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19471 wxPyEndAllowThreads(__tstate);
19472 if (PyErr_Occurred()) SWIG_fail;
19473 }
19474 resultobj = SWIG_Py_Void();
19475 return resultobj;
19476fail:
19477 return NULL;
19478}
19479
19480
19481SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19482 PyObject *resultobj = 0;
19483 wxDC *arg1 = (wxDC *) 0 ;
19484 wxRect *arg2 = 0 ;
19485 void *argp1 = 0 ;
19486 int res1 = 0 ;
19487 wxRect temp2 ;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 char * kwnames[] = {
19491 (char *) "self",(char *) "rect", NULL
19492 };
19493
19494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19496 if (!SWIG_IsOK(res1)) {
19497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19498 }
19499 arg1 = reinterpret_cast< wxDC * >(argp1);
19500 {
19501 arg2 = &temp2;
19502 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19503 }
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 resultobj = SWIG_Py_Void();
19511 return resultobj;
19512fail:
19513 return NULL;
19514}
19515
19516
19517SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19518 PyObject *resultobj = 0;
19519 wxDC *arg1 = (wxDC *) 0 ;
19520 int arg2 ;
19521 wxPoint *arg3 = (wxPoint *) 0 ;
19522 int arg4 = (int) 0 ;
19523 int arg5 = (int) 0 ;
19524 void *argp1 = 0 ;
19525 int res1 = 0 ;
19526 int val4 ;
19527 int ecode4 = 0 ;
19528 int val5 ;
19529 int ecode5 = 0 ;
19530 PyObject * obj0 = 0 ;
19531 PyObject * obj1 = 0 ;
19532 PyObject * obj2 = 0 ;
19533 PyObject * obj3 = 0 ;
19534 char * kwnames[] = {
19535 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19536 };
19537
19538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19540 if (!SWIG_IsOK(res1)) {
19541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19542 }
19543 arg1 = reinterpret_cast< wxDC * >(argp1);
19544 {
19545 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19546 if (arg3 == NULL) SWIG_fail;
19547 }
19548 if (obj2) {
19549 ecode4 = SWIG_AsVal_int(obj2, &val4);
19550 if (!SWIG_IsOK(ecode4)) {
19551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19552 }
19553 arg4 = static_cast< int >(val4);
19554 }
19555 if (obj3) {
19556 ecode5 = SWIG_AsVal_int(obj3, &val5);
19557 if (!SWIG_IsOK(ecode5)) {
19558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19559 }
19560 arg5 = static_cast< int >(val5);
19561 }
19562 {
19563 PyThreadState* __tstate = wxPyBeginAllowThreads();
19564 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19565 wxPyEndAllowThreads(__tstate);
19566 if (PyErr_Occurred()) SWIG_fail;
19567 }
19568 resultobj = SWIG_Py_Void();
19569 {
19570 if (arg3) delete [] arg3;
19571 }
19572 return resultobj;
19573fail:
19574 {
19575 if (arg3) delete [] arg3;
19576 }
19577 return NULL;
19578}
19579
19580
19581SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19582 PyObject *resultobj = 0;
19583 wxDC *arg1 = (wxDC *) 0 ;
19584 int arg2 ;
19585 wxPoint *arg3 = (wxPoint *) 0 ;
19586 int arg4 = (int) 0 ;
19587 int arg5 = (int) 0 ;
19588 int arg6 = (int) wxODDEVEN_RULE ;
19589 void *argp1 = 0 ;
19590 int res1 = 0 ;
19591 int val4 ;
19592 int ecode4 = 0 ;
19593 int val5 ;
19594 int ecode5 = 0 ;
19595 int val6 ;
19596 int ecode6 = 0 ;
19597 PyObject * obj0 = 0 ;
19598 PyObject * obj1 = 0 ;
19599 PyObject * obj2 = 0 ;
19600 PyObject * obj3 = 0 ;
19601 PyObject * obj4 = 0 ;
19602 char * kwnames[] = {
19603 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19604 };
19605
19606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19608 if (!SWIG_IsOK(res1)) {
19609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19610 }
19611 arg1 = reinterpret_cast< wxDC * >(argp1);
19612 {
19613 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19614 if (arg3 == NULL) SWIG_fail;
19615 }
19616 if (obj2) {
19617 ecode4 = SWIG_AsVal_int(obj2, &val4);
19618 if (!SWIG_IsOK(ecode4)) {
19619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19620 }
19621 arg4 = static_cast< int >(val4);
19622 }
19623 if (obj3) {
19624 ecode5 = SWIG_AsVal_int(obj3, &val5);
19625 if (!SWIG_IsOK(ecode5)) {
19626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19627 }
19628 arg5 = static_cast< int >(val5);
19629 }
19630 if (obj4) {
19631 ecode6 = SWIG_AsVal_int(obj4, &val6);
19632 if (!SWIG_IsOK(ecode6)) {
19633 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19634 }
19635 arg6 = static_cast< int >(val6);
19636 }
19637 {
19638 PyThreadState* __tstate = wxPyBeginAllowThreads();
19639 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19640 wxPyEndAllowThreads(__tstate);
19641 if (PyErr_Occurred()) SWIG_fail;
19642 }
19643 resultobj = SWIG_Py_Void();
19644 {
19645 if (arg3) delete [] arg3;
19646 }
19647 return resultobj;
19648fail:
19649 {
19650 if (arg3) delete [] arg3;
19651 }
19652 return NULL;
19653}
19654
19655
19656SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19657 PyObject *resultobj = 0;
19658 wxDC *arg1 = (wxDC *) 0 ;
19659 wxString *arg2 = 0 ;
19660 wxRect *arg3 = 0 ;
19661 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19662 int arg5 = (int) -1 ;
19663 void *argp1 = 0 ;
19664 int res1 = 0 ;
19665 bool temp2 = false ;
19666 wxRect temp3 ;
19667 int val4 ;
19668 int ecode4 = 0 ;
19669 int val5 ;
19670 int ecode5 = 0 ;
19671 PyObject * obj0 = 0 ;
19672 PyObject * obj1 = 0 ;
19673 PyObject * obj2 = 0 ;
19674 PyObject * obj3 = 0 ;
19675 PyObject * obj4 = 0 ;
19676 char * kwnames[] = {
19677 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19678 };
19679
19680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19682 if (!SWIG_IsOK(res1)) {
19683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19684 }
19685 arg1 = reinterpret_cast< wxDC * >(argp1);
19686 {
19687 arg2 = wxString_in_helper(obj1);
19688 if (arg2 == NULL) SWIG_fail;
19689 temp2 = true;
19690 }
19691 {
19692 arg3 = &temp3;
19693 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19694 }
19695 if (obj3) {
19696 ecode4 = SWIG_AsVal_int(obj3, &val4);
19697 if (!SWIG_IsOK(ecode4)) {
19698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19699 }
19700 arg4 = static_cast< int >(val4);
19701 }
19702 if (obj4) {
19703 ecode5 = SWIG_AsVal_int(obj4, &val5);
19704 if (!SWIG_IsOK(ecode5)) {
19705 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19706 }
19707 arg5 = static_cast< int >(val5);
19708 }
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 {
19717 if (temp2)
19718 delete arg2;
19719 }
19720 return resultobj;
19721fail:
19722 {
19723 if (temp2)
19724 delete arg2;
19725 }
19726 return NULL;
19727}
19728
19729
19730SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxDC *arg1 = (wxDC *) 0 ;
19733 wxString *arg2 = 0 ;
19734 wxBitmap *arg3 = 0 ;
19735 wxRect *arg4 = 0 ;
19736 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19737 int arg6 = (int) -1 ;
19738 wxRect result;
19739 void *argp1 = 0 ;
19740 int res1 = 0 ;
19741 bool temp2 = false ;
19742 void *argp3 = 0 ;
19743 int res3 = 0 ;
19744 wxRect temp4 ;
19745 int val5 ;
19746 int ecode5 = 0 ;
19747 int val6 ;
19748 int ecode6 = 0 ;
19749 PyObject * obj0 = 0 ;
19750 PyObject * obj1 = 0 ;
19751 PyObject * obj2 = 0 ;
19752 PyObject * obj3 = 0 ;
19753 PyObject * obj4 = 0 ;
19754 PyObject * obj5 = 0 ;
19755 char * kwnames[] = {
19756 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19757 };
19758
19759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19761 if (!SWIG_IsOK(res1)) {
19762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19763 }
19764 arg1 = reinterpret_cast< wxDC * >(argp1);
19765 {
19766 arg2 = wxString_in_helper(obj1);
19767 if (arg2 == NULL) SWIG_fail;
19768 temp2 = true;
19769 }
19770 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19771 if (!SWIG_IsOK(res3)) {
19772 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19773 }
19774 if (!argp3) {
19775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19776 }
19777 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19778 {
19779 arg4 = &temp4;
19780 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19781 }
19782 if (obj4) {
19783 ecode5 = SWIG_AsVal_int(obj4, &val5);
19784 if (!SWIG_IsOK(ecode5)) {
19785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19786 }
19787 arg5 = static_cast< int >(val5);
19788 }
19789 if (obj5) {
19790 ecode6 = SWIG_AsVal_int(obj5, &val6);
19791 if (!SWIG_IsOK(ecode6)) {
19792 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19793 }
19794 arg6 = static_cast< int >(val6);
19795 }
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19799 wxPyEndAllowThreads(__tstate);
19800 if (PyErr_Occurred()) SWIG_fail;
19801 }
19802 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19803 {
19804 if (temp2)
19805 delete arg2;
19806 }
19807 return resultobj;
19808fail:
19809 {
19810 if (temp2)
19811 delete arg2;
19812 }
19813 return NULL;
19814}
19815
19816
19817SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19818 PyObject *resultobj = 0;
19819 wxDC *arg1 = (wxDC *) 0 ;
19820 int arg2 ;
19821 wxPoint *arg3 = (wxPoint *) 0 ;
19822 void *argp1 = 0 ;
19823 int res1 = 0 ;
19824 PyObject * obj0 = 0 ;
19825 PyObject * obj1 = 0 ;
19826 char * kwnames[] = {
19827 (char *) "self",(char *) "points", NULL
19828 };
19829
19830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19832 if (!SWIG_IsOK(res1)) {
19833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19834 }
19835 arg1 = reinterpret_cast< wxDC * >(argp1);
19836 {
19837 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19838 if (arg3 == NULL) SWIG_fail;
19839 }
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 (arg1)->DrawSpline(arg2,arg3);
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 resultobj = SWIG_Py_Void();
19847 {
19848 if (arg3) delete [] arg3;
19849 }
19850 return resultobj;
19851fail:
19852 {
19853 if (arg3) delete [] arg3;
19854 }
19855 return NULL;
19856}
19857
19858
19859SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 void *argp1 = 0 ;
19863 int res1 = 0 ;
19864 PyObject *swig_obj[1] ;
19865
19866 if (!args) SWIG_fail;
19867 swig_obj[0] = args;
19868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19869 if (!SWIG_IsOK(res1)) {
19870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19871 }
19872 arg1 = reinterpret_cast< wxDC * >(argp1);
19873 {
19874 PyThreadState* __tstate = wxPyBeginAllowThreads();
19875 (arg1)->Clear();
19876 wxPyEndAllowThreads(__tstate);
19877 if (PyErr_Occurred()) SWIG_fail;
19878 }
19879 resultobj = SWIG_Py_Void();
19880 return resultobj;
19881fail:
19882 return NULL;
19883}
19884
19885
19886SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj = 0;
19888 wxDC *arg1 = (wxDC *) 0 ;
19889 wxString *arg2 = 0 ;
19890 bool result;
19891 void *argp1 = 0 ;
19892 int res1 = 0 ;
19893 bool temp2 = false ;
19894 PyObject * obj0 = 0 ;
19895 PyObject * obj1 = 0 ;
19896 char * kwnames[] = {
19897 (char *) "self",(char *) "message", NULL
19898 };
19899
19900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19902 if (!SWIG_IsOK(res1)) {
19903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19904 }
19905 arg1 = reinterpret_cast< wxDC * >(argp1);
19906 {
19907 arg2 = wxString_in_helper(obj1);
19908 if (arg2 == NULL) SWIG_fail;
19909 temp2 = true;
19910 }
19911 {
19912 PyThreadState* __tstate = wxPyBeginAllowThreads();
19913 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19914 wxPyEndAllowThreads(__tstate);
19915 if (PyErr_Occurred()) SWIG_fail;
19916 }
19917 {
19918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19919 }
19920 {
19921 if (temp2)
19922 delete arg2;
19923 }
19924 return resultobj;
19925fail:
19926 {
19927 if (temp2)
19928 delete arg2;
19929 }
19930 return NULL;
19931}
19932
19933
19934SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19935 PyObject *resultobj = 0;
19936 wxDC *arg1 = (wxDC *) 0 ;
19937 void *argp1 = 0 ;
19938 int res1 = 0 ;
19939 PyObject *swig_obj[1] ;
19940
19941 if (!args) SWIG_fail;
19942 swig_obj[0] = args;
19943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19944 if (!SWIG_IsOK(res1)) {
19945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19946 }
19947 arg1 = reinterpret_cast< wxDC * >(argp1);
19948 {
19949 PyThreadState* __tstate = wxPyBeginAllowThreads();
19950 (arg1)->EndDoc();
19951 wxPyEndAllowThreads(__tstate);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 resultobj = SWIG_Py_Void();
19955 return resultobj;
19956fail:
19957 return NULL;
19958}
19959
19960
19961SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19962 PyObject *resultobj = 0;
19963 wxDC *arg1 = (wxDC *) 0 ;
19964 void *argp1 = 0 ;
19965 int res1 = 0 ;
19966 PyObject *swig_obj[1] ;
19967
19968 if (!args) SWIG_fail;
19969 swig_obj[0] = args;
19970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19971 if (!SWIG_IsOK(res1)) {
19972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19973 }
19974 arg1 = reinterpret_cast< wxDC * >(argp1);
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 (arg1)->StartPage();
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
19981 resultobj = SWIG_Py_Void();
19982 return resultobj;
19983fail:
19984 return NULL;
19985}
19986
19987
19988SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19989 PyObject *resultobj = 0;
19990 wxDC *arg1 = (wxDC *) 0 ;
19991 void *argp1 = 0 ;
19992 int res1 = 0 ;
19993 PyObject *swig_obj[1] ;
19994
19995 if (!args) SWIG_fail;
19996 swig_obj[0] = args;
19997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19998 if (!SWIG_IsOK(res1)) {
19999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20000 }
20001 arg1 = reinterpret_cast< wxDC * >(argp1);
20002 {
20003 PyThreadState* __tstate = wxPyBeginAllowThreads();
20004 (arg1)->EndPage();
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 resultobj = SWIG_Py_Void();
20009 return resultobj;
20010fail:
20011 return NULL;
20012}
20013
20014
20015SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj = 0;
20017 wxDC *arg1 = (wxDC *) 0 ;
20018 wxFont *arg2 = 0 ;
20019 void *argp1 = 0 ;
20020 int res1 = 0 ;
20021 void *argp2 = 0 ;
20022 int res2 = 0 ;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 char * kwnames[] = {
20026 (char *) "self",(char *) "font", NULL
20027 };
20028
20029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20031 if (!SWIG_IsOK(res1)) {
20032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20033 }
20034 arg1 = reinterpret_cast< wxDC * >(argp1);
20035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20036 if (!SWIG_IsOK(res2)) {
20037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20038 }
20039 if (!argp2) {
20040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20041 }
20042 arg2 = reinterpret_cast< wxFont * >(argp2);
20043 {
20044 PyThreadState* __tstate = wxPyBeginAllowThreads();
20045 (arg1)->SetFont((wxFont const &)*arg2);
20046 wxPyEndAllowThreads(__tstate);
20047 if (PyErr_Occurred()) SWIG_fail;
20048 }
20049 resultobj = SWIG_Py_Void();
20050 return resultobj;
20051fail:
20052 return NULL;
20053}
20054
20055
20056SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20057 PyObject *resultobj = 0;
20058 wxDC *arg1 = (wxDC *) 0 ;
20059 wxPen *arg2 = 0 ;
20060 void *argp1 = 0 ;
20061 int res1 = 0 ;
20062 void *argp2 = 0 ;
20063 int res2 = 0 ;
20064 PyObject * obj0 = 0 ;
20065 PyObject * obj1 = 0 ;
20066 char * kwnames[] = {
20067 (char *) "self",(char *) "pen", NULL
20068 };
20069
20070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20072 if (!SWIG_IsOK(res1)) {
20073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20074 }
20075 arg1 = reinterpret_cast< wxDC * >(argp1);
20076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20077 if (!SWIG_IsOK(res2)) {
20078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20079 }
20080 if (!argp2) {
20081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20082 }
20083 arg2 = reinterpret_cast< wxPen * >(argp2);
20084 {
20085 PyThreadState* __tstate = wxPyBeginAllowThreads();
20086 (arg1)->SetPen((wxPen const &)*arg2);
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 resultobj = SWIG_Py_Void();
20091 return resultobj;
20092fail:
20093 return NULL;
20094}
20095
20096
20097SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20098 PyObject *resultobj = 0;
20099 wxDC *arg1 = (wxDC *) 0 ;
20100 wxBrush *arg2 = 0 ;
20101 void *argp1 = 0 ;
20102 int res1 = 0 ;
20103 void *argp2 = 0 ;
20104 int res2 = 0 ;
20105 PyObject * obj0 = 0 ;
20106 PyObject * obj1 = 0 ;
20107 char * kwnames[] = {
20108 (char *) "self",(char *) "brush", NULL
20109 };
20110
20111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20113 if (!SWIG_IsOK(res1)) {
20114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20115 }
20116 arg1 = reinterpret_cast< wxDC * >(argp1);
20117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20118 if (!SWIG_IsOK(res2)) {
20119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20120 }
20121 if (!argp2) {
20122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20123 }
20124 arg2 = reinterpret_cast< wxBrush * >(argp2);
20125 {
20126 PyThreadState* __tstate = wxPyBeginAllowThreads();
20127 (arg1)->SetBrush((wxBrush const &)*arg2);
20128 wxPyEndAllowThreads(__tstate);
20129 if (PyErr_Occurred()) SWIG_fail;
20130 }
20131 resultobj = SWIG_Py_Void();
20132 return resultobj;
20133fail:
20134 return NULL;
20135}
20136
20137
20138SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20139 PyObject *resultobj = 0;
20140 wxDC *arg1 = (wxDC *) 0 ;
20141 wxBrush *arg2 = 0 ;
20142 void *argp1 = 0 ;
20143 int res1 = 0 ;
20144 void *argp2 = 0 ;
20145 int res2 = 0 ;
20146 PyObject * obj0 = 0 ;
20147 PyObject * obj1 = 0 ;
20148 char * kwnames[] = {
20149 (char *) "self",(char *) "brush", NULL
20150 };
20151
20152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20154 if (!SWIG_IsOK(res1)) {
20155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20156 }
20157 arg1 = reinterpret_cast< wxDC * >(argp1);
20158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20159 if (!SWIG_IsOK(res2)) {
20160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20161 }
20162 if (!argp2) {
20163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20164 }
20165 arg2 = reinterpret_cast< wxBrush * >(argp2);
20166 {
20167 PyThreadState* __tstate = wxPyBeginAllowThreads();
20168 (arg1)->SetBackground((wxBrush const &)*arg2);
20169 wxPyEndAllowThreads(__tstate);
20170 if (PyErr_Occurred()) SWIG_fail;
20171 }
20172 resultobj = SWIG_Py_Void();
20173 return resultobj;
20174fail:
20175 return NULL;
20176}
20177
20178
20179SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj = 0;
20181 wxDC *arg1 = (wxDC *) 0 ;
20182 int arg2 ;
20183 void *argp1 = 0 ;
20184 int res1 = 0 ;
20185 int val2 ;
20186 int ecode2 = 0 ;
20187 PyObject * obj0 = 0 ;
20188 PyObject * obj1 = 0 ;
20189 char * kwnames[] = {
20190 (char *) "self",(char *) "mode", NULL
20191 };
20192
20193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20195 if (!SWIG_IsOK(res1)) {
20196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20197 }
20198 arg1 = reinterpret_cast< wxDC * >(argp1);
20199 ecode2 = SWIG_AsVal_int(obj1, &val2);
20200 if (!SWIG_IsOK(ecode2)) {
20201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20202 }
20203 arg2 = static_cast< int >(val2);
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 (arg1)->SetBackgroundMode(arg2);
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 resultobj = SWIG_Py_Void();
20211 return resultobj;
20212fail:
20213 return NULL;
20214}
20215
20216
20217SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj = 0;
20219 wxDC *arg1 = (wxDC *) 0 ;
20220 wxPalette *arg2 = 0 ;
20221 void *argp1 = 0 ;
20222 int res1 = 0 ;
20223 void *argp2 = 0 ;
20224 int res2 = 0 ;
20225 PyObject * obj0 = 0 ;
20226 PyObject * obj1 = 0 ;
20227 char * kwnames[] = {
20228 (char *) "self",(char *) "palette", NULL
20229 };
20230
20231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20233 if (!SWIG_IsOK(res1)) {
20234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20235 }
20236 arg1 = reinterpret_cast< wxDC * >(argp1);
20237 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20238 if (!SWIG_IsOK(res2)) {
20239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20240 }
20241 if (!argp2) {
20242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20243 }
20244 arg2 = reinterpret_cast< wxPalette * >(argp2);
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 (arg1)->SetPalette((wxPalette const &)*arg2);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = SWIG_Py_Void();
20252 return resultobj;
20253fail:
20254 return NULL;
20255}
20256
20257
20258SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20259 PyObject *resultobj = 0;
20260 wxDC *arg1 = (wxDC *) 0 ;
20261 void *argp1 = 0 ;
20262 int res1 = 0 ;
20263 PyObject *swig_obj[1] ;
20264
20265 if (!args) SWIG_fail;
20266 swig_obj[0] = args;
20267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20268 if (!SWIG_IsOK(res1)) {
20269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20270 }
20271 arg1 = reinterpret_cast< wxDC * >(argp1);
20272 {
20273 PyThreadState* __tstate = wxPyBeginAllowThreads();
20274 (arg1)->DestroyClippingRegion();
20275 wxPyEndAllowThreads(__tstate);
20276 if (PyErr_Occurred()) SWIG_fail;
20277 }
20278 resultobj = SWIG_Py_Void();
20279 return resultobj;
20280fail:
20281 return NULL;
20282}
20283
20284
20285SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20286 PyObject *resultobj = 0;
20287 wxDC *arg1 = (wxDC *) 0 ;
20288 int *arg2 = (int *) 0 ;
20289 int *arg3 = (int *) 0 ;
20290 int *arg4 = (int *) 0 ;
20291 int *arg5 = (int *) 0 ;
20292 void *argp1 = 0 ;
20293 int res1 = 0 ;
20294 int temp2 ;
20295 int res2 = SWIG_TMPOBJ ;
20296 int temp3 ;
20297 int res3 = SWIG_TMPOBJ ;
20298 int temp4 ;
20299 int res4 = SWIG_TMPOBJ ;
20300 int temp5 ;
20301 int res5 = SWIG_TMPOBJ ;
20302 PyObject *swig_obj[1] ;
20303
20304 arg2 = &temp2;
20305 arg3 = &temp3;
20306 arg4 = &temp4;
20307 arg5 = &temp5;
20308 if (!args) SWIG_fail;
20309 swig_obj[0] = args;
20310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20311 if (!SWIG_IsOK(res1)) {
20312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20313 }
20314 arg1 = reinterpret_cast< wxDC * >(argp1);
20315 {
20316 PyThreadState* __tstate = wxPyBeginAllowThreads();
20317 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20318 wxPyEndAllowThreads(__tstate);
20319 if (PyErr_Occurred()) SWIG_fail;
20320 }
20321 resultobj = SWIG_Py_Void();
20322 if (SWIG_IsTmpObj(res2)) {
20323 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20324 } else {
20325 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20326 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20327 }
20328 if (SWIG_IsTmpObj(res3)) {
20329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20330 } else {
20331 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20333 }
20334 if (SWIG_IsTmpObj(res4)) {
20335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20336 } else {
20337 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20339 }
20340 if (SWIG_IsTmpObj(res5)) {
20341 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20342 } else {
20343 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20344 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20345 }
20346 return resultobj;
20347fail:
20348 return NULL;
20349}
20350
20351
20352SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20353 PyObject *resultobj = 0;
20354 wxDC *arg1 = (wxDC *) 0 ;
20355 wxRect result;
20356 void *argp1 = 0 ;
20357 int res1 = 0 ;
20358 PyObject *swig_obj[1] ;
20359
20360 if (!args) SWIG_fail;
20361 swig_obj[0] = args;
20362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20363 if (!SWIG_IsOK(res1)) {
20364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20365 }
20366 arg1 = reinterpret_cast< wxDC * >(argp1);
20367 {
20368 PyThreadState* __tstate = wxPyBeginAllowThreads();
20369 result = wxDC_GetClippingRect(arg1);
20370 wxPyEndAllowThreads(__tstate);
20371 if (PyErr_Occurred()) SWIG_fail;
20372 }
20373 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20374 return resultobj;
20375fail:
20376 return NULL;
20377}
20378
20379
20380SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20381 PyObject *resultobj = 0;
20382 wxDC *arg1 = (wxDC *) 0 ;
20383 int result;
20384 void *argp1 = 0 ;
20385 int res1 = 0 ;
20386 PyObject *swig_obj[1] ;
20387
20388 if (!args) SWIG_fail;
20389 swig_obj[0] = args;
20390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20391 if (!SWIG_IsOK(res1)) {
20392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20393 }
20394 arg1 = reinterpret_cast< wxDC * >(argp1);
20395 {
20396 PyThreadState* __tstate = wxPyBeginAllowThreads();
20397 result = (int)((wxDC const *)arg1)->GetCharHeight();
20398 wxPyEndAllowThreads(__tstate);
20399 if (PyErr_Occurred()) SWIG_fail;
20400 }
20401 resultobj = SWIG_From_int(static_cast< int >(result));
20402 return resultobj;
20403fail:
20404 return NULL;
20405}
20406
20407
20408SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20409 PyObject *resultobj = 0;
20410 wxDC *arg1 = (wxDC *) 0 ;
20411 int result;
20412 void *argp1 = 0 ;
20413 int res1 = 0 ;
20414 PyObject *swig_obj[1] ;
20415
20416 if (!args) SWIG_fail;
20417 swig_obj[0] = args;
20418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20419 if (!SWIG_IsOK(res1)) {
20420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20421 }
20422 arg1 = reinterpret_cast< wxDC * >(argp1);
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 result = (int)((wxDC const *)arg1)->GetCharWidth();
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 resultobj = SWIG_From_int(static_cast< int >(result));
20430 return resultobj;
20431fail:
20432 return NULL;
20433}
20434
20435
20436SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20437 PyObject *resultobj = 0;
20438 wxDC *arg1 = (wxDC *) 0 ;
20439 wxString *arg2 = 0 ;
20440 int *arg3 = (int *) 0 ;
20441 int *arg4 = (int *) 0 ;
20442 void *argp1 = 0 ;
20443 int res1 = 0 ;
20444 bool temp2 = false ;
20445 int temp3 ;
20446 int res3 = SWIG_TMPOBJ ;
20447 int temp4 ;
20448 int res4 = SWIG_TMPOBJ ;
20449 PyObject * obj0 = 0 ;
20450 PyObject * obj1 = 0 ;
20451 char * kwnames[] = {
20452 (char *) "self",(char *) "string", NULL
20453 };
20454
20455 arg3 = &temp3;
20456 arg4 = &temp4;
20457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20459 if (!SWIG_IsOK(res1)) {
20460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20461 }
20462 arg1 = reinterpret_cast< wxDC * >(argp1);
20463 {
20464 arg2 = wxString_in_helper(obj1);
20465 if (arg2 == NULL) SWIG_fail;
20466 temp2 = true;
20467 }
20468 {
20469 PyThreadState* __tstate = wxPyBeginAllowThreads();
20470 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20471 wxPyEndAllowThreads(__tstate);
20472 if (PyErr_Occurred()) SWIG_fail;
20473 }
20474 resultobj = SWIG_Py_Void();
20475 if (SWIG_IsTmpObj(res3)) {
20476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20477 } else {
20478 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20480 }
20481 if (SWIG_IsTmpObj(res4)) {
20482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20483 } else {
20484 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20486 }
20487 {
20488 if (temp2)
20489 delete arg2;
20490 }
20491 return resultobj;
20492fail:
20493 {
20494 if (temp2)
20495 delete arg2;
20496 }
20497 return NULL;
20498}
20499
20500
20501SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20502 PyObject *resultobj = 0;
20503 wxDC *arg1 = (wxDC *) 0 ;
20504 wxString *arg2 = 0 ;
20505 int *arg3 = (int *) 0 ;
20506 int *arg4 = (int *) 0 ;
20507 int *arg5 = (int *) 0 ;
20508 int *arg6 = (int *) 0 ;
20509 wxFont *arg7 = (wxFont *) NULL ;
20510 void *argp1 = 0 ;
20511 int res1 = 0 ;
20512 bool temp2 = false ;
20513 int temp3 ;
20514 int res3 = SWIG_TMPOBJ ;
20515 int temp4 ;
20516 int res4 = SWIG_TMPOBJ ;
20517 int temp5 ;
20518 int res5 = SWIG_TMPOBJ ;
20519 int temp6 ;
20520 int res6 = SWIG_TMPOBJ ;
20521 void *argp7 = 0 ;
20522 int res7 = 0 ;
20523 PyObject * obj0 = 0 ;
20524 PyObject * obj1 = 0 ;
20525 PyObject * obj2 = 0 ;
20526 char * kwnames[] = {
20527 (char *) "self",(char *) "string",(char *) "font", NULL
20528 };
20529
20530 arg3 = &temp3;
20531 arg4 = &temp4;
20532 arg5 = &temp5;
20533 arg6 = &temp6;
20534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20536 if (!SWIG_IsOK(res1)) {
20537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20538 }
20539 arg1 = reinterpret_cast< wxDC * >(argp1);
20540 {
20541 arg2 = wxString_in_helper(obj1);
20542 if (arg2 == NULL) SWIG_fail;
20543 temp2 = true;
20544 }
20545 if (obj2) {
20546 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20547 if (!SWIG_IsOK(res7)) {
20548 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 20549 }
1bd55598
RD
20550 arg7 = reinterpret_cast< wxFont * >(argp7);
20551 }
20552 {
20553 PyThreadState* __tstate = wxPyBeginAllowThreads();
20554 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 resultobj = SWIG_Py_Void();
20559 if (SWIG_IsTmpObj(res3)) {
20560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20561 } else {
20562 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20564 }
20565 if (SWIG_IsTmpObj(res4)) {
20566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20567 } else {
20568 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20570 }
20571 if (SWIG_IsTmpObj(res5)) {
20572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20573 } else {
20574 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20576 }
20577 if (SWIG_IsTmpObj(res6)) {
20578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20579 } else {
20580 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20582 }
20583 {
20584 if (temp2)
20585 delete arg2;
20586 }
20587 return resultobj;
20588fail:
20589 {
20590 if (temp2)
20591 delete arg2;
20592 }
20593 return NULL;
20594}
20595
20596
20597SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxDC *arg1 = (wxDC *) 0 ;
20600 wxString *arg2 = 0 ;
20601 int *arg3 = (int *) 0 ;
20602 int *arg4 = (int *) 0 ;
20603 int *arg5 = (int *) 0 ;
20604 wxFont *arg6 = (wxFont *) NULL ;
20605 void *argp1 = 0 ;
20606 int res1 = 0 ;
20607 bool temp2 = false ;
20608 int temp3 ;
20609 int res3 = SWIG_TMPOBJ ;
20610 int temp4 ;
20611 int res4 = SWIG_TMPOBJ ;
20612 int temp5 ;
20613 int res5 = SWIG_TMPOBJ ;
20614 void *argp6 = 0 ;
20615 int res6 = 0 ;
20616 PyObject * obj0 = 0 ;
20617 PyObject * obj1 = 0 ;
20618 PyObject * obj2 = 0 ;
20619 char * kwnames[] = {
20620 (char *) "self",(char *) "text",(char *) "font", NULL
20621 };
20622
20623 arg3 = &temp3;
20624 arg4 = &temp4;
20625 arg5 = &temp5;
20626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20628 if (!SWIG_IsOK(res1)) {
20629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20630 }
20631 arg1 = reinterpret_cast< wxDC * >(argp1);
20632 {
20633 arg2 = wxString_in_helper(obj1);
20634 if (arg2 == NULL) SWIG_fail;
20635 temp2 = true;
20636 }
20637 if (obj2) {
20638 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20639 if (!SWIG_IsOK(res6)) {
20640 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 20641 }
1bd55598
RD
20642 arg6 = reinterpret_cast< wxFont * >(argp6);
20643 }
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_Py_Void();
20651 if (SWIG_IsTmpObj(res3)) {
20652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20653 } else {
20654 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20656 }
20657 if (SWIG_IsTmpObj(res4)) {
20658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20659 } else {
20660 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20662 }
20663 if (SWIG_IsTmpObj(res5)) {
20664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20665 } else {
20666 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20668 }
20669 {
20670 if (temp2)
20671 delete arg2;
20672 }
20673 return resultobj;
20674fail:
20675 {
20676 if (temp2)
20677 delete arg2;
20678 }
20679 return NULL;
20680}
20681
20682
20683SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20684 PyObject *resultobj = 0;
20685 wxDC *arg1 = (wxDC *) 0 ;
20686 wxString *arg2 = 0 ;
20687 wxArrayInt result;
20688 void *argp1 = 0 ;
20689 int res1 = 0 ;
20690 bool temp2 = false ;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693 char * kwnames[] = {
20694 (char *) "self",(char *) "text", NULL
20695 };
20696
20697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20699 if (!SWIG_IsOK(res1)) {
20700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20701 }
20702 arg1 = reinterpret_cast< wxDC * >(argp1);
20703 {
20704 arg2 = wxString_in_helper(obj1);
20705 if (arg2 == NULL) SWIG_fail;
20706 temp2 = true;
20707 }
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 {
20715 resultobj = PyList_New(0);
20716 size_t idx;
20717 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20718 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20719 PyList_Append(resultobj, val);
20720 Py_DECREF(val);
36ed4f51 20721 }
1bd55598
RD
20722 }
20723 {
20724 if (temp2)
20725 delete arg2;
20726 }
20727 return resultobj;
20728fail:
20729 {
20730 if (temp2)
20731 delete arg2;
20732 }
20733 return NULL;
20734}
20735
20736
20737SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20738 PyObject *resultobj = 0;
20739 wxDC *arg1 = (wxDC *) 0 ;
20740 wxSize result;
20741 void *argp1 = 0 ;
20742 int res1 = 0 ;
20743 PyObject *swig_obj[1] ;
20744
20745 if (!args) SWIG_fail;
20746 swig_obj[0] = args;
20747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20748 if (!SWIG_IsOK(res1)) {
20749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20750 }
20751 arg1 = reinterpret_cast< wxDC * >(argp1);
20752 {
20753 PyThreadState* __tstate = wxPyBeginAllowThreads();
20754 result = (arg1)->GetSize();
20755 wxPyEndAllowThreads(__tstate);
20756 if (PyErr_Occurred()) SWIG_fail;
20757 }
20758 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20759 return resultobj;
20760fail:
20761 return NULL;
20762}
20763
20764
20765SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20766 PyObject *resultobj = 0;
20767 wxDC *arg1 = (wxDC *) 0 ;
20768 int *arg2 = (int *) 0 ;
20769 int *arg3 = (int *) 0 ;
20770 void *argp1 = 0 ;
20771 int res1 = 0 ;
20772 int temp2 ;
20773 int res2 = SWIG_TMPOBJ ;
20774 int temp3 ;
20775 int res3 = SWIG_TMPOBJ ;
20776 PyObject *swig_obj[1] ;
20777
20778 arg2 = &temp2;
20779 arg3 = &temp3;
20780 if (!args) SWIG_fail;
20781 swig_obj[0] = args;
20782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20783 if (!SWIG_IsOK(res1)) {
20784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20785 }
20786 arg1 = reinterpret_cast< wxDC * >(argp1);
20787 {
20788 PyThreadState* __tstate = wxPyBeginAllowThreads();
20789 (arg1)->GetSize(arg2,arg3);
20790 wxPyEndAllowThreads(__tstate);
20791 if (PyErr_Occurred()) SWIG_fail;
20792 }
20793 resultobj = SWIG_Py_Void();
20794 if (SWIG_IsTmpObj(res2)) {
20795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20796 } else {
20797 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20799 }
20800 if (SWIG_IsTmpObj(res3)) {
20801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20802 } else {
20803 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20805 }
20806 return resultobj;
20807fail:
20808 return NULL;
20809}
20810
20811
20812SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20813 PyObject *resultobj = 0;
20814 wxDC *arg1 = (wxDC *) 0 ;
20815 wxSize result;
20816 void *argp1 = 0 ;
20817 int res1 = 0 ;
20818 PyObject *swig_obj[1] ;
20819
20820 if (!args) SWIG_fail;
20821 swig_obj[0] = args;
20822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20823 if (!SWIG_IsOK(res1)) {
20824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20825 }
20826 arg1 = reinterpret_cast< wxDC * >(argp1);
20827 {
20828 PyThreadState* __tstate = wxPyBeginAllowThreads();
20829 result = ((wxDC const *)arg1)->GetSizeMM();
20830 wxPyEndAllowThreads(__tstate);
20831 if (PyErr_Occurred()) SWIG_fail;
20832 }
20833 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20834 return resultobj;
20835fail:
20836 return NULL;
20837}
20838
20839
20840SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20841 PyObject *resultobj = 0;
20842 wxDC *arg1 = (wxDC *) 0 ;
20843 int *arg2 = (int *) 0 ;
20844 int *arg3 = (int *) 0 ;
20845 void *argp1 = 0 ;
20846 int res1 = 0 ;
20847 int temp2 ;
20848 int res2 = SWIG_TMPOBJ ;
20849 int temp3 ;
20850 int res3 = SWIG_TMPOBJ ;
20851 PyObject *swig_obj[1] ;
20852
20853 arg2 = &temp2;
20854 arg3 = &temp3;
20855 if (!args) SWIG_fail;
20856 swig_obj[0] = args;
20857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20860 }
20861 arg1 = reinterpret_cast< wxDC * >(argp1);
20862 {
20863 PyThreadState* __tstate = wxPyBeginAllowThreads();
20864 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20865 wxPyEndAllowThreads(__tstate);
20866 if (PyErr_Occurred()) SWIG_fail;
20867 }
20868 resultobj = SWIG_Py_Void();
20869 if (SWIG_IsTmpObj(res2)) {
20870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20871 } else {
20872 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20874 }
20875 if (SWIG_IsTmpObj(res3)) {
20876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20877 } else {
20878 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20880 }
20881 return resultobj;
20882fail:
20883 return NULL;
20884}
20885
20886
20887SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20888 PyObject *resultobj = 0;
20889 wxDC *arg1 = (wxDC *) 0 ;
20890 int arg2 ;
20891 int result;
20892 void *argp1 = 0 ;
20893 int res1 = 0 ;
20894 int val2 ;
20895 int ecode2 = 0 ;
20896 PyObject * obj0 = 0 ;
20897 PyObject * obj1 = 0 ;
20898 char * kwnames[] = {
20899 (char *) "self",(char *) "x", NULL
20900 };
20901
20902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20904 if (!SWIG_IsOK(res1)) {
20905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20906 }
20907 arg1 = reinterpret_cast< wxDC * >(argp1);
20908 ecode2 = SWIG_AsVal_int(obj1, &val2);
20909 if (!SWIG_IsOK(ecode2)) {
20910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20911 }
20912 arg2 = static_cast< int >(val2);
20913 {
20914 PyThreadState* __tstate = wxPyBeginAllowThreads();
20915 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20916 wxPyEndAllowThreads(__tstate);
20917 if (PyErr_Occurred()) SWIG_fail;
20918 }
20919 resultobj = SWIG_From_int(static_cast< int >(result));
20920 return resultobj;
20921fail:
20922 return NULL;
20923}
20924
20925
20926SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20927 PyObject *resultobj = 0;
20928 wxDC *arg1 = (wxDC *) 0 ;
20929 int arg2 ;
20930 int result;
20931 void *argp1 = 0 ;
20932 int res1 = 0 ;
20933 int val2 ;
20934 int ecode2 = 0 ;
20935 PyObject * obj0 = 0 ;
20936 PyObject * obj1 = 0 ;
20937 char * kwnames[] = {
20938 (char *) "self",(char *) "y", NULL
20939 };
20940
20941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20943 if (!SWIG_IsOK(res1)) {
20944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20945 }
20946 arg1 = reinterpret_cast< wxDC * >(argp1);
20947 ecode2 = SWIG_AsVal_int(obj1, &val2);
20948 if (!SWIG_IsOK(ecode2)) {
20949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20950 }
20951 arg2 = static_cast< int >(val2);
20952 {
20953 PyThreadState* __tstate = wxPyBeginAllowThreads();
20954 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20955 wxPyEndAllowThreads(__tstate);
20956 if (PyErr_Occurred()) SWIG_fail;
20957 }
20958 resultobj = SWIG_From_int(static_cast< int >(result));
20959 return resultobj;
20960fail:
20961 return NULL;
20962}
20963
20964
20965SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20966 PyObject *resultobj = 0;
20967 wxDC *arg1 = (wxDC *) 0 ;
20968 int arg2 ;
20969 int result;
20970 void *argp1 = 0 ;
20971 int res1 = 0 ;
20972 int val2 ;
20973 int ecode2 = 0 ;
20974 PyObject * obj0 = 0 ;
20975 PyObject * obj1 = 0 ;
20976 char * kwnames[] = {
20977 (char *) "self",(char *) "x", NULL
20978 };
20979
20980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20982 if (!SWIG_IsOK(res1)) {
20983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20984 }
20985 arg1 = reinterpret_cast< wxDC * >(argp1);
20986 ecode2 = SWIG_AsVal_int(obj1, &val2);
20987 if (!SWIG_IsOK(ecode2)) {
20988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
20989 }
20990 arg2 = static_cast< int >(val2);
20991 {
20992 PyThreadState* __tstate = wxPyBeginAllowThreads();
20993 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
20994 wxPyEndAllowThreads(__tstate);
20995 if (PyErr_Occurred()) SWIG_fail;
20996 }
20997 resultobj = SWIG_From_int(static_cast< int >(result));
20998 return resultobj;
20999fail:
21000 return NULL;
21001}
21002
21003
21004SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21005 PyObject *resultobj = 0;
21006 wxDC *arg1 = (wxDC *) 0 ;
21007 int arg2 ;
21008 int result;
21009 void *argp1 = 0 ;
21010 int res1 = 0 ;
21011 int val2 ;
21012 int ecode2 = 0 ;
21013 PyObject * obj0 = 0 ;
21014 PyObject * obj1 = 0 ;
21015 char * kwnames[] = {
21016 (char *) "self",(char *) "y", NULL
21017 };
21018
21019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21021 if (!SWIG_IsOK(res1)) {
21022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21023 }
21024 arg1 = reinterpret_cast< wxDC * >(argp1);
21025 ecode2 = SWIG_AsVal_int(obj1, &val2);
21026 if (!SWIG_IsOK(ecode2)) {
21027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21028 }
21029 arg2 = static_cast< int >(val2);
21030 {
21031 PyThreadState* __tstate = wxPyBeginAllowThreads();
21032 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21033 wxPyEndAllowThreads(__tstate);
21034 if (PyErr_Occurred()) SWIG_fail;
21035 }
21036 resultobj = SWIG_From_int(static_cast< int >(result));
21037 return resultobj;
21038fail:
21039 return NULL;
21040}
21041
21042
21043SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21044 PyObject *resultobj = 0;
21045 wxDC *arg1 = (wxDC *) 0 ;
21046 int arg2 ;
21047 int result;
21048 void *argp1 = 0 ;
21049 int res1 = 0 ;
21050 int val2 ;
21051 int ecode2 = 0 ;
21052 PyObject * obj0 = 0 ;
21053 PyObject * obj1 = 0 ;
21054 char * kwnames[] = {
21055 (char *) "self",(char *) "x", NULL
21056 };
21057
21058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21060 if (!SWIG_IsOK(res1)) {
21061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21062 }
21063 arg1 = reinterpret_cast< wxDC * >(argp1);
21064 ecode2 = SWIG_AsVal_int(obj1, &val2);
21065 if (!SWIG_IsOK(ecode2)) {
21066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21067 }
21068 arg2 = static_cast< int >(val2);
21069 {
21070 PyThreadState* __tstate = wxPyBeginAllowThreads();
21071 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 resultobj = SWIG_From_int(static_cast< int >(result));
21076 return resultobj;
21077fail:
21078 return NULL;
21079}
21080
21081
21082SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21083 PyObject *resultobj = 0;
21084 wxDC *arg1 = (wxDC *) 0 ;
21085 int arg2 ;
21086 int result;
21087 void *argp1 = 0 ;
21088 int res1 = 0 ;
21089 int val2 ;
21090 int ecode2 = 0 ;
21091 PyObject * obj0 = 0 ;
21092 PyObject * obj1 = 0 ;
21093 char * kwnames[] = {
21094 (char *) "self",(char *) "y", NULL
21095 };
21096
21097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21099 if (!SWIG_IsOK(res1)) {
21100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21101 }
21102 arg1 = reinterpret_cast< wxDC * >(argp1);
21103 ecode2 = SWIG_AsVal_int(obj1, &val2);
21104 if (!SWIG_IsOK(ecode2)) {
21105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21106 }
21107 arg2 = static_cast< int >(val2);
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 resultobj = SWIG_From_int(static_cast< int >(result));
21115 return resultobj;
21116fail:
21117 return NULL;
21118}
21119
21120
21121SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21122 PyObject *resultobj = 0;
21123 wxDC *arg1 = (wxDC *) 0 ;
21124 int arg2 ;
21125 int result;
21126 void *argp1 = 0 ;
21127 int res1 = 0 ;
21128 int val2 ;
21129 int ecode2 = 0 ;
21130 PyObject * obj0 = 0 ;
21131 PyObject * obj1 = 0 ;
21132 char * kwnames[] = {
21133 (char *) "self",(char *) "x", NULL
21134 };
21135
21136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21138 if (!SWIG_IsOK(res1)) {
21139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21140 }
21141 arg1 = reinterpret_cast< wxDC * >(argp1);
21142 ecode2 = SWIG_AsVal_int(obj1, &val2);
21143 if (!SWIG_IsOK(ecode2)) {
21144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21145 }
21146 arg2 = static_cast< int >(val2);
21147 {
21148 PyThreadState* __tstate = wxPyBeginAllowThreads();
21149 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21150 wxPyEndAllowThreads(__tstate);
21151 if (PyErr_Occurred()) SWIG_fail;
21152 }
21153 resultobj = SWIG_From_int(static_cast< int >(result));
21154 return resultobj;
21155fail:
21156 return NULL;
21157}
21158
21159
21160SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21161 PyObject *resultobj = 0;
21162 wxDC *arg1 = (wxDC *) 0 ;
21163 int arg2 ;
21164 int result;
21165 void *argp1 = 0 ;
21166 int res1 = 0 ;
21167 int val2 ;
21168 int ecode2 = 0 ;
21169 PyObject * obj0 = 0 ;
21170 PyObject * obj1 = 0 ;
21171 char * kwnames[] = {
21172 (char *) "self",(char *) "y", NULL
21173 };
21174
21175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21177 if (!SWIG_IsOK(res1)) {
21178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21179 }
21180 arg1 = reinterpret_cast< wxDC * >(argp1);
21181 ecode2 = SWIG_AsVal_int(obj1, &val2);
21182 if (!SWIG_IsOK(ecode2)) {
21183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21184 }
21185 arg2 = static_cast< int >(val2);
21186 {
21187 PyThreadState* __tstate = wxPyBeginAllowThreads();
21188 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21189 wxPyEndAllowThreads(__tstate);
21190 if (PyErr_Occurred()) SWIG_fail;
21191 }
21192 resultobj = SWIG_From_int(static_cast< int >(result));
21193 return resultobj;
21194fail:
21195 return NULL;
21196}
21197
21198
21199SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21200 PyObject *resultobj = 0;
21201 wxDC *arg1 = (wxDC *) 0 ;
21202 bool result;
21203 void *argp1 = 0 ;
21204 int res1 = 0 ;
21205 PyObject *swig_obj[1] ;
21206
21207 if (!args) SWIG_fail;
21208 swig_obj[0] = args;
21209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21210 if (!SWIG_IsOK(res1)) {
21211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21212 }
21213 arg1 = reinterpret_cast< wxDC * >(argp1);
21214 {
21215 PyThreadState* __tstate = wxPyBeginAllowThreads();
21216 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21217 wxPyEndAllowThreads(__tstate);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 }
21220 {
21221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21222 }
21223 return resultobj;
21224fail:
21225 return NULL;
21226}
21227
21228
21229SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230 PyObject *resultobj = 0;
21231 wxDC *arg1 = (wxDC *) 0 ;
21232 bool result;
21233 void *argp1 = 0 ;
21234 int res1 = 0 ;
21235 PyObject *swig_obj[1] ;
21236
21237 if (!args) SWIG_fail;
21238 swig_obj[0] = args;
21239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21242 }
21243 arg1 = reinterpret_cast< wxDC * >(argp1);
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 {
21251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21252 }
21253 return resultobj;
21254fail:
21255 return NULL;
21256}
21257
21258
21259SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21260 PyObject *resultobj = 0;
21261 wxDC *arg1 = (wxDC *) 0 ;
21262 int result;
21263 void *argp1 = 0 ;
21264 int res1 = 0 ;
21265 PyObject *swig_obj[1] ;
21266
21267 if (!args) SWIG_fail;
21268 swig_obj[0] = args;
21269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21270 if (!SWIG_IsOK(res1)) {
21271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21272 }
21273 arg1 = reinterpret_cast< wxDC * >(argp1);
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 result = (int)((wxDC const *)arg1)->GetDepth();
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 resultobj = SWIG_From_int(static_cast< int >(result));
21281 return resultobj;
21282fail:
21283 return NULL;
21284}
21285
21286
21287SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21288 PyObject *resultobj = 0;
21289 wxDC *arg1 = (wxDC *) 0 ;
21290 wxSize result;
21291 void *argp1 = 0 ;
21292 int res1 = 0 ;
21293 PyObject *swig_obj[1] ;
21294
21295 if (!args) SWIG_fail;
21296 swig_obj[0] = args;
21297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21298 if (!SWIG_IsOK(res1)) {
21299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21300 }
21301 arg1 = reinterpret_cast< wxDC * >(argp1);
21302 {
21303 PyThreadState* __tstate = wxPyBeginAllowThreads();
21304 result = ((wxDC const *)arg1)->GetPPI();
21305 wxPyEndAllowThreads(__tstate);
21306 if (PyErr_Occurred()) SWIG_fail;
21307 }
21308 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21309 return resultobj;
21310fail:
21311 return NULL;
21312}
21313
21314
21315SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21316 PyObject *resultobj = 0;
21317 wxDC *arg1 = (wxDC *) 0 ;
21318 bool result;
21319 void *argp1 = 0 ;
21320 int res1 = 0 ;
21321 PyObject *swig_obj[1] ;
21322
21323 if (!args) SWIG_fail;
21324 swig_obj[0] = args;
21325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21326 if (!SWIG_IsOK(res1)) {
21327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21328 }
21329 arg1 = reinterpret_cast< wxDC * >(argp1);
21330 {
21331 PyThreadState* __tstate = wxPyBeginAllowThreads();
21332 result = (bool)((wxDC const *)arg1)->Ok();
21333 wxPyEndAllowThreads(__tstate);
21334 if (PyErr_Occurred()) SWIG_fail;
21335 }
21336 {
21337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21338 }
21339 return resultobj;
21340fail:
21341 return NULL;
21342}
21343
21344
21345SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21346 PyObject *resultobj = 0;
21347 wxDC *arg1 = (wxDC *) 0 ;
21348 int result;
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_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21358 }
21359 arg1 = reinterpret_cast< wxDC * >(argp1);
21360 {
21361 PyThreadState* __tstate = wxPyBeginAllowThreads();
21362 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21363 wxPyEndAllowThreads(__tstate);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 resultobj = SWIG_From_int(static_cast< int >(result));
21367 return resultobj;
21368fail:
21369 return NULL;
21370}
21371
21372
21373SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21374 PyObject *resultobj = 0;
21375 wxDC *arg1 = (wxDC *) 0 ;
21376 wxBrush *result = 0 ;
21377 void *argp1 = 0 ;
21378 int res1 = 0 ;
21379 PyObject *swig_obj[1] ;
21380
21381 if (!args) SWIG_fail;
21382 swig_obj[0] = args;
21383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21384 if (!SWIG_IsOK(res1)) {
21385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21386 }
21387 arg1 = reinterpret_cast< wxDC * >(argp1);
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21390 {
1bd55598
RD
21391 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21392 result = (wxBrush *) &_result_ref;
36ed4f51 21393 }
1bd55598
RD
21394 wxPyEndAllowThreads(__tstate);
21395 if (PyErr_Occurred()) SWIG_fail;
21396 }
21397 {
21398 wxBrush* resultptr = new wxBrush(*result);
21399 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21400 }
21401 return resultobj;
21402fail:
21403 return NULL;
21404}
21405
21406
21407SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21408 PyObject *resultobj = 0;
21409 wxDC *arg1 = (wxDC *) 0 ;
21410 wxBrush *result = 0 ;
21411 void *argp1 = 0 ;
21412 int res1 = 0 ;
21413 PyObject *swig_obj[1] ;
21414
21415 if (!args) SWIG_fail;
21416 swig_obj[0] = args;
21417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21418 if (!SWIG_IsOK(res1)) {
21419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21420 }
21421 arg1 = reinterpret_cast< wxDC * >(argp1);
21422 {
21423 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21424 {
1bd55598
RD
21425 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21426 result = (wxBrush *) &_result_ref;
36ed4f51 21427 }
1bd55598
RD
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 {
21432 wxBrush* resultptr = new wxBrush(*result);
21433 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21434 }
21435 return resultobj;
21436fail:
21437 return NULL;
21438}
21439
21440
21441SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21442 PyObject *resultobj = 0;
21443 wxDC *arg1 = (wxDC *) 0 ;
21444 wxFont *result = 0 ;
21445 void *argp1 = 0 ;
21446 int res1 = 0 ;
21447 PyObject *swig_obj[1] ;
21448
21449 if (!args) SWIG_fail;
21450 swig_obj[0] = args;
21451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21452 if (!SWIG_IsOK(res1)) {
21453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21454 }
21455 arg1 = reinterpret_cast< wxDC * >(argp1);
21456 {
21457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21458 {
1bd55598
RD
21459 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21460 result = (wxFont *) &_result_ref;
36ed4f51 21461 }
1bd55598
RD
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 {
21466 wxFont* resultptr = new wxFont(*result);
21467 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21468 }
21469 return resultobj;
21470fail:
21471 return NULL;
21472}
21473
21474
21475SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21476 PyObject *resultobj = 0;
21477 wxDC *arg1 = (wxDC *) 0 ;
21478 wxPen *result = 0 ;
21479 void *argp1 = 0 ;
21480 int res1 = 0 ;
21481 PyObject *swig_obj[1] ;
21482
21483 if (!args) SWIG_fail;
21484 swig_obj[0] = args;
21485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21486 if (!SWIG_IsOK(res1)) {
21487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21488 }
21489 arg1 = reinterpret_cast< wxDC * >(argp1);
21490 {
21491 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21492 {
1bd55598
RD
21493 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21494 result = (wxPen *) &_result_ref;
36ed4f51 21495 }
1bd55598
RD
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 {
21500 wxPen* resultptr = new wxPen(*result);
21501 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21502 }
21503 return resultobj;
21504fail:
21505 return NULL;
21506}
21507
21508
21509SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21510 PyObject *resultobj = 0;
21511 wxDC *arg1 = (wxDC *) 0 ;
21512 wxColour *result = 0 ;
21513 void *argp1 = 0 ;
21514 int res1 = 0 ;
21515 PyObject *swig_obj[1] ;
21516
21517 if (!args) SWIG_fail;
21518 swig_obj[0] = args;
21519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21520 if (!SWIG_IsOK(res1)) {
21521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21522 }
21523 arg1 = reinterpret_cast< wxDC * >(argp1);
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21526 {
1bd55598
RD
21527 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21528 result = (wxColour *) &_result_ref;
36ed4f51 21529 }
1bd55598
RD
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21534 return resultobj;
21535fail:
21536 return NULL;
21537}
21538
21539
21540SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21541 PyObject *resultobj = 0;
21542 wxDC *arg1 = (wxDC *) 0 ;
21543 wxColour *result = 0 ;
21544 void *argp1 = 0 ;
21545 int res1 = 0 ;
21546 PyObject *swig_obj[1] ;
21547
21548 if (!args) SWIG_fail;
21549 swig_obj[0] = args;
21550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21551 if (!SWIG_IsOK(res1)) {
21552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21553 }
21554 arg1 = reinterpret_cast< wxDC * >(argp1);
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21557 {
1bd55598
RD
21558 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21559 result = (wxColour *) &_result_ref;
36ed4f51 21560 }
1bd55598
RD
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21565 return resultobj;
21566fail:
21567 return NULL;
21568}
21569
21570
21571SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj = 0;
21573 wxDC *arg1 = (wxDC *) 0 ;
21574 wxColour *arg2 = 0 ;
21575 void *argp1 = 0 ;
21576 int res1 = 0 ;
21577 wxColour temp2 ;
21578 PyObject * obj0 = 0 ;
21579 PyObject * obj1 = 0 ;
21580 char * kwnames[] = {
21581 (char *) "self",(char *) "colour", NULL
21582 };
21583
21584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21586 if (!SWIG_IsOK(res1)) {
21587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21588 }
21589 arg1 = reinterpret_cast< wxDC * >(argp1);
21590 {
21591 arg2 = &temp2;
21592 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21593 }
21594 {
21595 PyThreadState* __tstate = wxPyBeginAllowThreads();
21596 (arg1)->SetTextForeground((wxColour const &)*arg2);
21597 wxPyEndAllowThreads(__tstate);
21598 if (PyErr_Occurred()) SWIG_fail;
21599 }
21600 resultobj = SWIG_Py_Void();
21601 return resultobj;
21602fail:
21603 return NULL;
21604}
21605
21606
21607SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21608 PyObject *resultobj = 0;
21609 wxDC *arg1 = (wxDC *) 0 ;
21610 wxColour *arg2 = 0 ;
21611 void *argp1 = 0 ;
21612 int res1 = 0 ;
21613 wxColour temp2 ;
21614 PyObject * obj0 = 0 ;
21615 PyObject * obj1 = 0 ;
21616 char * kwnames[] = {
21617 (char *) "self",(char *) "colour", NULL
21618 };
21619
21620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21622 if (!SWIG_IsOK(res1)) {
21623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21624 }
21625 arg1 = reinterpret_cast< wxDC * >(argp1);
21626 {
21627 arg2 = &temp2;
21628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21629 }
21630 {
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 (arg1)->SetTextBackground((wxColour const &)*arg2);
21633 wxPyEndAllowThreads(__tstate);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 }
21636 resultobj = SWIG_Py_Void();
21637 return resultobj;
21638fail:
21639 return NULL;
21640}
21641
21642
21643SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21644 PyObject *resultobj = 0;
21645 wxDC *arg1 = (wxDC *) 0 ;
21646 int result;
21647 void *argp1 = 0 ;
21648 int res1 = 0 ;
21649 PyObject *swig_obj[1] ;
21650
21651 if (!args) SWIG_fail;
21652 swig_obj[0] = args;
21653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21654 if (!SWIG_IsOK(res1)) {
21655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21656 }
21657 arg1 = reinterpret_cast< wxDC * >(argp1);
21658 {
21659 PyThreadState* __tstate = wxPyBeginAllowThreads();
21660 result = (int)((wxDC const *)arg1)->GetMapMode();
21661 wxPyEndAllowThreads(__tstate);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 resultobj = SWIG_From_int(static_cast< int >(result));
21665 return resultobj;
21666fail:
21667 return NULL;
21668}
21669
21670
21671SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21672 PyObject *resultobj = 0;
21673 wxDC *arg1 = (wxDC *) 0 ;
21674 int arg2 ;
21675 void *argp1 = 0 ;
21676 int res1 = 0 ;
21677 int val2 ;
21678 int ecode2 = 0 ;
21679 PyObject * obj0 = 0 ;
21680 PyObject * obj1 = 0 ;
21681 char * kwnames[] = {
21682 (char *) "self",(char *) "mode", NULL
21683 };
21684
21685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21687 if (!SWIG_IsOK(res1)) {
21688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21689 }
21690 arg1 = reinterpret_cast< wxDC * >(argp1);
21691 ecode2 = SWIG_AsVal_int(obj1, &val2);
21692 if (!SWIG_IsOK(ecode2)) {
21693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21694 }
21695 arg2 = static_cast< int >(val2);
21696 {
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 (arg1)->SetMapMode(arg2);
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 resultobj = SWIG_Py_Void();
21703 return resultobj;
21704fail:
21705 return NULL;
21706}
21707
21708
21709SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21710 PyObject *resultobj = 0;
21711 wxDC *arg1 = (wxDC *) 0 ;
21712 double *arg2 = (double *) 0 ;
21713 double *arg3 = (double *) 0 ;
21714 void *argp1 = 0 ;
21715 int res1 = 0 ;
21716 double temp2 ;
21717 int res2 = SWIG_TMPOBJ ;
21718 double temp3 ;
21719 int res3 = SWIG_TMPOBJ ;
21720 PyObject *swig_obj[1] ;
21721
21722 arg2 = &temp2;
21723 arg3 = &temp3;
21724 if (!args) SWIG_fail;
21725 swig_obj[0] = args;
21726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21727 if (!SWIG_IsOK(res1)) {
21728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21729 }
21730 arg1 = reinterpret_cast< wxDC * >(argp1);
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21734 wxPyEndAllowThreads(__tstate);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 }
21737 resultobj = SWIG_Py_Void();
21738 if (SWIG_IsTmpObj(res2)) {
21739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21740 } else {
21741 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21743 }
21744 if (SWIG_IsTmpObj(res3)) {
21745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21746 } else {
21747 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21749 }
21750 return resultobj;
21751fail:
21752 return NULL;
21753}
21754
21755
21756SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21757 PyObject *resultobj = 0;
21758 wxDC *arg1 = (wxDC *) 0 ;
21759 double arg2 ;
21760 double arg3 ;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 double val2 ;
21764 int ecode2 = 0 ;
21765 double val3 ;
21766 int ecode3 = 0 ;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 PyObject * obj2 = 0 ;
21770 char * kwnames[] = {
21771 (char *) "self",(char *) "x",(char *) "y", NULL
21772 };
21773
21774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21776 if (!SWIG_IsOK(res1)) {
21777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21778 }
21779 arg1 = reinterpret_cast< wxDC * >(argp1);
21780 ecode2 = SWIG_AsVal_double(obj1, &val2);
21781 if (!SWIG_IsOK(ecode2)) {
21782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21783 }
21784 arg2 = static_cast< double >(val2);
21785 ecode3 = SWIG_AsVal_double(obj2, &val3);
21786 if (!SWIG_IsOK(ecode3)) {
21787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21788 }
21789 arg3 = static_cast< double >(val3);
21790 {
21791 PyThreadState* __tstate = wxPyBeginAllowThreads();
21792 (arg1)->SetUserScale(arg2,arg3);
21793 wxPyEndAllowThreads(__tstate);
21794 if (PyErr_Occurred()) SWIG_fail;
21795 }
21796 resultobj = SWIG_Py_Void();
21797 return resultobj;
21798fail:
21799 return NULL;
21800}
21801
21802
21803SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21804 PyObject *resultobj = 0;
21805 wxDC *arg1 = (wxDC *) 0 ;
21806 double *arg2 = (double *) 0 ;
21807 double *arg3 = (double *) 0 ;
21808 void *argp1 = 0 ;
21809 int res1 = 0 ;
21810 double temp2 ;
21811 int res2 = SWIG_TMPOBJ ;
21812 double temp3 ;
21813 int res3 = SWIG_TMPOBJ ;
21814 PyObject *swig_obj[1] ;
21815
21816 arg2 = &temp2;
21817 arg3 = &temp3;
21818 if (!args) SWIG_fail;
21819 swig_obj[0] = args;
21820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21821 if (!SWIG_IsOK(res1)) {
21822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21823 }
21824 arg1 = reinterpret_cast< wxDC * >(argp1);
21825 {
21826 PyThreadState* __tstate = wxPyBeginAllowThreads();
21827 (arg1)->GetLogicalScale(arg2,arg3);
21828 wxPyEndAllowThreads(__tstate);
21829 if (PyErr_Occurred()) SWIG_fail;
21830 }
21831 resultobj = SWIG_Py_Void();
21832 if (SWIG_IsTmpObj(res2)) {
21833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21834 } else {
21835 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21837 }
21838 if (SWIG_IsTmpObj(res3)) {
21839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21840 } else {
21841 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21843 }
21844 return resultobj;
21845fail:
21846 return NULL;
21847}
21848
21849
21850SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21851 PyObject *resultobj = 0;
21852 wxDC *arg1 = (wxDC *) 0 ;
21853 double arg2 ;
21854 double arg3 ;
21855 void *argp1 = 0 ;
21856 int res1 = 0 ;
21857 double val2 ;
21858 int ecode2 = 0 ;
21859 double val3 ;
21860 int ecode3 = 0 ;
21861 PyObject * obj0 = 0 ;
21862 PyObject * obj1 = 0 ;
21863 PyObject * obj2 = 0 ;
21864 char * kwnames[] = {
21865 (char *) "self",(char *) "x",(char *) "y", NULL
21866 };
21867
21868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21870 if (!SWIG_IsOK(res1)) {
21871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21872 }
21873 arg1 = reinterpret_cast< wxDC * >(argp1);
21874 ecode2 = SWIG_AsVal_double(obj1, &val2);
21875 if (!SWIG_IsOK(ecode2)) {
21876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21877 }
21878 arg2 = static_cast< double >(val2);
21879 ecode3 = SWIG_AsVal_double(obj2, &val3);
21880 if (!SWIG_IsOK(ecode3)) {
21881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21882 }
21883 arg3 = static_cast< double >(val3);
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 (arg1)->SetLogicalScale(arg2,arg3);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_Py_Void();
21891 return resultobj;
21892fail:
21893 return NULL;
21894}
21895
21896
21897SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21898 PyObject *resultobj = 0;
21899 wxDC *arg1 = (wxDC *) 0 ;
21900 wxPoint result;
21901 void *argp1 = 0 ;
21902 int res1 = 0 ;
21903 PyObject *swig_obj[1] ;
21904
21905 if (!args) SWIG_fail;
21906 swig_obj[0] = args;
21907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21908 if (!SWIG_IsOK(res1)) {
21909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21910 }
21911 arg1 = reinterpret_cast< wxDC * >(argp1);
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21915 wxPyEndAllowThreads(__tstate);
21916 if (PyErr_Occurred()) SWIG_fail;
21917 }
21918 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21919 return resultobj;
21920fail:
21921 return NULL;
21922}
21923
21924
21925SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21926 PyObject *resultobj = 0;
21927 wxDC *arg1 = (wxDC *) 0 ;
21928 int *arg2 = (int *) 0 ;
21929 int *arg3 = (int *) 0 ;
21930 void *argp1 = 0 ;
21931 int res1 = 0 ;
21932 int temp2 ;
21933 int res2 = SWIG_TMPOBJ ;
21934 int temp3 ;
21935 int res3 = SWIG_TMPOBJ ;
21936 PyObject *swig_obj[1] ;
21937
21938 arg2 = &temp2;
21939 arg3 = &temp3;
21940 if (!args) SWIG_fail;
21941 swig_obj[0] = args;
21942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21943 if (!SWIG_IsOK(res1)) {
21944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21945 }
21946 arg1 = reinterpret_cast< wxDC * >(argp1);
21947 {
21948 PyThreadState* __tstate = wxPyBeginAllowThreads();
21949 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21950 wxPyEndAllowThreads(__tstate);
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 resultobj = SWIG_Py_Void();
21954 if (SWIG_IsTmpObj(res2)) {
21955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21956 } else {
21957 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21959 }
21960 if (SWIG_IsTmpObj(res3)) {
21961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21962 } else {
21963 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21965 }
21966 return resultobj;
21967fail:
21968 return NULL;
21969}
21970
21971
21972SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21973 PyObject *resultobj = 0;
21974 wxDC *arg1 = (wxDC *) 0 ;
21975 int arg2 ;
21976 int arg3 ;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 int val2 ;
21980 int ecode2 = 0 ;
21981 int val3 ;
21982 int ecode3 = 0 ;
21983 PyObject * obj0 = 0 ;
21984 PyObject * obj1 = 0 ;
21985 PyObject * obj2 = 0 ;
21986 char * kwnames[] = {
21987 (char *) "self",(char *) "x",(char *) "y", NULL
21988 };
21989
21990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21992 if (!SWIG_IsOK(res1)) {
21993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
21994 }
21995 arg1 = reinterpret_cast< wxDC * >(argp1);
21996 ecode2 = SWIG_AsVal_int(obj1, &val2);
21997 if (!SWIG_IsOK(ecode2)) {
21998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
21999 }
22000 arg2 = static_cast< int >(val2);
22001 ecode3 = SWIG_AsVal_int(obj2, &val3);
22002 if (!SWIG_IsOK(ecode3)) {
22003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22004 }
22005 arg3 = static_cast< int >(val3);
22006 {
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
22008 (arg1)->SetLogicalOrigin(arg2,arg3);
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 resultobj = SWIG_Py_Void();
22013 return resultobj;
22014fail:
22015 return NULL;
22016}
22017
22018
22019SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj = 0;
22021 wxDC *arg1 = (wxDC *) 0 ;
22022 wxPoint *arg2 = 0 ;
22023 void *argp1 = 0 ;
22024 int res1 = 0 ;
22025 wxPoint temp2 ;
22026 PyObject * obj0 = 0 ;
22027 PyObject * obj1 = 0 ;
22028 char * kwnames[] = {
22029 (char *) "self",(char *) "point", NULL
22030 };
22031
22032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22034 if (!SWIG_IsOK(res1)) {
22035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22036 }
22037 arg1 = reinterpret_cast< wxDC * >(argp1);
22038 {
22039 arg2 = &temp2;
22040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22041 }
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22045 wxPyEndAllowThreads(__tstate);
22046 if (PyErr_Occurred()) SWIG_fail;
22047 }
22048 resultobj = SWIG_Py_Void();
22049 return resultobj;
22050fail:
22051 return NULL;
22052}
22053
22054
22055SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22056 PyObject *resultobj = 0;
22057 wxDC *arg1 = (wxDC *) 0 ;
22058 wxPoint result;
22059 void *argp1 = 0 ;
22060 int res1 = 0 ;
22061 PyObject *swig_obj[1] ;
22062
22063 if (!args) SWIG_fail;
22064 swig_obj[0] = args;
22065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22066 if (!SWIG_IsOK(res1)) {
22067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22068 }
22069 arg1 = reinterpret_cast< wxDC * >(argp1);
22070 {
22071 PyThreadState* __tstate = wxPyBeginAllowThreads();
22072 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22073 wxPyEndAllowThreads(__tstate);
22074 if (PyErr_Occurred()) SWIG_fail;
22075 }
22076 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22077 return resultobj;
22078fail:
22079 return NULL;
22080}
22081
22082
22083SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22084 PyObject *resultobj = 0;
22085 wxDC *arg1 = (wxDC *) 0 ;
22086 int *arg2 = (int *) 0 ;
22087 int *arg3 = (int *) 0 ;
22088 void *argp1 = 0 ;
22089 int res1 = 0 ;
22090 int temp2 ;
22091 int res2 = SWIG_TMPOBJ ;
22092 int temp3 ;
22093 int res3 = SWIG_TMPOBJ ;
22094 PyObject *swig_obj[1] ;
22095
22096 arg2 = &temp2;
22097 arg3 = &temp3;
22098 if (!args) SWIG_fail;
22099 swig_obj[0] = args;
22100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22101 if (!SWIG_IsOK(res1)) {
22102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22103 }
22104 arg1 = reinterpret_cast< wxDC * >(argp1);
22105 {
22106 PyThreadState* __tstate = wxPyBeginAllowThreads();
22107 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22108 wxPyEndAllowThreads(__tstate);
22109 if (PyErr_Occurred()) SWIG_fail;
22110 }
22111 resultobj = SWIG_Py_Void();
22112 if (SWIG_IsTmpObj(res2)) {
22113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22114 } else {
22115 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22117 }
22118 if (SWIG_IsTmpObj(res3)) {
22119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22120 } else {
22121 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22123 }
22124 return resultobj;
22125fail:
22126 return NULL;
22127}
22128
22129
22130SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22131 PyObject *resultobj = 0;
22132 wxDC *arg1 = (wxDC *) 0 ;
22133 int arg2 ;
22134 int arg3 ;
22135 void *argp1 = 0 ;
22136 int res1 = 0 ;
22137 int val2 ;
22138 int ecode2 = 0 ;
22139 int val3 ;
22140 int ecode3 = 0 ;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 PyObject * obj2 = 0 ;
22144 char * kwnames[] = {
22145 (char *) "self",(char *) "x",(char *) "y", NULL
22146 };
22147
22148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22150 if (!SWIG_IsOK(res1)) {
22151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22152 }
22153 arg1 = reinterpret_cast< wxDC * >(argp1);
22154 ecode2 = SWIG_AsVal_int(obj1, &val2);
22155 if (!SWIG_IsOK(ecode2)) {
22156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22157 }
22158 arg2 = static_cast< int >(val2);
22159 ecode3 = SWIG_AsVal_int(obj2, &val3);
22160 if (!SWIG_IsOK(ecode3)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22162 }
22163 arg3 = static_cast< int >(val3);
22164 {
22165 PyThreadState* __tstate = wxPyBeginAllowThreads();
22166 (arg1)->SetDeviceOrigin(arg2,arg3);
22167 wxPyEndAllowThreads(__tstate);
22168 if (PyErr_Occurred()) SWIG_fail;
22169 }
22170 resultobj = SWIG_Py_Void();
22171 return resultobj;
22172fail:
22173 return NULL;
22174}
22175
22176
22177SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22178 PyObject *resultobj = 0;
22179 wxDC *arg1 = (wxDC *) 0 ;
22180 wxPoint *arg2 = 0 ;
22181 void *argp1 = 0 ;
22182 int res1 = 0 ;
22183 wxPoint temp2 ;
22184 PyObject * obj0 = 0 ;
22185 PyObject * obj1 = 0 ;
22186 char * kwnames[] = {
22187 (char *) "self",(char *) "point", NULL
22188 };
22189
22190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22192 if (!SWIG_IsOK(res1)) {
22193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22194 }
22195 arg1 = reinterpret_cast< wxDC * >(argp1);
22196 {
22197 arg2 = &temp2;
22198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22199 }
22200 {
22201 PyThreadState* __tstate = wxPyBeginAllowThreads();
22202 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22203 wxPyEndAllowThreads(__tstate);
22204 if (PyErr_Occurred()) SWIG_fail;
22205 }
22206 resultobj = SWIG_Py_Void();
22207 return resultobj;
22208fail:
22209 return NULL;
22210}
22211
22212
22213SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22214 PyObject *resultobj = 0;
22215 wxDC *arg1 = (wxDC *) 0 ;
22216 bool arg2 ;
22217 bool arg3 ;
22218 void *argp1 = 0 ;
22219 int res1 = 0 ;
22220 bool val2 ;
22221 int ecode2 = 0 ;
22222 bool val3 ;
22223 int ecode3 = 0 ;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 PyObject * obj2 = 0 ;
22227 char * kwnames[] = {
22228 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22229 };
22230
22231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22235 }
22236 arg1 = reinterpret_cast< wxDC * >(argp1);
22237 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22238 if (!SWIG_IsOK(ecode2)) {
22239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22240 }
22241 arg2 = static_cast< bool >(val2);
22242 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22243 if (!SWIG_IsOK(ecode3)) {
22244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22245 }
22246 arg3 = static_cast< bool >(val3);
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 (arg1)->SetAxisOrientation(arg2,arg3);
22250 wxPyEndAllowThreads(__tstate);
22251 if (PyErr_Occurred()) SWIG_fail;
22252 }
22253 resultobj = SWIG_Py_Void();
22254 return resultobj;
22255fail:
22256 return NULL;
22257}
22258
22259
22260SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22261 PyObject *resultobj = 0;
22262 wxDC *arg1 = (wxDC *) 0 ;
22263 int result;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 PyObject *swig_obj[1] ;
22267
22268 if (!args) SWIG_fail;
22269 swig_obj[0] = args;
22270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22273 }
22274 arg1 = reinterpret_cast< wxDC * >(argp1);
22275 {
22276 PyThreadState* __tstate = wxPyBeginAllowThreads();
22277 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 resultobj = SWIG_From_int(static_cast< int >(result));
22282 return resultobj;
22283fail:
22284 return NULL;
22285}
22286
22287
22288SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22289 PyObject *resultobj = 0;
22290 wxDC *arg1 = (wxDC *) 0 ;
22291 int arg2 ;
22292 void *argp1 = 0 ;
22293 int res1 = 0 ;
22294 int val2 ;
22295 int ecode2 = 0 ;
22296 PyObject * obj0 = 0 ;
22297 PyObject * obj1 = 0 ;
22298 char * kwnames[] = {
22299 (char *) "self",(char *) "function", NULL
22300 };
22301
22302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22304 if (!SWIG_IsOK(res1)) {
22305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22306 }
22307 arg1 = reinterpret_cast< wxDC * >(argp1);
22308 ecode2 = SWIG_AsVal_int(obj1, &val2);
22309 if (!SWIG_IsOK(ecode2)) {
22310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22311 }
22312 arg2 = static_cast< int >(val2);
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 (arg1)->SetLogicalFunction(arg2);
22316 wxPyEndAllowThreads(__tstate);
22317 if (PyErr_Occurred()) SWIG_fail;
22318 }
22319 resultobj = SWIG_Py_Void();
22320 return resultobj;
22321fail:
22322 return NULL;
22323}
22324
22325
22326SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22327 PyObject *resultobj = 0;
22328 wxDC *arg1 = (wxDC *) 0 ;
22329 void *argp1 = 0 ;
22330 int res1 = 0 ;
22331 PyObject *swig_obj[1] ;
22332
22333 if (!args) SWIG_fail;
22334 swig_obj[0] = args;
22335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22336 if (!SWIG_IsOK(res1)) {
22337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22338 }
22339 arg1 = reinterpret_cast< wxDC * >(argp1);
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 (arg1)->ComputeScaleAndOrigin();
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 resultobj = SWIG_Py_Void();
22347 return resultobj;
22348fail:
22349 return NULL;
22350}
22351
22352
22353SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22354 PyObject *resultobj = 0;
22355 wxDC *arg1 = (wxDC *) 0 ;
22356 int arg2 ;
22357 int arg3 ;
22358 void *argp1 = 0 ;
22359 int res1 = 0 ;
22360 int val2 ;
22361 int ecode2 = 0 ;
22362 int val3 ;
22363 int ecode3 = 0 ;
22364 PyObject * obj0 = 0 ;
22365 PyObject * obj1 = 0 ;
22366 PyObject * obj2 = 0 ;
22367 char * kwnames[] = {
22368 (char *) "self",(char *) "x",(char *) "y", NULL
22369 };
22370
22371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22373 if (!SWIG_IsOK(res1)) {
22374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22375 }
22376 arg1 = reinterpret_cast< wxDC * >(argp1);
22377 ecode2 = SWIG_AsVal_int(obj1, &val2);
22378 if (!SWIG_IsOK(ecode2)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22380 }
22381 arg2 = static_cast< int >(val2);
22382 ecode3 = SWIG_AsVal_int(obj2, &val3);
22383 if (!SWIG_IsOK(ecode3)) {
22384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22385 }
22386 arg3 = static_cast< int >(val3);
22387 {
22388 PyThreadState* __tstate = wxPyBeginAllowThreads();
22389 (arg1)->CalcBoundingBox(arg2,arg3);
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 resultobj = SWIG_Py_Void();
22394 return resultobj;
22395fail:
22396 return NULL;
22397}
22398
22399
22400SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22401 PyObject *resultobj = 0;
22402 wxDC *arg1 = (wxDC *) 0 ;
22403 wxPoint *arg2 = 0 ;
22404 void *argp1 = 0 ;
22405 int res1 = 0 ;
22406 wxPoint temp2 ;
22407 PyObject * obj0 = 0 ;
22408 PyObject * obj1 = 0 ;
22409 char * kwnames[] = {
22410 (char *) "self",(char *) "point", NULL
22411 };
22412
22413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22415 if (!SWIG_IsOK(res1)) {
22416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22417 }
22418 arg1 = reinterpret_cast< wxDC * >(argp1);
22419 {
22420 arg2 = &temp2;
22421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22422 }
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22426 wxPyEndAllowThreads(__tstate);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 }
22429 resultobj = SWIG_Py_Void();
22430 return resultobj;
22431fail:
22432 return NULL;
22433}
22434
22435
22436SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22437 PyObject *resultobj = 0;
22438 wxDC *arg1 = (wxDC *) 0 ;
22439 void *argp1 = 0 ;
22440 int res1 = 0 ;
22441 PyObject *swig_obj[1] ;
22442
22443 if (!args) SWIG_fail;
22444 swig_obj[0] = args;
22445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22446 if (!SWIG_IsOK(res1)) {
22447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22448 }
22449 arg1 = reinterpret_cast< wxDC * >(argp1);
22450 {
22451 PyThreadState* __tstate = wxPyBeginAllowThreads();
22452 (arg1)->ResetBoundingBox();
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 resultobj = SWIG_Py_Void();
22457 return resultobj;
22458fail:
22459 return NULL;
22460}
22461
22462
22463SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22464 PyObject *resultobj = 0;
22465 wxDC *arg1 = (wxDC *) 0 ;
22466 int result;
22467 void *argp1 = 0 ;
22468 int res1 = 0 ;
22469 PyObject *swig_obj[1] ;
22470
22471 if (!args) SWIG_fail;
22472 swig_obj[0] = args;
22473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22474 if (!SWIG_IsOK(res1)) {
22475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22476 }
22477 arg1 = reinterpret_cast< wxDC * >(argp1);
22478 {
22479 PyThreadState* __tstate = wxPyBeginAllowThreads();
22480 result = (int)((wxDC const *)arg1)->MinX();
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 resultobj = SWIG_From_int(static_cast< int >(result));
22485 return resultobj;
22486fail:
22487 return NULL;
22488}
22489
22490
22491SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22492 PyObject *resultobj = 0;
22493 wxDC *arg1 = (wxDC *) 0 ;
22494 int result;
22495 void *argp1 = 0 ;
22496 int res1 = 0 ;
22497 PyObject *swig_obj[1] ;
22498
22499 if (!args) SWIG_fail;
22500 swig_obj[0] = args;
22501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22502 if (!SWIG_IsOK(res1)) {
22503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22504 }
22505 arg1 = reinterpret_cast< wxDC * >(argp1);
22506 {
22507 PyThreadState* __tstate = wxPyBeginAllowThreads();
22508 result = (int)((wxDC const *)arg1)->MaxX();
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 resultobj = SWIG_From_int(static_cast< int >(result));
22513 return resultobj;
22514fail:
22515 return NULL;
22516}
22517
22518
22519SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22520 PyObject *resultobj = 0;
22521 wxDC *arg1 = (wxDC *) 0 ;
22522 int result;
22523 void *argp1 = 0 ;
22524 int res1 = 0 ;
22525 PyObject *swig_obj[1] ;
22526
22527 if (!args) SWIG_fail;
22528 swig_obj[0] = args;
22529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22530 if (!SWIG_IsOK(res1)) {
22531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22532 }
22533 arg1 = reinterpret_cast< wxDC * >(argp1);
22534 {
22535 PyThreadState* __tstate = wxPyBeginAllowThreads();
22536 result = (int)((wxDC const *)arg1)->MinY();
22537 wxPyEndAllowThreads(__tstate);
22538 if (PyErr_Occurred()) SWIG_fail;
22539 }
22540 resultobj = SWIG_From_int(static_cast< int >(result));
22541 return resultobj;
22542fail:
22543 return NULL;
22544}
22545
22546
22547SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22548 PyObject *resultobj = 0;
22549 wxDC *arg1 = (wxDC *) 0 ;
22550 int result;
22551 void *argp1 = 0 ;
22552 int res1 = 0 ;
22553 PyObject *swig_obj[1] ;
22554
22555 if (!args) SWIG_fail;
22556 swig_obj[0] = args;
22557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22558 if (!SWIG_IsOK(res1)) {
22559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22560 }
22561 arg1 = reinterpret_cast< wxDC * >(argp1);
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 result = (int)((wxDC const *)arg1)->MaxY();
22565 wxPyEndAllowThreads(__tstate);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 }
22568 resultobj = SWIG_From_int(static_cast< int >(result));
22569 return resultobj;
22570fail:
22571 return NULL;
22572}
22573
22574
22575SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22576 PyObject *resultobj = 0;
22577 wxDC *arg1 = (wxDC *) 0 ;
22578 int *arg2 = (int *) 0 ;
22579 int *arg3 = (int *) 0 ;
22580 int *arg4 = (int *) 0 ;
22581 int *arg5 = (int *) 0 ;
22582 void *argp1 = 0 ;
22583 int res1 = 0 ;
22584 int temp2 ;
22585 int res2 = SWIG_TMPOBJ ;
22586 int temp3 ;
22587 int res3 = SWIG_TMPOBJ ;
22588 int temp4 ;
22589 int res4 = SWIG_TMPOBJ ;
22590 int temp5 ;
22591 int res5 = SWIG_TMPOBJ ;
22592 PyObject *swig_obj[1] ;
22593
22594 arg2 = &temp2;
22595 arg3 = &temp3;
22596 arg4 = &temp4;
22597 arg5 = &temp5;
22598 if (!args) SWIG_fail;
22599 swig_obj[0] = args;
22600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22601 if (!SWIG_IsOK(res1)) {
22602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22603 }
22604 arg1 = reinterpret_cast< wxDC * >(argp1);
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 resultobj = SWIG_Py_Void();
22612 if (SWIG_IsTmpObj(res2)) {
22613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22614 } else {
22615 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22617 }
22618 if (SWIG_IsTmpObj(res3)) {
22619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22620 } else {
22621 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22622 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22623 }
22624 if (SWIG_IsTmpObj(res4)) {
22625 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22626 } else {
22627 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22629 }
22630 if (SWIG_IsTmpObj(res5)) {
22631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22632 } else {
22633 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22634 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22635 }
22636 return resultobj;
22637fail:
22638 return NULL;
22639}
22640
22641
22642SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22643 PyObject *resultobj = 0;
22644 wxDC *arg1 = (wxDC *) 0 ;
22645 PyObject *arg2 = (PyObject *) 0 ;
22646 PyObject *arg3 = (PyObject *) 0 ;
22647 PyObject *arg4 = (PyObject *) 0 ;
22648 PyObject *result = 0 ;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 PyObject * obj0 = 0 ;
22652 PyObject * obj1 = 0 ;
22653 PyObject * obj2 = 0 ;
22654 PyObject * obj3 = 0 ;
22655 char * kwnames[] = {
22656 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22657 };
22658
22659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22661 if (!SWIG_IsOK(res1)) {
22662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22663 }
22664 arg1 = reinterpret_cast< wxDC * >(argp1);
22665 arg2 = obj1;
22666 arg3 = obj2;
22667 arg4 = obj3;
22668 {
22669 PyThreadState* __tstate = wxPyBeginAllowThreads();
22670 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22671 wxPyEndAllowThreads(__tstate);
22672 if (PyErr_Occurred()) SWIG_fail;
22673 }
22674 resultobj = result;
22675 return resultobj;
22676fail:
22677 return NULL;
22678}
22679
22680
22681SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22682 PyObject *resultobj = 0;
22683 wxDC *arg1 = (wxDC *) 0 ;
22684 PyObject *arg2 = (PyObject *) 0 ;
22685 PyObject *arg3 = (PyObject *) 0 ;
22686 PyObject *arg4 = (PyObject *) 0 ;
22687 PyObject *result = 0 ;
22688 void *argp1 = 0 ;
22689 int res1 = 0 ;
22690 PyObject * obj0 = 0 ;
22691 PyObject * obj1 = 0 ;
22692 PyObject * obj2 = 0 ;
22693 PyObject * obj3 = 0 ;
22694 char * kwnames[] = {
22695 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22696 };
22697
22698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22702 }
22703 arg1 = reinterpret_cast< wxDC * >(argp1);
22704 arg2 = obj1;
22705 arg3 = obj2;
22706 arg4 = obj3;
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 resultobj = result;
22714 return resultobj;
22715fail:
22716 return NULL;
22717}
22718
22719
22720SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj = 0;
22722 wxDC *arg1 = (wxDC *) 0 ;
22723 PyObject *arg2 = (PyObject *) 0 ;
22724 PyObject *arg3 = (PyObject *) 0 ;
22725 PyObject *arg4 = (PyObject *) 0 ;
22726 PyObject *result = 0 ;
22727 void *argp1 = 0 ;
22728 int res1 = 0 ;
22729 PyObject * obj0 = 0 ;
22730 PyObject * obj1 = 0 ;
22731 PyObject * obj2 = 0 ;
22732 PyObject * obj3 = 0 ;
22733 char * kwnames[] = {
22734 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22735 };
22736
22737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22739 if (!SWIG_IsOK(res1)) {
22740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22741 }
22742 arg1 = reinterpret_cast< wxDC * >(argp1);
22743 arg2 = obj1;
22744 arg3 = obj2;
22745 arg4 = obj3;
22746 {
22747 PyThreadState* __tstate = wxPyBeginAllowThreads();
22748 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22749 wxPyEndAllowThreads(__tstate);
22750 if (PyErr_Occurred()) SWIG_fail;
22751 }
22752 resultobj = result;
22753 return resultobj;
22754fail:
22755 return NULL;
22756}
22757
22758
22759SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22760 PyObject *resultobj = 0;
22761 wxDC *arg1 = (wxDC *) 0 ;
22762 PyObject *arg2 = (PyObject *) 0 ;
22763 PyObject *arg3 = (PyObject *) 0 ;
22764 PyObject *arg4 = (PyObject *) 0 ;
22765 PyObject *result = 0 ;
22766 void *argp1 = 0 ;
22767 int res1 = 0 ;
22768 PyObject * obj0 = 0 ;
22769 PyObject * obj1 = 0 ;
22770 PyObject * obj2 = 0 ;
22771 PyObject * obj3 = 0 ;
22772 char * kwnames[] = {
22773 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22774 };
22775
22776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22778 if (!SWIG_IsOK(res1)) {
22779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22780 }
22781 arg1 = reinterpret_cast< wxDC * >(argp1);
22782 arg2 = obj1;
22783 arg3 = obj2;
22784 arg4 = obj3;
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 resultobj = result;
22792 return resultobj;
22793fail:
22794 return NULL;
22795}
22796
22797
22798SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22799 PyObject *resultobj = 0;
22800 wxDC *arg1 = (wxDC *) 0 ;
22801 PyObject *arg2 = (PyObject *) 0 ;
22802 PyObject *arg3 = (PyObject *) 0 ;
22803 PyObject *arg4 = (PyObject *) 0 ;
22804 PyObject *result = 0 ;
22805 void *argp1 = 0 ;
22806 int res1 = 0 ;
22807 PyObject * obj0 = 0 ;
22808 PyObject * obj1 = 0 ;
22809 PyObject * obj2 = 0 ;
22810 PyObject * obj3 = 0 ;
22811 char * kwnames[] = {
22812 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22813 };
22814
22815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22817 if (!SWIG_IsOK(res1)) {
22818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22819 }
22820 arg1 = reinterpret_cast< wxDC * >(argp1);
22821 arg2 = obj1;
22822 arg3 = obj2;
22823 arg4 = obj3;
22824 {
22825 PyThreadState* __tstate = wxPyBeginAllowThreads();
22826 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = result;
22831 return resultobj;
22832fail:
22833 return NULL;
22834}
22835
22836
22837SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj = 0;
22839 wxDC *arg1 = (wxDC *) 0 ;
22840 PyObject *arg2 = (PyObject *) 0 ;
22841 PyObject *arg3 = (PyObject *) 0 ;
22842 PyObject *arg4 = (PyObject *) 0 ;
22843 PyObject *arg5 = (PyObject *) 0 ;
22844 PyObject *result = 0 ;
22845 void *argp1 = 0 ;
22846 int res1 = 0 ;
22847 PyObject * obj0 = 0 ;
22848 PyObject * obj1 = 0 ;
22849 PyObject * obj2 = 0 ;
22850 PyObject * obj3 = 0 ;
22851 PyObject * obj4 = 0 ;
22852 char * kwnames[] = {
22853 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22854 };
22855
22856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22858 if (!SWIG_IsOK(res1)) {
22859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22860 }
22861 arg1 = reinterpret_cast< wxDC * >(argp1);
22862 arg2 = obj1;
22863 arg3 = obj2;
22864 arg4 = obj3;
22865 arg5 = obj4;
22866 {
22867 PyThreadState* __tstate = wxPyBeginAllowThreads();
22868 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22869 wxPyEndAllowThreads(__tstate);
22870 if (PyErr_Occurred()) SWIG_fail;
22871 }
22872 resultobj = result;
22873 return resultobj;
22874fail:
22875 return NULL;
22876}
22877
22878
22879SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22880 PyObject *obj;
22881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22882 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22883 return SWIG_Py_Void();
22884}
22885
22886SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22887 PyObject *resultobj = 0;
22888 wxMemoryDC *result = 0 ;
22889
22890 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22891 {
22892 if (!wxPyCheckForApp()) SWIG_fail;
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 result = (wxMemoryDC *)new wxMemoryDC();
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22899 return resultobj;
22900fail:
22901 return NULL;
22902}
22903
22904
22905SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22906 PyObject *resultobj = 0;
22907 wxDC *arg1 = (wxDC *) 0 ;
22908 wxMemoryDC *result = 0 ;
22909 void *argp1 = 0 ;
22910 int res1 = 0 ;
22911 PyObject * obj0 = 0 ;
22912 char * kwnames[] = {
22913 (char *) "oldDC", NULL
22914 };
22915
22916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22918 if (!SWIG_IsOK(res1)) {
22919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22920 }
22921 arg1 = reinterpret_cast< wxDC * >(argp1);
22922 {
22923 if (!wxPyCheckForApp()) SWIG_fail;
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22930 return resultobj;
22931fail:
22932 return NULL;
22933}
22934
22935
22936SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22937 PyObject *resultobj = 0;
22938 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22939 wxBitmap *arg2 = 0 ;
22940 void *argp1 = 0 ;
22941 int res1 = 0 ;
22942 void *argp2 = 0 ;
22943 int res2 = 0 ;
22944 PyObject * obj0 = 0 ;
22945 PyObject * obj1 = 0 ;
22946 char * kwnames[] = {
22947 (char *) "self",(char *) "bitmap", NULL
22948 };
22949
22950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22952 if (!SWIG_IsOK(res1)) {
22953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22954 }
22955 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22957 if (!SWIG_IsOK(res2)) {
22958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22959 }
22960 if (!argp2) {
22961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22962 }
22963 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 (arg1)->SelectObject((wxBitmap const &)*arg2);
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 resultobj = SWIG_Py_Void();
22971 return resultobj;
22972fail:
22973 return NULL;
22974}
22975
22976
22977SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22978 PyObject *obj;
22979 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22980 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22981 return SWIG_Py_Void();
22982}
22983
22984SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22985 return SWIG_Python_InitShadowInstance(args);
22986}
22987
22988SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22989 PyObject *resultobj = 0;
22990 wxDC *arg1 = (wxDC *) 0 ;
22991 wxBitmap const &arg2_defvalue = wxNullBitmap ;
22992 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
22993 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22994 wxBufferedDC *result = 0 ;
22995 void *argp1 = 0 ;
22996 int res1 = 0 ;
22997 void *argp2 = 0 ;
22998 int res2 = 0 ;
22999 int val3 ;
23000 int ecode3 = 0 ;
23001
23002 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23004 if (!SWIG_IsOK(res1)) {
23005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23006 }
23007 arg1 = reinterpret_cast< wxDC * >(argp1);
23008 if (swig_obj[1]) {
23009 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23010 if (!SWIG_IsOK(res2)) {
23011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23012 }
1bd55598
RD
23013 if (!argp2) {
23014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23015 }
1bd55598
RD
23016 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23017 }
23018 if (swig_obj[2]) {
23019 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23020 if (!SWIG_IsOK(ecode3)) {
23021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23022 }
23023 arg3 = static_cast< int >(val3);
23024 }
23025 {
23026 if (!wxPyCheckForApp()) SWIG_fail;
23027 PyThreadState* __tstate = wxPyBeginAllowThreads();
23028 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23029 wxPyEndAllowThreads(__tstate);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 }
23032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23033 return resultobj;
23034fail:
23035 return NULL;
23036}
23037
23038
23039SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23040 PyObject *resultobj = 0;
23041 wxDC *arg1 = (wxDC *) 0 ;
23042 wxSize *arg2 = 0 ;
23043 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23044 wxBufferedDC *result = 0 ;
23045 void *argp1 = 0 ;
23046 int res1 = 0 ;
23047 wxSize temp2 ;
23048 int val3 ;
23049 int ecode3 = 0 ;
23050
23051 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23053 if (!SWIG_IsOK(res1)) {
23054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23055 }
23056 arg1 = reinterpret_cast< wxDC * >(argp1);
23057 {
23058 arg2 = &temp2;
23059 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23060 }
23061 if (swig_obj[2]) {
23062 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23063 if (!SWIG_IsOK(ecode3)) {
23064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23065 }
23066 arg3 = static_cast< int >(val3);
23067 }
23068 {
23069 if (!wxPyCheckForApp()) SWIG_fail;
23070 PyThreadState* __tstate = wxPyBeginAllowThreads();
23071 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23072 wxPyEndAllowThreads(__tstate);
23073 if (PyErr_Occurred()) SWIG_fail;
23074 }
23075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23076 return resultobj;
23077fail:
23078 return NULL;
23079}
23080
23081
23082SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23083 int argc;
23084 PyObject *argv[4];
23085
23086 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23087 --argc;
23088 if ((argc >= 1) && (argc <= 3)) {
23089 int _v = 0;
23090 if (argc > 1) {
23091 {
23092 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23093 _v = SWIG_CheckState(res);
23094 }
23095 if (!_v) goto check_1;
36ed4f51 23096 }
1bd55598
RD
23097 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23098 }
23099check_1:
23100
23101 if ((argc >= 2) && (argc <= 3)) {
23102 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23103 }
23104
23105fail:
23106 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23107 return NULL;
23108}
23109
23110
23111SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23112 PyObject *resultobj = 0;
23113 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 PyObject *swig_obj[1] ;
23117
23118 if (!args) SWIG_fail;
23119 swig_obj[0] = args;
23120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23121 if (!SWIG_IsOK(res1)) {
23122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23123 }
23124 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23125 {
23126 PyThreadState* __tstate = wxPyBeginAllowThreads();
23127 delete arg1;
23128
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 resultobj = SWIG_Py_Void();
23133 return resultobj;
23134fail:
23135 return NULL;
23136}
23137
23138
23139SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23140 PyObject *resultobj = 0;
23141 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23142 void *argp1 = 0 ;
23143 int res1 = 0 ;
23144 PyObject *swig_obj[1] ;
23145
23146 if (!args) SWIG_fail;
23147 swig_obj[0] = args;
23148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23151 }
23152 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 (arg1)->UnMask();
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = SWIG_Py_Void();
23160 return resultobj;
23161fail:
23162 return NULL;
23163}
23164
23165
23166SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23167 PyObject *obj;
23168 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23169 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23170 return SWIG_Py_Void();
23171}
23172
23173SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23174 return SWIG_Python_InitShadowInstance(args);
23175}
23176
23177SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23178 PyObject *resultobj = 0;
23179 wxWindow *arg1 = (wxWindow *) 0 ;
23180 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23181 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23182 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23183 wxBufferedPaintDC *result = 0 ;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 void *argp2 = 0 ;
23187 int res2 = 0 ;
23188 int val3 ;
23189 int ecode3 = 0 ;
23190 PyObject * obj0 = 0 ;
23191 PyObject * obj1 = 0 ;
23192 PyObject * obj2 = 0 ;
23193 char * kwnames[] = {
23194 (char *) "window",(char *) "buffer",(char *) "style", NULL
23195 };
23196
23197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23199 if (!SWIG_IsOK(res1)) {
23200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23201 }
23202 arg1 = reinterpret_cast< wxWindow * >(argp1);
23203 if (obj1) {
23204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23205 if (!SWIG_IsOK(res2)) {
23206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23207 }
1bd55598
RD
23208 if (!argp2) {
23209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23210 }
1bd55598
RD
23211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23212 }
23213 if (obj2) {
23214 ecode3 = SWIG_AsVal_int(obj2, &val3);
23215 if (!SWIG_IsOK(ecode3)) {
23216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23217 }
23218 arg3 = static_cast< int >(val3);
23219 }
23220 {
23221 if (!wxPyCheckForApp()) SWIG_fail;
23222 PyThreadState* __tstate = wxPyBeginAllowThreads();
23223 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23224 wxPyEndAllowThreads(__tstate);
23225 if (PyErr_Occurred()) SWIG_fail;
23226 }
23227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23228 return resultobj;
23229fail:
23230 return NULL;
23231}
23232
23233
23234SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23235 PyObject *obj;
23236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23237 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23238 return SWIG_Py_Void();
23239}
23240
23241SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23242 return SWIG_Python_InitShadowInstance(args);
23243}
23244
23245SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23246 PyObject *resultobj = 0;
23247 wxScreenDC *result = 0 ;
23248
23249 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23250 {
23251 if (!wxPyCheckForApp()) SWIG_fail;
23252 PyThreadState* __tstate = wxPyBeginAllowThreads();
23253 result = (wxScreenDC *)new wxScreenDC();
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23258 return resultobj;
23259fail:
23260 return NULL;
23261}
23262
23263
23264SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj = 0;
23266 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23267 wxWindow *arg2 = (wxWindow *) 0 ;
23268 bool result;
23269 void *argp1 = 0 ;
23270 int res1 = 0 ;
23271 void *argp2 = 0 ;
23272 int res2 = 0 ;
23273 PyObject * obj0 = 0 ;
23274 PyObject * obj1 = 0 ;
23275 char * kwnames[] = {
23276 (char *) "self",(char *) "window", NULL
23277 };
23278
23279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23281 if (!SWIG_IsOK(res1)) {
23282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23283 }
23284 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23286 if (!SWIG_IsOK(res2)) {
23287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23288 }
23289 arg2 = reinterpret_cast< wxWindow * >(argp2);
23290 {
23291 PyThreadState* __tstate = wxPyBeginAllowThreads();
23292 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23293 wxPyEndAllowThreads(__tstate);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 }
23296 {
23297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23298 }
23299 return resultobj;
23300fail:
23301 return NULL;
23302}
23303
23304
23305SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23306 PyObject *resultobj = 0;
23307 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23308 wxRect *arg2 = (wxRect *) NULL ;
23309 bool result;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 void *argp2 = 0 ;
23313 int res2 = 0 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 char * kwnames[] = {
23317 (char *) "self",(char *) "rect", NULL
23318 };
23319
23320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23324 }
23325 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23326 if (obj1) {
23327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23328 if (!SWIG_IsOK(res2)) {
23329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 23330 }
1bd55598
RD
23331 arg2 = reinterpret_cast< wxRect * >(argp2);
23332 }
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 {
23340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23341 }
23342 return resultobj;
23343fail:
23344 return NULL;
23345}
23346
23347
23348SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23349 PyObject *resultobj = 0;
23350 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23351 bool result;
23352 void *argp1 = 0 ;
23353 int res1 = 0 ;
23354 PyObject *swig_obj[1] ;
23355
23356 if (!args) SWIG_fail;
23357 swig_obj[0] = args;
23358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23359 if (!SWIG_IsOK(res1)) {
23360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23361 }
23362 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23363 {
23364 PyThreadState* __tstate = wxPyBeginAllowThreads();
23365 result = (bool)(arg1)->EndDrawingOnTop();
23366 wxPyEndAllowThreads(__tstate);
23367 if (PyErr_Occurred()) SWIG_fail;
23368 }
23369 {
23370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23371 }
23372 return resultobj;
23373fail:
23374 return NULL;
23375}
23376
23377
23378SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23379 PyObject *obj;
23380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23381 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23382 return SWIG_Py_Void();
23383}
23384
23385SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23386 return SWIG_Python_InitShadowInstance(args);
23387}
23388
23389SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23390 PyObject *resultobj = 0;
23391 wxWindow *arg1 = (wxWindow *) 0 ;
23392 wxClientDC *result = 0 ;
23393 void *argp1 = 0 ;
23394 int res1 = 0 ;
23395 PyObject * obj0 = 0 ;
23396 char * kwnames[] = {
23397 (char *) "win", NULL
23398 };
23399
23400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23402 if (!SWIG_IsOK(res1)) {
23403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23404 }
23405 arg1 = reinterpret_cast< wxWindow * >(argp1);
23406 {
23407 if (!wxPyCheckForApp()) SWIG_fail;
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 result = (wxClientDC *)new wxClientDC(arg1);
23410 wxPyEndAllowThreads(__tstate);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23414 return resultobj;
23415fail:
23416 return NULL;
23417}
23418
23419
23420SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23421 PyObject *obj;
23422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23423 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23424 return SWIG_Py_Void();
23425}
23426
23427SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23428 return SWIG_Python_InitShadowInstance(args);
23429}
23430
23431SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23432 PyObject *resultobj = 0;
23433 wxWindow *arg1 = (wxWindow *) 0 ;
23434 wxPaintDC *result = 0 ;
23435 void *argp1 = 0 ;
23436 int res1 = 0 ;
23437 PyObject * obj0 = 0 ;
23438 char * kwnames[] = {
23439 (char *) "win", NULL
23440 };
23441
23442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23444 if (!SWIG_IsOK(res1)) {
23445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23446 }
23447 arg1 = reinterpret_cast< wxWindow * >(argp1);
23448 {
23449 if (!wxPyCheckForApp()) SWIG_fail;
23450 PyThreadState* __tstate = wxPyBeginAllowThreads();
23451 result = (wxPaintDC *)new wxPaintDC(arg1);
23452 wxPyEndAllowThreads(__tstate);
23453 if (PyErr_Occurred()) SWIG_fail;
23454 }
23455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23456 return resultobj;
23457fail:
23458 return NULL;
23459}
23460
23461
23462SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23463 PyObject *obj;
23464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23465 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23466 return SWIG_Py_Void();
23467}
23468
23469SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23470 return SWIG_Python_InitShadowInstance(args);
23471}
23472
23473SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23474 PyObject *resultobj = 0;
23475 wxWindow *arg1 = (wxWindow *) 0 ;
23476 wxWindowDC *result = 0 ;
23477 void *argp1 = 0 ;
23478 int res1 = 0 ;
23479 PyObject * obj0 = 0 ;
23480 char * kwnames[] = {
23481 (char *) "win", NULL
23482 };
23483
23484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23486 if (!SWIG_IsOK(res1)) {
23487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23488 }
23489 arg1 = reinterpret_cast< wxWindow * >(argp1);
23490 {
23491 if (!wxPyCheckForApp()) SWIG_fail;
23492 PyThreadState* __tstate = wxPyBeginAllowThreads();
23493 result = (wxWindowDC *)new wxWindowDC(arg1);
23494 wxPyEndAllowThreads(__tstate);
23495 if (PyErr_Occurred()) SWIG_fail;
23496 }
23497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23498 return resultobj;
23499fail:
23500 return NULL;
23501}
23502
23503
23504SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23505 PyObject *obj;
23506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23507 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23508 return SWIG_Py_Void();
23509}
23510
23511SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23512 return SWIG_Python_InitShadowInstance(args);
23513}
23514
23515SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23516 PyObject *resultobj = 0;
23517 wxDC *arg1 = 0 ;
23518 bool arg2 ;
23519 wxMirrorDC *result = 0 ;
23520 void *argp1 = 0 ;
23521 int res1 = 0 ;
23522 bool val2 ;
23523 int ecode2 = 0 ;
23524 PyObject * obj0 = 0 ;
23525 PyObject * obj1 = 0 ;
23526 char * kwnames[] = {
23527 (char *) "dc",(char *) "mirror", NULL
23528 };
23529
23530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23532 if (!SWIG_IsOK(res1)) {
23533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23534 }
23535 if (!argp1) {
23536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23537 }
23538 arg1 = reinterpret_cast< wxDC * >(argp1);
23539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23540 if (!SWIG_IsOK(ecode2)) {
23541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23542 }
23543 arg2 = static_cast< bool >(val2);
23544 {
23545 if (!wxPyCheckForApp()) SWIG_fail;
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23552 return resultobj;
23553fail:
23554 return NULL;
23555}
23556
23557
23558SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23559 PyObject *obj;
23560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23561 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23562 return SWIG_Py_Void();
23563}
23564
23565SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23566 return SWIG_Python_InitShadowInstance(args);
23567}
23568
23569SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23570 PyObject *resultobj = 0;
23571 wxPrintData *arg1 = 0 ;
23572 wxPostScriptDC *result = 0 ;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 PyObject * obj0 = 0 ;
23576 char * kwnames[] = {
23577 (char *) "printData", NULL
23578 };
23579
23580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23581 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23582 if (!SWIG_IsOK(res1)) {
23583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23584 }
23585 if (!argp1) {
23586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23587 }
23588 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23589 {
23590 if (!wxPyCheckForApp()) SWIG_fail;
23591 PyThreadState* __tstate = wxPyBeginAllowThreads();
23592 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23593 wxPyEndAllowThreads(__tstate);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 }
23596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23597 return resultobj;
23598fail:
23599 return NULL;
23600}
23601
23602
23603SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23604 PyObject *resultobj = 0;
23605 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23606 wxPrintData *result = 0 ;
23607 void *argp1 = 0 ;
23608 int res1 = 0 ;
23609 PyObject *swig_obj[1] ;
23610
23611 if (!args) SWIG_fail;
23612 swig_obj[0] = args;
23613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23614 if (!SWIG_IsOK(res1)) {
23615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23616 }
23617 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23618 {
23619 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23620 {
1bd55598
RD
23621 wxPrintData &_result_ref = (arg1)->GetPrintData();
23622 result = (wxPrintData *) &_result_ref;
e2950dbb 23623 }
1bd55598
RD
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23628 return resultobj;
23629fail:
23630 return NULL;
23631}
23632
23633
23634SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23635 PyObject *resultobj = 0;
23636 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23637 wxPrintData *arg2 = 0 ;
23638 void *argp1 = 0 ;
23639 int res1 = 0 ;
23640 void *argp2 = 0 ;
23641 int res2 = 0 ;
23642 PyObject * obj0 = 0 ;
23643 PyObject * obj1 = 0 ;
23644 char * kwnames[] = {
23645 (char *) "self",(char *) "data", NULL
23646 };
23647
23648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23650 if (!SWIG_IsOK(res1)) {
23651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23652 }
23653 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23655 if (!SWIG_IsOK(res2)) {
23656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23657 }
23658 if (!argp2) {
23659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23660 }
23661 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23665 wxPyEndAllowThreads(__tstate);
23666 if (PyErr_Occurred()) SWIG_fail;
23667 }
23668 resultobj = SWIG_Py_Void();
23669 return resultobj;
23670fail:
23671 return NULL;
23672}
23673
23674
23675SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23676 PyObject *resultobj = 0;
23677 int arg1 ;
23678 int val1 ;
23679 int ecode1 = 0 ;
23680 PyObject * obj0 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "ppi", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23686 ecode1 = SWIG_AsVal_int(obj0, &val1);
23687 if (!SWIG_IsOK(ecode1)) {
23688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23689 }
23690 arg1 = static_cast< int >(val1);
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 wxPostScriptDC::SetResolution(arg1);
23694 wxPyEndAllowThreads(__tstate);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 }
23697 resultobj = SWIG_Py_Void();
23698 return resultobj;
23699fail:
23700 return NULL;
23701}
23702
23703
23704SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23705 PyObject *resultobj = 0;
23706 int result;
23707
23708 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23709 {
23710 PyThreadState* __tstate = wxPyBeginAllowThreads();
23711 result = (int)wxPostScriptDC::GetResolution();
23712 wxPyEndAllowThreads(__tstate);
23713 if (PyErr_Occurred()) SWIG_fail;
23714 }
23715 resultobj = SWIG_From_int(static_cast< int >(result));
23716 return resultobj;
23717fail:
23718 return NULL;
23719}
23720
23721
23722SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23723 PyObject *obj;
23724 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23725 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23726 return SWIG_Py_Void();
23727}
23728
23729SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23730 return SWIG_Python_InitShadowInstance(args);
23731}
23732
23733SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23734 PyObject *resultobj = 0;
23735 wxString const &arg1_defvalue = wxPyEmptyString ;
23736 wxString *arg1 = (wxString *) &arg1_defvalue ;
23737 wxMetaFile *result = 0 ;
23738 bool temp1 = false ;
23739 PyObject * obj0 = 0 ;
23740 char * kwnames[] = {
23741 (char *) "filename", NULL
23742 };
23743
23744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23745 if (obj0) {
36ed4f51 23746 {
1bd55598
RD
23747 arg1 = wxString_in_helper(obj0);
23748 if (arg1 == NULL) SWIG_fail;
23749 temp1 = true;
36ed4f51 23750 }
1bd55598
RD
23751 }
23752 {
23753 if (!wxPyCheckForApp()) SWIG_fail;
23754 PyThreadState* __tstate = wxPyBeginAllowThreads();
23755 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23756 wxPyEndAllowThreads(__tstate);
23757 if (PyErr_Occurred()) SWIG_fail;
23758 }
23759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23760 {
23761 if (temp1)
23762 delete arg1;
23763 }
23764 return resultobj;
23765fail:
23766 {
23767 if (temp1)
23768 delete arg1;
23769 }
23770 return NULL;
23771}
23772
23773
23774SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23775 PyObject *resultobj = 0;
23776 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23777 void *argp1 = 0 ;
23778 int res1 = 0 ;
23779 PyObject *swig_obj[1] ;
23780
23781 if (!args) SWIG_fail;
23782 swig_obj[0] = args;
23783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23786 }
23787 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23788 {
23789 PyThreadState* __tstate = wxPyBeginAllowThreads();
23790 delete arg1;
23791
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797fail:
23798 return NULL;
23799}
23800
23801
23802SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23803 PyObject *resultobj = 0;
23804 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23805 bool result;
23806 void *argp1 = 0 ;
23807 int res1 = 0 ;
23808 PyObject *swig_obj[1] ;
23809
23810 if (!args) SWIG_fail;
23811 swig_obj[0] = args;
23812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23813 if (!SWIG_IsOK(res1)) {
23814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23815 }
23816 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23817 {
23818 PyThreadState* __tstate = wxPyBeginAllowThreads();
23819 result = (bool)(arg1)->Ok();
23820 wxPyEndAllowThreads(__tstate);
23821 if (PyErr_Occurred()) SWIG_fail;
23822 }
23823 {
23824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23825 }
23826 return resultobj;
23827fail:
23828 return NULL;
23829}
23830
23831
23832SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23833 PyObject *resultobj = 0;
23834 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23835 int arg2 = (int) 0 ;
23836 int arg3 = (int) 0 ;
23837 bool result;
23838 void *argp1 = 0 ;
23839 int res1 = 0 ;
23840 int val2 ;
23841 int ecode2 = 0 ;
23842 int val3 ;
23843 int ecode3 = 0 ;
23844 PyObject * obj0 = 0 ;
23845 PyObject * obj1 = 0 ;
23846 PyObject * obj2 = 0 ;
23847 char * kwnames[] = {
23848 (char *) "self",(char *) "width",(char *) "height", NULL
23849 };
23850
23851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23853 if (!SWIG_IsOK(res1)) {
23854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23855 }
23856 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23857 if (obj1) {
23858 ecode2 = SWIG_AsVal_int(obj1, &val2);
23859 if (!SWIG_IsOK(ecode2)) {
23860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
23861 }
23862 arg2 = static_cast< int >(val2);
23863 }
23864 if (obj2) {
23865 ecode3 = SWIG_AsVal_int(obj2, &val3);
23866 if (!SWIG_IsOK(ecode3)) {
23867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
23868 }
23869 arg3 = static_cast< int >(val3);
23870 }
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 result = (bool)(arg1)->SetClipboard(arg2,arg3);
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 {
23878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23879 }
23880 return resultobj;
23881fail:
23882 return NULL;
23883}
23884
23885
23886SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23887 PyObject *resultobj = 0;
23888 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23889 wxSize result;
23890 void *argp1 = 0 ;
23891 int res1 = 0 ;
23892 PyObject *swig_obj[1] ;
23893
23894 if (!args) SWIG_fail;
23895 swig_obj[0] = args;
23896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23897 if (!SWIG_IsOK(res1)) {
23898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23899 }
23900 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23901 {
23902 PyThreadState* __tstate = wxPyBeginAllowThreads();
23903 result = (arg1)->GetSize();
23904 wxPyEndAllowThreads(__tstate);
23905 if (PyErr_Occurred()) SWIG_fail;
23906 }
23907 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
23908 return resultobj;
23909fail:
23910 return NULL;
23911}
23912
23913
23914SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23915 PyObject *resultobj = 0;
23916 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23917 int result;
23918 void *argp1 = 0 ;
23919 int res1 = 0 ;
23920 PyObject *swig_obj[1] ;
23921
23922 if (!args) SWIG_fail;
23923 swig_obj[0] = args;
23924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23925 if (!SWIG_IsOK(res1)) {
23926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23927 }
23928 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23929 {
23930 PyThreadState* __tstate = wxPyBeginAllowThreads();
23931 result = (int)(arg1)->GetWidth();
23932 wxPyEndAllowThreads(__tstate);
23933 if (PyErr_Occurred()) SWIG_fail;
23934 }
23935 resultobj = SWIG_From_int(static_cast< int >(result));
23936 return resultobj;
23937fail:
23938 return NULL;
23939}
23940
23941
23942SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23943 PyObject *resultobj = 0;
23944 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23945 int result;
23946 void *argp1 = 0 ;
23947 int res1 = 0 ;
23948 PyObject *swig_obj[1] ;
23949
23950 if (!args) SWIG_fail;
23951 swig_obj[0] = args;
23952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23953 if (!SWIG_IsOK(res1)) {
23954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23955 }
23956 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23957 {
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 result = (int)(arg1)->GetHeight();
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 resultobj = SWIG_From_int(static_cast< int >(result));
23964 return resultobj;
23965fail:
23966 return NULL;
23967}
23968
23969
23970SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23971 PyObject *obj;
23972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23973 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23974 return SWIG_Py_Void();
23975}
23976
23977SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23978 return SWIG_Python_InitShadowInstance(args);
23979}
23980
23981SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj = 0;
23983 wxString const &arg1_defvalue = wxPyEmptyString ;
23984 wxString *arg1 = (wxString *) &arg1_defvalue ;
23985 int arg2 = (int) 0 ;
23986 int arg3 = (int) 0 ;
23987 wxString const &arg4_defvalue = wxPyEmptyString ;
23988 wxString *arg4 = (wxString *) &arg4_defvalue ;
23989 wxMetaFileDC *result = 0 ;
23990 bool temp1 = false ;
23991 int val2 ;
23992 int ecode2 = 0 ;
23993 int val3 ;
23994 int ecode3 = 0 ;
23995 bool temp4 = false ;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998 PyObject * obj2 = 0 ;
23999 PyObject * obj3 = 0 ;
24000 char * kwnames[] = {
24001 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24002 };
24003
24004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24005 if (obj0) {
36ed4f51 24006 {
1bd55598
RD
24007 arg1 = wxString_in_helper(obj0);
24008 if (arg1 == NULL) SWIG_fail;
24009 temp1 = true;
36ed4f51 24010 }
1bd55598
RD
24011 }
24012 if (obj1) {
24013 ecode2 = SWIG_AsVal_int(obj1, &val2);
24014 if (!SWIG_IsOK(ecode2)) {
24015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24016 }
24017 arg2 = static_cast< int >(val2);
24018 }
24019 if (obj2) {
24020 ecode3 = SWIG_AsVal_int(obj2, &val3);
24021 if (!SWIG_IsOK(ecode3)) {
24022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24023 }
24024 arg3 = static_cast< int >(val3);
24025 }
24026 if (obj3) {
36ed4f51 24027 {
1bd55598
RD
24028 arg4 = wxString_in_helper(obj3);
24029 if (arg4 == NULL) SWIG_fail;
24030 temp4 = true;
36ed4f51 24031 }
1bd55598
RD
24032 }
24033 {
24034 if (!wxPyCheckForApp()) SWIG_fail;
24035 PyThreadState* __tstate = wxPyBeginAllowThreads();
24036 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24037 wxPyEndAllowThreads(__tstate);
24038 if (PyErr_Occurred()) SWIG_fail;
24039 }
24040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24041 {
24042 if (temp1)
24043 delete arg1;
24044 }
24045 {
24046 if (temp4)
24047 delete arg4;
24048 }
24049 return resultobj;
24050fail:
24051 {
24052 if (temp1)
24053 delete arg1;
24054 }
24055 {
24056 if (temp4)
24057 delete arg4;
24058 }
24059 return NULL;
24060}
24061
24062
24063SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24064 PyObject *resultobj = 0;
24065 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24066 wxMetaFile *result = 0 ;
24067 void *argp1 = 0 ;
24068 int res1 = 0 ;
24069 PyObject *swig_obj[1] ;
24070
24071 if (!args) SWIG_fail;
24072 swig_obj[0] = args;
24073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24074 if (!SWIG_IsOK(res1)) {
24075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24076 }
24077 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24078 {
24079 PyThreadState* __tstate = wxPyBeginAllowThreads();
24080 result = (wxMetaFile *)(arg1)->Close();
24081 wxPyEndAllowThreads(__tstate);
24082 if (PyErr_Occurred()) SWIG_fail;
24083 }
24084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24085 return resultobj;
24086fail:
24087 return NULL;
24088}
24089
24090
24091SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24092 PyObject *obj;
24093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24094 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24095 return SWIG_Py_Void();
24096}
24097
24098SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24099 return SWIG_Python_InitShadowInstance(args);
24100}
24101
24102SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24103 PyObject *resultobj = 0;
24104 wxPrintData *arg1 = 0 ;
24105 wxPrinterDC *result = 0 ;
24106 void *argp1 = 0 ;
24107 int res1 = 0 ;
24108 PyObject * obj0 = 0 ;
24109 char * kwnames[] = {
24110 (char *) "printData", NULL
24111 };
24112
24113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24114 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24115 if (!SWIG_IsOK(res1)) {
24116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24117 }
24118 if (!argp1) {
24119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24120 }
24121 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24122 {
24123 if (!wxPyCheckForApp()) SWIG_fail;
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24130 return resultobj;
24131fail:
24132 return NULL;
24133}
24134
24135
24136SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24137 PyObject *obj;
24138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24139 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24140 return SWIG_Py_Void();
24141}
24142
24143SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24144 return SWIG_Python_InitShadowInstance(args);
24145}
24146
24147SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24148 PyObject *resultobj = 0;
24149 int arg1 ;
24150 int arg2 ;
24151 int arg3 = (int) true ;
24152 int arg4 = (int) 1 ;
24153 wxImageList *result = 0 ;
24154 int val1 ;
24155 int ecode1 = 0 ;
24156 int val2 ;
24157 int ecode2 = 0 ;
24158 int val3 ;
24159 int ecode3 = 0 ;
24160 int val4 ;
24161 int ecode4 = 0 ;
24162 PyObject * obj0 = 0 ;
24163 PyObject * obj1 = 0 ;
24164 PyObject * obj2 = 0 ;
24165 PyObject * obj3 = 0 ;
24166 char * kwnames[] = {
24167 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24168 };
24169
24170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24171 ecode1 = SWIG_AsVal_int(obj0, &val1);
24172 if (!SWIG_IsOK(ecode1)) {
24173 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24174 }
24175 arg1 = static_cast< int >(val1);
24176 ecode2 = SWIG_AsVal_int(obj1, &val2);
24177 if (!SWIG_IsOK(ecode2)) {
24178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24179 }
24180 arg2 = static_cast< int >(val2);
24181 if (obj2) {
24182 ecode3 = SWIG_AsVal_int(obj2, &val3);
24183 if (!SWIG_IsOK(ecode3)) {
24184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24185 }
24186 arg3 = static_cast< int >(val3);
24187 }
24188 if (obj3) {
24189 ecode4 = SWIG_AsVal_int(obj3, &val4);
24190 if (!SWIG_IsOK(ecode4)) {
24191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24192 }
24193 arg4 = static_cast< int >(val4);
24194 }
24195 {
24196 if (!wxPyCheckForApp()) SWIG_fail;
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24199 wxPyEndAllowThreads(__tstate);
24200 if (PyErr_Occurred()) SWIG_fail;
24201 }
24202 {
24203 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24204 }
24205 return resultobj;
24206fail:
24207 return NULL;
24208}
24209
24210
24211SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24212 PyObject *resultobj = 0;
24213 wxImageList *arg1 = (wxImageList *) 0 ;
24214 void *argp1 = 0 ;
24215 int res1 = 0 ;
24216 PyObject *swig_obj[1] ;
24217
24218 if (!args) SWIG_fail;
24219 swig_obj[0] = args;
24220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24221 if (!SWIG_IsOK(res1)) {
24222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24223 }
24224 arg1 = reinterpret_cast< wxImageList * >(argp1);
24225 {
24226 PyThreadState* __tstate = wxPyBeginAllowThreads();
24227 delete arg1;
24228
24229 wxPyEndAllowThreads(__tstate);
24230 if (PyErr_Occurred()) SWIG_fail;
24231 }
24232 resultobj = SWIG_Py_Void();
24233 return resultobj;
24234fail:
24235 return NULL;
24236}
24237
24238
24239SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24240 PyObject *resultobj = 0;
24241 wxImageList *arg1 = (wxImageList *) 0 ;
24242 wxBitmap *arg2 = 0 ;
24243 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24244 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24245 int result;
24246 void *argp1 = 0 ;
24247 int res1 = 0 ;
24248 void *argp2 = 0 ;
24249 int res2 = 0 ;
24250 void *argp3 = 0 ;
24251 int res3 = 0 ;
24252 PyObject * obj0 = 0 ;
24253 PyObject * obj1 = 0 ;
24254 PyObject * obj2 = 0 ;
24255 char * kwnames[] = {
24256 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24257 };
24258
24259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24263 }
24264 arg1 = reinterpret_cast< wxImageList * >(argp1);
24265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24266 if (!SWIG_IsOK(res2)) {
24267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24268 }
24269 if (!argp2) {
24270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24271 }
24272 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24273 if (obj2) {
24274 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24275 if (!SWIG_IsOK(res3)) {
24276 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
36ed4f51 24277 }
1bd55598
RD
24278 if (!argp3) {
24279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
36ed4f51 24280 }
1bd55598
RD
24281 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24282 }
24283 {
24284 PyThreadState* __tstate = wxPyBeginAllowThreads();
24285 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24286 wxPyEndAllowThreads(__tstate);
24287 if (PyErr_Occurred()) SWIG_fail;
24288 }
24289 resultobj = SWIG_From_int(static_cast< int >(result));
24290 return resultobj;
24291fail:
24292 return NULL;
24293}
24294
24295
24296SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24297 PyObject *resultobj = 0;
24298 wxImageList *arg1 = (wxImageList *) 0 ;
24299 wxBitmap *arg2 = 0 ;
24300 wxColour *arg3 = 0 ;
24301 int result;
24302 void *argp1 = 0 ;
24303 int res1 = 0 ;
24304 void *argp2 = 0 ;
24305 int res2 = 0 ;
24306 wxColour temp3 ;
24307 PyObject * obj0 = 0 ;
24308 PyObject * obj1 = 0 ;
24309 PyObject * obj2 = 0 ;
24310 char * kwnames[] = {
24311 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24312 };
24313
24314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24316 if (!SWIG_IsOK(res1)) {
24317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24318 }
24319 arg1 = reinterpret_cast< wxImageList * >(argp1);
24320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24321 if (!SWIG_IsOK(res2)) {
24322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24323 }
24324 if (!argp2) {
24325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24326 }
24327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24328 {
24329 arg3 = &temp3;
24330 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24331 }
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24335 wxPyEndAllowThreads(__tstate);
24336 if (PyErr_Occurred()) SWIG_fail;
24337 }
24338 resultobj = SWIG_From_int(static_cast< int >(result));
24339 return resultobj;
24340fail:
24341 return NULL;
24342}
24343
24344
24345SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24346 PyObject *resultobj = 0;
24347 wxImageList *arg1 = (wxImageList *) 0 ;
24348 wxIcon *arg2 = 0 ;
24349 int result;
24350 void *argp1 = 0 ;
24351 int res1 = 0 ;
24352 void *argp2 = 0 ;
24353 int res2 = 0 ;
24354 PyObject * obj0 = 0 ;
24355 PyObject * obj1 = 0 ;
24356 char * kwnames[] = {
24357 (char *) "self",(char *) "icon", NULL
24358 };
24359
24360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24362 if (!SWIG_IsOK(res1)) {
24363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24364 }
24365 arg1 = reinterpret_cast< wxImageList * >(argp1);
24366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24367 if (!SWIG_IsOK(res2)) {
24368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24369 }
24370 if (!argp2) {
24371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24372 }
24373 arg2 = reinterpret_cast< wxIcon * >(argp2);
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
24380 resultobj = SWIG_From_int(static_cast< int >(result));
24381 return resultobj;
24382fail:
24383 return NULL;
24384}
24385
24386
24387SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24388 PyObject *resultobj = 0;
24389 wxImageList *arg1 = (wxImageList *) 0 ;
24390 int arg2 ;
24391 SwigValueWrapper<wxBitmap > result;
24392 void *argp1 = 0 ;
24393 int res1 = 0 ;
24394 int val2 ;
24395 int ecode2 = 0 ;
24396 PyObject * obj0 = 0 ;
24397 PyObject * obj1 = 0 ;
24398 char * kwnames[] = {
24399 (char *) "self",(char *) "index", NULL
24400 };
24401
24402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24404 if (!SWIG_IsOK(res1)) {
24405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24406 }
24407 arg1 = reinterpret_cast< wxImageList * >(argp1);
24408 ecode2 = SWIG_AsVal_int(obj1, &val2);
24409 if (!SWIG_IsOK(ecode2)) {
24410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24411 }
24412 arg2 = static_cast< int >(val2);
24413 {
24414 PyThreadState* __tstate = wxPyBeginAllowThreads();
24415 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24420 return resultobj;
24421fail:
24422 return NULL;
24423}
24424
24425
24426SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24427 PyObject *resultobj = 0;
24428 wxImageList *arg1 = (wxImageList *) 0 ;
24429 int arg2 ;
24430 wxIcon result;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 int val2 ;
24434 int ecode2 = 0 ;
24435 PyObject * obj0 = 0 ;
24436 PyObject * obj1 = 0 ;
24437 char * kwnames[] = {
24438 (char *) "self",(char *) "index", NULL
24439 };
24440
24441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24443 if (!SWIG_IsOK(res1)) {
24444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24445 }
24446 arg1 = reinterpret_cast< wxImageList * >(argp1);
24447 ecode2 = SWIG_AsVal_int(obj1, &val2);
24448 if (!SWIG_IsOK(ecode2)) {
24449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24450 }
24451 arg2 = static_cast< int >(val2);
24452 {
24453 PyThreadState* __tstate = wxPyBeginAllowThreads();
24454 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24455 wxPyEndAllowThreads(__tstate);
24456 if (PyErr_Occurred()) SWIG_fail;
24457 }
24458 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24459 return resultobj;
24460fail:
24461 return NULL;
24462}
24463
24464
24465SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24466 PyObject *resultobj = 0;
24467 wxImageList *arg1 = (wxImageList *) 0 ;
24468 int arg2 ;
24469 wxBitmap *arg3 = 0 ;
2131d850
RD
24470 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24471 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
24472 bool result;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 int val2 ;
24476 int ecode2 = 0 ;
24477 void *argp3 = 0 ;
24478 int res3 = 0 ;
2131d850
RD
24479 void *argp4 = 0 ;
24480 int res4 = 0 ;
1bd55598
RD
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 PyObject * obj2 = 0 ;
2131d850 24484 PyObject * obj3 = 0 ;
1bd55598 24485 char * kwnames[] = {
2131d850 24486 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
24487 };
24488
2131d850 24489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
24490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24491 if (!SWIG_IsOK(res1)) {
24492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24493 }
24494 arg1 = reinterpret_cast< wxImageList * >(argp1);
24495 ecode2 = SWIG_AsVal_int(obj1, &val2);
24496 if (!SWIG_IsOK(ecode2)) {
24497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24498 }
24499 arg2 = static_cast< int >(val2);
24500 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24501 if (!SWIG_IsOK(res3)) {
24502 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24503 }
24504 if (!argp3) {
24505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24506 }
24507 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
24508 if (obj3) {
24509 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24510 if (!SWIG_IsOK(res4)) {
24511 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24512 }
24513 if (!argp4) {
24514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24515 }
24516 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24517 }
1bd55598
RD
24518 {
24519 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 24520 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
24521 wxPyEndAllowThreads(__tstate);
24522 if (PyErr_Occurred()) SWIG_fail;
24523 }
24524 {
24525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24526 }
24527 return resultobj;
24528fail:
24529 return NULL;
24530}
24531
24532
24533SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24534 PyObject *resultobj = 0;
24535 wxImageList *arg1 = (wxImageList *) 0 ;
24536 int arg2 ;
24537 wxDC *arg3 = 0 ;
24538 int arg4 ;
24539 int arg5 ;
24540 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24541 bool arg7 = (bool) (bool)false ;
24542 bool result;
24543 void *argp1 = 0 ;
24544 int res1 = 0 ;
24545 int val2 ;
24546 int ecode2 = 0 ;
24547 void *argp3 = 0 ;
24548 int res3 = 0 ;
24549 int val4 ;
24550 int ecode4 = 0 ;
24551 int val5 ;
24552 int ecode5 = 0 ;
24553 int val6 ;
24554 int ecode6 = 0 ;
24555 bool val7 ;
24556 int ecode7 = 0 ;
24557 PyObject * obj0 = 0 ;
24558 PyObject * obj1 = 0 ;
24559 PyObject * obj2 = 0 ;
24560 PyObject * obj3 = 0 ;
24561 PyObject * obj4 = 0 ;
24562 PyObject * obj5 = 0 ;
24563 PyObject * obj6 = 0 ;
24564 char * kwnames[] = {
24565 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24566 };
24567
24568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24570 if (!SWIG_IsOK(res1)) {
24571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24572 }
24573 arg1 = reinterpret_cast< wxImageList * >(argp1);
24574 ecode2 = SWIG_AsVal_int(obj1, &val2);
24575 if (!SWIG_IsOK(ecode2)) {
24576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24577 }
24578 arg2 = static_cast< int >(val2);
24579 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24580 if (!SWIG_IsOK(res3)) {
24581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24582 }
24583 if (!argp3) {
24584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24585 }
24586 arg3 = reinterpret_cast< wxDC * >(argp3);
24587 ecode4 = SWIG_AsVal_int(obj3, &val4);
24588 if (!SWIG_IsOK(ecode4)) {
24589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24590 }
24591 arg4 = static_cast< int >(val4);
24592 ecode5 = SWIG_AsVal_int(obj4, &val5);
24593 if (!SWIG_IsOK(ecode5)) {
24594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24595 }
24596 arg5 = static_cast< int >(val5);
24597 if (obj5) {
24598 ecode6 = SWIG_AsVal_int(obj5, &val6);
24599 if (!SWIG_IsOK(ecode6)) {
24600 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24601 }
24602 arg6 = static_cast< int >(val6);
24603 }
24604 if (obj6) {
24605 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24606 if (!SWIG_IsOK(ecode7)) {
24607 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24608 }
24609 arg7 = static_cast< bool >(val7);
24610 }
24611 {
24612 PyThreadState* __tstate = wxPyBeginAllowThreads();
24613 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24614 wxPyEndAllowThreads(__tstate);
24615 if (PyErr_Occurred()) SWIG_fail;
24616 }
24617 {
24618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24619 }
24620 return resultobj;
24621fail:
24622 return NULL;
24623}
24624
24625
24626SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24627 PyObject *resultobj = 0;
24628 wxImageList *arg1 = (wxImageList *) 0 ;
24629 int result;
24630 void *argp1 = 0 ;
24631 int res1 = 0 ;
24632 PyObject *swig_obj[1] ;
24633
24634 if (!args) SWIG_fail;
24635 swig_obj[0] = args;
24636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24637 if (!SWIG_IsOK(res1)) {
24638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24639 }
24640 arg1 = reinterpret_cast< wxImageList * >(argp1);
24641 {
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 result = (int)(arg1)->GetImageCount();
24644 wxPyEndAllowThreads(__tstate);
24645 if (PyErr_Occurred()) SWIG_fail;
24646 }
24647 resultobj = SWIG_From_int(static_cast< int >(result));
24648 return resultobj;
24649fail:
24650 return NULL;
24651}
24652
24653
24654SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24655 PyObject *resultobj = 0;
24656 wxImageList *arg1 = (wxImageList *) 0 ;
24657 int arg2 ;
24658 bool result;
24659 void *argp1 = 0 ;
24660 int res1 = 0 ;
24661 int val2 ;
24662 int ecode2 = 0 ;
24663 PyObject * obj0 = 0 ;
24664 PyObject * obj1 = 0 ;
24665 char * kwnames[] = {
24666 (char *) "self",(char *) "index", NULL
24667 };
24668
24669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24671 if (!SWIG_IsOK(res1)) {
24672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24673 }
24674 arg1 = reinterpret_cast< wxImageList * >(argp1);
24675 ecode2 = SWIG_AsVal_int(obj1, &val2);
24676 if (!SWIG_IsOK(ecode2)) {
24677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24678 }
24679 arg2 = static_cast< int >(val2);
24680 {
24681 PyThreadState* __tstate = wxPyBeginAllowThreads();
24682 result = (bool)(arg1)->Remove(arg2);
24683 wxPyEndAllowThreads(__tstate);
24684 if (PyErr_Occurred()) SWIG_fail;
24685 }
24686 {
24687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24688 }
24689 return resultobj;
24690fail:
24691 return NULL;
24692}
24693
24694
24695SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24696 PyObject *resultobj = 0;
24697 wxImageList *arg1 = (wxImageList *) 0 ;
24698 bool result;
24699 void *argp1 = 0 ;
24700 int res1 = 0 ;
24701 PyObject *swig_obj[1] ;
24702
24703 if (!args) SWIG_fail;
24704 swig_obj[0] = args;
24705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24706 if (!SWIG_IsOK(res1)) {
24707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24708 }
24709 arg1 = reinterpret_cast< wxImageList * >(argp1);
24710 {
24711 PyThreadState* __tstate = wxPyBeginAllowThreads();
24712 result = (bool)(arg1)->RemoveAll();
24713 wxPyEndAllowThreads(__tstate);
24714 if (PyErr_Occurred()) SWIG_fail;
24715 }
24716 {
24717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24718 }
24719 return resultobj;
24720fail:
24721 return NULL;
24722}
24723
24724
24725SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24726 PyObject *resultobj = 0;
24727 wxImageList *arg1 = (wxImageList *) 0 ;
24728 int arg2 ;
24729 int *arg3 = 0 ;
24730 int *arg4 = 0 ;
24731 void *argp1 = 0 ;
24732 int res1 = 0 ;
24733 int val2 ;
24734 int ecode2 = 0 ;
24735 int temp3 ;
24736 int res3 = SWIG_TMPOBJ ;
24737 int temp4 ;
24738 int res4 = SWIG_TMPOBJ ;
24739 PyObject * obj0 = 0 ;
24740 PyObject * obj1 = 0 ;
24741 char * kwnames[] = {
24742 (char *) "self",(char *) "index", NULL
24743 };
24744
24745 arg3 = &temp3;
24746 arg4 = &temp4;
24747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24749 if (!SWIG_IsOK(res1)) {
24750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24751 }
24752 arg1 = reinterpret_cast< wxImageList * >(argp1);
24753 ecode2 = SWIG_AsVal_int(obj1, &val2);
24754 if (!SWIG_IsOK(ecode2)) {
24755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24756 }
24757 arg2 = static_cast< int >(val2);
24758 {
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 (arg1)->GetSize(arg2,*arg3,*arg4);
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 resultobj = SWIG_Py_Void();
24765 if (SWIG_IsTmpObj(res3)) {
24766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24767 } else {
24768 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24770 }
24771 if (SWIG_IsTmpObj(res4)) {
24772 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24773 } else {
24774 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24775 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24776 }
24777 return resultobj;
24778fail:
24779 return NULL;
24780}
24781
24782
24783SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24784 PyObject *obj;
24785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24786 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24787 return SWIG_Py_Void();
24788}
24789
24790SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24791 return SWIG_Python_InitShadowInstance(args);
24792}
24793
da91cb0f
RD
24794SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24795 PyObject *resultobj = 0;
24796 wxStockGDI *result = 0 ;
1bd55598 24797
da91cb0f
RD
24798 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 result = (wxStockGDI *)new wxStockGDI();
24802 wxPyEndAllowThreads(__tstate);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24806 return resultobj;
24807fail:
24808 return NULL;
1bd55598
RD
24809}
24810
24811
da91cb0f
RD
24812SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24813 PyObject *resultobj = 0;
24814 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24815 void *argp1 = 0 ;
24816 int res1 = 0 ;
24817 PyObject *swig_obj[1] ;
1bd55598 24818
da91cb0f
RD
24819 if (!args) SWIG_fail;
24820 swig_obj[0] = args;
24821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24822 if (!SWIG_IsOK(res1)) {
24823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24824 }
24825 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24826 {
24827 PyThreadState* __tstate = wxPyBeginAllowThreads();
24828 delete arg1;
24829
24830 wxPyEndAllowThreads(__tstate);
24831 if (PyErr_Occurred()) SWIG_fail;
24832 }
24833 resultobj = SWIG_Py_Void();
24834 return resultobj;
24835fail:
24836 return NULL;
1bd55598
RD
24837}
24838
24839
da91cb0f
RD
24840SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24841 PyObject *resultobj = 0;
1bd55598 24842
da91cb0f
RD
24843 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 wxStockGDI::DeleteAll();
24847 wxPyEndAllowThreads(__tstate);
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 resultobj = SWIG_Py_Void();
24851 return resultobj;
24852fail:
24853 return NULL;
1bd55598
RD
24854}
24855
24856
da91cb0f
RD
24857SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24858 PyObject *resultobj = 0;
24859 wxStockGDI *result = 0 ;
1bd55598 24860
da91cb0f
RD
24861 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24862 {
24863 PyThreadState* __tstate = wxPyBeginAllowThreads();
24864 {
24865 wxStockGDI &_result_ref = wxStockGDI::instance();
24866 result = (wxStockGDI *) &_result_ref;
24867 }
24868 wxPyEndAllowThreads(__tstate);
24869 if (PyErr_Occurred()) SWIG_fail;
24870 }
24871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24872 return resultobj;
24873fail:
24874 return NULL;
1bd55598
RD
24875}
24876
24877
da91cb0f
RD
24878SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24879 PyObject *resultobj = 0;
24880 wxStockGDI::Item arg1 ;
24881 wxBrush *result = 0 ;
24882 int val1 ;
24883 int ecode1 = 0 ;
24884 PyObject * obj0 = 0 ;
24885 char * kwnames[] = {
24886 (char *) "item", NULL
24887 };
24888
24889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24890 ecode1 = SWIG_AsVal_int(obj0, &val1);
24891 if (!SWIG_IsOK(ecode1)) {
24892 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24893 }
24894 arg1 = static_cast< wxStockGDI::Item >(val1);
24895 {
24896 PyThreadState* __tstate = wxPyBeginAllowThreads();
24897 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24898 wxPyEndAllowThreads(__tstate);
24899 if (PyErr_Occurred()) SWIG_fail;
24900 }
24901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24902 return resultobj;
24903fail:
24904 return NULL;
1bd55598
RD
24905}
24906
24907
da91cb0f
RD
24908SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24909 PyObject *resultobj = 0;
24910 wxStockGDI::Item arg1 ;
24911 wxColour *result = 0 ;
24912 int val1 ;
24913 int ecode1 = 0 ;
24914 PyObject * obj0 = 0 ;
24915 char * kwnames[] = {
24916 (char *) "item", NULL
24917 };
1bd55598 24918
da91cb0f
RD
24919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24920 ecode1 = SWIG_AsVal_int(obj0, &val1);
24921 if (!SWIG_IsOK(ecode1)) {
24922 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24923 }
24924 arg1 = static_cast< wxStockGDI::Item >(val1);
24925 {
24926 PyThreadState* __tstate = wxPyBeginAllowThreads();
24927 result = (wxColour *)wxStockGDI::GetColour(arg1);
24928 wxPyEndAllowThreads(__tstate);
24929 if (PyErr_Occurred()) SWIG_fail;
24930 }
24931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24932 return resultobj;
24933fail:
24934 return NULL;
1bd55598
RD
24935}
24936
24937
da91cb0f
RD
24938SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24939 PyObject *resultobj = 0;
24940 wxStockGDI::Item arg1 ;
24941 wxCursor *result = 0 ;
24942 int val1 ;
24943 int ecode1 = 0 ;
24944 PyObject * obj0 = 0 ;
24945 char * kwnames[] = {
24946 (char *) "item", NULL
24947 };
24948
24949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24950 ecode1 = SWIG_AsVal_int(obj0, &val1);
24951 if (!SWIG_IsOK(ecode1)) {
24952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24953 }
24954 arg1 = static_cast< wxStockGDI::Item >(val1);
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24958 wxPyEndAllowThreads(__tstate);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24962 return resultobj;
24963fail:
24964 return NULL;
1bd55598
RD
24965}
24966
24967
da91cb0f
RD
24968SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24969 PyObject *resultobj = 0;
24970 wxStockGDI::Item arg1 ;
24971 wxPen *result = 0 ;
24972 int val1 ;
24973 int ecode1 = 0 ;
24974 PyObject * obj0 = 0 ;
24975 char * kwnames[] = {
24976 (char *) "item", NULL
24977 };
24978
24979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24980 ecode1 = SWIG_AsVal_int(obj0, &val1);
24981 if (!SWIG_IsOK(ecode1)) {
24982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24983 }
24984 arg1 = static_cast< wxStockGDI::Item >(val1);
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 result = (wxPen *)wxStockGDI::GetPen(arg1);
24988 wxPyEndAllowThreads(__tstate);
24989 if (PyErr_Occurred()) SWIG_fail;
24990 }
24991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24992 return resultobj;
24993fail:
24994 return NULL;
1bd55598
RD
24995}
24996
24997
da91cb0f
RD
24998SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24999 PyObject *resultobj = 0;
25000 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25001 wxStockGDI::Item arg2 ;
25002 wxFont *result = 0 ;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 int val2 ;
25006 int ecode2 = 0 ;
25007 PyObject * obj0 = 0 ;
25008 PyObject * obj1 = 0 ;
25009 char * kwnames[] = {
25010 (char *) "self",(char *) "item", NULL
25011 };
1bd55598 25012
da91cb0f
RD
25013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
25015 if (!SWIG_IsOK(res1)) {
25016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25017 }
25018 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25019 ecode2 = SWIG_AsVal_int(obj1, &val2);
25020 if (!SWIG_IsOK(ecode2)) {
25021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
25022 }
25023 arg2 = static_cast< wxStockGDI::Item >(val2);
25024 {
25025 PyThreadState* __tstate = wxPyBeginAllowThreads();
25026 result = (wxFont *)(arg1)->GetFont(arg2);
25027 wxPyEndAllowThreads(__tstate);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25031 return resultobj;
25032fail:
25033 return NULL;
1bd55598
RD
25034}
25035
25036
da91cb0f
RD
25037SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25038 PyObject *obj;
25039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25040 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
25041 return SWIG_Py_Void();
1bd55598
RD
25042}
25043
da91cb0f
RD
25044SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25045 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
25046}
25047
1bd55598
RD
25048SWIGINTERN int NullBitmap_set(PyObject *) {
25049 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
25050 return 1;
25051}
25052
25053
25054SWIGINTERN PyObject *NullBitmap_get(void) {
25055 PyObject *pyobj = 0;
25056
25057 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
25058 return pyobj;
25059}
25060
25061
25062SWIGINTERN int NullIcon_set(PyObject *) {
25063 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
25064 return 1;
25065}
25066
25067
25068SWIGINTERN PyObject *NullIcon_get(void) {
25069 PyObject *pyobj = 0;
25070
25071 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
25072 return pyobj;
25073}
25074
25075
25076SWIGINTERN int NullCursor_set(PyObject *) {
25077 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
25078 return 1;
25079}
25080
25081
25082SWIGINTERN PyObject *NullCursor_get(void) {
25083 PyObject *pyobj = 0;
25084
25085 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25086 return pyobj;
25087}
25088
25089
25090SWIGINTERN int NullPen_set(PyObject *) {
25091 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25092 return 1;
25093}
25094
25095
25096SWIGINTERN PyObject *NullPen_get(void) {
25097 PyObject *pyobj = 0;
25098
25099 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25100 return pyobj;
25101}
25102
25103
25104SWIGINTERN int NullBrush_set(PyObject *) {
25105 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25106 return 1;
25107}
25108
25109
25110SWIGINTERN PyObject *NullBrush_get(void) {
25111 PyObject *pyobj = 0;
25112
25113 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25114 return pyobj;
25115}
25116
25117
25118SWIGINTERN int NullPalette_set(PyObject *) {
25119 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25120 return 1;
25121}
25122
25123
25124SWIGINTERN PyObject *NullPalette_get(void) {
25125 PyObject *pyobj = 0;
25126
25127 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25128 return pyobj;
25129}
25130
25131
25132SWIGINTERN int NullFont_set(PyObject *) {
25133 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25134 return 1;
25135}
25136
25137
25138SWIGINTERN PyObject *NullFont_get(void) {
25139 PyObject *pyobj = 0;
25140
25141 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25142 return pyobj;
25143}
25144
25145
25146SWIGINTERN int NullColour_set(PyObject *) {
25147 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25148 return 1;
25149}
25150
25151
25152SWIGINTERN PyObject *NullColour_get(void) {
25153 PyObject *pyobj = 0;
25154
25155 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25156 return pyobj;
25157}
25158
25159
da91cb0f 25160SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25161 PyObject *resultobj = 0;
da91cb0f
RD
25162 wxGDIObjListBase *result = 0 ;
25163
25164 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25165 {
25166 PyThreadState* __tstate = wxPyBeginAllowThreads();
25167 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25168 wxPyEndAllowThreads(__tstate);
25169 if (PyErr_Occurred()) SWIG_fail;
25170 }
25171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25172 return resultobj;
25173fail:
25174 return NULL;
25175}
25176
25177
25178SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25179 PyObject *resultobj = 0;
25180 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
25181 void *argp1 = 0 ;
25182 int res1 = 0 ;
da91cb0f 25183 PyObject *swig_obj[1] ;
1bd55598 25184
da91cb0f
RD
25185 if (!args) SWIG_fail;
25186 swig_obj[0] = args;
25187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 25188 if (!SWIG_IsOK(res1)) {
da91cb0f 25189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 25190 }
da91cb0f 25191 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
25192 {
25193 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
25194 delete arg1;
25195
1bd55598
RD
25196 wxPyEndAllowThreads(__tstate);
25197 if (PyErr_Occurred()) SWIG_fail;
25198 }
25199 resultobj = SWIG_Py_Void();
25200 return resultobj;
25201fail:
25202 return NULL;
25203}
25204
25205
da91cb0f
RD
25206SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25207 PyObject *obj;
25208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25209 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25210 return SWIG_Py_Void();
25211}
25212
25213SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25214 return SWIG_Python_InitShadowInstance(args);
25215}
25216
1bd55598
RD
25217SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25218 PyObject *resultobj = 0;
25219 wxPenList *arg1 = (wxPenList *) 0 ;
25220 wxColour *arg2 = 0 ;
25221 int arg3 ;
25222 int arg4 ;
25223 wxPen *result = 0 ;
25224 void *argp1 = 0 ;
25225 int res1 = 0 ;
25226 wxColour temp2 ;
25227 int val3 ;
25228 int ecode3 = 0 ;
25229 int val4 ;
25230 int ecode4 = 0 ;
25231 PyObject * obj0 = 0 ;
25232 PyObject * obj1 = 0 ;
25233 PyObject * obj2 = 0 ;
25234 PyObject * obj3 = 0 ;
25235 char * kwnames[] = {
25236 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25237 };
25238
25239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25241 if (!SWIG_IsOK(res1)) {
25242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25243 }
25244 arg1 = reinterpret_cast< wxPenList * >(argp1);
25245 {
25246 arg2 = &temp2;
25247 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25248 }
25249 ecode3 = SWIG_AsVal_int(obj2, &val3);
25250 if (!SWIG_IsOK(ecode3)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25252 }
25253 arg3 = static_cast< int >(val3);
25254 ecode4 = SWIG_AsVal_int(obj3, &val4);
25255 if (!SWIG_IsOK(ecode4)) {
25256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25257 }
25258 arg4 = static_cast< int >(val4);
25259 {
25260 PyThreadState* __tstate = wxPyBeginAllowThreads();
25261 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25266 return resultobj;
25267fail:
25268 return NULL;
25269}
25270
25271
da91cb0f 25272SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
25273 PyObject *resultobj = 0;
25274 wxPenList *arg1 = (wxPenList *) 0 ;
25275 wxPen *arg2 = (wxPen *) 0 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 void *argp2 = 0 ;
25279 int res2 = 0 ;
25280 PyObject * obj0 = 0 ;
25281 PyObject * obj1 = 0 ;
25282 char * kwnames[] = {
25283 (char *) "self",(char *) "pen", NULL
25284 };
25285
da91cb0f 25286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
25287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
da91cb0f 25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
25290 }
25291 arg1 = reinterpret_cast< wxPenList * >(argp1);
25292 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25293 if (!SWIG_IsOK(res2)) {
da91cb0f 25294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
25295 }
25296 arg2 = reinterpret_cast< wxPen * >(argp2);
25297 {
25298 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25299 (arg1)->AddPen(arg2);
1bd55598
RD
25300 wxPyEndAllowThreads(__tstate);
25301 if (PyErr_Occurred()) SWIG_fail;
25302 }
25303 resultobj = SWIG_Py_Void();
25304 return resultobj;
25305fail:
25306 return NULL;
25307}
25308
25309
da91cb0f 25310SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
25311 PyObject *resultobj = 0;
25312 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 25313 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
25314 void *argp1 = 0 ;
25315 int res1 = 0 ;
da91cb0f
RD
25316 void *argp2 = 0 ;
25317 int res2 = 0 ;
25318 PyObject * obj0 = 0 ;
25319 PyObject * obj1 = 0 ;
25320 char * kwnames[] = {
25321 (char *) "self",(char *) "pen", NULL
25322 };
1bd55598 25323
da91cb0f
RD
25324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 25326 if (!SWIG_IsOK(res1)) {
da91cb0f 25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
25328 }
25329 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
25330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25331 if (!SWIG_IsOK(res2)) {
25332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25333 }
25334 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
25335 {
25336 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25337 (arg1)->RemovePen(arg2);
1bd55598
RD
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
da91cb0f 25341 resultobj = SWIG_Py_Void();
1bd55598
RD
25342 return resultobj;
25343fail:
25344 return NULL;
25345}
25346
25347
25348SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25349 PyObject *obj;
25350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25352 return SWIG_Py_Void();
25353}
25354
da91cb0f
RD
25355SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25356 PyObject *resultobj = 0;
25357 wxBrushList *arg1 = (wxBrushList *) 0 ;
25358 wxColour *arg2 = 0 ;
25359 int arg3 = (int) wxSOLID ;
25360 wxBrush *result = 0 ;
25361 void *argp1 = 0 ;
25362 int res1 = 0 ;
25363 wxColour temp2 ;
25364 int val3 ;
25365 int ecode3 = 0 ;
25366 PyObject * obj0 = 0 ;
25367 PyObject * obj1 = 0 ;
25368 PyObject * obj2 = 0 ;
25369 char * kwnames[] = {
25370 (char *) "self",(char *) "colour",(char *) "style", NULL
25371 };
25372
25373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25377 }
25378 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25379 {
25380 arg2 = &temp2;
25381 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25382 }
25383 if (obj2) {
25384 ecode3 = SWIG_AsVal_int(obj2, &val3);
25385 if (!SWIG_IsOK(ecode3)) {
25386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25387 }
25388 arg3 = static_cast< int >(val3);
25389 }
25390 {
25391 PyThreadState* __tstate = wxPyBeginAllowThreads();
25392 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25393 wxPyEndAllowThreads(__tstate);
25394 if (PyErr_Occurred()) SWIG_fail;
25395 }
25396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25397 return resultobj;
25398fail:
25399 return NULL;
25400}
25401
25402
1bd55598
RD
25403SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25404 PyObject *resultobj = 0;
25405 wxBrushList *arg1 = (wxBrushList *) 0 ;
25406 wxBrush *arg2 = (wxBrush *) 0 ;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 void *argp2 = 0 ;
25410 int res2 = 0 ;
25411 PyObject * obj0 = 0 ;
25412 PyObject * obj1 = 0 ;
25413 char * kwnames[] = {
25414 (char *) "self",(char *) "brush", NULL
25415 };
25416
25417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25419 if (!SWIG_IsOK(res1)) {
25420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25421 }
25422 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25423 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25424 if (!SWIG_IsOK(res2)) {
25425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25426 }
25427 arg2 = reinterpret_cast< wxBrush * >(argp2);
25428 {
25429 PyThreadState* __tstate = wxPyBeginAllowThreads();
25430 (arg1)->AddBrush(arg2);
25431 wxPyEndAllowThreads(__tstate);
25432 if (PyErr_Occurred()) SWIG_fail;
25433 }
25434 resultobj = SWIG_Py_Void();
25435 return resultobj;
25436fail:
25437 return NULL;
25438}
25439
25440
da91cb0f 25441SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
25442 PyObject *resultobj = 0;
25443 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 25444 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
25445 void *argp1 = 0 ;
25446 int res1 = 0 ;
da91cb0f
RD
25447 void *argp2 = 0 ;
25448 int res2 = 0 ;
25449 PyObject * obj0 = 0 ;
25450 PyObject * obj1 = 0 ;
25451 char * kwnames[] = {
25452 (char *) "self",(char *) "brush", NULL
25453 };
25454
25455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25457 if (!SWIG_IsOK(res1)) {
25458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25459 }
25460 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25461 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25462 if (!SWIG_IsOK(res2)) {
25463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25464 }
25465 arg2 = reinterpret_cast< wxBrush * >(argp2);
25466 {
25467 PyThreadState* __tstate = wxPyBeginAllowThreads();
25468 (arg1)->RemoveBrush(arg2);
25469 wxPyEndAllowThreads(__tstate);
25470 if (PyErr_Occurred()) SWIG_fail;
25471 }
25472 resultobj = SWIG_Py_Void();
25473 return resultobj;
25474fail:
25475 return NULL;
25476}
25477
25478
25479SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25480 PyObject *obj;
25481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25482 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25483 return SWIG_Py_Void();
25484}
25485
25486SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25487 PyObject *resultobj = 0;
25488 wxFontList *arg1 = (wxFontList *) 0 ;
25489 int arg2 ;
25490 int arg3 ;
25491 int arg4 ;
25492 int arg5 ;
25493 bool arg6 = (bool) false ;
25494 wxString const &arg7_defvalue = wxPyEmptyString ;
25495 wxString *arg7 = (wxString *) &arg7_defvalue ;
25496 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25497 wxFont *result = 0 ;
25498 void *argp1 = 0 ;
25499 int res1 = 0 ;
25500 int val2 ;
25501 int ecode2 = 0 ;
1bd55598
RD
25502 int val3 ;
25503 int ecode3 = 0 ;
da91cb0f
RD
25504 int val4 ;
25505 int ecode4 = 0 ;
25506 int val5 ;
25507 int ecode5 = 0 ;
25508 bool val6 ;
25509 int ecode6 = 0 ;
25510 bool temp7 = false ;
25511 int val8 ;
25512 int ecode8 = 0 ;
1bd55598
RD
25513 PyObject * obj0 = 0 ;
25514 PyObject * obj1 = 0 ;
25515 PyObject * obj2 = 0 ;
da91cb0f
RD
25516 PyObject * obj3 = 0 ;
25517 PyObject * obj4 = 0 ;
25518 PyObject * obj5 = 0 ;
25519 PyObject * obj6 = 0 ;
25520 PyObject * obj7 = 0 ;
1bd55598 25521 char * kwnames[] = {
da91cb0f 25522 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
25523 };
25524
da91cb0f
RD
25525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 25527 if (!SWIG_IsOK(res1)) {
da91cb0f 25528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 25529 }
da91cb0f
RD
25530 arg1 = reinterpret_cast< wxFontList * >(argp1);
25531 ecode2 = SWIG_AsVal_int(obj1, &val2);
25532 if (!SWIG_IsOK(ecode2)) {
25533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25534 }
25535 arg2 = static_cast< int >(val2);
25536 ecode3 = SWIG_AsVal_int(obj2, &val3);
25537 if (!SWIG_IsOK(ecode3)) {
25538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25539 }
25540 arg3 = static_cast< int >(val3);
25541 ecode4 = SWIG_AsVal_int(obj3, &val4);
25542 if (!SWIG_IsOK(ecode4)) {
25543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25544 }
25545 arg4 = static_cast< int >(val4);
25546 ecode5 = SWIG_AsVal_int(obj4, &val5);
25547 if (!SWIG_IsOK(ecode5)) {
25548 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25549 }
25550 arg5 = static_cast< int >(val5);
25551 if (obj5) {
25552 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25553 if (!SWIG_IsOK(ecode6)) {
25554 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25555 }
25556 arg6 = static_cast< bool >(val6);
1bd55598 25557 }
da91cb0f
RD
25558 if (obj6) {
25559 {
25560 arg7 = wxString_in_helper(obj6);
25561 if (arg7 == NULL) SWIG_fail;
25562 temp7 = true;
25563 }
25564 }
25565 if (obj7) {
25566 ecode8 = SWIG_AsVal_int(obj7, &val8);
25567 if (!SWIG_IsOK(ecode8)) {
25568 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 25569 }
da91cb0f 25570 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
25571 }
25572 {
25573 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25574 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
25575 wxPyEndAllowThreads(__tstate);
25576 if (PyErr_Occurred()) SWIG_fail;
25577 }
da91cb0f
RD
25578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25579 {
25580 if (temp7)
25581 delete arg7;
25582 }
1bd55598
RD
25583 return resultobj;
25584fail:
da91cb0f
RD
25585 {
25586 if (temp7)
25587 delete arg7;
25588 }
1bd55598
RD
25589 return NULL;
25590}
25591
25592
da91cb0f 25593SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25594 PyObject *resultobj = 0;
da91cb0f
RD
25595 wxFontList *arg1 = (wxFontList *) 0 ;
25596 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
25597 void *argp1 = 0 ;
25598 int res1 = 0 ;
25599 void *argp2 = 0 ;
25600 int res2 = 0 ;
25601 PyObject * obj0 = 0 ;
25602 PyObject * obj1 = 0 ;
25603 char * kwnames[] = {
da91cb0f 25604 (char *) "self",(char *) "font", NULL
1bd55598
RD
25605 };
25606
da91cb0f
RD
25607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 25609 if (!SWIG_IsOK(res1)) {
da91cb0f 25610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 25611 }
da91cb0f
RD
25612 arg1 = reinterpret_cast< wxFontList * >(argp1);
25613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 25614 if (!SWIG_IsOK(res2)) {
da91cb0f 25615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 25616 }
da91cb0f 25617 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
25618 {
25619 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25620 (arg1)->AddFont(arg2);
1bd55598
RD
25621 wxPyEndAllowThreads(__tstate);
25622 if (PyErr_Occurred()) SWIG_fail;
25623 }
25624 resultobj = SWIG_Py_Void();
25625 return resultobj;
25626fail:
25627 return NULL;
25628}
25629
25630
da91cb0f 25631SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25632 PyObject *resultobj = 0;
da91cb0f
RD
25633 wxFontList *arg1 = (wxFontList *) 0 ;
25634 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
25635 void *argp1 = 0 ;
25636 int res1 = 0 ;
da91cb0f
RD
25637 void *argp2 = 0 ;
25638 int res2 = 0 ;
25639 PyObject * obj0 = 0 ;
25640 PyObject * obj1 = 0 ;
25641 char * kwnames[] = {
25642 (char *) "self",(char *) "font", NULL
25643 };
1bd55598 25644
da91cb0f
RD
25645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 25647 if (!SWIG_IsOK(res1)) {
da91cb0f 25648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 25649 }
da91cb0f
RD
25650 arg1 = reinterpret_cast< wxFontList * >(argp1);
25651 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25652 if (!SWIG_IsOK(res2)) {
25653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25654 }
25655 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
25656 {
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25658 (arg1)->RemoveFont(arg2);
1bd55598
RD
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
da91cb0f 25662 resultobj = SWIG_Py_Void();
1bd55598
RD
25663 return resultobj;
25664fail:
25665 return NULL;
25666}
25667
25668
da91cb0f 25669SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25670 PyObject *obj;
25671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 25672 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
25673 return SWIG_Py_Void();
25674}
25675
25676SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25677 PyObject *resultobj = 0;
25678 wxColourDatabase *result = 0 ;
25679
25680 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25681 {
25682 if (!wxPyCheckForApp()) SWIG_fail;
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 result = (wxColourDatabase *)new wxColourDatabase();
25685 wxPyEndAllowThreads(__tstate);
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
25688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25689 return resultobj;
25690fail:
25691 return NULL;
25692}
25693
25694
25695SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25696 PyObject *resultobj = 0;
25697 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25698 void *argp1 = 0 ;
25699 int res1 = 0 ;
25700 PyObject *swig_obj[1] ;
25701
25702 if (!args) SWIG_fail;
25703 swig_obj[0] = args;
25704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25705 if (!SWIG_IsOK(res1)) {
25706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25707 }
25708 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25709 {
25710 PyThreadState* __tstate = wxPyBeginAllowThreads();
25711 delete arg1;
25712
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 resultobj = SWIG_Py_Void();
25717 return resultobj;
25718fail:
25719 return NULL;
25720}
25721
25722
25723SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25724 PyObject *resultobj = 0;
25725 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25726 wxString *arg2 = 0 ;
25727 wxColour result;
25728 void *argp1 = 0 ;
25729 int res1 = 0 ;
25730 bool temp2 = false ;
25731 PyObject * obj0 = 0 ;
25732 PyObject * obj1 = 0 ;
25733 char * kwnames[] = {
25734 (char *) "self",(char *) "name", NULL
25735 };
25736
25737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25739 if (!SWIG_IsOK(res1)) {
25740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25741 }
25742 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25743 {
25744 arg2 = wxString_in_helper(obj1);
25745 if (arg2 == NULL) SWIG_fail;
25746 temp2 = true;
25747 }
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25755 {
25756 if (temp2)
25757 delete arg2;
25758 }
25759 return resultobj;
25760fail:
25761 {
25762 if (temp2)
25763 delete arg2;
25764 }
25765 return NULL;
25766}
25767
25768
25769SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25770 PyObject *resultobj = 0;
25771 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25772 wxColour *arg2 = 0 ;
25773 wxString result;
25774 void *argp1 = 0 ;
25775 int res1 = 0 ;
25776 wxColour temp2 ;
25777 PyObject * obj0 = 0 ;
25778 PyObject * obj1 = 0 ;
25779 char * kwnames[] = {
25780 (char *) "self",(char *) "colour", NULL
25781 };
25782
25783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25785 if (!SWIG_IsOK(res1)) {
25786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25787 }
25788 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25789 {
25790 arg2 = &temp2;
25791 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25792 }
25793 {
25794 PyThreadState* __tstate = wxPyBeginAllowThreads();
25795 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25796 wxPyEndAllowThreads(__tstate);
25797 if (PyErr_Occurred()) SWIG_fail;
25798 }
25799 {
25800#if wxUSE_UNICODE
25801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25802#else
25803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25804#endif
25805 }
25806 return resultobj;
25807fail:
25808 return NULL;
25809}
25810
25811
25812SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25813 PyObject *resultobj = 0;
25814 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25815 wxString *arg2 = 0 ;
25816 wxColour *arg3 = 0 ;
25817 void *argp1 = 0 ;
25818 int res1 = 0 ;
25819 bool temp2 = false ;
25820 wxColour temp3 ;
25821 PyObject * obj0 = 0 ;
25822 PyObject * obj1 = 0 ;
25823 PyObject * obj2 = 0 ;
25824 char * kwnames[] = {
25825 (char *) "self",(char *) "name",(char *) "colour", NULL
25826 };
25827
25828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25830 if (!SWIG_IsOK(res1)) {
25831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25832 }
25833 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25834 {
25835 arg2 = wxString_in_helper(obj1);
25836 if (arg2 == NULL) SWIG_fail;
25837 temp2 = true;
25838 }
25839 {
25840 arg3 = &temp3;
25841 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25842 }
25843 {
25844 PyThreadState* __tstate = wxPyBeginAllowThreads();
25845 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25846 wxPyEndAllowThreads(__tstate);
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_Py_Void();
25850 {
25851 if (temp2)
25852 delete arg2;
25853 }
25854 return resultobj;
25855fail:
25856 {
25857 if (temp2)
25858 delete arg2;
25859 }
25860 return NULL;
25861}
25862
25863
25864SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25865 PyObject *resultobj = 0;
25866 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25867 wxString *arg2 = 0 ;
25868 int arg3 ;
25869 int arg4 ;
25870 int arg5 ;
25871 void *argp1 = 0 ;
25872 int res1 = 0 ;
25873 bool temp2 = false ;
25874 int val3 ;
25875 int ecode3 = 0 ;
25876 int val4 ;
25877 int ecode4 = 0 ;
da91cb0f
RD
25878 int val5 ;
25879 int ecode5 = 0 ;
1bd55598
RD
25880 PyObject * obj0 = 0 ;
25881 PyObject * obj1 = 0 ;
25882 PyObject * obj2 = 0 ;
25883 PyObject * obj3 = 0 ;
25884 PyObject * obj4 = 0 ;
1bd55598 25885 char * kwnames[] = {
da91cb0f 25886 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
25887 };
25888
da91cb0f
RD
25889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 25891 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
25892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25893 }
25894 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25895 {
25896 arg2 = wxString_in_helper(obj1);
25897 if (arg2 == NULL) SWIG_fail;
25898 temp2 = true;
1bd55598 25899 }
1bd55598
RD
25900 ecode3 = SWIG_AsVal_int(obj2, &val3);
25901 if (!SWIG_IsOK(ecode3)) {
da91cb0f 25902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
25903 }
25904 arg3 = static_cast< int >(val3);
25905 ecode4 = SWIG_AsVal_int(obj3, &val4);
25906 if (!SWIG_IsOK(ecode4)) {
da91cb0f 25907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
25908 }
25909 arg4 = static_cast< int >(val4);
25910 ecode5 = SWIG_AsVal_int(obj4, &val5);
25911 if (!SWIG_IsOK(ecode5)) {
da91cb0f 25912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
25913 }
25914 arg5 = static_cast< int >(val5);
1bd55598
RD
25915 {
25916 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25917 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
25918 wxPyEndAllowThreads(__tstate);
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
da91cb0f 25921 resultobj = SWIG_Py_Void();
1bd55598 25922 {
da91cb0f
RD
25923 if (temp2)
25924 delete arg2;
1bd55598
RD
25925 }
25926 return resultobj;
25927fail:
25928 {
da91cb0f
RD
25929 if (temp2)
25930 delete arg2;
1bd55598
RD
25931 }
25932 return NULL;
25933}
25934
25935
da91cb0f
RD
25936SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25937 PyObject *obj;
25938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25939 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25940 return SWIG_Py_Void();
25941}
25942
25943SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25944 return SWIG_Python_InitShadowInstance(args);
25945}
25946
25947SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25948 PyObject *resultobj = 0;
da91cb0f 25949 wxFontList *result = 0 ;
1bd55598 25950
da91cb0f 25951 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25954 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
da91cb0f 25958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
25959 return resultobj;
25960fail:
25961 return NULL;
25962}
25963
25964
da91cb0f 25965SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25966 PyObject *resultobj = 0;
da91cb0f 25967 wxPenList *result = 0 ;
1bd55598 25968
da91cb0f 25969 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 25972 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
25973 wxPyEndAllowThreads(__tstate);
25974 if (PyErr_Occurred()) SWIG_fail;
25975 }
da91cb0f 25976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
25977 return resultobj;
25978fail:
25979 return NULL;
25980}
25981
25982
da91cb0f
RD
25983SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25984 PyObject *resultobj = 0;
25985 wxBrushList *result = 0 ;
1bd55598 25986
da91cb0f
RD
25987 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25988 {
25989 PyThreadState* __tstate = wxPyBeginAllowThreads();
25990 result = (wxBrushList *)_wxPyInitTheBrushList();
25991 wxPyEndAllowThreads(__tstate);
25992 if (PyErr_Occurred()) SWIG_fail;
25993 }
25994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25995 return resultobj;
25996fail:
25997 return NULL;
1bd55598
RD
25998}
25999
26000
da91cb0f
RD
26001SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26002 PyObject *resultobj = 0;
26003 wxColourDatabase *result = 0 ;
1bd55598 26004
da91cb0f
RD
26005 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
26006 {
26007 PyThreadState* __tstate = wxPyBeginAllowThreads();
26008 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
26009 wxPyEndAllowThreads(__tstate);
26010 if (PyErr_Occurred()) SWIG_fail;
26011 }
26012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26013 return resultobj;
26014fail:
26015 return NULL;
1bd55598
RD
26016}
26017
26018
26019SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26020 PyObject *resultobj = 0;
26021 wxEffects *result = 0 ;
26022
26023 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
26024 {
26025 PyThreadState* __tstate = wxPyBeginAllowThreads();
26026 result = (wxEffects *)new wxEffects();
26027 wxPyEndAllowThreads(__tstate);
26028 if (PyErr_Occurred()) SWIG_fail;
26029 }
26030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
26031 return resultobj;
26032fail:
26033 return NULL;
26034}
26035
26036
26037SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26038 PyObject *resultobj = 0;
26039 wxEffects *arg1 = (wxEffects *) 0 ;
26040 wxColour result;
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
26043 PyObject *swig_obj[1] ;
26044
26045 if (!args) SWIG_fail;
26046 swig_obj[0] = args;
26047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26048 if (!SWIG_IsOK(res1)) {
26049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26050 }
26051 arg1 = reinterpret_cast< wxEffects * >(argp1);
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 result = ((wxEffects const *)arg1)->GetHighlightColour();
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26059 return resultobj;
26060fail:
26061 return NULL;
26062}
26063
26064
26065SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26066 PyObject *resultobj = 0;
26067 wxEffects *arg1 = (wxEffects *) 0 ;
26068 wxColour result;
26069 void *argp1 = 0 ;
26070 int res1 = 0 ;
26071 PyObject *swig_obj[1] ;
26072
26073 if (!args) SWIG_fail;
26074 swig_obj[0] = args;
26075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26076 if (!SWIG_IsOK(res1)) {
26077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26078 }
26079 arg1 = reinterpret_cast< wxEffects * >(argp1);
26080 {
26081 PyThreadState* __tstate = wxPyBeginAllowThreads();
26082 result = ((wxEffects const *)arg1)->GetLightShadow();
26083 wxPyEndAllowThreads(__tstate);
26084 if (PyErr_Occurred()) SWIG_fail;
26085 }
26086 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26087 return resultobj;
26088fail:
26089 return NULL;
26090}
26091
26092
26093SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26094 PyObject *resultobj = 0;
26095 wxEffects *arg1 = (wxEffects *) 0 ;
26096 wxColour result;
26097 void *argp1 = 0 ;
26098 int res1 = 0 ;
26099 PyObject *swig_obj[1] ;
26100
26101 if (!args) SWIG_fail;
26102 swig_obj[0] = args;
26103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26104 if (!SWIG_IsOK(res1)) {
26105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26106 }
26107 arg1 = reinterpret_cast< wxEffects * >(argp1);
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 result = ((wxEffects const *)arg1)->GetFaceColour();
26111 wxPyEndAllowThreads(__tstate);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26115 return resultobj;
26116fail:
26117 return NULL;
26118}
26119
26120
26121SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26122 PyObject *resultobj = 0;
26123 wxEffects *arg1 = (wxEffects *) 0 ;
26124 wxColour result;
26125 void *argp1 = 0 ;
26126 int res1 = 0 ;
26127 PyObject *swig_obj[1] ;
26128
26129 if (!args) SWIG_fail;
26130 swig_obj[0] = args;
26131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26134 }
26135 arg1 = reinterpret_cast< wxEffects * >(argp1);
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 result = ((wxEffects const *)arg1)->GetMediumShadow();
26139 wxPyEndAllowThreads(__tstate);
26140 if (PyErr_Occurred()) SWIG_fail;
26141 }
26142 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26143 return resultobj;
26144fail:
26145 return NULL;
26146}
26147
26148
26149SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26150 PyObject *resultobj = 0;
26151 wxEffects *arg1 = (wxEffects *) 0 ;
26152 wxColour result;
26153 void *argp1 = 0 ;
26154 int res1 = 0 ;
26155 PyObject *swig_obj[1] ;
26156
26157 if (!args) SWIG_fail;
26158 swig_obj[0] = args;
26159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26160 if (!SWIG_IsOK(res1)) {
26161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26162 }
26163 arg1 = reinterpret_cast< wxEffects * >(argp1);
26164 {
26165 PyThreadState* __tstate = wxPyBeginAllowThreads();
26166 result = ((wxEffects const *)arg1)->GetDarkShadow();
26167 wxPyEndAllowThreads(__tstate);
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26171 return resultobj;
26172fail:
26173 return NULL;
26174}
26175
26176
26177SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26178 PyObject *resultobj = 0;
26179 wxEffects *arg1 = (wxEffects *) 0 ;
26180 wxColour *arg2 = 0 ;
26181 void *argp1 = 0 ;
26182 int res1 = 0 ;
26183 wxColour temp2 ;
26184 PyObject * obj0 = 0 ;
26185 PyObject * obj1 = 0 ;
26186 char * kwnames[] = {
26187 (char *) "self",(char *) "c", NULL
26188 };
26189
26190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26192 if (!SWIG_IsOK(res1)) {
26193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26194 }
26195 arg1 = reinterpret_cast< wxEffects * >(argp1);
26196 {
26197 arg2 = &temp2;
26198 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26199 }
26200 {
26201 PyThreadState* __tstate = wxPyBeginAllowThreads();
26202 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26203 wxPyEndAllowThreads(__tstate);
26204 if (PyErr_Occurred()) SWIG_fail;
26205 }
26206 resultobj = SWIG_Py_Void();
26207 return resultobj;
26208fail:
26209 return NULL;
26210}
26211
26212
26213SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26214 PyObject *resultobj = 0;
26215 wxEffects *arg1 = (wxEffects *) 0 ;
26216 wxColour *arg2 = 0 ;
26217 void *argp1 = 0 ;
26218 int res1 = 0 ;
26219 wxColour temp2 ;
26220 PyObject * obj0 = 0 ;
26221 PyObject * obj1 = 0 ;
26222 char * kwnames[] = {
26223 (char *) "self",(char *) "c", NULL
26224 };
26225
26226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26228 if (!SWIG_IsOK(res1)) {
26229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26230 }
26231 arg1 = reinterpret_cast< wxEffects * >(argp1);
26232 {
26233 arg2 = &temp2;
26234 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26235 }
26236 {
26237 PyThreadState* __tstate = wxPyBeginAllowThreads();
26238 (arg1)->SetLightShadow((wxColour const &)*arg2);
26239 wxPyEndAllowThreads(__tstate);
26240 if (PyErr_Occurred()) SWIG_fail;
26241 }
26242 resultobj = SWIG_Py_Void();
26243 return resultobj;
26244fail:
26245 return NULL;
26246}
26247
26248
26249SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26250 PyObject *resultobj = 0;
26251 wxEffects *arg1 = (wxEffects *) 0 ;
26252 wxColour *arg2 = 0 ;
26253 void *argp1 = 0 ;
26254 int res1 = 0 ;
26255 wxColour temp2 ;
26256 PyObject * obj0 = 0 ;
26257 PyObject * obj1 = 0 ;
26258 char * kwnames[] = {
26259 (char *) "self",(char *) "c", NULL
26260 };
26261
26262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26264 if (!SWIG_IsOK(res1)) {
26265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26266 }
26267 arg1 = reinterpret_cast< wxEffects * >(argp1);
26268 {
26269 arg2 = &temp2;
26270 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26271 }
26272 {
26273 PyThreadState* __tstate = wxPyBeginAllowThreads();
26274 (arg1)->SetFaceColour((wxColour const &)*arg2);
26275 wxPyEndAllowThreads(__tstate);
26276 if (PyErr_Occurred()) SWIG_fail;
26277 }
26278 resultobj = SWIG_Py_Void();
26279 return resultobj;
26280fail:
26281 return NULL;
26282}
26283
26284
26285SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26286 PyObject *resultobj = 0;
26287 wxEffects *arg1 = (wxEffects *) 0 ;
26288 wxColour *arg2 = 0 ;
26289 void *argp1 = 0 ;
26290 int res1 = 0 ;
26291 wxColour temp2 ;
26292 PyObject * obj0 = 0 ;
26293 PyObject * obj1 = 0 ;
26294 char * kwnames[] = {
26295 (char *) "self",(char *) "c", NULL
26296 };
26297
26298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26300 if (!SWIG_IsOK(res1)) {
26301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26302 }
26303 arg1 = reinterpret_cast< wxEffects * >(argp1);
26304 {
26305 arg2 = &temp2;
26306 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26307 }
26308 {
26309 PyThreadState* __tstate = wxPyBeginAllowThreads();
26310 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26311 wxPyEndAllowThreads(__tstate);
26312 if (PyErr_Occurred()) SWIG_fail;
26313 }
26314 resultobj = SWIG_Py_Void();
26315 return resultobj;
26316fail:
26317 return NULL;
26318}
26319
26320
26321SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26322 PyObject *resultobj = 0;
26323 wxEffects *arg1 = (wxEffects *) 0 ;
26324 wxColour *arg2 = 0 ;
26325 void *argp1 = 0 ;
26326 int res1 = 0 ;
26327 wxColour temp2 ;
26328 PyObject * obj0 = 0 ;
26329 PyObject * obj1 = 0 ;
26330 char * kwnames[] = {
26331 (char *) "self",(char *) "c", NULL
26332 };
26333
26334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26336 if (!SWIG_IsOK(res1)) {
26337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26338 }
26339 arg1 = reinterpret_cast< wxEffects * >(argp1);
26340 {
26341 arg2 = &temp2;
26342 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26343 }
26344 {
26345 PyThreadState* __tstate = wxPyBeginAllowThreads();
26346 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26347 wxPyEndAllowThreads(__tstate);
26348 if (PyErr_Occurred()) SWIG_fail;
26349 }
26350 resultobj = SWIG_Py_Void();
26351 return resultobj;
26352fail:
26353 return NULL;
26354}
26355
26356
26357SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26358 PyObject *resultobj = 0;
26359 wxEffects *arg1 = (wxEffects *) 0 ;
26360 wxColour *arg2 = 0 ;
26361 wxColour *arg3 = 0 ;
26362 wxColour *arg4 = 0 ;
26363 wxColour *arg5 = 0 ;
26364 wxColour *arg6 = 0 ;
26365 void *argp1 = 0 ;
26366 int res1 = 0 ;
26367 wxColour temp2 ;
26368 wxColour temp3 ;
26369 wxColour temp4 ;
26370 wxColour temp5 ;
26371 wxColour temp6 ;
26372 PyObject * obj0 = 0 ;
26373 PyObject * obj1 = 0 ;
26374 PyObject * obj2 = 0 ;
26375 PyObject * obj3 = 0 ;
26376 PyObject * obj4 = 0 ;
26377 PyObject * obj5 = 0 ;
26378 char * kwnames[] = {
26379 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26380 };
26381
26382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26384 if (!SWIG_IsOK(res1)) {
26385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26386 }
26387 arg1 = reinterpret_cast< wxEffects * >(argp1);
26388 {
26389 arg2 = &temp2;
26390 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26391 }
26392 {
26393 arg3 = &temp3;
26394 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26395 }
26396 {
26397 arg4 = &temp4;
26398 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26399 }
26400 {
26401 arg5 = &temp5;
26402 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26403 }
26404 {
26405 arg6 = &temp6;
26406 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26407 }
26408 {
26409 PyThreadState* __tstate = wxPyBeginAllowThreads();
26410 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26411 wxPyEndAllowThreads(__tstate);
26412 if (PyErr_Occurred()) SWIG_fail;
26413 }
26414 resultobj = SWIG_Py_Void();
26415 return resultobj;
26416fail:
26417 return NULL;
26418}
26419
26420
26421SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26422 PyObject *resultobj = 0;
26423 wxEffects *arg1 = (wxEffects *) 0 ;
26424 wxDC *arg2 = 0 ;
26425 wxRect *arg3 = 0 ;
26426 int arg4 = (int) 1 ;
26427 void *argp1 = 0 ;
26428 int res1 = 0 ;
26429 void *argp2 = 0 ;
26430 int res2 = 0 ;
26431 wxRect temp3 ;
26432 int val4 ;
26433 int ecode4 = 0 ;
26434 PyObject * obj0 = 0 ;
26435 PyObject * obj1 = 0 ;
26436 PyObject * obj2 = 0 ;
26437 PyObject * obj3 = 0 ;
26438 char * kwnames[] = {
26439 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26440 };
26441
26442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26444 if (!SWIG_IsOK(res1)) {
26445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26446 }
26447 arg1 = reinterpret_cast< wxEffects * >(argp1);
26448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26449 if (!SWIG_IsOK(res2)) {
26450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26451 }
26452 if (!argp2) {
26453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26454 }
26455 arg2 = reinterpret_cast< wxDC * >(argp2);
26456 {
26457 arg3 = &temp3;
26458 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26459 }
26460 if (obj3) {
26461 ecode4 = SWIG_AsVal_int(obj3, &val4);
26462 if (!SWIG_IsOK(ecode4)) {
26463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26464 }
26465 arg4 = static_cast< int >(val4);
26466 }
26467 {
26468 PyThreadState* __tstate = wxPyBeginAllowThreads();
26469 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26470 wxPyEndAllowThreads(__tstate);
26471 if (PyErr_Occurred()) SWIG_fail;
26472 }
26473 resultobj = SWIG_Py_Void();
26474 return resultobj;
26475fail:
26476 return NULL;
26477}
26478
26479
26480SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26481 PyObject *resultobj = 0;
26482 wxEffects *arg1 = (wxEffects *) 0 ;
26483 wxRect *arg2 = 0 ;
26484 wxDC *arg3 = 0 ;
26485 wxBitmap *arg4 = 0 ;
26486 bool result;
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 wxRect temp2 ;
26490 void *argp3 = 0 ;
26491 int res3 = 0 ;
26492 void *argp4 = 0 ;
26493 int res4 = 0 ;
26494 PyObject * obj0 = 0 ;
26495 PyObject * obj1 = 0 ;
26496 PyObject * obj2 = 0 ;
26497 PyObject * obj3 = 0 ;
26498 char * kwnames[] = {
26499 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26500 };
26501
26502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26504 if (!SWIG_IsOK(res1)) {
26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26506 }
26507 arg1 = reinterpret_cast< wxEffects * >(argp1);
26508 {
26509 arg2 = &temp2;
26510 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26511 }
26512 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26513 if (!SWIG_IsOK(res3)) {
26514 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26515 }
26516 if (!argp3) {
26517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26518 }
26519 arg3 = reinterpret_cast< wxDC * >(argp3);
26520 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26521 if (!SWIG_IsOK(res4)) {
26522 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26523 }
26524 if (!argp4) {
26525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26526 }
26527 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26528 {
26529 PyThreadState* __tstate = wxPyBeginAllowThreads();
26530 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 {
26535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26536 }
26537 return resultobj;
26538fail:
26539 return NULL;
26540}
26541
26542
26543SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26544 PyObject *obj;
26545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26546 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26547 return SWIG_Py_Void();
26548}
26549
26550SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26551 return SWIG_Python_InitShadowInstance(args);
26552}
26553
26554SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26555 PyObject *resultobj = 0;
26556 int arg1 ;
26557 int arg2 ;
26558 bool arg3 ;
26559 wxSplitterRenderParams *result = 0 ;
26560 int val1 ;
26561 int ecode1 = 0 ;
26562 int val2 ;
26563 int ecode2 = 0 ;
26564 bool val3 ;
26565 int ecode3 = 0 ;
26566 PyObject * obj0 = 0 ;
26567 PyObject * obj1 = 0 ;
26568 PyObject * obj2 = 0 ;
26569 char * kwnames[] = {
26570 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26571 };
26572
26573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26574 ecode1 = SWIG_AsVal_int(obj0, &val1);
26575 if (!SWIG_IsOK(ecode1)) {
26576 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26577 }
26578 arg1 = static_cast< int >(val1);
26579 ecode2 = SWIG_AsVal_int(obj1, &val2);
26580 if (!SWIG_IsOK(ecode2)) {
26581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26582 }
26583 arg2 = static_cast< int >(val2);
26584 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26585 if (!SWIG_IsOK(ecode3)) {
26586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26587 }
26588 arg3 = static_cast< bool >(val3);
26589 {
26590 PyThreadState* __tstate = wxPyBeginAllowThreads();
26591 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26596 return resultobj;
26597fail:
26598 return NULL;
26599}
26600
26601
26602SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26603 PyObject *resultobj = 0;
26604 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 PyObject *swig_obj[1] ;
26608
26609 if (!args) SWIG_fail;
26610 swig_obj[0] = args;
26611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26612 if (!SWIG_IsOK(res1)) {
26613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26614 }
26615 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 delete arg1;
26619
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 resultobj = SWIG_Py_Void();
26624 return resultobj;
26625fail:
26626 return NULL;
26627}
26628
26629
26630SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26631 PyObject *resultobj = 0;
26632 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26633 int result;
26634 void *argp1 = 0 ;
26635 int res1 = 0 ;
26636 PyObject *swig_obj[1] ;
26637
26638 if (!args) SWIG_fail;
26639 swig_obj[0] = args;
26640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26641 if (!SWIG_IsOK(res1)) {
26642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26643 }
26644 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26645 result = (int)(int) ((arg1)->widthSash);
26646 resultobj = SWIG_From_int(static_cast< int >(result));
26647 return resultobj;
26648fail:
26649 return NULL;
26650}
26651
26652
26653SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26654 PyObject *resultobj = 0;
26655 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26656 int result;
26657 void *argp1 = 0 ;
26658 int res1 = 0 ;
26659 PyObject *swig_obj[1] ;
26660
26661 if (!args) SWIG_fail;
26662 swig_obj[0] = args;
26663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26664 if (!SWIG_IsOK(res1)) {
26665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26666 }
26667 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26668 result = (int)(int) ((arg1)->border);
26669 resultobj = SWIG_From_int(static_cast< int >(result));
26670 return resultobj;
26671fail:
26672 return NULL;
26673}
26674
26675
26676SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26677 PyObject *resultobj = 0;
26678 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26679 bool result;
26680 void *argp1 = 0 ;
26681 int res1 = 0 ;
26682 PyObject *swig_obj[1] ;
26683
26684 if (!args) SWIG_fail;
26685 swig_obj[0] = args;
26686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26689 }
26690 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26691 result = (bool)(bool) ((arg1)->isHotSensitive);
26692 resultobj = SWIG_From_bool(static_cast< bool >(result));
26693 return resultobj;
26694fail:
26695 return NULL;
26696}
26697
26698
26699SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26700 PyObject *obj;
26701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26702 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26703 return SWIG_Py_Void();
26704}
26705
26706SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26707 return SWIG_Python_InitShadowInstance(args);
26708}
26709
33d6fd3b
RD
26710SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26711 PyObject *resultobj = 0;
26712 wxHeaderButtonParams *result = 0 ;
26713
26714 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
26718 wxPyEndAllowThreads(__tstate);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
26722 return resultobj;
26723fail:
26724 return NULL;
26725}
26726
26727
26728SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26729 PyObject *resultobj = 0;
26730 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26731 void *argp1 = 0 ;
26732 int res1 = 0 ;
26733 PyObject *swig_obj[1] ;
26734
26735 if (!args) SWIG_fail;
26736 swig_obj[0] = args;
26737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
26738 if (!SWIG_IsOK(res1)) {
26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26740 }
26741 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26742 {
26743 PyThreadState* __tstate = wxPyBeginAllowThreads();
26744 delete arg1;
26745
26746 wxPyEndAllowThreads(__tstate);
26747 if (PyErr_Occurred()) SWIG_fail;
26748 }
26749 resultobj = SWIG_Py_Void();
26750 return resultobj;
26751fail:
26752 return NULL;
26753}
26754
26755
26756SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26757 PyObject *resultobj = 0;
26758 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26759 wxColour *arg2 = (wxColour *) 0 ;
26760 void *argp1 = 0 ;
26761 int res1 = 0 ;
26762 wxColour temp2 ;
26763 PyObject *swig_obj[2] ;
26764
26765 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
26766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26769 }
26770 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26771 {
26772 arg2 = &temp2;
26773 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26774 }
26775 if (arg1) (arg1)->m_arrowColour = *arg2;
26776
26777 resultobj = SWIG_Py_Void();
26778 return resultobj;
26779fail:
26780 return NULL;
26781}
26782
26783
26784SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26785 PyObject *resultobj = 0;
26786 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26787 wxColour *result = 0 ;
26788 void *argp1 = 0 ;
26789 int res1 = 0 ;
26790 PyObject *swig_obj[1] ;
26791
26792 if (!args) SWIG_fail;
26793 swig_obj[0] = args;
26794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26795 if (!SWIG_IsOK(res1)) {
26796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26797 }
26798 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26799 result = (wxColour *)& ((arg1)->m_arrowColour);
26800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26801 return resultobj;
26802fail:
26803 return NULL;
26804}
26805
26806
26807SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26808 PyObject *resultobj = 0;
26809 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26810 wxColour *arg2 = (wxColour *) 0 ;
26811 void *argp1 = 0 ;
26812 int res1 = 0 ;
26813 wxColour temp2 ;
26814 PyObject *swig_obj[2] ;
26815
26816 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
26817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26818 if (!SWIG_IsOK(res1)) {
26819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26820 }
26821 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26822 {
26823 arg2 = &temp2;
26824 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26825 }
26826 if (arg1) (arg1)->m_selectionColour = *arg2;
26827
26828 resultobj = SWIG_Py_Void();
26829 return resultobj;
26830fail:
26831 return NULL;
26832}
26833
26834
26835SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26836 PyObject *resultobj = 0;
26837 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26838 wxColour *result = 0 ;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 PyObject *swig_obj[1] ;
26842
26843 if (!args) SWIG_fail;
26844 swig_obj[0] = args;
26845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26846 if (!SWIG_IsOK(res1)) {
26847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26848 }
26849 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26850 result = (wxColour *)& ((arg1)->m_selectionColour);
26851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
26852 return resultobj;
26853fail:
26854 return NULL;
26855}
26856
26857
26858SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26859 PyObject *resultobj = 0;
26860 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26861 wxString *arg2 = (wxString *) 0 ;
26862 void *argp1 = 0 ;
26863 int res1 = 0 ;
26864 bool temp2 = false ;
26865 PyObject *swig_obj[2] ;
26866
26867 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
26868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26869 if (!SWIG_IsOK(res1)) {
26870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26871 }
26872 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26873 {
26874 arg2 = wxString_in_helper(swig_obj[1]);
26875 if (arg2 == NULL) SWIG_fail;
26876 temp2 = true;
26877 }
26878 if (arg1) (arg1)->m_labelText = *arg2;
26879
26880 resultobj = SWIG_Py_Void();
26881 {
26882 if (temp2)
26883 delete arg2;
26884 }
26885 return resultobj;
26886fail:
26887 {
26888 if (temp2)
26889 delete arg2;
26890 }
26891 return NULL;
26892}
26893
26894
26895SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26896 PyObject *resultobj = 0;
26897 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26898 wxString *result = 0 ;
26899 void *argp1 = 0 ;
26900 int res1 = 0 ;
26901 PyObject *swig_obj[1] ;
26902
26903 if (!args) SWIG_fail;
26904 swig_obj[0] = args;
26905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26906 if (!SWIG_IsOK(res1)) {
26907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26908 }
26909 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26910 result = (wxString *)& ((arg1)->m_labelText);
26911 {
26912#if wxUSE_UNICODE
26913 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26914#else
26915 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26916#endif
26917 }
26918 return resultobj;
26919fail:
26920 return NULL;
26921}
26922
26923
26924SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26925 PyObject *resultobj = 0;
26926 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26927 wxFont *arg2 = (wxFont *) 0 ;
26928 void *argp1 = 0 ;
26929 int res1 = 0 ;
26930 void *argp2 = 0 ;
26931 int res2 = 0 ;
26932 PyObject *swig_obj[2] ;
26933
26934 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
26935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26936 if (!SWIG_IsOK(res1)) {
26937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26938 }
26939 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26940 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26941 if (!SWIG_IsOK(res2)) {
26942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
26943 }
26944 arg2 = reinterpret_cast< wxFont * >(argp2);
26945 if (arg1) (arg1)->m_labelFont = *arg2;
26946
26947 resultobj = SWIG_Py_Void();
26948 return resultobj;
26949fail:
26950 return NULL;
26951}
26952
26953
26954SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26955 PyObject *resultobj = 0;
26956 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26957 wxFont *result = 0 ;
26958 void *argp1 = 0 ;
26959 int res1 = 0 ;
26960 PyObject *swig_obj[1] ;
26961
26962 if (!args) SWIG_fail;
26963 swig_obj[0] = args;
26964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26965 if (!SWIG_IsOK(res1)) {
26966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26967 }
26968 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26969 result = (wxFont *)& ((arg1)->m_labelFont);
26970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26971 return resultobj;
26972fail:
26973 return NULL;
26974}
26975
26976
26977SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26978 PyObject *resultobj = 0;
26979 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
26980 wxColour *arg2 = (wxColour *) 0 ;
26981 void *argp1 = 0 ;
26982 int res1 = 0 ;
26983 wxColour temp2 ;
26984 PyObject *swig_obj[2] ;
26985
26986 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
26987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
26988 if (!SWIG_IsOK(res1)) {
26989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
26990 }
26991 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
26992 {
26993 arg2 = &temp2;
26994 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
26995 }
26996 if (arg1) (arg1)->m_labelColour = *arg2;
26997
26998 resultobj = SWIG_Py_Void();
26999 return resultobj;
27000fail:
27001 return NULL;
27002}
27003
27004
27005SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27006 PyObject *resultobj = 0;
27007 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27008 wxColour *result = 0 ;
27009 void *argp1 = 0 ;
27010 int res1 = 0 ;
27011 PyObject *swig_obj[1] ;
27012
27013 if (!args) SWIG_fail;
27014 swig_obj[0] = args;
27015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27016 if (!SWIG_IsOK(res1)) {
27017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27018 }
27019 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27020 result = (wxColour *)& ((arg1)->m_labelColour);
27021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27022 return resultobj;
27023fail:
27024 return NULL;
27025}
27026
27027
27028SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27029 PyObject *resultobj = 0;
27030 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27031 wxBitmap *arg2 = (wxBitmap *) 0 ;
27032 void *argp1 = 0 ;
27033 int res1 = 0 ;
27034 void *argp2 = 0 ;
27035 int res2 = 0 ;
27036 PyObject *swig_obj[2] ;
27037
27038 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
27039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27040 if (!SWIG_IsOK(res1)) {
27041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27042 }
27043 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27044 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
27045 if (!SWIG_IsOK(res2)) {
27046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
27047 }
27048 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27049 if (arg1) (arg1)->m_labelBitmap = *arg2;
27050
27051 resultobj = SWIG_Py_Void();
27052 return resultobj;
27053fail:
27054 return NULL;
27055}
27056
27057
27058SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27059 PyObject *resultobj = 0;
27060 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27061 wxBitmap *result = 0 ;
27062 void *argp1 = 0 ;
27063 int res1 = 0 ;
27064 PyObject *swig_obj[1] ;
27065
27066 if (!args) SWIG_fail;
27067 swig_obj[0] = args;
27068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27069 if (!SWIG_IsOK(res1)) {
27070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27071 }
27072 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27073 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
27074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
27075 return resultobj;
27076fail:
27077 return NULL;
27078}
27079
27080
27081SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27082 PyObject *resultobj = 0;
27083 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27084 int arg2 ;
27085 void *argp1 = 0 ;
27086 int res1 = 0 ;
27087 int val2 ;
27088 int ecode2 = 0 ;
27089 PyObject *swig_obj[2] ;
27090
27091 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
27092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27093 if (!SWIG_IsOK(res1)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27095 }
27096 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27097 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27098 if (!SWIG_IsOK(ecode2)) {
27099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
27100 }
27101 arg2 = static_cast< int >(val2);
27102 if (arg1) (arg1)->m_labelAlignment = arg2;
27103
27104 resultobj = SWIG_Py_Void();
27105 return resultobj;
27106fail:
27107 return NULL;
27108}
27109
27110
27111SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27112 PyObject *resultobj = 0;
27113 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27114 int result;
27115 void *argp1 = 0 ;
27116 int res1 = 0 ;
27117 PyObject *swig_obj[1] ;
27118
27119 if (!args) SWIG_fail;
27120 swig_obj[0] = args;
27121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27122 if (!SWIG_IsOK(res1)) {
27123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27124 }
27125 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27126 result = (int) ((arg1)->m_labelAlignment);
27127 resultobj = SWIG_From_int(static_cast< int >(result));
27128 return resultobj;
27129fail:
27130 return NULL;
27131}
27132
27133
27134SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27135 PyObject *obj;
27136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27137 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
27138 return SWIG_Py_Void();
27139}
27140
27141SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27142 return SWIG_Python_InitShadowInstance(args);
27143}
27144
1bd55598
RD
27145SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27146 PyObject *resultobj = 0;
27147 int arg1 ;
27148 int arg2 ;
27149 wxRendererVersion *result = 0 ;
27150 int val1 ;
27151 int ecode1 = 0 ;
27152 int val2 ;
27153 int ecode2 = 0 ;
27154 PyObject * obj0 = 0 ;
27155 PyObject * obj1 = 0 ;
27156 char * kwnames[] = {
27157 (char *) "version_",(char *) "age_", NULL
27158 };
27159
27160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
27161 ecode1 = SWIG_AsVal_int(obj0, &val1);
27162 if (!SWIG_IsOK(ecode1)) {
27163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
27164 }
27165 arg1 = static_cast< int >(val1);
27166 ecode2 = SWIG_AsVal_int(obj1, &val2);
27167 if (!SWIG_IsOK(ecode2)) {
27168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
27169 }
27170 arg2 = static_cast< int >(val2);
27171 {
27172 PyThreadState* __tstate = wxPyBeginAllowThreads();
27173 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
27174 wxPyEndAllowThreads(__tstate);
27175 if (PyErr_Occurred()) SWIG_fail;
27176 }
27177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
27178 return resultobj;
27179fail:
27180 return NULL;
27181}
27182
27183
27184SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27185 PyObject *resultobj = 0;
27186 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27187 void *argp1 = 0 ;
27188 int res1 = 0 ;
27189 PyObject *swig_obj[1] ;
27190
27191 if (!args) SWIG_fail;
27192 swig_obj[0] = args;
27193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
27194 if (!SWIG_IsOK(res1)) {
27195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27196 }
27197 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27198 {
27199 PyThreadState* __tstate = wxPyBeginAllowThreads();
27200 delete arg1;
27201
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 resultobj = SWIG_Py_Void();
27206 return resultobj;
27207fail:
27208 return NULL;
27209}
27210
27211
27212SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27213 PyObject *resultobj = 0;
27214 wxRendererVersion *arg1 = 0 ;
27215 bool result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject * obj0 = 0 ;
27219 char * kwnames[] = {
27220 (char *) "ver", NULL
27221 };
27222
27223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27224 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27227 }
27228 if (!argp1) {
27229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27230 }
27231 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27232 {
27233 PyThreadState* __tstate = wxPyBeginAllowThreads();
27234 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27235 wxPyEndAllowThreads(__tstate);
27236 if (PyErr_Occurred()) SWIG_fail;
27237 }
27238 {
27239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27240 }
27241 return resultobj;
27242fail:
27243 return NULL;
27244}
27245
27246
27247SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27248 PyObject *resultobj = 0;
27249 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27250 int result;
27251 void *argp1 = 0 ;
27252 int res1 = 0 ;
27253 PyObject *swig_obj[1] ;
27254
27255 if (!args) SWIG_fail;
27256 swig_obj[0] = args;
27257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27258 if (!SWIG_IsOK(res1)) {
27259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27260 }
27261 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27262 result = (int)(int) ((arg1)->version);
27263 resultobj = SWIG_From_int(static_cast< int >(result));
27264 return resultobj;
27265fail:
27266 return NULL;
27267}
27268
27269
27270SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27271 PyObject *resultobj = 0;
27272 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27273 int result;
27274 void *argp1 = 0 ;
27275 int res1 = 0 ;
27276 PyObject *swig_obj[1] ;
27277
27278 if (!args) SWIG_fail;
27279 swig_obj[0] = args;
27280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27281 if (!SWIG_IsOK(res1)) {
27282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27283 }
27284 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27285 result = (int)(int) ((arg1)->age);
27286 resultobj = SWIG_From_int(static_cast< int >(result));
27287 return resultobj;
27288fail:
27289 return NULL;
27290}
27291
27292
27293SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27294 PyObject *obj;
27295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27296 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
27297 return SWIG_Py_Void();
27298}
27299
27300SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27301 return SWIG_Python_InitShadowInstance(args);
27302}
27303
27304SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27305 PyObject *resultobj = 0;
27306 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27307 wxWindow *arg2 = (wxWindow *) 0 ;
27308 wxDC *arg3 = 0 ;
27309 wxRect *arg4 = 0 ;
27310 int arg5 = (int) 0 ;
33d6fd3b
RD
27311 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
27312 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
27313 void *argp1 = 0 ;
27314 int res1 = 0 ;
27315 void *argp2 = 0 ;
27316 int res2 = 0 ;
27317 void *argp3 = 0 ;
27318 int res3 = 0 ;
27319 wxRect temp4 ;
27320 int val5 ;
27321 int ecode5 = 0 ;
33d6fd3b
RD
27322 int val6 ;
27323 int ecode6 = 0 ;
27324 void *argp7 = 0 ;
27325 int res7 = 0 ;
1bd55598
RD
27326 PyObject * obj0 = 0 ;
27327 PyObject * obj1 = 0 ;
27328 PyObject * obj2 = 0 ;
27329 PyObject * obj3 = 0 ;
27330 PyObject * obj4 = 0 ;
33d6fd3b
RD
27331 PyObject * obj5 = 0 ;
27332 PyObject * obj6 = 0 ;
1bd55598 27333 char * kwnames[] = {
33d6fd3b 27334 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
27335 };
27336
33d6fd3b 27337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
27338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27339 if (!SWIG_IsOK(res1)) {
27340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27341 }
27342 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27344 if (!SWIG_IsOK(res2)) {
27345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27346 }
27347 arg2 = reinterpret_cast< wxWindow * >(argp2);
27348 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27349 if (!SWIG_IsOK(res3)) {
27350 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27351 }
27352 if (!argp3) {
27353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
27354 }
27355 arg3 = reinterpret_cast< wxDC * >(argp3);
27356 {
27357 arg4 = &temp4;
27358 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27359 }
27360 if (obj4) {
27361 ecode5 = SWIG_AsVal_int(obj4, &val5);
27362 if (!SWIG_IsOK(ecode5)) {
27363 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
27364 }
27365 arg5 = static_cast< int >(val5);
27366 }
33d6fd3b
RD
27367 if (obj5) {
27368 ecode6 = SWIG_AsVal_int(obj5, &val6);
27369 if (!SWIG_IsOK(ecode6)) {
27370 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
27371 }
27372 arg6 = static_cast< wxHeaderSortIconType >(val6);
27373 }
27374 if (obj6) {
27375 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27376 if (!SWIG_IsOK(res7)) {
27377 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
27378 }
27379 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
27380 }
27381 {
27382 PyThreadState* __tstate = wxPyBeginAllowThreads();
27383 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
27384 wxPyEndAllowThreads(__tstate);
27385 if (PyErr_Occurred()) SWIG_fail;
27386 }
27387 resultobj = SWIG_Py_Void();
27388 return resultobj;
27389fail:
27390 return NULL;
27391}
27392
27393
27394SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27395 PyObject *resultobj = 0;
27396 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27397 wxWindow *arg2 = (wxWindow *) 0 ;
27398 wxDC *arg3 = 0 ;
27399 wxRect *arg4 = 0 ;
27400 int arg5 = (int) 0 ;
27401 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
27402 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
27403 void *argp1 = 0 ;
27404 int res1 = 0 ;
27405 void *argp2 = 0 ;
27406 int res2 = 0 ;
27407 void *argp3 = 0 ;
27408 int res3 = 0 ;
27409 wxRect temp4 ;
27410 int val5 ;
27411 int ecode5 = 0 ;
27412 int val6 ;
27413 int ecode6 = 0 ;
27414 void *argp7 = 0 ;
27415 int res7 = 0 ;
27416 PyObject * obj0 = 0 ;
27417 PyObject * obj1 = 0 ;
27418 PyObject * obj2 = 0 ;
27419 PyObject * obj3 = 0 ;
27420 PyObject * obj4 = 0 ;
27421 PyObject * obj5 = 0 ;
27422 PyObject * obj6 = 0 ;
27423 char * kwnames[] = {
27424 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
27425 };
27426
27427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27429 if (!SWIG_IsOK(res1)) {
27430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27431 }
27432 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27433 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27434 if (!SWIG_IsOK(res2)) {
27435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
27436 }
27437 arg2 = reinterpret_cast< wxWindow * >(argp2);
27438 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27439 if (!SWIG_IsOK(res3)) {
27440 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
27441 }
27442 if (!argp3) {
27443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
27444 }
27445 arg3 = reinterpret_cast< wxDC * >(argp3);
27446 {
27447 arg4 = &temp4;
27448 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27449 }
27450 if (obj4) {
27451 ecode5 = SWIG_AsVal_int(obj4, &val5);
27452 if (!SWIG_IsOK(ecode5)) {
27453 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
27454 }
27455 arg5 = static_cast< int >(val5);
27456 }
27457 if (obj5) {
27458 ecode6 = SWIG_AsVal_int(obj5, &val6);
27459 if (!SWIG_IsOK(ecode6)) {
27460 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
27461 }
27462 arg6 = static_cast< wxHeaderSortIconType >(val6);
27463 }
27464 if (obj6) {
27465 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27466 if (!SWIG_IsOK(res7)) {
27467 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
27468 }
27469 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
27470 }
1bd55598
RD
27471 {
27472 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 27473 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
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
33d6fd3b
RD
27484SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27485 PyObject *resultobj = 0;
27486 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27487 wxWindow *arg2 = (wxWindow *) 0 ;
27488 int result;
27489 void *argp1 = 0 ;
27490 int res1 = 0 ;
27491 void *argp2 = 0 ;
27492 int res2 = 0 ;
27493 PyObject * obj0 = 0 ;
27494 PyObject * obj1 = 0 ;
27495 char * kwnames[] = {
27496 (char *) "self",(char *) "win", NULL
27497 };
27498
27499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
27500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27501 if (!SWIG_IsOK(res1)) {
27502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27503 }
27504 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27505 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27506 if (!SWIG_IsOK(res2)) {
27507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
27508 }
27509 arg2 = reinterpret_cast< wxWindow * >(argp2);
27510 {
27511 PyThreadState* __tstate = wxPyBeginAllowThreads();
27512 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
27513 wxPyEndAllowThreads(__tstate);
27514 if (PyErr_Occurred()) SWIG_fail;
27515 }
27516 resultobj = SWIG_From_int(static_cast< int >(result));
27517 return resultobj;
27518fail:
27519 return NULL;
27520}
27521
27522
1bd55598
RD
27523SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27524 PyObject *resultobj = 0;
27525 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27526 wxWindow *arg2 = (wxWindow *) 0 ;
27527 wxDC *arg3 = 0 ;
27528 wxRect *arg4 = 0 ;
27529 int arg5 = (int) 0 ;
27530 void *argp1 = 0 ;
27531 int res1 = 0 ;
27532 void *argp2 = 0 ;
27533 int res2 = 0 ;
27534 void *argp3 = 0 ;
27535 int res3 = 0 ;
27536 wxRect temp4 ;
27537 int val5 ;
27538 int ecode5 = 0 ;
27539 PyObject * obj0 = 0 ;
27540 PyObject * obj1 = 0 ;
27541 PyObject * obj2 = 0 ;
27542 PyObject * obj3 = 0 ;
27543 PyObject * obj4 = 0 ;
27544 char * kwnames[] = {
27545 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27546 };
27547
27548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27550 if (!SWIG_IsOK(res1)) {
27551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27552 }
27553 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27554 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27555 if (!SWIG_IsOK(res2)) {
27556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27557 }
27558 arg2 = reinterpret_cast< wxWindow * >(argp2);
27559 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27560 if (!SWIG_IsOK(res3)) {
27561 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27562 }
27563 if (!argp3) {
27564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
27565 }
27566 arg3 = reinterpret_cast< wxDC * >(argp3);
27567 {
27568 arg4 = &temp4;
27569 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27570 }
27571 if (obj4) {
27572 ecode5 = SWIG_AsVal_int(obj4, &val5);
27573 if (!SWIG_IsOK(ecode5)) {
27574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
27575 }
27576 arg5 = static_cast< int >(val5);
27577 }
27578 {
27579 PyThreadState* __tstate = wxPyBeginAllowThreads();
27580 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27581 wxPyEndAllowThreads(__tstate);
27582 if (PyErr_Occurred()) SWIG_fail;
27583 }
27584 resultobj = SWIG_Py_Void();
27585 return resultobj;
27586fail:
27587 return NULL;
27588}
27589
27590
27591SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27592 PyObject *resultobj = 0;
27593 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27594 wxWindow *arg2 = (wxWindow *) 0 ;
27595 wxDC *arg3 = 0 ;
27596 wxRect *arg4 = 0 ;
27597 int arg5 = (int) 0 ;
27598 void *argp1 = 0 ;
27599 int res1 = 0 ;
27600 void *argp2 = 0 ;
27601 int res2 = 0 ;
27602 void *argp3 = 0 ;
27603 int res3 = 0 ;
27604 wxRect temp4 ;
27605 int val5 ;
27606 int ecode5 = 0 ;
27607 PyObject * obj0 = 0 ;
27608 PyObject * obj1 = 0 ;
27609 PyObject * obj2 = 0 ;
27610 PyObject * obj3 = 0 ;
27611 PyObject * obj4 = 0 ;
27612 char * kwnames[] = {
27613 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27614 };
27615
27616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27618 if (!SWIG_IsOK(res1)) {
27619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27620 }
27621 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27623 if (!SWIG_IsOK(res2)) {
27624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
27625 }
27626 arg2 = reinterpret_cast< wxWindow * >(argp2);
27627 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27628 if (!SWIG_IsOK(res3)) {
27629 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27630 }
27631 if (!argp3) {
27632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
27633 }
27634 arg3 = reinterpret_cast< wxDC * >(argp3);
27635 {
27636 arg4 = &temp4;
27637 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27638 }
27639 if (obj4) {
27640 ecode5 = SWIG_AsVal_int(obj4, &val5);
27641 if (!SWIG_IsOK(ecode5)) {
27642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
27643 }
27644 arg5 = static_cast< int >(val5);
27645 }
27646 {
27647 PyThreadState* __tstate = wxPyBeginAllowThreads();
27648 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
27649 wxPyEndAllowThreads(__tstate);
27650 if (PyErr_Occurred()) SWIG_fail;
27651 }
27652 resultobj = SWIG_Py_Void();
27653 return resultobj;
27654fail:
27655 return NULL;
27656}
27657
27658
27659SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27660 PyObject *resultobj = 0;
27661 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27662 wxWindow *arg2 = (wxWindow *) 0 ;
27663 wxDC *arg3 = 0 ;
27664 wxSize *arg4 = 0 ;
27665 int arg5 ;
27666 wxOrientation arg6 ;
27667 int arg7 = (int) 0 ;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 void *argp2 = 0 ;
27671 int res2 = 0 ;
27672 void *argp3 = 0 ;
27673 int res3 = 0 ;
27674 wxSize temp4 ;
27675 int val5 ;
27676 int ecode5 = 0 ;
27677 int val6 ;
27678 int ecode6 = 0 ;
27679 int val7 ;
27680 int ecode7 = 0 ;
27681 PyObject * obj0 = 0 ;
27682 PyObject * obj1 = 0 ;
27683 PyObject * obj2 = 0 ;
27684 PyObject * obj3 = 0 ;
27685 PyObject * obj4 = 0 ;
27686 PyObject * obj5 = 0 ;
27687 PyObject * obj6 = 0 ;
27688 char * kwnames[] = {
27689 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
27690 };
27691
27692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27694 if (!SWIG_IsOK(res1)) {
27695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27696 }
27697 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27698 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27699 if (!SWIG_IsOK(res2)) {
27700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
27701 }
27702 arg2 = reinterpret_cast< wxWindow * >(argp2);
27703 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27704 if (!SWIG_IsOK(res3)) {
27705 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27706 }
27707 if (!argp3) {
27708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
27709 }
27710 arg3 = reinterpret_cast< wxDC * >(argp3);
27711 {
27712 arg4 = &temp4;
27713 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27714 }
27715 ecode5 = SWIG_AsVal_int(obj4, &val5);
27716 if (!SWIG_IsOK(ecode5)) {
27717 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
27718 }
27719 arg5 = static_cast< int >(val5);
27720 ecode6 = SWIG_AsVal_int(obj5, &val6);
27721 if (!SWIG_IsOK(ecode6)) {
27722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
27723 }
27724 arg6 = static_cast< wxOrientation >(val6);
27725 if (obj6) {
27726 ecode7 = SWIG_AsVal_int(obj6, &val7);
27727 if (!SWIG_IsOK(ecode7)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
27729 }
27730 arg7 = static_cast< int >(val7);
27731 }
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
27735 wxPyEndAllowThreads(__tstate);
27736 if (PyErr_Occurred()) SWIG_fail;
27737 }
27738 resultobj = SWIG_Py_Void();
27739 return resultobj;
27740fail:
27741 return NULL;
27742}
27743
27744
27745SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27746 PyObject *resultobj = 0;
27747 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27748 wxWindow *arg2 = (wxWindow *) 0 ;
27749 wxDC *arg3 = 0 ;
27750 wxRect *arg4 = 0 ;
27751 int arg5 = (int) 0 ;
27752 void *argp1 = 0 ;
27753 int res1 = 0 ;
27754 void *argp2 = 0 ;
27755 int res2 = 0 ;
27756 void *argp3 = 0 ;
27757 int res3 = 0 ;
27758 wxRect temp4 ;
27759 int val5 ;
27760 int ecode5 = 0 ;
27761 PyObject * obj0 = 0 ;
27762 PyObject * obj1 = 0 ;
27763 PyObject * obj2 = 0 ;
27764 PyObject * obj3 = 0 ;
27765 PyObject * obj4 = 0 ;
27766 char * kwnames[] = {
27767 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27768 };
27769
27770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27772 if (!SWIG_IsOK(res1)) {
27773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27774 }
27775 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27777 if (!SWIG_IsOK(res2)) {
27778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27779 }
27780 arg2 = reinterpret_cast< wxWindow * >(argp2);
27781 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27782 if (!SWIG_IsOK(res3)) {
27783 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27784 }
27785 if (!argp3) {
27786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
27787 }
27788 arg3 = reinterpret_cast< wxDC * >(argp3);
27789 {
27790 arg4 = &temp4;
27791 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27792 }
27793 if (obj4) {
27794 ecode5 = SWIG_AsVal_int(obj4, &val5);
27795 if (!SWIG_IsOK(ecode5)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
27797 }
27798 arg5 = static_cast< int >(val5);
27799 }
27800 {
27801 PyThreadState* __tstate = wxPyBeginAllowThreads();
27802 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27803 wxPyEndAllowThreads(__tstate);
27804 if (PyErr_Occurred()) SWIG_fail;
27805 }
27806 resultobj = SWIG_Py_Void();
27807 return resultobj;
27808fail:
27809 return NULL;
27810}
27811
27812
27813SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27814 PyObject *resultobj = 0;
27815 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27816 wxWindow *arg2 = (wxWindow *) 0 ;
27817 wxDC *arg3 = 0 ;
27818 wxRect *arg4 = 0 ;
27819 int arg5 = (int) 0 ;
27820 void *argp1 = 0 ;
27821 int res1 = 0 ;
27822 void *argp2 = 0 ;
27823 int res2 = 0 ;
27824 void *argp3 = 0 ;
27825 int res3 = 0 ;
27826 wxRect temp4 ;
27827 int val5 ;
27828 int ecode5 = 0 ;
27829 PyObject * obj0 = 0 ;
27830 PyObject * obj1 = 0 ;
27831 PyObject * obj2 = 0 ;
27832 PyObject * obj3 = 0 ;
27833 PyObject * obj4 = 0 ;
27834 char * kwnames[] = {
27835 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27836 };
27837
27838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27840 if (!SWIG_IsOK(res1)) {
27841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27842 }
27843 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27844 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27845 if (!SWIG_IsOK(res2)) {
27846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
27847 }
27848 arg2 = reinterpret_cast< wxWindow * >(argp2);
27849 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27850 if (!SWIG_IsOK(res3)) {
27851 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27852 }
27853 if (!argp3) {
27854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
27855 }
27856 arg3 = reinterpret_cast< wxDC * >(argp3);
27857 {
27858 arg4 = &temp4;
27859 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27860 }
27861 if (obj4) {
27862 ecode5 = SWIG_AsVal_int(obj4, &val5);
27863 if (!SWIG_IsOK(ecode5)) {
27864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
27865 }
27866 arg5 = static_cast< int >(val5);
27867 }
27868 {
27869 PyThreadState* __tstate = wxPyBeginAllowThreads();
27870 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
27871 wxPyEndAllowThreads(__tstate);
27872 if (PyErr_Occurred()) SWIG_fail;
27873 }
27874 resultobj = SWIG_Py_Void();
27875 return resultobj;
27876fail:
27877 return NULL;
27878}
27879
27880
2131d850 27881SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
27882 PyObject *resultobj = 0;
27883 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27884 wxWindow *arg2 = (wxWindow *) 0 ;
27885 wxDC *arg3 = 0 ;
27886 wxRect *arg4 = 0 ;
27887 int arg5 = (int) 0 ;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 void *argp2 = 0 ;
27891 int res2 = 0 ;
27892 void *argp3 = 0 ;
27893 int res3 = 0 ;
27894 wxRect temp4 ;
27895 int val5 ;
27896 int ecode5 = 0 ;
27897 PyObject * obj0 = 0 ;
27898 PyObject * obj1 = 0 ;
27899 PyObject * obj2 = 0 ;
27900 PyObject * obj3 = 0 ;
27901 PyObject * obj4 = 0 ;
27902 char * kwnames[] = {
27903 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27904 };
27905
2131d850 27906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
27907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27908 if (!SWIG_IsOK(res1)) {
2131d850 27909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
27910 }
27911 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27913 if (!SWIG_IsOK(res2)) {
2131d850 27914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
27915 }
27916 arg2 = reinterpret_cast< wxWindow * >(argp2);
27917 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27918 if (!SWIG_IsOK(res3)) {
2131d850 27919 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
27920 }
27921 if (!argp3) {
2131d850 27922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
27923 }
27924 arg3 = reinterpret_cast< wxDC * >(argp3);
27925 {
27926 arg4 = &temp4;
27927 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27928 }
27929 if (obj4) {
27930 ecode5 = SWIG_AsVal_int(obj4, &val5);
27931 if (!SWIG_IsOK(ecode5)) {
2131d850 27932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
27933 }
27934 arg5 = static_cast< int >(val5);
27935 }
27936 {
27937 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
27938 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27939 wxPyEndAllowThreads(__tstate);
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
27942 resultobj = SWIG_Py_Void();
27943 return resultobj;
27944fail:
27945 return NULL;
27946}
27947
27948
27949SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27950 PyObject *resultobj = 0;
27951 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27952 wxWindow *arg2 = (wxWindow *) 0 ;
27953 wxDC *arg3 = 0 ;
27954 wxRect *arg4 = 0 ;
27955 int arg5 = (int) 0 ;
27956 void *argp1 = 0 ;
27957 int res1 = 0 ;
27958 void *argp2 = 0 ;
27959 int res2 = 0 ;
27960 void *argp3 = 0 ;
27961 int res3 = 0 ;
27962 wxRect temp4 ;
27963 int val5 ;
27964 int ecode5 = 0 ;
27965 PyObject * obj0 = 0 ;
27966 PyObject * obj1 = 0 ;
27967 PyObject * obj2 = 0 ;
27968 PyObject * obj3 = 0 ;
27969 PyObject * obj4 = 0 ;
27970 char * kwnames[] = {
27971 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27972 };
27973
27974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27978 }
27979 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27980 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27981 if (!SWIG_IsOK(res2)) {
27982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27983 }
27984 arg2 = reinterpret_cast< wxWindow * >(argp2);
27985 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27986 if (!SWIG_IsOK(res3)) {
27987 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27988 }
27989 if (!argp3) {
27990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27991 }
27992 arg3 = reinterpret_cast< wxDC * >(argp3);
27993 {
27994 arg4 = &temp4;
27995 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27996 }
27997 if (obj4) {
27998 ecode5 = SWIG_AsVal_int(obj4, &val5);
27999 if (!SWIG_IsOK(ecode5)) {
28000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
28001 }
28002 arg5 = static_cast< int >(val5);
28003 }
28004 {
28005 PyThreadState* __tstate = wxPyBeginAllowThreads();
28006 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28007 wxPyEndAllowThreads(__tstate);
28008 if (PyErr_Occurred()) SWIG_fail;
28009 }
28010 resultobj = SWIG_Py_Void();
28011 return resultobj;
28012fail:
28013 return NULL;
28014}
28015
28016
28017SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28018 PyObject *resultobj = 0;
28019 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28020 wxWindow *arg2 = (wxWindow *) 0 ;
28021 wxDC *arg3 = 0 ;
28022 wxRect *arg4 = 0 ;
28023 int arg5 = (int) 0 ;
28024 void *argp1 = 0 ;
28025 int res1 = 0 ;
28026 void *argp2 = 0 ;
28027 int res2 = 0 ;
28028 void *argp3 = 0 ;
28029 int res3 = 0 ;
28030 wxRect temp4 ;
28031 int val5 ;
28032 int ecode5 = 0 ;
28033 PyObject * obj0 = 0 ;
28034 PyObject * obj1 = 0 ;
28035 PyObject * obj2 = 0 ;
28036 PyObject * obj3 = 0 ;
28037 PyObject * obj4 = 0 ;
28038 char * kwnames[] = {
28039 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28040 };
28041
28042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28044 if (!SWIG_IsOK(res1)) {
28045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28046 }
28047 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28048 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28049 if (!SWIG_IsOK(res2)) {
28050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
28051 }
28052 arg2 = reinterpret_cast< wxWindow * >(argp2);
28053 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28054 if (!SWIG_IsOK(res3)) {
28055 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28056 }
28057 if (!argp3) {
28058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
28059 }
28060 arg3 = reinterpret_cast< wxDC * >(argp3);
28061 {
28062 arg4 = &temp4;
28063 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28064 }
28065 if (obj4) {
28066 ecode5 = SWIG_AsVal_int(obj4, &val5);
28067 if (!SWIG_IsOK(ecode5)) {
28068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
28069 }
28070 arg5 = static_cast< int >(val5);
28071 }
28072 {
28073 PyThreadState* __tstate = wxPyBeginAllowThreads();
28074 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
28075 wxPyEndAllowThreads(__tstate);
28076 if (PyErr_Occurred()) SWIG_fail;
28077 }
28078 resultobj = SWIG_Py_Void();
28079 return resultobj;
28080fail:
28081 return NULL;
28082}
28083
28084
1bd55598
RD
28085SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28086 PyObject *resultobj = 0;
28087 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28088 wxWindow *arg2 = (wxWindow *) 0 ;
28089 SwigValueWrapper<wxSplitterRenderParams > result;
28090 void *argp1 = 0 ;
28091 int res1 = 0 ;
28092 void *argp2 = 0 ;
28093 int res2 = 0 ;
28094 PyObject * obj0 = 0 ;
28095 PyObject * obj1 = 0 ;
28096 char * kwnames[] = {
28097 (char *) "self",(char *) "win", NULL
28098 };
28099
28100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
28101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28102 if (!SWIG_IsOK(res1)) {
28103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28104 }
28105 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28106 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28107 if (!SWIG_IsOK(res2)) {
28108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
28109 }
28110 arg2 = reinterpret_cast< wxWindow * >(argp2);
28111 {
28112 PyThreadState* __tstate = wxPyBeginAllowThreads();
28113 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
28114 wxPyEndAllowThreads(__tstate);
28115 if (PyErr_Occurred()) SWIG_fail;
28116 }
28117 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
28118 return resultobj;
28119fail:
28120 return NULL;
28121}
28122
28123
28124SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28125 PyObject *resultobj = 0;
28126 wxRendererNative *result = 0 ;
28127
28128 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
28129 {
704eda0c 28130 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 28131 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28132 {
1bd55598
RD
28133 wxRendererNative &_result_ref = wxRendererNative::Get();
28134 result = (wxRendererNative *) &_result_ref;
36ed4f51 28135 }
1bd55598
RD
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28140 return resultobj;
28141fail:
28142 return NULL;
28143}
28144
28145
28146SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28147 PyObject *resultobj = 0;
28148 wxRendererNative *result = 0 ;
28149
28150 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
28151 {
704eda0c 28152 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 28153 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 28154 {
1bd55598
RD
28155 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
28156 result = (wxRendererNative *) &_result_ref;
be9b1dca 28157 }
1bd55598
RD
28158 wxPyEndAllowThreads(__tstate);
28159 if (PyErr_Occurred()) SWIG_fail;
28160 }
28161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28162 return resultobj;
28163fail:
28164 return NULL;
28165}
28166
28167
28168SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28169 PyObject *resultobj = 0;
28170 wxRendererNative *result = 0 ;
28171
28172 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
28173 {
704eda0c 28174 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 28175 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 28176 {
1bd55598
RD
28177 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
28178 result = (wxRendererNative *) &_result_ref;
be9b1dca 28179 }
1bd55598
RD
28180 wxPyEndAllowThreads(__tstate);
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28184 return resultobj;
28185fail:
28186 return NULL;
28187}
28188
28189
28190SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28191 PyObject *resultobj = 0;
28192 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28193 wxRendererNative *result = 0 ;
28194 void *argp1 = 0 ;
28195 int res1 = 0 ;
28196 PyObject * obj0 = 0 ;
28197 char * kwnames[] = {
28198 (char *) "renderer", NULL
28199 };
28200
28201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
28202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28203 if (!SWIG_IsOK(res1)) {
28204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28205 }
28206 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28207 {
704eda0c 28208 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
28209 PyThreadState* __tstate = wxPyBeginAllowThreads();
28210 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28211 wxPyEndAllowThreads(__tstate);
28212 if (PyErr_Occurred()) SWIG_fail;
28213 }
28214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28215 return resultobj;
28216fail:
28217 return NULL;
28218}
28219
28220
28221SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28222 PyObject *resultobj = 0;
28223 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28224 SwigValueWrapper<wxRendererVersion > result;
28225 void *argp1 = 0 ;
28226 int res1 = 0 ;
28227 PyObject *swig_obj[1] ;
28228
28229 if (!args) SWIG_fail;
28230 swig_obj[0] = args;
28231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28232 if (!SWIG_IsOK(res1)) {
28233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28234 }
28235 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28236 {
28237 PyThreadState* __tstate = wxPyBeginAllowThreads();
28238 result = ((wxRendererNative const *)arg1)->GetVersion();
28239 wxPyEndAllowThreads(__tstate);
28240 if (PyErr_Occurred()) SWIG_fail;
28241 }
28242 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28243 return resultobj;
28244fail:
28245 return NULL;
28246}
28247
28248
28249SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28250 PyObject *obj;
28251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28252 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28253 return SWIG_Py_Void();
28254}
28255
27e45892
RD
28256SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28257 PyObject *resultobj = 0;
28258 wxPseudoDC *result = 0 ;
28259
28260 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
28261 {
28262 PyThreadState* __tstate = wxPyBeginAllowThreads();
28263 result = (wxPseudoDC *)new wxPseudoDC();
28264 wxPyEndAllowThreads(__tstate);
28265 if (PyErr_Occurred()) SWIG_fail;
28266 }
28267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
28268 return resultobj;
28269fail:
28270 return NULL;
28271}
28272
28273
28274SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28275 PyObject *resultobj = 0;
28276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28277 void *argp1 = 0 ;
28278 int res1 = 0 ;
28279 PyObject *swig_obj[1] ;
28280
28281 if (!args) SWIG_fail;
28282 swig_obj[0] = args;
28283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28284 if (!SWIG_IsOK(res1)) {
28285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28286 }
28287 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28288 {
28289 PyThreadState* __tstate = wxPyBeginAllowThreads();
28290 (arg1)->BeginDrawing();
28291 wxPyEndAllowThreads(__tstate);
28292 if (PyErr_Occurred()) SWIG_fail;
28293 }
28294 resultobj = SWIG_Py_Void();
28295 return resultobj;
28296fail:
28297 return NULL;
28298}
28299
28300
28301SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28302 PyObject *resultobj = 0;
28303 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28304 void *argp1 = 0 ;
28305 int res1 = 0 ;
28306 PyObject *swig_obj[1] ;
28307
28308 if (!args) SWIG_fail;
28309 swig_obj[0] = args;
28310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28311 if (!SWIG_IsOK(res1)) {
28312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28313 }
28314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28315 {
28316 PyThreadState* __tstate = wxPyBeginAllowThreads();
28317 (arg1)->EndDrawing();
28318 wxPyEndAllowThreads(__tstate);
28319 if (PyErr_Occurred()) SWIG_fail;
28320 }
28321 resultobj = SWIG_Py_Void();
28322 return resultobj;
28323fail:
28324 return NULL;
28325}
28326
28327
28328SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28329 PyObject *resultobj = 0;
28330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28331 void *argp1 = 0 ;
28332 int res1 = 0 ;
28333 PyObject *swig_obj[1] ;
28334
28335 if (!args) SWIG_fail;
28336 swig_obj[0] = args;
28337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
28338 if (!SWIG_IsOK(res1)) {
28339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28340 }
28341 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28342 {
28343 PyThreadState* __tstate = wxPyBeginAllowThreads();
28344 delete arg1;
28345
28346 wxPyEndAllowThreads(__tstate);
28347 if (PyErr_Occurred()) SWIG_fail;
28348 }
28349 resultobj = SWIG_Py_Void();
28350 return resultobj;
28351fail:
28352 return NULL;
28353}
28354
28355
28356SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28357 PyObject *resultobj = 0;
28358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28359 void *argp1 = 0 ;
28360 int res1 = 0 ;
28361 PyObject *swig_obj[1] ;
28362
28363 if (!args) SWIG_fail;
28364 swig_obj[0] = args;
28365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28366 if (!SWIG_IsOK(res1)) {
28367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28368 }
28369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28370 {
28371 PyThreadState* __tstate = wxPyBeginAllowThreads();
28372 (arg1)->RemoveAll();
28373 wxPyEndAllowThreads(__tstate);
28374 if (PyErr_Occurred()) SWIG_fail;
28375 }
28376 resultobj = SWIG_Py_Void();
28377 return resultobj;
28378fail:
28379 return NULL;
28380}
28381
28382
28383SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28384 PyObject *resultobj = 0;
28385 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28386 int result;
28387 void *argp1 = 0 ;
28388 int res1 = 0 ;
28389 PyObject *swig_obj[1] ;
28390
28391 if (!args) SWIG_fail;
28392 swig_obj[0] = args;
28393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28394 if (!SWIG_IsOK(res1)) {
28395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28396 }
28397 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28398 {
28399 PyThreadState* __tstate = wxPyBeginAllowThreads();
28400 result = (int)(arg1)->GetLen();
28401 wxPyEndAllowThreads(__tstate);
28402 if (PyErr_Occurred()) SWIG_fail;
28403 }
28404 resultobj = SWIG_From_int(static_cast< int >(result));
28405 return resultobj;
28406fail:
28407 return NULL;
28408}
28409
28410
28411SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28412 PyObject *resultobj = 0;
28413 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28414 int arg2 ;
28415 void *argp1 = 0 ;
28416 int res1 = 0 ;
28417 int val2 ;
28418 int ecode2 = 0 ;
28419 PyObject * obj0 = 0 ;
28420 PyObject * obj1 = 0 ;
28421 char * kwnames[] = {
28422 (char *) "self",(char *) "id", NULL
28423 };
28424
28425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
28426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28427 if (!SWIG_IsOK(res1)) {
28428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28429 }
28430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28431 ecode2 = SWIG_AsVal_int(obj1, &val2);
28432 if (!SWIG_IsOK(ecode2)) {
28433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
28434 }
28435 arg2 = static_cast< int >(val2);
28436 {
28437 PyThreadState* __tstate = wxPyBeginAllowThreads();
28438 (arg1)->SetId(arg2);
28439 wxPyEndAllowThreads(__tstate);
28440 if (PyErr_Occurred()) SWIG_fail;
28441 }
28442 resultobj = SWIG_Py_Void();
28443 return resultobj;
28444fail:
28445 return NULL;
28446}
28447
28448
28449SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28450 PyObject *resultobj = 0;
28451 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28452 int arg2 ;
28453 void *argp1 = 0 ;
28454 int res1 = 0 ;
28455 int val2 ;
28456 int ecode2 = 0 ;
28457 PyObject * obj0 = 0 ;
28458 PyObject * obj1 = 0 ;
28459 char * kwnames[] = {
28460 (char *) "self",(char *) "id", NULL
28461 };
28462
28463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
28464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28465 if (!SWIG_IsOK(res1)) {
28466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28467 }
28468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28469 ecode2 = SWIG_AsVal_int(obj1, &val2);
28470 if (!SWIG_IsOK(ecode2)) {
28471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
28472 }
28473 arg2 = static_cast< int >(val2);
28474 {
28475 PyThreadState* __tstate = wxPyBeginAllowThreads();
28476 (arg1)->ClearId(arg2);
28477 wxPyEndAllowThreads(__tstate);
28478 if (PyErr_Occurred()) SWIG_fail;
28479 }
28480 resultobj = SWIG_Py_Void();
28481 return resultobj;
28482fail:
28483 return NULL;
28484}
28485
28486
28487SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28488 PyObject *resultobj = 0;
28489 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28490 int arg2 ;
28491 void *argp1 = 0 ;
28492 int res1 = 0 ;
28493 int val2 ;
28494 int ecode2 = 0 ;
28495 PyObject * obj0 = 0 ;
28496 PyObject * obj1 = 0 ;
28497 char * kwnames[] = {
28498 (char *) "self",(char *) "id", NULL
28499 };
28500
28501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
28502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28503 if (!SWIG_IsOK(res1)) {
28504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28505 }
28506 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28507 ecode2 = SWIG_AsVal_int(obj1, &val2);
28508 if (!SWIG_IsOK(ecode2)) {
28509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
28510 }
28511 arg2 = static_cast< int >(val2);
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 (arg1)->RemoveId(arg2);
28515 wxPyEndAllowThreads(__tstate);
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
28518 resultobj = SWIG_Py_Void();
28519 return resultobj;
28520fail:
28521 return NULL;
28522}
28523
28524
28525SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28526 PyObject *resultobj = 0;
28527 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28528 int arg2 ;
28529 int arg3 ;
28530 int arg4 ;
28531 void *argp1 = 0 ;
28532 int res1 = 0 ;
28533 int val2 ;
28534 int ecode2 = 0 ;
28535 int val3 ;
28536 int ecode3 = 0 ;
28537 int val4 ;
28538 int ecode4 = 0 ;
28539 PyObject * obj0 = 0 ;
28540 PyObject * obj1 = 0 ;
28541 PyObject * obj2 = 0 ;
28542 PyObject * obj3 = 0 ;
28543 char * kwnames[] = {
28544 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
28545 };
28546
28547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28549 if (!SWIG_IsOK(res1)) {
28550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28551 }
28552 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28553 ecode2 = SWIG_AsVal_int(obj1, &val2);
28554 if (!SWIG_IsOK(ecode2)) {
28555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
28556 }
28557 arg2 = static_cast< int >(val2);
28558 ecode3 = SWIG_AsVal_int(obj2, &val3);
28559 if (!SWIG_IsOK(ecode3)) {
28560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
28561 }
28562 arg3 = static_cast< int >(val3);
28563 ecode4 = SWIG_AsVal_int(obj3, &val4);
28564 if (!SWIG_IsOK(ecode4)) {
28565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
28566 }
28567 arg4 = static_cast< int >(val4);
28568 {
28569 PyThreadState* __tstate = wxPyBeginAllowThreads();
28570 (arg1)->TranslateId(arg2,arg3,arg4);
28571 wxPyEndAllowThreads(__tstate);
28572 if (PyErr_Occurred()) SWIG_fail;
28573 }
28574 resultobj = SWIG_Py_Void();
28575 return resultobj;
28576fail:
28577 return NULL;
28578}
28579
28580
28581SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28582 PyObject *resultobj = 0;
28583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28584 int arg2 ;
28585 wxDC *arg3 = (wxDC *) 0 ;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 int val2 ;
28589 int ecode2 = 0 ;
28590 void *argp3 = 0 ;
28591 int res3 = 0 ;
28592 PyObject * obj0 = 0 ;
28593 PyObject * obj1 = 0 ;
28594 PyObject * obj2 = 0 ;
28595 char * kwnames[] = {
28596 (char *) "self",(char *) "id",(char *) "dc", NULL
28597 };
28598
28599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28601 if (!SWIG_IsOK(res1)) {
28602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28603 }
28604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28605 ecode2 = SWIG_AsVal_int(obj1, &val2);
28606 if (!SWIG_IsOK(ecode2)) {
28607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
28608 }
28609 arg2 = static_cast< int >(val2);
28610 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
28611 if (!SWIG_IsOK(res3)) {
28612 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
28613 }
28614 arg3 = reinterpret_cast< wxDC * >(argp3);
28615 {
28616 PyThreadState* __tstate = wxPyBeginAllowThreads();
28617 (arg1)->DrawIdToDC(arg2,arg3);
28618 wxPyEndAllowThreads(__tstate);
28619 if (PyErr_Occurred()) SWIG_fail;
28620 }
28621 resultobj = SWIG_Py_Void();
28622 return resultobj;
28623fail:
28624 return NULL;
28625}
28626
28627
28628SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28629 PyObject *resultobj = 0;
28630 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28631 int arg2 ;
28632 wxRect *arg3 = 0 ;
28633 void *argp1 = 0 ;
28634 int res1 = 0 ;
28635 int val2 ;
28636 int ecode2 = 0 ;
28637 wxRect temp3 ;
28638 PyObject * obj0 = 0 ;
28639 PyObject * obj1 = 0 ;
28640 PyObject * obj2 = 0 ;
28641 char * kwnames[] = {
28642 (char *) "self",(char *) "id",(char *) "rect", NULL
28643 };
28644
28645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28647 if (!SWIG_IsOK(res1)) {
28648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28649 }
28650 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28651 ecode2 = SWIG_AsVal_int(obj1, &val2);
28652 if (!SWIG_IsOK(ecode2)) {
28653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
28654 }
28655 arg2 = static_cast< int >(val2);
28656 {
28657 arg3 = &temp3;
28658 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28659 }
28660 {
28661 PyThreadState* __tstate = wxPyBeginAllowThreads();
28662 (arg1)->SetIdBounds(arg2,*arg3);
28663 wxPyEndAllowThreads(__tstate);
28664 if (PyErr_Occurred()) SWIG_fail;
28665 }
28666 resultobj = SWIG_Py_Void();
28667 return resultobj;
28668fail:
28669 return NULL;
28670}
28671
28672
28673SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28674 PyObject *resultobj = 0;
28675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28676 int arg2 ;
28677 wxRect result;
28678 void *argp1 = 0 ;
28679 int res1 = 0 ;
28680 int val2 ;
28681 int ecode2 = 0 ;
28682 PyObject * obj0 = 0 ;
28683 PyObject * obj1 = 0 ;
28684 char * kwnames[] = {
28685 (char *) "self",(char *) "id", NULL
28686 };
28687
28688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
28689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28690 if (!SWIG_IsOK(res1)) {
28691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28692 }
28693 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28694 ecode2 = SWIG_AsVal_int(obj1, &val2);
28695 if (!SWIG_IsOK(ecode2)) {
28696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
28697 }
28698 arg2 = static_cast< int >(val2);
28699 {
28700 PyThreadState* __tstate = wxPyBeginAllowThreads();
28701 result = wxPseudoDC_GetIdBounds(arg1,arg2);
28702 wxPyEndAllowThreads(__tstate);
28703 if (PyErr_Occurred()) SWIG_fail;
28704 }
28705 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28706 return resultobj;
28707fail:
28708 return NULL;
28709}
28710
28711
28712SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28713 PyObject *resultobj = 0;
28714 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28715 wxDC *arg2 = (wxDC *) 0 ;
28716 wxRect *arg3 = 0 ;
28717 void *argp1 = 0 ;
28718 int res1 = 0 ;
28719 void *argp2 = 0 ;
28720 int res2 = 0 ;
28721 wxRect temp3 ;
28722 PyObject * obj0 = 0 ;
28723 PyObject * obj1 = 0 ;
28724 PyObject * obj2 = 0 ;
28725 char * kwnames[] = {
28726 (char *) "self",(char *) "dc",(char *) "rect", NULL
28727 };
28728
28729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28731 if (!SWIG_IsOK(res1)) {
28732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28733 }
28734 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28736 if (!SWIG_IsOK(res2)) {
28737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
28738 }
28739 arg2 = reinterpret_cast< wxDC * >(argp2);
28740 {
28741 arg3 = &temp3;
28742 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28743 }
28744 {
28745 PyThreadState* __tstate = wxPyBeginAllowThreads();
28746 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
28747 wxPyEndAllowThreads(__tstate);
28748 if (PyErr_Occurred()) SWIG_fail;
28749 }
28750 resultobj = SWIG_Py_Void();
28751 return resultobj;
28752fail:
28753 return NULL;
28754}
28755
28756
28757SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28758 PyObject *resultobj = 0;
28759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28760 wxDC *arg2 = (wxDC *) 0 ;
28761 wxRegion *arg3 = 0 ;
28762 void *argp1 = 0 ;
28763 int res1 = 0 ;
28764 void *argp2 = 0 ;
28765 int res2 = 0 ;
28766 void *argp3 = 0 ;
28767 int res3 = 0 ;
28768 PyObject * obj0 = 0 ;
28769 PyObject * obj1 = 0 ;
28770 PyObject * obj2 = 0 ;
28771 char * kwnames[] = {
28772 (char *) "self",(char *) "dc",(char *) "region", NULL
28773 };
28774
28775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28777 if (!SWIG_IsOK(res1)) {
28778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28779 }
28780 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28782 if (!SWIG_IsOK(res2)) {
28783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
28784 }
28785 arg2 = reinterpret_cast< wxDC * >(argp2);
28786 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
28787 if (!SWIG_IsOK(res3)) {
28788 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28789 }
28790 if (!argp3) {
28791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
28792 }
28793 arg3 = reinterpret_cast< wxRegion * >(argp3);
28794 {
28795 PyThreadState* __tstate = wxPyBeginAllowThreads();
28796 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
28797 wxPyEndAllowThreads(__tstate);
28798 if (PyErr_Occurred()) SWIG_fail;
28799 }
28800 resultobj = SWIG_Py_Void();
28801 return resultobj;
28802fail:
28803 return NULL;
28804}
28805
28806
28807SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28808 PyObject *resultobj = 0;
28809 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28810 wxDC *arg2 = (wxDC *) 0 ;
28811 void *argp1 = 0 ;
28812 int res1 = 0 ;
28813 void *argp2 = 0 ;
28814 int res2 = 0 ;
28815 PyObject * obj0 = 0 ;
28816 PyObject * obj1 = 0 ;
28817 char * kwnames[] = {
28818 (char *) "self",(char *) "dc", NULL
28819 };
28820
28821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
28822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28823 if (!SWIG_IsOK(res1)) {
28824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28825 }
28826 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28827 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
28828 if (!SWIG_IsOK(res2)) {
28829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
28830 }
28831 arg2 = reinterpret_cast< wxDC * >(argp2);
28832 {
28833 PyThreadState* __tstate = wxPyBeginAllowThreads();
28834 (arg1)->DrawToDC(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_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28846 PyObject *resultobj = 0;
28847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28848 int arg2 ;
28849 int arg3 ;
28850 wxColour *arg4 = 0 ;
28851 int arg5 = (int) wxFLOOD_SURFACE ;
28852 void *argp1 = 0 ;
28853 int res1 = 0 ;
28854 int val2 ;
28855 int ecode2 = 0 ;
28856 int val3 ;
28857 int ecode3 = 0 ;
28858 wxColour temp4 ;
28859 int val5 ;
28860 int ecode5 = 0 ;
28861 PyObject * obj0 = 0 ;
28862 PyObject * obj1 = 0 ;
28863 PyObject * obj2 = 0 ;
28864 PyObject * obj3 = 0 ;
28865 PyObject * obj4 = 0 ;
28866 char * kwnames[] = {
28867 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
28868 };
28869
28870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28872 if (!SWIG_IsOK(res1)) {
28873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28874 }
28875 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28876 ecode2 = SWIG_AsVal_int(obj1, &val2);
28877 if (!SWIG_IsOK(ecode2)) {
28878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
28879 }
28880 arg2 = static_cast< int >(val2);
28881 ecode3 = SWIG_AsVal_int(obj2, &val3);
28882 if (!SWIG_IsOK(ecode3)) {
28883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28884 }
28885 arg3 = static_cast< int >(val3);
28886 {
28887 arg4 = &temp4;
28888 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28889 }
28890 if (obj4) {
28891 ecode5 = SWIG_AsVal_int(obj4, &val5);
28892 if (!SWIG_IsOK(ecode5)) {
28893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28894 }
28895 arg5 = static_cast< int >(val5);
28896 }
28897 {
28898 PyThreadState* __tstate = wxPyBeginAllowThreads();
28899 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28900 wxPyEndAllowThreads(__tstate);
28901 if (PyErr_Occurred()) SWIG_fail;
28902 }
28903 resultobj = SWIG_Py_Void();
28904 return resultobj;
28905fail:
28906 return NULL;
28907}
28908
28909
28910SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj = 0;
28912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28913 wxPoint *arg2 = 0 ;
28914 wxColour *arg3 = 0 ;
28915 int arg4 = (int) wxFLOOD_SURFACE ;
28916 void *argp1 = 0 ;
28917 int res1 = 0 ;
28918 wxPoint temp2 ;
28919 wxColour temp3 ;
28920 int val4 ;
28921 int ecode4 = 0 ;
28922 PyObject * obj0 = 0 ;
28923 PyObject * obj1 = 0 ;
28924 PyObject * obj2 = 0 ;
28925 PyObject * obj3 = 0 ;
28926 char * kwnames[] = {
28927 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28928 };
28929
28930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28932 if (!SWIG_IsOK(res1)) {
28933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28934 }
28935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28936 {
28937 arg2 = &temp2;
28938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28939 }
28940 {
28941 arg3 = &temp3;
28942 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28943 }
28944 if (obj3) {
28945 ecode4 = SWIG_AsVal_int(obj3, &val4);
28946 if (!SWIG_IsOK(ecode4)) {
28947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28948 }
28949 arg4 = static_cast< int >(val4);
28950 }
28951 {
28952 PyThreadState* __tstate = wxPyBeginAllowThreads();
28953 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28954 wxPyEndAllowThreads(__tstate);
28955 if (PyErr_Occurred()) SWIG_fail;
28956 }
28957 resultobj = SWIG_Py_Void();
28958 return resultobj;
28959fail:
28960 return NULL;
28961}
28962
28963
28964SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28965 PyObject *resultobj = 0;
28966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28967 int arg2 ;
28968 int arg3 ;
28969 int arg4 ;
28970 int arg5 ;
28971 void *argp1 = 0 ;
28972 int res1 = 0 ;
28973 int val2 ;
28974 int ecode2 = 0 ;
28975 int val3 ;
28976 int ecode3 = 0 ;
28977 int val4 ;
28978 int ecode4 = 0 ;
28979 int val5 ;
28980 int ecode5 = 0 ;
28981 PyObject * obj0 = 0 ;
28982 PyObject * obj1 = 0 ;
28983 PyObject * obj2 = 0 ;
28984 PyObject * obj3 = 0 ;
28985 PyObject * obj4 = 0 ;
28986 char * kwnames[] = {
28987 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28988 };
28989
28990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28992 if (!SWIG_IsOK(res1)) {
28993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28994 }
28995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28996 ecode2 = SWIG_AsVal_int(obj1, &val2);
28997 if (!SWIG_IsOK(ecode2)) {
28998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28999 }
29000 arg2 = static_cast< int >(val2);
29001 ecode3 = SWIG_AsVal_int(obj2, &val3);
29002 if (!SWIG_IsOK(ecode3)) {
29003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
29004 }
29005 arg3 = static_cast< int >(val3);
29006 ecode4 = SWIG_AsVal_int(obj3, &val4);
29007 if (!SWIG_IsOK(ecode4)) {
29008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
29009 }
29010 arg4 = static_cast< int >(val4);
29011 ecode5 = SWIG_AsVal_int(obj4, &val5);
29012 if (!SWIG_IsOK(ecode5)) {
29013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
29014 }
29015 arg5 = static_cast< int >(val5);
29016 {
29017 PyThreadState* __tstate = wxPyBeginAllowThreads();
29018 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
29019 wxPyEndAllowThreads(__tstate);
29020 if (PyErr_Occurred()) SWIG_fail;
29021 }
29022 resultobj = SWIG_Py_Void();
29023 return resultobj;
29024fail:
29025 return NULL;
29026}
29027
29028
29029SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29030 PyObject *resultobj = 0;
29031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29032 wxPoint *arg2 = 0 ;
29033 wxPoint *arg3 = 0 ;
29034 void *argp1 = 0 ;
29035 int res1 = 0 ;
29036 wxPoint temp2 ;
29037 wxPoint temp3 ;
29038 PyObject * obj0 = 0 ;
29039 PyObject * obj1 = 0 ;
29040 PyObject * obj2 = 0 ;
29041 char * kwnames[] = {
29042 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
29043 };
29044
29045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29047 if (!SWIG_IsOK(res1)) {
29048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29049 }
29050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29051 {
29052 arg2 = &temp2;
29053 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29054 }
29055 {
29056 arg3 = &temp3;
29057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29058 }
29059 {
29060 PyThreadState* __tstate = wxPyBeginAllowThreads();
29061 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
29062 wxPyEndAllowThreads(__tstate);
29063 if (PyErr_Occurred()) SWIG_fail;
29064 }
29065 resultobj = SWIG_Py_Void();
29066 return resultobj;
29067fail:
29068 return NULL;
29069}
29070
29071
29072SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29073 PyObject *resultobj = 0;
29074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29075 int arg2 ;
29076 int arg3 ;
29077 void *argp1 = 0 ;
29078 int res1 = 0 ;
29079 int val2 ;
29080 int ecode2 = 0 ;
29081 int val3 ;
29082 int ecode3 = 0 ;
29083 PyObject * obj0 = 0 ;
29084 PyObject * obj1 = 0 ;
29085 PyObject * obj2 = 0 ;
29086 char * kwnames[] = {
29087 (char *) "self",(char *) "x",(char *) "y", NULL
29088 };
29089
29090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29092 if (!SWIG_IsOK(res1)) {
29093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29094 }
29095 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29096 ecode2 = SWIG_AsVal_int(obj1, &val2);
29097 if (!SWIG_IsOK(ecode2)) {
29098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
29099 }
29100 arg2 = static_cast< int >(val2);
29101 ecode3 = SWIG_AsVal_int(obj2, &val3);
29102 if (!SWIG_IsOK(ecode3)) {
29103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
29104 }
29105 arg3 = static_cast< int >(val3);
29106 {
29107 PyThreadState* __tstate = wxPyBeginAllowThreads();
29108 (arg1)->CrossHair(arg2,arg3);
29109 wxPyEndAllowThreads(__tstate);
29110 if (PyErr_Occurred()) SWIG_fail;
29111 }
29112 resultobj = SWIG_Py_Void();
29113 return resultobj;
29114fail:
29115 return NULL;
29116}
29117
29118
29119SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29120 PyObject *resultobj = 0;
29121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29122 wxPoint *arg2 = 0 ;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 wxPoint temp2 ;
29126 PyObject * obj0 = 0 ;
29127 PyObject * obj1 = 0 ;
29128 char * kwnames[] = {
29129 (char *) "self",(char *) "pt", NULL
29130 };
29131
29132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) 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_CrossHairPoint" "', 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 {
29143 PyThreadState* __tstate = wxPyBeginAllowThreads();
29144 (arg1)->CrossHair((wxPoint const &)*arg2);
29145 wxPyEndAllowThreads(__tstate);
29146 if (PyErr_Occurred()) SWIG_fail;
29147 }
29148 resultobj = SWIG_Py_Void();
29149 return resultobj;
29150fail:
29151 return NULL;
29152}
29153
29154
29155SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29156 PyObject *resultobj = 0;
29157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29158 int arg2 ;
29159 int arg3 ;
29160 int arg4 ;
29161 int arg5 ;
29162 int arg6 ;
29163 int arg7 ;
29164 void *argp1 = 0 ;
29165 int res1 = 0 ;
29166 int val2 ;
29167 int ecode2 = 0 ;
29168 int val3 ;
29169 int ecode3 = 0 ;
29170 int val4 ;
29171 int ecode4 = 0 ;
29172 int val5 ;
29173 int ecode5 = 0 ;
29174 int val6 ;
29175 int ecode6 = 0 ;
29176 int val7 ;
29177 int ecode7 = 0 ;
29178 PyObject * obj0 = 0 ;
29179 PyObject * obj1 = 0 ;
29180 PyObject * obj2 = 0 ;
29181 PyObject * obj3 = 0 ;
29182 PyObject * obj4 = 0 ;
29183 PyObject * obj5 = 0 ;
29184 PyObject * obj6 = 0 ;
29185 char * kwnames[] = {
29186 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
29187 };
29188
29189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29191 if (!SWIG_IsOK(res1)) {
29192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29193 }
29194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29195 ecode2 = SWIG_AsVal_int(obj1, &val2);
29196 if (!SWIG_IsOK(ecode2)) {
29197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
29198 }
29199 arg2 = static_cast< int >(val2);
29200 ecode3 = SWIG_AsVal_int(obj2, &val3);
29201 if (!SWIG_IsOK(ecode3)) {
29202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
29203 }
29204 arg3 = static_cast< int >(val3);
29205 ecode4 = SWIG_AsVal_int(obj3, &val4);
29206 if (!SWIG_IsOK(ecode4)) {
29207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
29208 }
29209 arg4 = static_cast< int >(val4);
29210 ecode5 = SWIG_AsVal_int(obj4, &val5);
29211 if (!SWIG_IsOK(ecode5)) {
29212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29213 }
29214 arg5 = static_cast< int >(val5);
29215 ecode6 = SWIG_AsVal_int(obj5, &val6);
29216 if (!SWIG_IsOK(ecode6)) {
29217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29218 }
29219 arg6 = static_cast< int >(val6);
29220 ecode7 = SWIG_AsVal_int(obj6, &val7);
29221 if (!SWIG_IsOK(ecode7)) {
29222 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29223 }
29224 arg7 = static_cast< int >(val7);
29225 {
29226 PyThreadState* __tstate = wxPyBeginAllowThreads();
29227 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29228 wxPyEndAllowThreads(__tstate);
29229 if (PyErr_Occurred()) SWIG_fail;
29230 }
29231 resultobj = SWIG_Py_Void();
29232 return resultobj;
29233fail:
29234 return NULL;
29235}
29236
29237
29238SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj = 0;
29240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29241 wxPoint *arg2 = 0 ;
29242 wxPoint *arg3 = 0 ;
29243 wxPoint *arg4 = 0 ;
29244 void *argp1 = 0 ;
29245 int res1 = 0 ;
29246 wxPoint temp2 ;
29247 wxPoint temp3 ;
29248 wxPoint temp4 ;
29249 PyObject * obj0 = 0 ;
29250 PyObject * obj1 = 0 ;
29251 PyObject * obj2 = 0 ;
29252 PyObject * obj3 = 0 ;
29253 char * kwnames[] = {
29254 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29255 };
29256
29257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29259 if (!SWIG_IsOK(res1)) {
29260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29261 }
29262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29263 {
29264 arg2 = &temp2;
29265 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29266 }
29267 {
29268 arg3 = &temp3;
29269 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29270 }
29271 {
29272 arg4 = &temp4;
29273 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29274 }
29275 {
29276 PyThreadState* __tstate = wxPyBeginAllowThreads();
29277 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
29278 wxPyEndAllowThreads(__tstate);
29279 if (PyErr_Occurred()) SWIG_fail;
29280 }
29281 resultobj = SWIG_Py_Void();
29282 return resultobj;
29283fail:
29284 return NULL;
29285}
29286
29287
29288SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29289 PyObject *resultobj = 0;
29290 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29291 int arg2 ;
29292 int arg3 ;
29293 int arg4 ;
29294 int arg5 ;
29295 void *argp1 = 0 ;
29296 int res1 = 0 ;
29297 int val2 ;
29298 int ecode2 = 0 ;
29299 int val3 ;
29300 int ecode3 = 0 ;
29301 int val4 ;
29302 int ecode4 = 0 ;
29303 int val5 ;
29304 int ecode5 = 0 ;
29305 PyObject * obj0 = 0 ;
29306 PyObject * obj1 = 0 ;
29307 PyObject * obj2 = 0 ;
29308 PyObject * obj3 = 0 ;
29309 PyObject * obj4 = 0 ;
29310 char * kwnames[] = {
29311 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29312 };
29313
29314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29316 if (!SWIG_IsOK(res1)) {
29317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29318 }
29319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29320 ecode2 = SWIG_AsVal_int(obj1, &val2);
29321 if (!SWIG_IsOK(ecode2)) {
29322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
29323 }
29324 arg2 = static_cast< int >(val2);
29325 ecode3 = SWIG_AsVal_int(obj2, &val3);
29326 if (!SWIG_IsOK(ecode3)) {
29327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
29328 }
29329 arg3 = static_cast< int >(val3);
29330 ecode4 = SWIG_AsVal_int(obj3, &val4);
29331 if (!SWIG_IsOK(ecode4)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
29333 }
29334 arg4 = static_cast< int >(val4);
29335 ecode5 = SWIG_AsVal_int(obj4, &val5);
29336 if (!SWIG_IsOK(ecode5)) {
29337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
29338 }
29339 arg5 = static_cast< int >(val5);
29340 {
29341 PyThreadState* __tstate = wxPyBeginAllowThreads();
29342 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
29343 wxPyEndAllowThreads(__tstate);
29344 if (PyErr_Occurred()) SWIG_fail;
29345 }
29346 resultobj = SWIG_Py_Void();
29347 return resultobj;
29348fail:
29349 return NULL;
29350}
29351
29352
29353SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29354 PyObject *resultobj = 0;
29355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29356 wxRect *arg2 = 0 ;
29357 void *argp1 = 0 ;
29358 int res1 = 0 ;
29359 wxRect temp2 ;
29360 PyObject * obj0 = 0 ;
29361 PyObject * obj1 = 0 ;
29362 char * kwnames[] = {
29363 (char *) "self",(char *) "rect", NULL
29364 };
29365
29366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
29367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29368 if (!SWIG_IsOK(res1)) {
29369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29370 }
29371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29372 {
29373 arg2 = &temp2;
29374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29375 }
29376 {
29377 PyThreadState* __tstate = wxPyBeginAllowThreads();
29378 (arg1)->DrawCheckMark((wxRect const &)*arg2);
29379 wxPyEndAllowThreads(__tstate);
29380 if (PyErr_Occurred()) SWIG_fail;
29381 }
29382 resultobj = SWIG_Py_Void();
29383 return resultobj;
29384fail:
29385 return NULL;
29386}
29387
29388
29389SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29390 PyObject *resultobj = 0;
29391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29392 int arg2 ;
29393 int arg3 ;
29394 int arg4 ;
29395 int arg5 ;
29396 double arg6 ;
29397 double arg7 ;
29398 void *argp1 = 0 ;
29399 int res1 = 0 ;
29400 int val2 ;
29401 int ecode2 = 0 ;
29402 int val3 ;
29403 int ecode3 = 0 ;
29404 int val4 ;
29405 int ecode4 = 0 ;
29406 int val5 ;
29407 int ecode5 = 0 ;
29408 double val6 ;
29409 int ecode6 = 0 ;
29410 double val7 ;
29411 int ecode7 = 0 ;
29412 PyObject * obj0 = 0 ;
29413 PyObject * obj1 = 0 ;
29414 PyObject * obj2 = 0 ;
29415 PyObject * obj3 = 0 ;
29416 PyObject * obj4 = 0 ;
29417 PyObject * obj5 = 0 ;
29418 PyObject * obj6 = 0 ;
29419 char * kwnames[] = {
29420 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
29421 };
29422
29423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29425 if (!SWIG_IsOK(res1)) {
29426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29427 }
29428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29429 ecode2 = SWIG_AsVal_int(obj1, &val2);
29430 if (!SWIG_IsOK(ecode2)) {
29431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
29432 }
29433 arg2 = static_cast< int >(val2);
29434 ecode3 = SWIG_AsVal_int(obj2, &val3);
29435 if (!SWIG_IsOK(ecode3)) {
29436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
29437 }
29438 arg3 = static_cast< int >(val3);
29439 ecode4 = SWIG_AsVal_int(obj3, &val4);
29440 if (!SWIG_IsOK(ecode4)) {
29441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
29442 }
29443 arg4 = static_cast< int >(val4);
29444 ecode5 = SWIG_AsVal_int(obj4, &val5);
29445 if (!SWIG_IsOK(ecode5)) {
29446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
29447 }
29448 arg5 = static_cast< int >(val5);
29449 ecode6 = SWIG_AsVal_double(obj5, &val6);
29450 if (!SWIG_IsOK(ecode6)) {
29451 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
29452 }
29453 arg6 = static_cast< double >(val6);
29454 ecode7 = SWIG_AsVal_double(obj6, &val7);
29455 if (!SWIG_IsOK(ecode7)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
29457 }
29458 arg7 = static_cast< double >(val7);
29459 {
29460 PyThreadState* __tstate = wxPyBeginAllowThreads();
29461 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
29462 wxPyEndAllowThreads(__tstate);
29463 if (PyErr_Occurred()) SWIG_fail;
29464 }
29465 resultobj = SWIG_Py_Void();
29466 return resultobj;
29467fail:
29468 return NULL;
29469}
29470
29471
29472SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29473 PyObject *resultobj = 0;
29474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29475 wxPoint *arg2 = 0 ;
29476 wxSize *arg3 = 0 ;
29477 double arg4 ;
29478 double arg5 ;
29479 void *argp1 = 0 ;
29480 int res1 = 0 ;
29481 wxPoint temp2 ;
29482 wxSize temp3 ;
29483 double val4 ;
29484 int ecode4 = 0 ;
29485 double val5 ;
29486 int ecode5 = 0 ;
29487 PyObject * obj0 = 0 ;
29488 PyObject * obj1 = 0 ;
29489 PyObject * obj2 = 0 ;
29490 PyObject * obj3 = 0 ;
29491 PyObject * obj4 = 0 ;
29492 char * kwnames[] = {
29493 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
29494 };
29495
29496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29498 if (!SWIG_IsOK(res1)) {
29499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29500 }
29501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29502 {
29503 arg2 = &temp2;
29504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29505 }
29506 {
29507 arg3 = &temp3;
29508 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29509 }
29510 ecode4 = SWIG_AsVal_double(obj3, &val4);
29511 if (!SWIG_IsOK(ecode4)) {
29512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
29513 }
29514 arg4 = static_cast< double >(val4);
29515 ecode5 = SWIG_AsVal_double(obj4, &val5);
29516 if (!SWIG_IsOK(ecode5)) {
29517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
29518 }
29519 arg5 = static_cast< double >(val5);
29520 {
29521 PyThreadState* __tstate = wxPyBeginAllowThreads();
29522 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
29523 wxPyEndAllowThreads(__tstate);
29524 if (PyErr_Occurred()) SWIG_fail;
29525 }
29526 resultobj = SWIG_Py_Void();
29527 return resultobj;
29528fail:
29529 return NULL;
29530}
29531
29532
29533SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29534 PyObject *resultobj = 0;
29535 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29536 int arg2 ;
29537 int arg3 ;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 int val2 ;
29541 int ecode2 = 0 ;
29542 int val3 ;
29543 int ecode3 = 0 ;
29544 PyObject * obj0 = 0 ;
29545 PyObject * obj1 = 0 ;
29546 PyObject * obj2 = 0 ;
29547 char * kwnames[] = {
29548 (char *) "self",(char *) "x",(char *) "y", NULL
29549 };
29550
29551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29553 if (!SWIG_IsOK(res1)) {
29554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29555 }
29556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29557 ecode2 = SWIG_AsVal_int(obj1, &val2);
29558 if (!SWIG_IsOK(ecode2)) {
29559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
29560 }
29561 arg2 = static_cast< int >(val2);
29562 ecode3 = SWIG_AsVal_int(obj2, &val3);
29563 if (!SWIG_IsOK(ecode3)) {
29564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
29565 }
29566 arg3 = static_cast< int >(val3);
29567 {
29568 PyThreadState* __tstate = wxPyBeginAllowThreads();
29569 (arg1)->DrawPoint(arg2,arg3);
29570 wxPyEndAllowThreads(__tstate);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
29573 resultobj = SWIG_Py_Void();
29574 return resultobj;
29575fail:
29576 return NULL;
29577}
29578
29579
29580SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29581 PyObject *resultobj = 0;
29582 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29583 wxPoint *arg2 = 0 ;
29584 void *argp1 = 0 ;
29585 int res1 = 0 ;
29586 wxPoint temp2 ;
29587 PyObject * obj0 = 0 ;
29588 PyObject * obj1 = 0 ;
29589 char * kwnames[] = {
29590 (char *) "self",(char *) "pt", NULL
29591 };
29592
29593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29595 if (!SWIG_IsOK(res1)) {
29596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29597 }
29598 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29599 {
29600 arg2 = &temp2;
29601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29602 }
29603 {
29604 PyThreadState* __tstate = wxPyBeginAllowThreads();
29605 (arg1)->DrawPoint((wxPoint const &)*arg2);
29606 wxPyEndAllowThreads(__tstate);
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 resultobj = SWIG_Py_Void();
29610 return resultobj;
29611fail:
29612 return NULL;
29613}
29614
29615
29616SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29617 PyObject *resultobj = 0;
29618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29619 int arg2 ;
29620 int arg3 ;
29621 int arg4 ;
29622 int arg5 ;
29623 void *argp1 = 0 ;
29624 int res1 = 0 ;
29625 int val2 ;
29626 int ecode2 = 0 ;
29627 int val3 ;
29628 int ecode3 = 0 ;
29629 int val4 ;
29630 int ecode4 = 0 ;
29631 int val5 ;
29632 int ecode5 = 0 ;
29633 PyObject * obj0 = 0 ;
29634 PyObject * obj1 = 0 ;
29635 PyObject * obj2 = 0 ;
29636 PyObject * obj3 = 0 ;
29637 PyObject * obj4 = 0 ;
29638 char * kwnames[] = {
29639 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29640 };
29641
29642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29644 if (!SWIG_IsOK(res1)) {
29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29646 }
29647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29648 ecode2 = SWIG_AsVal_int(obj1, &val2);
29649 if (!SWIG_IsOK(ecode2)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
29651 }
29652 arg2 = static_cast< int >(val2);
29653 ecode3 = SWIG_AsVal_int(obj2, &val3);
29654 if (!SWIG_IsOK(ecode3)) {
29655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
29656 }
29657 arg3 = static_cast< int >(val3);
29658 ecode4 = SWIG_AsVal_int(obj3, &val4);
29659 if (!SWIG_IsOK(ecode4)) {
29660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
29661 }
29662 arg4 = static_cast< int >(val4);
29663 ecode5 = SWIG_AsVal_int(obj4, &val5);
29664 if (!SWIG_IsOK(ecode5)) {
29665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
29666 }
29667 arg5 = static_cast< int >(val5);
29668 {
29669 PyThreadState* __tstate = wxPyBeginAllowThreads();
29670 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29671 wxPyEndAllowThreads(__tstate);
29672 if (PyErr_Occurred()) SWIG_fail;
29673 }
29674 resultobj = SWIG_Py_Void();
29675 return resultobj;
29676fail:
29677 return NULL;
29678}
29679
29680
29681SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29682 PyObject *resultobj = 0;
29683 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29684 wxRect *arg2 = 0 ;
29685 void *argp1 = 0 ;
29686 int res1 = 0 ;
29687 wxRect temp2 ;
29688 PyObject * obj0 = 0 ;
29689 PyObject * obj1 = 0 ;
29690 char * kwnames[] = {
29691 (char *) "self",(char *) "rect", NULL
29692 };
29693
29694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
29695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29696 if (!SWIG_IsOK(res1)) {
29697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29698 }
29699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29700 {
29701 arg2 = &temp2;
29702 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29703 }
29704 {
29705 PyThreadState* __tstate = wxPyBeginAllowThreads();
29706 (arg1)->DrawRectangle((wxRect const &)*arg2);
29707 wxPyEndAllowThreads(__tstate);
29708 if (PyErr_Occurred()) SWIG_fail;
29709 }
29710 resultobj = SWIG_Py_Void();
29711 return resultobj;
29712fail:
29713 return NULL;
29714}
29715
29716
29717SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29718 PyObject *resultobj = 0;
29719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29720 wxPoint *arg2 = 0 ;
29721 wxSize *arg3 = 0 ;
29722 void *argp1 = 0 ;
29723 int res1 = 0 ;
29724 wxPoint temp2 ;
29725 wxSize temp3 ;
29726 PyObject * obj0 = 0 ;
29727 PyObject * obj1 = 0 ;
29728 PyObject * obj2 = 0 ;
29729 char * kwnames[] = {
29730 (char *) "self",(char *) "pt",(char *) "sz", NULL
29731 };
29732
29733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29737 }
29738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29739 {
29740 arg2 = &temp2;
29741 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29742 }
29743 {
29744 arg3 = &temp3;
29745 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29746 }
29747 {
29748 PyThreadState* __tstate = wxPyBeginAllowThreads();
29749 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
29750 wxPyEndAllowThreads(__tstate);
29751 if (PyErr_Occurred()) SWIG_fail;
29752 }
29753 resultobj = SWIG_Py_Void();
29754 return resultobj;
29755fail:
29756 return NULL;
29757}
29758
29759
29760SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29761 PyObject *resultobj = 0;
29762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29763 int arg2 ;
29764 int arg3 ;
29765 int arg4 ;
29766 int arg5 ;
29767 double arg6 ;
29768 void *argp1 = 0 ;
29769 int res1 = 0 ;
29770 int val2 ;
29771 int ecode2 = 0 ;
29772 int val3 ;
29773 int ecode3 = 0 ;
29774 int val4 ;
29775 int ecode4 = 0 ;
29776 int val5 ;
29777 int ecode5 = 0 ;
29778 double val6 ;
29779 int ecode6 = 0 ;
29780 PyObject * obj0 = 0 ;
29781 PyObject * obj1 = 0 ;
29782 PyObject * obj2 = 0 ;
29783 PyObject * obj3 = 0 ;
29784 PyObject * obj4 = 0 ;
29785 PyObject * obj5 = 0 ;
29786 char * kwnames[] = {
29787 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
29788 };
29789
29790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29792 if (!SWIG_IsOK(res1)) {
29793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29794 }
29795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29796 ecode2 = SWIG_AsVal_int(obj1, &val2);
29797 if (!SWIG_IsOK(ecode2)) {
29798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
29799 }
29800 arg2 = static_cast< int >(val2);
29801 ecode3 = SWIG_AsVal_int(obj2, &val3);
29802 if (!SWIG_IsOK(ecode3)) {
29803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
29804 }
29805 arg3 = static_cast< int >(val3);
29806 ecode4 = SWIG_AsVal_int(obj3, &val4);
29807 if (!SWIG_IsOK(ecode4)) {
29808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
29809 }
29810 arg4 = static_cast< int >(val4);
29811 ecode5 = SWIG_AsVal_int(obj4, &val5);
29812 if (!SWIG_IsOK(ecode5)) {
29813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
29814 }
29815 arg5 = static_cast< int >(val5);
29816 ecode6 = SWIG_AsVal_double(obj5, &val6);
29817 if (!SWIG_IsOK(ecode6)) {
29818 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
29819 }
29820 arg6 = static_cast< double >(val6);
29821 {
29822 PyThreadState* __tstate = wxPyBeginAllowThreads();
29823 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29824 wxPyEndAllowThreads(__tstate);
29825 if (PyErr_Occurred()) SWIG_fail;
29826 }
29827 resultobj = SWIG_Py_Void();
29828 return resultobj;
29829fail:
29830 return NULL;
29831}
29832
29833
29834SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29835 PyObject *resultobj = 0;
29836 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29837 wxRect *arg2 = 0 ;
29838 double arg3 ;
29839 void *argp1 = 0 ;
29840 int res1 = 0 ;
29841 wxRect temp2 ;
29842 double val3 ;
29843 int ecode3 = 0 ;
29844 PyObject * obj0 = 0 ;
29845 PyObject * obj1 = 0 ;
29846 PyObject * obj2 = 0 ;
29847 char * kwnames[] = {
29848 (char *) "self",(char *) "r",(char *) "radius", NULL
29849 };
29850
29851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29853 if (!SWIG_IsOK(res1)) {
29854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29855 }
29856 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29857 {
29858 arg2 = &temp2;
29859 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29860 }
29861 ecode3 = SWIG_AsVal_double(obj2, &val3);
29862 if (!SWIG_IsOK(ecode3)) {
29863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
29864 }
29865 arg3 = static_cast< double >(val3);
29866 {
29867 PyThreadState* __tstate = wxPyBeginAllowThreads();
29868 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
29869 wxPyEndAllowThreads(__tstate);
29870 if (PyErr_Occurred()) SWIG_fail;
29871 }
29872 resultobj = SWIG_Py_Void();
29873 return resultobj;
29874fail:
29875 return NULL;
29876}
29877
29878
29879SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29880 PyObject *resultobj = 0;
29881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29882 wxPoint *arg2 = 0 ;
29883 wxSize *arg3 = 0 ;
29884 double arg4 ;
29885 void *argp1 = 0 ;
29886 int res1 = 0 ;
29887 wxPoint temp2 ;
29888 wxSize temp3 ;
29889 double val4 ;
29890 int ecode4 = 0 ;
29891 PyObject * obj0 = 0 ;
29892 PyObject * obj1 = 0 ;
29893 PyObject * obj2 = 0 ;
29894 PyObject * obj3 = 0 ;
29895 char * kwnames[] = {
29896 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29897 };
29898
29899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29901 if (!SWIG_IsOK(res1)) {
29902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29903 }
29904 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29905 {
29906 arg2 = &temp2;
29907 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29908 }
29909 {
29910 arg3 = &temp3;
29911 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29912 }
29913 ecode4 = SWIG_AsVal_double(obj3, &val4);
29914 if (!SWIG_IsOK(ecode4)) {
29915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29916 }
29917 arg4 = static_cast< double >(val4);
29918 {
29919 PyThreadState* __tstate = wxPyBeginAllowThreads();
29920 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29921 wxPyEndAllowThreads(__tstate);
29922 if (PyErr_Occurred()) SWIG_fail;
29923 }
29924 resultobj = SWIG_Py_Void();
29925 return resultobj;
29926fail:
29927 return NULL;
29928}
29929
29930
29931SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29932 PyObject *resultobj = 0;
29933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29934 int arg2 ;
29935 int arg3 ;
29936 int arg4 ;
29937 void *argp1 = 0 ;
29938 int res1 = 0 ;
29939 int val2 ;
29940 int ecode2 = 0 ;
29941 int val3 ;
29942 int ecode3 = 0 ;
29943 int val4 ;
29944 int ecode4 = 0 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 PyObject * obj2 = 0 ;
29948 PyObject * obj3 = 0 ;
29949 char * kwnames[] = {
29950 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29951 };
29952
29953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29955 if (!SWIG_IsOK(res1)) {
29956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29957 }
29958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29959 ecode2 = SWIG_AsVal_int(obj1, &val2);
29960 if (!SWIG_IsOK(ecode2)) {
29961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29962 }
29963 arg2 = static_cast< int >(val2);
29964 ecode3 = SWIG_AsVal_int(obj2, &val3);
29965 if (!SWIG_IsOK(ecode3)) {
29966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29967 }
29968 arg3 = static_cast< int >(val3);
29969 ecode4 = SWIG_AsVal_int(obj3, &val4);
29970 if (!SWIG_IsOK(ecode4)) {
29971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29972 }
29973 arg4 = static_cast< int >(val4);
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 (arg1)->DrawCircle(arg2,arg3,arg4);
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 resultobj = SWIG_Py_Void();
29981 return resultobj;
29982fail:
29983 return NULL;
29984}
29985
29986
29987SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29988 PyObject *resultobj = 0;
29989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29990 wxPoint *arg2 = 0 ;
29991 int arg3 ;
29992 void *argp1 = 0 ;
29993 int res1 = 0 ;
29994 wxPoint temp2 ;
29995 int val3 ;
29996 int ecode3 = 0 ;
29997 PyObject * obj0 = 0 ;
29998 PyObject * obj1 = 0 ;
29999 PyObject * obj2 = 0 ;
30000 char * kwnames[] = {
30001 (char *) "self",(char *) "pt",(char *) "radius", NULL
30002 };
30003
30004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30006 if (!SWIG_IsOK(res1)) {
30007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30008 }
30009 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30010 {
30011 arg2 = &temp2;
30012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30013 }
30014 ecode3 = SWIG_AsVal_int(obj2, &val3);
30015 if (!SWIG_IsOK(ecode3)) {
30016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
30017 }
30018 arg3 = static_cast< int >(val3);
30019 {
30020 PyThreadState* __tstate = wxPyBeginAllowThreads();
30021 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
30022 wxPyEndAllowThreads(__tstate);
30023 if (PyErr_Occurred()) SWIG_fail;
30024 }
30025 resultobj = SWIG_Py_Void();
30026 return resultobj;
30027fail:
30028 return NULL;
30029}
30030
30031
30032SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30033 PyObject *resultobj = 0;
30034 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30035 int arg2 ;
30036 int arg3 ;
30037 int arg4 ;
30038 int arg5 ;
30039 void *argp1 = 0 ;
30040 int res1 = 0 ;
30041 int val2 ;
30042 int ecode2 = 0 ;
30043 int val3 ;
30044 int ecode3 = 0 ;
30045 int val4 ;
30046 int ecode4 = 0 ;
30047 int val5 ;
30048 int ecode5 = 0 ;
30049 PyObject * obj0 = 0 ;
30050 PyObject * obj1 = 0 ;
30051 PyObject * obj2 = 0 ;
30052 PyObject * obj3 = 0 ;
30053 PyObject * obj4 = 0 ;
30054 char * kwnames[] = {
30055 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30056 };
30057
30058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30060 if (!SWIG_IsOK(res1)) {
30061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30062 }
30063 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30064 ecode2 = SWIG_AsVal_int(obj1, &val2);
30065 if (!SWIG_IsOK(ecode2)) {
30066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
30067 }
30068 arg2 = static_cast< int >(val2);
30069 ecode3 = SWIG_AsVal_int(obj2, &val3);
30070 if (!SWIG_IsOK(ecode3)) {
30071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
30072 }
30073 arg3 = static_cast< int >(val3);
30074 ecode4 = SWIG_AsVal_int(obj3, &val4);
30075 if (!SWIG_IsOK(ecode4)) {
30076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
30077 }
30078 arg4 = static_cast< int >(val4);
30079 ecode5 = SWIG_AsVal_int(obj4, &val5);
30080 if (!SWIG_IsOK(ecode5)) {
30081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
30082 }
30083 arg5 = static_cast< int >(val5);
30084 {
30085 PyThreadState* __tstate = wxPyBeginAllowThreads();
30086 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30087 wxPyEndAllowThreads(__tstate);
30088 if (PyErr_Occurred()) SWIG_fail;
30089 }
30090 resultobj = SWIG_Py_Void();
30091 return resultobj;
30092fail:
30093 return NULL;
30094}
30095
30096
30097SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30098 PyObject *resultobj = 0;
30099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30100 wxRect *arg2 = 0 ;
30101 void *argp1 = 0 ;
30102 int res1 = 0 ;
30103 wxRect temp2 ;
30104 PyObject * obj0 = 0 ;
30105 PyObject * obj1 = 0 ;
30106 char * kwnames[] = {
30107 (char *) "self",(char *) "rect", NULL
30108 };
30109
30110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
30111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30112 if (!SWIG_IsOK(res1)) {
30113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30114 }
30115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30116 {
30117 arg2 = &temp2;
30118 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30119 }
30120 {
30121 PyThreadState* __tstate = wxPyBeginAllowThreads();
30122 (arg1)->DrawEllipse((wxRect const &)*arg2);
30123 wxPyEndAllowThreads(__tstate);
30124 if (PyErr_Occurred()) SWIG_fail;
30125 }
30126 resultobj = SWIG_Py_Void();
30127 return resultobj;
30128fail:
30129 return NULL;
30130}
30131
30132
30133SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30134 PyObject *resultobj = 0;
30135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30136 wxPoint *arg2 = 0 ;
30137 wxSize *arg3 = 0 ;
30138 void *argp1 = 0 ;
30139 int res1 = 0 ;
30140 wxPoint temp2 ;
30141 wxSize temp3 ;
30142 PyObject * obj0 = 0 ;
30143 PyObject * obj1 = 0 ;
30144 PyObject * obj2 = 0 ;
30145 char * kwnames[] = {
30146 (char *) "self",(char *) "pt",(char *) "sz", NULL
30147 };
30148
30149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30151 if (!SWIG_IsOK(res1)) {
30152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30153 }
30154 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30155 {
30156 arg2 = &temp2;
30157 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30158 }
30159 {
30160 arg3 = &temp3;
30161 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30162 }
30163 {
30164 PyThreadState* __tstate = wxPyBeginAllowThreads();
30165 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
30166 wxPyEndAllowThreads(__tstate);
30167 if (PyErr_Occurred()) SWIG_fail;
30168 }
30169 resultobj = SWIG_Py_Void();
30170 return resultobj;
30171fail:
30172 return NULL;
30173}
30174
30175
30176SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30177 PyObject *resultobj = 0;
30178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30179 wxIcon *arg2 = 0 ;
30180 int arg3 ;
30181 int arg4 ;
30182 void *argp1 = 0 ;
30183 int res1 = 0 ;
30184 void *argp2 = 0 ;
30185 int res2 = 0 ;
30186 int val3 ;
30187 int ecode3 = 0 ;
30188 int val4 ;
30189 int ecode4 = 0 ;
30190 PyObject * obj0 = 0 ;
30191 PyObject * obj1 = 0 ;
30192 PyObject * obj2 = 0 ;
30193 PyObject * obj3 = 0 ;
30194 char * kwnames[] = {
30195 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
30196 };
30197
30198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30200 if (!SWIG_IsOK(res1)) {
30201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30202 }
30203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30205 if (!SWIG_IsOK(res2)) {
30206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30207 }
30208 if (!argp2) {
30209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30210 }
30211 arg2 = reinterpret_cast< wxIcon * >(argp2);
30212 ecode3 = SWIG_AsVal_int(obj2, &val3);
30213 if (!SWIG_IsOK(ecode3)) {
30214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30215 }
30216 arg3 = static_cast< int >(val3);
30217 ecode4 = SWIG_AsVal_int(obj3, &val4);
30218 if (!SWIG_IsOK(ecode4)) {
30219 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30220 }
30221 arg4 = static_cast< int >(val4);
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30225 wxPyEndAllowThreads(__tstate);
30226 if (PyErr_Occurred()) SWIG_fail;
30227 }
30228 resultobj = SWIG_Py_Void();
30229 return resultobj;
30230fail:
30231 return NULL;
30232}
30233
30234
30235SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30236 PyObject *resultobj = 0;
30237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30238 wxIcon *arg2 = 0 ;
30239 wxPoint *arg3 = 0 ;
30240 void *argp1 = 0 ;
30241 int res1 = 0 ;
30242 void *argp2 = 0 ;
30243 int res2 = 0 ;
30244 wxPoint temp3 ;
30245 PyObject * obj0 = 0 ;
30246 PyObject * obj1 = 0 ;
30247 PyObject * obj2 = 0 ;
30248 char * kwnames[] = {
30249 (char *) "self",(char *) "icon",(char *) "pt", NULL
30250 };
30251
30252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) 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_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30256 }
30257 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30259 if (!SWIG_IsOK(res2)) {
30260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30261 }
30262 if (!argp2) {
30263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30264 }
30265 arg2 = reinterpret_cast< wxIcon * >(argp2);
30266 {
30267 arg3 = &temp3;
30268 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30269 }
30270 {
30271 PyThreadState* __tstate = wxPyBeginAllowThreads();
30272 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
30273 wxPyEndAllowThreads(__tstate);
30274 if (PyErr_Occurred()) SWIG_fail;
30275 }
30276 resultobj = SWIG_Py_Void();
30277 return resultobj;
30278fail:
30279 return NULL;
30280}
30281
30282
30283SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30284 PyObject *resultobj = 0;
30285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30286 wxBitmap *arg2 = 0 ;
30287 int arg3 ;
30288 int arg4 ;
30289 bool arg5 = (bool) false ;
30290 void *argp1 = 0 ;
30291 int res1 = 0 ;
30292 void *argp2 = 0 ;
30293 int res2 = 0 ;
30294 int val3 ;
30295 int ecode3 = 0 ;
30296 int val4 ;
30297 int ecode4 = 0 ;
30298 bool val5 ;
30299 int ecode5 = 0 ;
30300 PyObject * obj0 = 0 ;
30301 PyObject * obj1 = 0 ;
30302 PyObject * obj2 = 0 ;
30303 PyObject * obj3 = 0 ;
30304 PyObject * obj4 = 0 ;
30305 char * kwnames[] = {
30306 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
30307 };
30308
30309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30311 if (!SWIG_IsOK(res1)) {
30312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30313 }
30314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30316 if (!SWIG_IsOK(res2)) {
30317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30318 }
30319 if (!argp2) {
30320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30321 }
30322 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30323 ecode3 = SWIG_AsVal_int(obj2, &val3);
30324 if (!SWIG_IsOK(ecode3)) {
30325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
30326 }
30327 arg3 = static_cast< int >(val3);
30328 ecode4 = SWIG_AsVal_int(obj3, &val4);
30329 if (!SWIG_IsOK(ecode4)) {
30330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
30331 }
30332 arg4 = static_cast< int >(val4);
30333 if (obj4) {
30334 ecode5 = SWIG_AsVal_bool(obj4, &val5);
30335 if (!SWIG_IsOK(ecode5)) {
30336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
30337 }
30338 arg5 = static_cast< bool >(val5);
30339 }
30340 {
30341 PyThreadState* __tstate = wxPyBeginAllowThreads();
30342 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_Py_Void();
30347 return resultobj;
30348fail:
30349 return NULL;
30350}
30351
30352
30353SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30356 wxBitmap *arg2 = 0 ;
30357 wxPoint *arg3 = 0 ;
30358 bool arg4 = (bool) false ;
30359 void *argp1 = 0 ;
30360 int res1 = 0 ;
30361 void *argp2 = 0 ;
30362 int res2 = 0 ;
30363 wxPoint temp3 ;
30364 bool val4 ;
30365 int ecode4 = 0 ;
30366 PyObject * obj0 = 0 ;
30367 PyObject * obj1 = 0 ;
30368 PyObject * obj2 = 0 ;
30369 PyObject * obj3 = 0 ;
30370 char * kwnames[] = {
30371 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
30372 };
30373
30374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30376 if (!SWIG_IsOK(res1)) {
30377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30378 }
30379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30381 if (!SWIG_IsOK(res2)) {
30382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30383 }
30384 if (!argp2) {
30385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30386 }
30387 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30388 {
30389 arg3 = &temp3;
30390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30391 }
30392 if (obj3) {
30393 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30394 if (!SWIG_IsOK(ecode4)) {
30395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
30396 }
30397 arg4 = static_cast< bool >(val4);
30398 }
30399 {
30400 PyThreadState* __tstate = wxPyBeginAllowThreads();
30401 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
30402 wxPyEndAllowThreads(__tstate);
30403 if (PyErr_Occurred()) SWIG_fail;
30404 }
30405 resultobj = SWIG_Py_Void();
30406 return resultobj;
30407fail:
30408 return NULL;
30409}
30410
30411
30412SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30413 PyObject *resultobj = 0;
30414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30415 wxString *arg2 = 0 ;
30416 int arg3 ;
30417 int arg4 ;
30418 void *argp1 = 0 ;
30419 int res1 = 0 ;
30420 bool temp2 = false ;
30421 int val3 ;
30422 int ecode3 = 0 ;
30423 int val4 ;
30424 int ecode4 = 0 ;
30425 PyObject * obj0 = 0 ;
30426 PyObject * obj1 = 0 ;
30427 PyObject * obj2 = 0 ;
30428 PyObject * obj3 = 0 ;
30429 char * kwnames[] = {
30430 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
30431 };
30432
30433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30435 if (!SWIG_IsOK(res1)) {
30436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30437 }
30438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30439 {
30440 arg2 = wxString_in_helper(obj1);
30441 if (arg2 == NULL) SWIG_fail;
30442 temp2 = true;
30443 }
30444 ecode3 = SWIG_AsVal_int(obj2, &val3);
30445 if (!SWIG_IsOK(ecode3)) {
30446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
30447 }
30448 arg3 = static_cast< int >(val3);
30449 ecode4 = SWIG_AsVal_int(obj3, &val4);
30450 if (!SWIG_IsOK(ecode4)) {
30451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
30452 }
30453 arg4 = static_cast< int >(val4);
30454 {
30455 PyThreadState* __tstate = wxPyBeginAllowThreads();
30456 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
30457 wxPyEndAllowThreads(__tstate);
30458 if (PyErr_Occurred()) SWIG_fail;
30459 }
30460 resultobj = SWIG_Py_Void();
30461 {
30462 if (temp2)
30463 delete arg2;
30464 }
30465 return resultobj;
30466fail:
30467 {
30468 if (temp2)
30469 delete arg2;
30470 }
30471 return NULL;
30472}
30473
30474
30475SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30476 PyObject *resultobj = 0;
30477 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30478 wxString *arg2 = 0 ;
30479 wxPoint *arg3 = 0 ;
30480 void *argp1 = 0 ;
30481 int res1 = 0 ;
30482 bool temp2 = false ;
30483 wxPoint temp3 ;
30484 PyObject * obj0 = 0 ;
30485 PyObject * obj1 = 0 ;
30486 PyObject * obj2 = 0 ;
30487 char * kwnames[] = {
30488 (char *) "self",(char *) "text",(char *) "pt", NULL
30489 };
30490
30491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30493 if (!SWIG_IsOK(res1)) {
30494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30495 }
30496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30497 {
30498 arg2 = wxString_in_helper(obj1);
30499 if (arg2 == NULL) SWIG_fail;
30500 temp2 = true;
30501 }
30502 {
30503 arg3 = &temp3;
30504 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30505 }
30506 {
30507 PyThreadState* __tstate = wxPyBeginAllowThreads();
30508 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
30509 wxPyEndAllowThreads(__tstate);
30510 if (PyErr_Occurred()) SWIG_fail;
30511 }
30512 resultobj = SWIG_Py_Void();
30513 {
30514 if (temp2)
30515 delete arg2;
30516 }
30517 return resultobj;
30518fail:
30519 {
30520 if (temp2)
30521 delete arg2;
30522 }
30523 return NULL;
30524}
30525
30526
30527SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30528 PyObject *resultobj = 0;
30529 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30530 wxString *arg2 = 0 ;
30531 int arg3 ;
30532 int arg4 ;
30533 double arg5 ;
30534 void *argp1 = 0 ;
30535 int res1 = 0 ;
30536 bool temp2 = false ;
30537 int val3 ;
30538 int ecode3 = 0 ;
30539 int val4 ;
30540 int ecode4 = 0 ;
30541 double val5 ;
30542 int ecode5 = 0 ;
30543 PyObject * obj0 = 0 ;
30544 PyObject * obj1 = 0 ;
30545 PyObject * obj2 = 0 ;
30546 PyObject * obj3 = 0 ;
30547 PyObject * obj4 = 0 ;
30548 char * kwnames[] = {
30549 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
30550 };
30551
30552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30554 if (!SWIG_IsOK(res1)) {
30555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30556 }
30557 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30558 {
30559 arg2 = wxString_in_helper(obj1);
30560 if (arg2 == NULL) SWIG_fail;
30561 temp2 = true;
30562 }
30563 ecode3 = SWIG_AsVal_int(obj2, &val3);
30564 if (!SWIG_IsOK(ecode3)) {
30565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
30566 }
30567 arg3 = static_cast< int >(val3);
30568 ecode4 = SWIG_AsVal_int(obj3, &val4);
30569 if (!SWIG_IsOK(ecode4)) {
30570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
30571 }
30572 arg4 = static_cast< int >(val4);
30573 ecode5 = SWIG_AsVal_double(obj4, &val5);
30574 if (!SWIG_IsOK(ecode5)) {
30575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
30576 }
30577 arg5 = static_cast< double >(val5);
30578 {
30579 PyThreadState* __tstate = wxPyBeginAllowThreads();
30580 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
30581 wxPyEndAllowThreads(__tstate);
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 resultobj = SWIG_Py_Void();
30585 {
30586 if (temp2)
30587 delete arg2;
30588 }
30589 return resultobj;
30590fail:
30591 {
30592 if (temp2)
30593 delete arg2;
30594 }
30595 return NULL;
30596}
30597
30598
30599SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30600 PyObject *resultobj = 0;
30601 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30602 wxString *arg2 = 0 ;
30603 wxPoint *arg3 = 0 ;
30604 double arg4 ;
30605 void *argp1 = 0 ;
30606 int res1 = 0 ;
30607 bool temp2 = false ;
30608 wxPoint temp3 ;
30609 double val4 ;
30610 int ecode4 = 0 ;
30611 PyObject * obj0 = 0 ;
30612 PyObject * obj1 = 0 ;
30613 PyObject * obj2 = 0 ;
30614 PyObject * obj3 = 0 ;
30615 char * kwnames[] = {
30616 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
30617 };
30618
30619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30621 if (!SWIG_IsOK(res1)) {
30622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30623 }
30624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30625 {
30626 arg2 = wxString_in_helper(obj1);
30627 if (arg2 == NULL) SWIG_fail;
30628 temp2 = true;
30629 }
30630 {
30631 arg3 = &temp3;
30632 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30633 }
30634 ecode4 = SWIG_AsVal_double(obj3, &val4);
30635 if (!SWIG_IsOK(ecode4)) {
30636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
30637 }
30638 arg4 = static_cast< double >(val4);
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
30642 wxPyEndAllowThreads(__tstate);
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 resultobj = SWIG_Py_Void();
30646 {
30647 if (temp2)
30648 delete arg2;
30649 }
30650 return resultobj;
30651fail:
30652 {
30653 if (temp2)
30654 delete arg2;
30655 }
30656 return NULL;
30657}
30658
30659
30660SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30661 PyObject *resultobj = 0;
30662 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30663 int arg2 ;
30664 wxPoint *arg3 = (wxPoint *) 0 ;
30665 int arg4 = (int) 0 ;
30666 int arg5 = (int) 0 ;
30667 void *argp1 = 0 ;
30668 int res1 = 0 ;
30669 int val4 ;
30670 int ecode4 = 0 ;
30671 int val5 ;
30672 int ecode5 = 0 ;
30673 PyObject * obj0 = 0 ;
30674 PyObject * obj1 = 0 ;
30675 PyObject * obj2 = 0 ;
30676 PyObject * obj3 = 0 ;
30677 char * kwnames[] = {
30678 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
30679 };
30680
30681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30683 if (!SWIG_IsOK(res1)) {
30684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30685 }
30686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30687 {
30688 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30689 if (arg3 == NULL) SWIG_fail;
30690 }
30691 if (obj2) {
30692 ecode4 = SWIG_AsVal_int(obj2, &val4);
30693 if (!SWIG_IsOK(ecode4)) {
30694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
30695 }
30696 arg4 = static_cast< int >(val4);
30697 }
30698 if (obj3) {
30699 ecode5 = SWIG_AsVal_int(obj3, &val5);
30700 if (!SWIG_IsOK(ecode5)) {
30701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
30702 }
30703 arg5 = static_cast< int >(val5);
30704 }
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_Py_Void();
30712 {
30713 if (arg3) delete [] arg3;
30714 }
30715 return resultobj;
30716fail:
30717 {
30718 if (arg3) delete [] arg3;
30719 }
30720 return NULL;
30721}
30722
30723
30724SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30725 PyObject *resultobj = 0;
30726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30727 int arg2 ;
30728 wxPoint *arg3 = (wxPoint *) 0 ;
30729 int arg4 = (int) 0 ;
30730 int arg5 = (int) 0 ;
30731 int arg6 = (int) wxODDEVEN_RULE ;
30732 void *argp1 = 0 ;
30733 int res1 = 0 ;
30734 int val4 ;
30735 int ecode4 = 0 ;
30736 int val5 ;
30737 int ecode5 = 0 ;
30738 int val6 ;
30739 int ecode6 = 0 ;
30740 PyObject * obj0 = 0 ;
30741 PyObject * obj1 = 0 ;
30742 PyObject * obj2 = 0 ;
30743 PyObject * obj3 = 0 ;
30744 PyObject * obj4 = 0 ;
30745 char * kwnames[] = {
30746 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
30747 };
30748
30749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30751 if (!SWIG_IsOK(res1)) {
30752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30753 }
30754 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30755 {
30756 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30757 if (arg3 == NULL) SWIG_fail;
30758 }
30759 if (obj2) {
30760 ecode4 = SWIG_AsVal_int(obj2, &val4);
30761 if (!SWIG_IsOK(ecode4)) {
30762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
30763 }
30764 arg4 = static_cast< int >(val4);
30765 }
30766 if (obj3) {
30767 ecode5 = SWIG_AsVal_int(obj3, &val5);
30768 if (!SWIG_IsOK(ecode5)) {
30769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
30770 }
30771 arg5 = static_cast< int >(val5);
30772 }
30773 if (obj4) {
30774 ecode6 = SWIG_AsVal_int(obj4, &val6);
30775 if (!SWIG_IsOK(ecode6)) {
30776 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
30777 }
30778 arg6 = static_cast< int >(val6);
30779 }
30780 {
30781 PyThreadState* __tstate = wxPyBeginAllowThreads();
30782 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 resultobj = SWIG_Py_Void();
30787 {
30788 if (arg3) delete [] arg3;
30789 }
30790 return resultobj;
30791fail:
30792 {
30793 if (arg3) delete [] arg3;
30794 }
30795 return NULL;
30796}
30797
30798
30799SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30800 PyObject *resultobj = 0;
30801 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30802 wxString *arg2 = 0 ;
30803 wxRect *arg3 = 0 ;
30804 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30805 int arg5 = (int) -1 ;
30806 void *argp1 = 0 ;
30807 int res1 = 0 ;
30808 bool temp2 = false ;
30809 wxRect temp3 ;
30810 int val4 ;
30811 int ecode4 = 0 ;
30812 int val5 ;
30813 int ecode5 = 0 ;
30814 PyObject * obj0 = 0 ;
30815 PyObject * obj1 = 0 ;
30816 PyObject * obj2 = 0 ;
30817 PyObject * obj3 = 0 ;
30818 PyObject * obj4 = 0 ;
30819 char * kwnames[] = {
30820 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30821 };
30822
30823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30825 if (!SWIG_IsOK(res1)) {
30826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30827 }
30828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30829 {
30830 arg2 = wxString_in_helper(obj1);
30831 if (arg2 == NULL) SWIG_fail;
30832 temp2 = true;
30833 }
30834 {
30835 arg3 = &temp3;
30836 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30837 }
30838 if (obj3) {
30839 ecode4 = SWIG_AsVal_int(obj3, &val4);
30840 if (!SWIG_IsOK(ecode4)) {
30841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
30842 }
30843 arg4 = static_cast< int >(val4);
30844 }
30845 if (obj4) {
30846 ecode5 = SWIG_AsVal_int(obj4, &val5);
30847 if (!SWIG_IsOK(ecode5)) {
30848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
30849 }
30850 arg5 = static_cast< int >(val5);
30851 }
30852 {
30853 PyThreadState* __tstate = wxPyBeginAllowThreads();
30854 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
30855 wxPyEndAllowThreads(__tstate);
30856 if (PyErr_Occurred()) SWIG_fail;
30857 }
30858 resultobj = SWIG_Py_Void();
30859 {
30860 if (temp2)
30861 delete arg2;
30862 }
30863 return resultobj;
30864fail:
30865 {
30866 if (temp2)
30867 delete arg2;
30868 }
30869 return NULL;
30870}
30871
30872
30873SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30874 PyObject *resultobj = 0;
30875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30876 wxString *arg2 = 0 ;
30877 wxBitmap *arg3 = 0 ;
30878 wxRect *arg4 = 0 ;
30879 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30880 int arg6 = (int) -1 ;
30881 void *argp1 = 0 ;
30882 int res1 = 0 ;
30883 bool temp2 = false ;
30884 void *argp3 = 0 ;
30885 int res3 = 0 ;
30886 wxRect temp4 ;
30887 int val5 ;
30888 int ecode5 = 0 ;
30889 int val6 ;
30890 int ecode6 = 0 ;
30891 PyObject * obj0 = 0 ;
30892 PyObject * obj1 = 0 ;
30893 PyObject * obj2 = 0 ;
30894 PyObject * obj3 = 0 ;
30895 PyObject * obj4 = 0 ;
30896 PyObject * obj5 = 0 ;
30897 char * kwnames[] = {
30898 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30899 };
30900
30901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30903 if (!SWIG_IsOK(res1)) {
30904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30905 }
30906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30907 {
30908 arg2 = wxString_in_helper(obj1);
30909 if (arg2 == NULL) SWIG_fail;
30910 temp2 = true;
30911 }
30912 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30913 if (!SWIG_IsOK(res3)) {
30914 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30915 }
30916 if (!argp3) {
30917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30918 }
30919 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30920 {
30921 arg4 = &temp4;
30922 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30923 }
30924 if (obj4) {
30925 ecode5 = SWIG_AsVal_int(obj4, &val5);
30926 if (!SWIG_IsOK(ecode5)) {
30927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30928 }
30929 arg5 = static_cast< int >(val5);
30930 }
30931 if (obj5) {
30932 ecode6 = SWIG_AsVal_int(obj5, &val6);
30933 if (!SWIG_IsOK(ecode6)) {
30934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30935 }
30936 arg6 = static_cast< int >(val6);
30937 }
30938 {
30939 PyThreadState* __tstate = wxPyBeginAllowThreads();
30940 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30941 wxPyEndAllowThreads(__tstate);
30942 if (PyErr_Occurred()) SWIG_fail;
30943 }
30944 resultobj = SWIG_Py_Void();
30945 {
30946 if (temp2)
30947 delete arg2;
30948 }
30949 return resultobj;
30950fail:
30951 {
30952 if (temp2)
30953 delete arg2;
30954 }
30955 return NULL;
30956}
30957
30958
30959SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30960 PyObject *resultobj = 0;
30961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30962 int arg2 ;
30963 wxPoint *arg3 = (wxPoint *) 0 ;
30964 void *argp1 = 0 ;
30965 int res1 = 0 ;
30966 PyObject * obj0 = 0 ;
30967 PyObject * obj1 = 0 ;
30968 char * kwnames[] = {
30969 (char *) "self",(char *) "points", NULL
30970 };
30971
30972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30974 if (!SWIG_IsOK(res1)) {
30975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30976 }
30977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30978 {
30979 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30980 if (arg3 == NULL) SWIG_fail;
30981 }
30982 {
30983 PyThreadState* __tstate = wxPyBeginAllowThreads();
30984 (arg1)->DrawSpline(arg2,arg3);
30985 wxPyEndAllowThreads(__tstate);
30986 if (PyErr_Occurred()) SWIG_fail;
30987 }
30988 resultobj = SWIG_Py_Void();
30989 {
30990 if (arg3) delete [] arg3;
30991 }
30992 return resultobj;
30993fail:
30994 {
30995 if (arg3) delete [] arg3;
30996 }
30997 return NULL;
30998}
30999
31000
31001SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31002 PyObject *resultobj = 0;
31003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31004 void *argp1 = 0 ;
31005 int res1 = 0 ;
31006 PyObject *swig_obj[1] ;
31007
31008 if (!args) SWIG_fail;
31009 swig_obj[0] = args;
31010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31011 if (!SWIG_IsOK(res1)) {
31012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31013 }
31014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31015 {
31016 PyThreadState* __tstate = wxPyBeginAllowThreads();
31017 (arg1)->Clear();
31018 wxPyEndAllowThreads(__tstate);
31019 if (PyErr_Occurred()) SWIG_fail;
31020 }
31021 resultobj = SWIG_Py_Void();
31022 return resultobj;
31023fail:
31024 return NULL;
31025}
31026
31027
31028SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31029 PyObject *resultobj = 0;
31030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31031 wxFont *arg2 = 0 ;
31032 void *argp1 = 0 ;
31033 int res1 = 0 ;
31034 void *argp2 = 0 ;
31035 int res2 = 0 ;
31036 PyObject * obj0 = 0 ;
31037 PyObject * obj1 = 0 ;
31038 char * kwnames[] = {
31039 (char *) "self",(char *) "font", NULL
31040 };
31041
31042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31044 if (!SWIG_IsOK(res1)) {
31045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31046 }
31047 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31049 if (!SWIG_IsOK(res2)) {
31050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31051 }
31052 if (!argp2) {
31053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31054 }
31055 arg2 = reinterpret_cast< wxFont * >(argp2);
31056 {
31057 PyThreadState* __tstate = wxPyBeginAllowThreads();
31058 (arg1)->SetFont((wxFont const &)*arg2);
31059 wxPyEndAllowThreads(__tstate);
31060 if (PyErr_Occurred()) SWIG_fail;
31061 }
31062 resultobj = SWIG_Py_Void();
31063 return resultobj;
31064fail:
31065 return NULL;
31066}
31067
31068
31069SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31070 PyObject *resultobj = 0;
31071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31072 wxPen *arg2 = 0 ;
31073 void *argp1 = 0 ;
31074 int res1 = 0 ;
31075 void *argp2 = 0 ;
31076 int res2 = 0 ;
31077 PyObject * obj0 = 0 ;
31078 PyObject * obj1 = 0 ;
31079 char * kwnames[] = {
31080 (char *) "self",(char *) "pen", NULL
31081 };
31082
31083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
31084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31085 if (!SWIG_IsOK(res1)) {
31086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31087 }
31088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31090 if (!SWIG_IsOK(res2)) {
31091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31092 }
31093 if (!argp2) {
31094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31095 }
31096 arg2 = reinterpret_cast< wxPen * >(argp2);
31097 {
31098 PyThreadState* __tstate = wxPyBeginAllowThreads();
31099 (arg1)->SetPen((wxPen const &)*arg2);
31100 wxPyEndAllowThreads(__tstate);
31101 if (PyErr_Occurred()) SWIG_fail;
31102 }
31103 resultobj = SWIG_Py_Void();
31104 return resultobj;
31105fail:
31106 return NULL;
31107}
31108
31109
31110SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31111 PyObject *resultobj = 0;
31112 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31113 wxBrush *arg2 = 0 ;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 void *argp2 = 0 ;
31117 int res2 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 char * kwnames[] = {
31121 (char *) "self",(char *) "brush", NULL
31122 };
31123
31124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31126 if (!SWIG_IsOK(res1)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31128 }
31129 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31131 if (!SWIG_IsOK(res2)) {
31132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31133 }
31134 if (!argp2) {
31135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31136 }
31137 arg2 = reinterpret_cast< wxBrush * >(argp2);
31138 {
31139 PyThreadState* __tstate = wxPyBeginAllowThreads();
31140 (arg1)->SetBrush((wxBrush const &)*arg2);
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 resultobj = SWIG_Py_Void();
31145 return resultobj;
31146fail:
31147 return NULL;
31148}
31149
31150
31151SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31152 PyObject *resultobj = 0;
31153 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31154 wxBrush *arg2 = 0 ;
31155 void *argp1 = 0 ;
31156 int res1 = 0 ;
31157 void *argp2 = 0 ;
31158 int res2 = 0 ;
31159 PyObject * obj0 = 0 ;
31160 PyObject * obj1 = 0 ;
31161 char * kwnames[] = {
31162 (char *) "self",(char *) "brush", NULL
31163 };
31164
31165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31167 if (!SWIG_IsOK(res1)) {
31168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31169 }
31170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31172 if (!SWIG_IsOK(res2)) {
31173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31174 }
31175 if (!argp2) {
31176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31177 }
31178 arg2 = reinterpret_cast< wxBrush * >(argp2);
31179 {
31180 PyThreadState* __tstate = wxPyBeginAllowThreads();
31181 (arg1)->SetBackground((wxBrush const &)*arg2);
31182 wxPyEndAllowThreads(__tstate);
31183 if (PyErr_Occurred()) SWIG_fail;
31184 }
31185 resultobj = SWIG_Py_Void();
31186 return resultobj;
31187fail:
31188 return NULL;
31189}
31190
31191
31192SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31193 PyObject *resultobj = 0;
31194 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31195 int arg2 ;
31196 void *argp1 = 0 ;
31197 int res1 = 0 ;
31198 int val2 ;
31199 int ecode2 = 0 ;
31200 PyObject * obj0 = 0 ;
31201 PyObject * obj1 = 0 ;
31202 char * kwnames[] = {
31203 (char *) "self",(char *) "mode", NULL
31204 };
31205
31206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
31207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31208 if (!SWIG_IsOK(res1)) {
31209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31210 }
31211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31212 ecode2 = SWIG_AsVal_int(obj1, &val2);
31213 if (!SWIG_IsOK(ecode2)) {
31214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31215 }
31216 arg2 = static_cast< int >(val2);
31217 {
31218 PyThreadState* __tstate = wxPyBeginAllowThreads();
31219 (arg1)->SetBackgroundMode(arg2);
31220 wxPyEndAllowThreads(__tstate);
31221 if (PyErr_Occurred()) SWIG_fail;
31222 }
31223 resultobj = SWIG_Py_Void();
31224 return resultobj;
31225fail:
31226 return NULL;
31227}
31228
31229
31230SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31231 PyObject *resultobj = 0;
31232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31233 wxPalette *arg2 = 0 ;
31234 void *argp1 = 0 ;
31235 int res1 = 0 ;
31236 void *argp2 = 0 ;
31237 int res2 = 0 ;
31238 PyObject * obj0 = 0 ;
31239 PyObject * obj1 = 0 ;
31240 char * kwnames[] = {
31241 (char *) "self",(char *) "palette", NULL
31242 };
31243
31244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31246 if (!SWIG_IsOK(res1)) {
31247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31248 }
31249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31251 if (!SWIG_IsOK(res2)) {
31252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31253 }
31254 if (!argp2) {
31255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31256 }
31257 arg2 = reinterpret_cast< wxPalette * >(argp2);
31258 {
31259 PyThreadState* __tstate = wxPyBeginAllowThreads();
31260 (arg1)->SetPalette((wxPalette const &)*arg2);
31261 wxPyEndAllowThreads(__tstate);
31262 if (PyErr_Occurred()) SWIG_fail;
31263 }
31264 resultobj = SWIG_Py_Void();
31265 return resultobj;
31266fail:
31267 return NULL;
31268}
31269
31270
31271SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31272 PyObject *resultobj = 0;
31273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31274 wxColour *arg2 = 0 ;
31275 void *argp1 = 0 ;
31276 int res1 = 0 ;
31277 wxColour temp2 ;
31278 PyObject * obj0 = 0 ;
31279 PyObject * obj1 = 0 ;
31280 char * kwnames[] = {
31281 (char *) "self",(char *) "colour", NULL
31282 };
31283
31284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
31285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31286 if (!SWIG_IsOK(res1)) {
31287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31288 }
31289 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31290 {
31291 arg2 = &temp2;
31292 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31293 }
31294 {
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 (arg1)->SetTextForeground((wxColour const &)*arg2);
31297 wxPyEndAllowThreads(__tstate);
31298 if (PyErr_Occurred()) SWIG_fail;
31299 }
31300 resultobj = SWIG_Py_Void();
31301 return resultobj;
31302fail:
31303 return NULL;
31304}
31305
31306
31307SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31308 PyObject *resultobj = 0;
31309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31310 wxColour *arg2 = 0 ;
31311 void *argp1 = 0 ;
31312 int res1 = 0 ;
31313 wxColour temp2 ;
31314 PyObject * obj0 = 0 ;
31315 PyObject * obj1 = 0 ;
31316 char * kwnames[] = {
31317 (char *) "self",(char *) "colour", NULL
31318 };
31319
31320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31322 if (!SWIG_IsOK(res1)) {
31323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31324 }
31325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31326 {
31327 arg2 = &temp2;
31328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31329 }
31330 {
31331 PyThreadState* __tstate = wxPyBeginAllowThreads();
31332 (arg1)->SetTextBackground((wxColour const &)*arg2);
31333 wxPyEndAllowThreads(__tstate);
31334 if (PyErr_Occurred()) SWIG_fail;
31335 }
31336 resultobj = SWIG_Py_Void();
31337 return resultobj;
31338fail:
31339 return NULL;
31340}
31341
31342
31343SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31344 PyObject *resultobj = 0;
31345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31346 int arg2 ;
31347 void *argp1 = 0 ;
31348 int res1 = 0 ;
31349 int val2 ;
31350 int ecode2 = 0 ;
31351 PyObject * obj0 = 0 ;
31352 PyObject * obj1 = 0 ;
31353 char * kwnames[] = {
31354 (char *) "self",(char *) "function", NULL
31355 };
31356
31357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
31358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31359 if (!SWIG_IsOK(res1)) {
31360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31361 }
31362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31363 ecode2 = SWIG_AsVal_int(obj1, &val2);
31364 if (!SWIG_IsOK(ecode2)) {
31365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
31366 }
31367 arg2 = static_cast< int >(val2);
31368 {
31369 PyThreadState* __tstate = wxPyBeginAllowThreads();
31370 (arg1)->SetLogicalFunction(arg2);
31371 wxPyEndAllowThreads(__tstate);
31372 if (PyErr_Occurred()) SWIG_fail;
31373 }
31374 resultobj = SWIG_Py_Void();
31375 return resultobj;
31376fail:
31377 return NULL;
31378}
31379
31380
31381SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31382 PyObject *obj;
31383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31384 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
31385 return SWIG_Py_Void();
31386}
31387
31388SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31389 return SWIG_Python_InitShadowInstance(args);
31390}
31391
31392static PyMethodDef SwigMethods[] = {
31393 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
31394 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
31395 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
31396 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
31397 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
31398 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
31399 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
31400 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31401 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
31402 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
31403 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
31404 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 31405 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
27e45892
RD
31406 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
31407 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31408 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31409 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31410 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
31411 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
31412 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31413 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 31414 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
31415 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
31416 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
31417 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
31418 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
31419 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
31420 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31421 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
31422 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
31423 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
31424 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
31425 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
31426 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
31427 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
31428 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
31429 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
31430 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
31431 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
31432 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
31433 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
31434 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
31435 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31436 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
31437 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31438 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31439 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31440 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
31441 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
31442 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31443 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31444 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
31445 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
31446 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
31447 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31448 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
31449 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31450 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31451 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
31452 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
31453 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
31454 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
31455 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
31456 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
31457 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
31458 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
31459 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
31460 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
31461 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31462 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
31463 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31464 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31465 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31466 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31467 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
31468 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
31469 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
31470 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
31471 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
31472 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
31473 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
31474 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
31475 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
31476 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
31477 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31478 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
31479 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
31480 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
31481 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31482 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31483 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31484 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31485 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31486 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
31487 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31488 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
31489 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
31490 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
31491 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
31492 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
31493 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
31494 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
31495 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
31496 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
31497 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
31498 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
31499 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
31500 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
31501 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
31502 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
31503 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
31504 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
31505 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
31506 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
31507 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
31508 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31509 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
31510 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
31511 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31512 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31513 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31514 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31515 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31516 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
31517 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
31518 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
31519 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
31520 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
31521 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
31522 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
31523 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
31524 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
31525 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
31526 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
31527 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
31528 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
31529 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
31530 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
31531 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31532 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
31533 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
31534 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
31535 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31536 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
31537 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
31538 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
31539 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
31540 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
31541 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
31542 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
31543 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
31544 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
31545 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
31546 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31547 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31548 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
31549 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
31550 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
31551 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
31552 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
31553 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
31554 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
31555 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
31556 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31557 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
31558 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
31559 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
31560 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
31561 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
31562 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
31563 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
31564 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
31565 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
31566 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
31567 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
31568 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
31569 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31570 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31571 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
31572 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31573 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
31574 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31575 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
31576 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
31577 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
31578 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
31579 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31580 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
31581 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
31582 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
31583 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
31584 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
31585 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31586 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31587 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
31588 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
31589 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
31590 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
31591 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
31592 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31593 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
31594 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
31595 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
31596 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
31597 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
31598 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31599 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 31600 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
31601 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
31602 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31603 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31604 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
31605 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
31606 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31607 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
31608 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
31609 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31610 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
31611 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31612 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
31613 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
31614 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
31615 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
31616 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
31617 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
31618 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
31619 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
31620 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
31621 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
31622 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
31623 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
31624 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
31625 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
31626 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
31627 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
31628 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
31629 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
31630 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
31631 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
31632 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
31633 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
31634 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
31635 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
31636 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
31637 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
31638 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
31639 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
31640 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
31641 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31642 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31643 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31644 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31645 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31646 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31647 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31648 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31649 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
31650 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
31651 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
31652 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
31653 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
31654 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
31655 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
31656 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
31657 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
31658 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
31659 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
31660 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
31661 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
31662 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
31663 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
31664 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
31665 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31666 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31667 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
31668 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
31669 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
31670 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31671 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31672 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
31673 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31674 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
31675 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
31676 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
31677 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
31678 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
31679 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31680 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
31681 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
31682 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
31683 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
31684 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
31685 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
31686 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
31687 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31688 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
31689 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
31690 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31691 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31692 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
31693 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
31694 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
31695 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
31696 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
31697 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
31698 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
31699 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
31700 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
31701 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
31702 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
31703 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
31704 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
31705 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
31706 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
31707 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
31708 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31709 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
31710 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
31711 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
31712 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
31713 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
31714 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
31715 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31716 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31717 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
31718 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
31719 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
31720 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
31721 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
31722 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
31723 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
31724 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
31725 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
31726 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
31727 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
31728 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
31729 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
31730 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31731 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
31732 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
31733 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
31734 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
31735 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
31736 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
31737 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
31738 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
31739 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
31740 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
31741 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
31742 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
31743 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
31744 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
31745 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
31746 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
31747 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
31748 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
31749 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
31750 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
31751 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
31752 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
31753 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
31754 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
31755 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
31756 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
31757 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
31758 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 31759 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
31760 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
31761 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31762 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
31763 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31764 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
31765 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
31766 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
31767 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
31768 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
31769 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
31770 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
31771 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
31772 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
31773 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
31774 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
31775 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
31776 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
31777 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
31778 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
31779 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
31780 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
31781 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
31782 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31783 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
31784 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
31785 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
31786 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
31787 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
31788 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31789 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31790 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
31791 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
31792 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
31793 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31794 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31795 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31796 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31797 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31798 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31799 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31800 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31801 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31802 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31803 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31804 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31805 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31806 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31807 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31808 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31809 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31810 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31811 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31812 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31813 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31814 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31815 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31816 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31817 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31818 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31819 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31820 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31821 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31822 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31823 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31824 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31825 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
31826 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31827 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31828 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31829 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
31830 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
31831 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31832 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31833 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31834 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31835 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31836 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
31837 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
31838 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
31839 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
31840 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
31841 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31842 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31843 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31844 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31845 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31846 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31847 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
31848 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
31849 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
31850 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
31851 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
31852 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31853 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31854 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
31855 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
31856 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
31857 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
31858 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
31859 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
31860 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
31861 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
31862 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31863 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31864 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
31865 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
31866 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
31867 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
31868 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
31869 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
31870 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
31871 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
31872 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
31873 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
31874 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
31875 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
31876 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
31877 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
31878 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
31879 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
31880 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31881 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31882 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31883 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31884 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31885 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31886 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31887 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31888 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31889 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31890 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31891 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31892 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31893 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31894 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31895 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31896 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31897 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31898 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31899 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31900 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31901 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31902 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31903 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31904 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31905 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31906 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31907 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31908 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31909 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31910 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31911 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31912 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31913 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31914 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31915 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31916 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31917 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31918 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31919 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31920 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31921 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31922 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31923 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31924 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31925 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31926 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31927 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31928 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31929 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31930 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31931 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31932 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31933 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31934 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31935 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31936 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31937 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31938 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31939 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31940 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31941 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31942 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31943 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31944 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31945 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31946 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31947 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31948 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31949 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31950 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31951 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31952 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31953 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31954 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
31955 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
31956 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
31957 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
31958 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
31959 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
31960 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31961 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31962 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31963 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
31964 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31965 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31966 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31967 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31968 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31969 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31970 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31971 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31972 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31973 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31974 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31975 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31976 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31977 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31978 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31979 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31980 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31981 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31982 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31983 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
31984 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31985 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31986 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31987 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31988 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31989 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31990 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31991 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31992 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31993 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31994 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31995 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31996 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31997 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31998 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 31999 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 32000 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 32001 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 32002 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 32003 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 32004 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 32005 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 32006 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
32007 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
32008 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
32009 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
32010 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
32011 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
32012 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
32013 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
32014 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
32015 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
32016 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
32017 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
32018 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
32019 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
32020 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
32021 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
32022 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
32023 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
32024 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
32025 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
32026 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
32027 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
32028 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
32029 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
32030 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32031 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
32032 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32033 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32034 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32035 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
32036 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32037 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
32038 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
32039 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
32040 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
32041 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
32042 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
32043 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
32044 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
32045 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
32046 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
32047 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
32048 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
32049 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
32050 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
32051 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
32052 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
32053 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
32054 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
32055 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
32056 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
32057 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
32058 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
32059 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
32060 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
32061 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
32062 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
32063 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
32064 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32065 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
32066 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
32067 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
32068 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
32069 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
32070 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
32071 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
32072 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
32073 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
32074 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
32075 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
32076 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
32077 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
32078 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
32079 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
32080 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
32081 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
32082 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
32083 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
32084 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
32085 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
32086 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32087 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
32088 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
32089 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
32090 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
32091 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
32092 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
32093 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
32094 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
32095 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
32096 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
32097 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
32098 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
32099 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32100 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32101 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32102 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
32103 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
32104 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32105 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32106 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32107 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32108 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32109 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32110 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32111 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32112 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32113 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32114 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32115 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32116 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32117 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32118 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32119 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32120 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32121 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32122 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32123 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32124 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32125 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32126 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32127 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32128 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32129 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32130 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32131 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32132 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32133 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32134 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32135 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32136 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32137 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32138 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32139 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32140 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32141 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32142 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32143 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
32144 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32145 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32146 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32147 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32148 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32149 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32150 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32151 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32152 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32153 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
32154 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
32155 { NULL, NULL, 0, NULL }
32156};
32157
32158
32159/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32160
32161static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
32162 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
32163}
32164static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
32165 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
32166}
fc46b7f3
RD
32167static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
32168 return (void *)((wxLocale *) ((wxPyLocale *) x));
32169}
1bd55598
RD
32170static void *_p_wxIconTo_p_wxGDIObject(void *x) {
32171 return (void *)((wxGDIObject *) ((wxIcon *) x));
32172}
32173static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
32174 return (void *)((wxGDIObject *) ((wxPalette *) x));
32175}
32176static void *_p_wxPenTo_p_wxGDIObject(void *x) {
32177 return (void *)((wxGDIObject *) ((wxPen *) x));
32178}
32179static void *_p_wxFontTo_p_wxGDIObject(void *x) {
32180 return (void *)((wxGDIObject *) ((wxFont *) x));
32181}
32182static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
32183 return (void *)((wxGDIObject *) ((wxCursor *) x));
32184}
32185static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
32186 return (void *)((wxGDIObject *) ((wxBitmap *) x));
32187}
32188static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
32189 return (void *)((wxGDIObject *) ((wxRegion *) x));
32190}
32191static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
32192 return (void *)((wxGDIObject *) ((wxBrush *) x));
32193}
32194static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
32195 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
32196}
32197static void *_p_wxScreenDCTo_p_wxDC(void *x) {
32198 return (void *)((wxDC *) ((wxScreenDC *) x));
32199}
32200static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
32201 return (void *)((wxDC *) ((wxMirrorDC *) x));
32202}
32203static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
32204 return (void *)((wxDC *) ((wxMemoryDC *) x));
32205}
32206static void *_p_wxWindowDCTo_p_wxDC(void *x) {
32207 return (void *)((wxDC *) ((wxWindowDC *) x));
32208}
32209static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
32210 return (void *)((wxDC *) ((wxMetaFileDC *) x));
32211}
32212static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
32213 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32214}
32215static void *_p_wxClientDCTo_p_wxDC(void *x) {
32216 return (void *)((wxDC *) ((wxClientDC *) x));
32217}
32218static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32219 return (void *)((wxDC *) ((wxPaintDC *) x));
32220}
32221static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32222 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32223}
32224static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32225 return (void *)((wxDC *) ((wxPrinterDC *) x));
32226}
da91cb0f
RD
32227static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32228 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32229}
32230static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32231 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32232}
32233static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32234 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32235}
1bd55598
RD
32236static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32237 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
32238}
32239static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32240 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32241}
32242static void *_p_wxPenTo_p_wxObject(void *x) {
32243 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
32244}
32245static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
32246 return (void *)((wxObject *) ((wxRegionIterator *) x));
32247}
1bd55598
RD
32248static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32249 return (void *)((wxObject *) ((wxSizerItem *) x));
32250}
34e0a3bb
RD
32251static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32252 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32253}
1bd55598
RD
32254static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32256}
32257static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32258 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32259}
32260static void *_p_wxIconTo_p_wxObject(void *x) {
32261 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
32262}
32263static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32264 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32265}
32266static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32267 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32268}
32269static void *_p_wxSizerTo_p_wxObject(void *x) {
32270 return (void *)((wxObject *) ((wxSizer *) x));
32271}
32272static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32273 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32274}
32275static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32277}
1bd55598
RD
32278static void *_p_wxEventTo_p_wxObject(void *x) {
32279 return (void *)((wxObject *) ((wxEvent *) x));
32280}
32281static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32282 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32283}
32284static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32285 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32286}
32287static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32288 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32289}
27e45892
RD
32290static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
32291 return (void *)((wxObject *) ((wxPseudoDC *) x));
32292}
2131d850
RD
32293static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
32294 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
32295}
1bd55598
RD
32296static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32297 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32298}
32299static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32300 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32301}
32302static void *_p_wxDCTo_p_wxObject(void *x) {
32303 return (void *)((wxObject *) ((wxDC *) x));
32304}
32305static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32306 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32307}
32308static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32309 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32310}
32311static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32312 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32313}
32314static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32315 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32316}
32317static void *_p_wxControlTo_p_wxObject(void *x) {
32318 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32319}
32320static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32321 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32322}
32323static void *_p_wxClientDCTo_p_wxObject(void *x) {
32324 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
32325}
32326static void *_p_wxFSFileTo_p_wxObject(void *x) {
32327 return (void *)((wxObject *) ((wxFSFile *) x));
32328}
32329static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
32330 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
32331}
32332static void *_p_wxRegionTo_p_wxObject(void *x) {
32333 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
32334}
32335static void *_p_wxPySizerTo_p_wxObject(void *x) {
32336 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32337}
32338static void *_p_wxWindowDCTo_p_wxObject(void *x) {
32339 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
32340}
32341static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
32342 return (void *)((wxObject *) ((wxGDIObject *) x));
32343}
32344static void *_p_wxEffectsTo_p_wxObject(void *x) {
32345 return (void *)((wxObject *) ((wxEffects *) x));
32346}
32347static void *_p_wxPyEventTo_p_wxObject(void *x) {
32348 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32349}
32350static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32351 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32352}
32353static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
32354 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
32355}
32356static void *_p_wxShowEventTo_p_wxObject(void *x) {
32357 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32358}
32359static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32360 return (void *)((wxObject *) ((wxMenuItem *) x));
32361}
32362static void *_p_wxDateEventTo_p_wxObject(void *x) {
32363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
32364}
32365static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32366 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32367}
32368static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32369 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32370}
32371static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32372 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32373}
32374static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32375 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32376}
32377static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32378 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32379}
32380static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32381 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32382}
32383static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32384 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32385}
32386static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32387 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32388}
32389static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32390 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32391}
32392static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32393 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32394}
32395static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32396 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32397}
32398static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32399 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32400}
32401static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32402 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32403}
32404static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32405 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32406}
32407static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32408 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32409}
32410static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32411 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32412}
32413static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32414 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32415}
32416static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
32417 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
32418}
32419static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32420 return (void *)((wxObject *) ((wxImageHandler *) x));
32421}
32422static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32423 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32424}
32425static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32426 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32427}
32428static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32429 return (void *)((wxObject *) ((wxEvtHandler *) x));
32430}
34e0a3bb
RD
32431static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
32432 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
32433}
1bd55598
RD
32434static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
32435 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32436}
32437static void *_p_wxPaintDCTo_p_wxObject(void *x) {
32438 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
32439}
32440static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
32441 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
32442}
32443static void *_p_wxScreenDCTo_p_wxObject(void *x) {
32444 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
32445}
32446static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
32447 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
32448}
32449static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32450 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32451}
32452static void *_p_wxImageTo_p_wxObject(void *x) {
32453 return (void *)((wxObject *) ((wxImage *) x));
32454}
32455static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32456 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32457}
32458static void *_p_wxPaletteTo_p_wxObject(void *x) {
32459 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
32460}
32461static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
32462 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
32463}
32464static void *_p_wxImageListTo_p_wxObject(void *x) {
32465 return (void *)((wxObject *) ((wxImageList *) x));
32466}
32467static void *_p_wxCursorTo_p_wxObject(void *x) {
32468 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
32469}
32470static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
32471 return (void *)((wxObject *) ((wxEncodingConverter *) x));
32472}
32473static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
32474 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
32475}
32476static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32477 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32478}
32479static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32480 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32481}
32482static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32483 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32484}
32485static void *_p_wxWindowTo_p_wxObject(void *x) {
32486 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32487}
32488static void *_p_wxMenuTo_p_wxObject(void *x) {
32489 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32490}
32491static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32492 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32493}
32494static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
32495 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
32496}
1bd55598
RD
32497static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32498 return (void *)((wxObject *) ((wxFileSystem *) x));
32499}
32500static void *_p_wxBitmapTo_p_wxObject(void *x) {
32501 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
32502}
32503static void *_p_wxMaskTo_p_wxObject(void *x) {
32504 return (void *)((wxObject *) ((wxMask *) x));
32505}
32506static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32507 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32508}
32509static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32510 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32511}
32512static void *_p_wxPyAppTo_p_wxObject(void *x) {
32513 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32514}
32515static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32516 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32517}
32518static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32519 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32520}
32521static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32522 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32523}
32524static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32525 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32526}
32527static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32528 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32529}
32530static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32531 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32532}
32533static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32534 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32535}
32536static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32537 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32538}
32539static void *_p_wxFontTo_p_wxObject(void *x) {
32540 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
32541}
32542static void *_p_wxBrushTo_p_wxObject(void *x) {
32543 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
32544}
32545static void *_p_wxMetaFileTo_p_wxObject(void *x) {
32546 return (void *)((wxObject *) ((wxMetaFile *) x));
32547}
32548static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32549 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32550}
32551static void *_p_wxColourTo_p_wxObject(void *x) {
32552 return (void *)((wxObject *) ((wxColour *) x));
32553}
1bd55598
RD
32554static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32555 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32556}
32557static void *_p_wxValidatorTo_p_wxObject(void *x) {
32558 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32559}
32560static void *_p_wxControlTo_p_wxWindow(void *x) {
32561 return (void *)((wxWindow *) ((wxControl *) x));
32562}
32563static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32564 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32565}
32566static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32567 return (void *)((wxWindow *) ((wxMenuBar *) x));
32568}
fc46b7f3
RD
32569static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
32570 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
32571}
32572static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
32573 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
32574}
32575static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598
RD
32576static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
32577static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
32578static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
32579static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
32580static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
32581static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
32582static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
32583static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
32584static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
32585static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
32586static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
32587static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
32588static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
32589static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 32590static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598
RD
32591static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
32592static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
32593static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
32594static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
32595static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
32596static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
32597static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
32598static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
32599static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
32600static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
32601static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
32602static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
da91cb0f 32603static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 32604static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
33d6fd3b 32605static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
32606static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
32607static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
32608static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
32609static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
32610static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
32611static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
32612static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
32613static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
32614static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
32615static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
32616static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
32617static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
32618static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
32619static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
32620static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
32621static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
32622static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
32623static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 32624static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 32625static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
32626static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
32627static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
32628static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
32629static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
32630static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
32631static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
32632static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
32633static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
32634static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
32635static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
32636static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
32637static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 32638static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
32639static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
32640static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
32641static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
32642static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
32643static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
32644static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
32645static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
32646static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
32647static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
32648static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
32649static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
32650static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
32651static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
32652static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
32653static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
32654static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
32655static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
32656static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
32657static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
32658static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
32659static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
32660static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
32661static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
32662static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
32663static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
32664static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
32665static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
32666static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
32667static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
32668static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
32669static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
32670static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
27e45892 32671static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 32672static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
32673static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
32674static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
32675static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 32676static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
32677static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
32678static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
32679static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
32680static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
32681static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
32682static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
32683static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
32684static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
32685static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
32686static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
32687static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
32688static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
32689static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
32690static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
32691static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
32692static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
32693static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
32694static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
32695static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
32696static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
32697static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
32698static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
32699static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
32700static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
32701static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
32702static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
32703static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 32704static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598
RD
32705static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
32706static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
32707static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
32708static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 32709static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 32710static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 32711static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598
RD
32712static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
32713static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
32714static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
32715static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
32716static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
32717static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
32718static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
32719static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 32720static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
32721static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
32722static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
32723static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
32724
32725static swig_type_info *swig_type_initial[] = {
fc46b7f3 32726 &_swigt__p_buffer,
1bd55598
RD
32727 &_swigt__p_char,
32728 &_swigt__p_double,
32729 &_swigt__p_form_ops_t,
32730 &_swigt__p_int,
32731 &_swigt__p_unsigned_char,
32732 &_swigt__p_unsigned_int,
32733 &_swigt__p_unsigned_long,
32734 &_swigt__p_wxANIHandler,
32735 &_swigt__p_wxAcceleratorTable,
32736 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
32737 &_swigt__p_wxAlphaPixelData,
32738 &_swigt__p_wxAlphaPixelData_Accessor,
1bd55598
RD
32739 &_swigt__p_wxBMPHandler,
32740 &_swigt__p_wxBitmap,
32741 &_swigt__p_wxBoxSizer,
32742 &_swigt__p_wxBrush,
32743 &_swigt__p_wxBrushList,
32744 &_swigt__p_wxBufferedDC,
32745 &_swigt__p_wxBufferedPaintDC,
32746 &_swigt__p_wxCURHandler,
fc46b7f3 32747 &_swigt__p_wxChar,
1bd55598
RD
32748 &_swigt__p_wxChildFocusEvent,
32749 &_swigt__p_wxClientDC,
2131d850 32750 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
32751 &_swigt__p_wxCloseEvent,
32752 &_swigt__p_wxColour,
32753 &_swigt__p_wxColourDatabase,
32754 &_swigt__p_wxCommandEvent,
32755 &_swigt__p_wxContextMenuEvent,
32756 &_swigt__p_wxControl,
32757 &_swigt__p_wxControlWithItems,
32758 &_swigt__p_wxCursor,
32759 &_swigt__p_wxDC,
32760 &_swigt__p_wxDash,
32761 &_swigt__p_wxDateEvent,
32762 &_swigt__p_wxDisplayChangedEvent,
32763 &_swigt__p_wxDropFilesEvent,
32764 &_swigt__p_wxDuplexMode,
32765 &_swigt__p_wxEffects,
32766 &_swigt__p_wxEncodingConverter,
32767 &_swigt__p_wxEraseEvent,
32768 &_swigt__p_wxEvent,
32769 &_swigt__p_wxEvtHandler,
32770 &_swigt__p_wxFSFile,
32771 &_swigt__p_wxFileSystem,
32772 &_swigt__p_wxFlexGridSizer,
32773 &_swigt__p_wxFocusEvent,
32774 &_swigt__p_wxFont,
32775 &_swigt__p_wxFontList,
32776 &_swigt__p_wxFontMapper,
32777 &_swigt__p_wxGBSizerItem,
da91cb0f 32778 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
32779 &_swigt__p_wxGDIObject,
32780 &_swigt__p_wxGIFHandler,
32781 &_swigt__p_wxGridBagSizer,
32782 &_swigt__p_wxGridSizer,
33d6fd3b 32783 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
32784 &_swigt__p_wxICOHandler,
32785 &_swigt__p_wxIcon,
32786 &_swigt__p_wxIconBundle,
32787 &_swigt__p_wxIconLocation,
32788 &_swigt__p_wxIconizeEvent,
32789 &_swigt__p_wxIdleEvent,
32790 &_swigt__p_wxImage,
32791 &_swigt__p_wxImageHandler,
32792 &_swigt__p_wxImageList,
32793 &_swigt__p_wxIndividualLayoutConstraint,
32794 &_swigt__p_wxInitDialogEvent,
32795 &_swigt__p_wxJPEGHandler,
32796 &_swigt__p_wxKeyEvent,
32797 &_swigt__p_wxLanguageInfo,
32798 &_swigt__p_wxLayoutConstraints,
32799 &_swigt__p_wxLocale,
32800 &_swigt__p_wxMask,
32801 &_swigt__p_wxMaximizeEvent,
32802 &_swigt__p_wxMemoryDC,
32803 &_swigt__p_wxMenu,
32804 &_swigt__p_wxMenuBar,
32805 &_swigt__p_wxMenuEvent,
32806 &_swigt__p_wxMenuItem,
32807 &_swigt__p_wxMetaFile,
32808 &_swigt__p_wxMetaFileDC,
32809 &_swigt__p_wxMirrorDC,
32810 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 32811 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
32812 &_swigt__p_wxMouseEvent,
32813 &_swigt__p_wxMoveEvent,
32814 &_swigt__p_wxNativeEncodingInfo,
32815 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
32816 &_swigt__p_wxNativePixelData,
32817 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
32818 &_swigt__p_wxNavigationKeyEvent,
32819 &_swigt__p_wxNcPaintEvent,
32820 &_swigt__p_wxNotifyEvent,
32821 &_swigt__p_wxObject,
32822 &_swigt__p_wxPCXHandler,
32823 &_swigt__p_wxPNGHandler,
32824 &_swigt__p_wxPNMHandler,
32825 &_swigt__p_wxPaintDC,
32826 &_swigt__p_wxPaintEvent,
32827 &_swigt__p_wxPalette,
32828 &_swigt__p_wxPaletteChangedEvent,
32829 &_swigt__p_wxPaperSize,
32830 &_swigt__p_wxPen,
32831 &_swigt__p_wxPenList,
fc46b7f3 32832 &_swigt__p_wxPixelDataBase,
1bd55598
RD
32833 &_swigt__p_wxPoint,
32834 &_swigt__p_wxPostScriptDC,
32835 &_swigt__p_wxPrintData,
32836 &_swigt__p_wxPrinterDC,
27e45892 32837 &_swigt__p_wxPseudoDC,
1bd55598
RD
32838 &_swigt__p_wxPyApp,
32839 &_swigt__p_wxPyCommandEvent,
32840 &_swigt__p_wxPyEvent,
32841 &_swigt__p_wxPyFontEnumerator,
32842 &_swigt__p_wxPyImageHandler,
fc46b7f3 32843 &_swigt__p_wxPyLocale,
1bd55598
RD
32844 &_swigt__p_wxPySizer,
32845 &_swigt__p_wxPyValidator,
32846 &_swigt__p_wxQueryNewPaletteEvent,
32847 &_swigt__p_wxRect,
32848 &_swigt__p_wxRegion,
32849 &_swigt__p_wxRegionIterator,
32850 &_swigt__p_wxRendererNative,
32851 &_swigt__p_wxRendererVersion,
32852 &_swigt__p_wxScreenDC,
32853 &_swigt__p_wxScrollEvent,
32854 &_swigt__p_wxScrollWinEvent,
32855 &_swigt__p_wxSetCursorEvent,
32856 &_swigt__p_wxShowEvent,
32857 &_swigt__p_wxSize,
32858 &_swigt__p_wxSizeEvent,
32859 &_swigt__p_wxSizer,
32860 &_swigt__p_wxSizerItem,
32861 &_swigt__p_wxSplitterRenderParams,
32862 &_swigt__p_wxStaticBoxSizer,
32863 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 32864 &_swigt__p_wxStockGDI,
1bd55598
RD
32865 &_swigt__p_wxString,
32866 &_swigt__p_wxSysColourChangedEvent,
32867 &_swigt__p_wxTIFFHandler,
32868 &_swigt__p_wxUpdateUIEvent,
32869 &_swigt__p_wxValidator,
32870 &_swigt__p_wxWindow,
32871 &_swigt__p_wxWindowCreateEvent,
32872 &_swigt__p_wxWindowDC,
32873 &_swigt__p_wxWindowDestroyEvent,
32874 &_swigt__p_wxXPMHandler,
32875};
32876
fc46b7f3 32877static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32878static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
32879static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
32880static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
32881static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
32882static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
32883static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
32884static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
32885static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
32886static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32887static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
32888static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
32889static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
32890static 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}};
32891static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 32892static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32893static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
32894static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
32895static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
32896static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
32897static 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}};
32898static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
32899static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
32900static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
32901static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
32902static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
32903static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
32904static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 32905static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
1bd55598 32906static 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}};
33d6fd3b 32907static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32908static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
32909static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
32910static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
32911static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32912static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32913static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 32914static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32915static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32916static 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}};
32917static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32918static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32919static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32920static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32921static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
32922static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32923static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 32924static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 32925static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 32926static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32927static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32928static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32929static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32930static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32931static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32932static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32933static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32934static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32935static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32936static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32937static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32938static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 32939static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32940static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32941static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32942static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32943static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32944static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32945static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32946static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32947static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32948static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32949static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32950static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32951static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32952static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32953static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32954static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32955static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32956static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32957static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32958static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32959static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32960static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32961static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32962static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32963static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32964static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32965static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32966static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32967static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32968static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32969static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32970static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32971static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 32972static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 32973static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32974static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32975static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32976static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 32977static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
32978static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32979static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32980static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32981static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32982static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32983static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32984static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32985static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32986static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32987static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32988static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32989static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32990static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32991static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32992static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32993static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32994static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32995static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32996static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32997static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32998static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32999static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 33000static 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}};
1bd55598
RD
33001static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
33002static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
33003static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
33004static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
33005static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 33006static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
33007static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
33008static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
33009static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
33010static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 33011static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 33012static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 33013static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
33014static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
33015static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
33016static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
33017static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
33018static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
33019static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
33020static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
33021static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 33022static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
33023static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
33024static 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}};
33025static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
33026
33027static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 33028 _swigc__p_buffer,
1bd55598
RD
33029 _swigc__p_char,
33030 _swigc__p_double,
33031 _swigc__p_form_ops_t,
33032 _swigc__p_int,
33033 _swigc__p_unsigned_char,
33034 _swigc__p_unsigned_int,
33035 _swigc__p_unsigned_long,
33036 _swigc__p_wxANIHandler,
33037 _swigc__p_wxAcceleratorTable,
33038 _swigc__p_wxActivateEvent,
fc46b7f3
RD
33039 _swigc__p_wxAlphaPixelData,
33040 _swigc__p_wxAlphaPixelData_Accessor,
1bd55598
RD
33041 _swigc__p_wxBMPHandler,
33042 _swigc__p_wxBitmap,
33043 _swigc__p_wxBoxSizer,
33044 _swigc__p_wxBrush,
33045 _swigc__p_wxBrushList,
33046 _swigc__p_wxBufferedDC,
33047 _swigc__p_wxBufferedPaintDC,
33048 _swigc__p_wxCURHandler,
fc46b7f3 33049 _swigc__p_wxChar,
1bd55598
RD
33050 _swigc__p_wxChildFocusEvent,
33051 _swigc__p_wxClientDC,
2131d850 33052 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
33053 _swigc__p_wxCloseEvent,
33054 _swigc__p_wxColour,
33055 _swigc__p_wxColourDatabase,
33056 _swigc__p_wxCommandEvent,
33057 _swigc__p_wxContextMenuEvent,
33058 _swigc__p_wxControl,
33059 _swigc__p_wxControlWithItems,
33060 _swigc__p_wxCursor,
33061 _swigc__p_wxDC,
33062 _swigc__p_wxDash,
33063 _swigc__p_wxDateEvent,
33064 _swigc__p_wxDisplayChangedEvent,
33065 _swigc__p_wxDropFilesEvent,
33066 _swigc__p_wxDuplexMode,
33067 _swigc__p_wxEffects,
33068 _swigc__p_wxEncodingConverter,
33069 _swigc__p_wxEraseEvent,
33070 _swigc__p_wxEvent,
33071 _swigc__p_wxEvtHandler,
33072 _swigc__p_wxFSFile,
33073 _swigc__p_wxFileSystem,
33074 _swigc__p_wxFlexGridSizer,
33075 _swigc__p_wxFocusEvent,
33076 _swigc__p_wxFont,
33077 _swigc__p_wxFontList,
33078 _swigc__p_wxFontMapper,
33079 _swigc__p_wxGBSizerItem,
da91cb0f 33080 _swigc__p_wxGDIObjListBase,
1bd55598
RD
33081 _swigc__p_wxGDIObject,
33082 _swigc__p_wxGIFHandler,
33083 _swigc__p_wxGridBagSizer,
33084 _swigc__p_wxGridSizer,
33d6fd3b 33085 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
33086 _swigc__p_wxICOHandler,
33087 _swigc__p_wxIcon,
33088 _swigc__p_wxIconBundle,
33089 _swigc__p_wxIconLocation,
33090 _swigc__p_wxIconizeEvent,
33091 _swigc__p_wxIdleEvent,
33092 _swigc__p_wxImage,
33093 _swigc__p_wxImageHandler,
33094 _swigc__p_wxImageList,
33095 _swigc__p_wxIndividualLayoutConstraint,
33096 _swigc__p_wxInitDialogEvent,
33097 _swigc__p_wxJPEGHandler,
33098 _swigc__p_wxKeyEvent,
33099 _swigc__p_wxLanguageInfo,
33100 _swigc__p_wxLayoutConstraints,
33101 _swigc__p_wxLocale,
33102 _swigc__p_wxMask,
33103 _swigc__p_wxMaximizeEvent,
33104 _swigc__p_wxMemoryDC,
33105 _swigc__p_wxMenu,
33106 _swigc__p_wxMenuBar,
33107 _swigc__p_wxMenuEvent,
33108 _swigc__p_wxMenuItem,
33109 _swigc__p_wxMetaFile,
33110 _swigc__p_wxMetaFileDC,
33111 _swigc__p_wxMirrorDC,
33112 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 33113 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
33114 _swigc__p_wxMouseEvent,
33115 _swigc__p_wxMoveEvent,
33116 _swigc__p_wxNativeEncodingInfo,
33117 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
33118 _swigc__p_wxNativePixelData,
33119 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
33120 _swigc__p_wxNavigationKeyEvent,
33121 _swigc__p_wxNcPaintEvent,
33122 _swigc__p_wxNotifyEvent,
33123 _swigc__p_wxObject,
33124 _swigc__p_wxPCXHandler,
33125 _swigc__p_wxPNGHandler,
33126 _swigc__p_wxPNMHandler,
33127 _swigc__p_wxPaintDC,
33128 _swigc__p_wxPaintEvent,
33129 _swigc__p_wxPalette,
33130 _swigc__p_wxPaletteChangedEvent,
33131 _swigc__p_wxPaperSize,
33132 _swigc__p_wxPen,
33133 _swigc__p_wxPenList,
fc46b7f3 33134 _swigc__p_wxPixelDataBase,
1bd55598
RD
33135 _swigc__p_wxPoint,
33136 _swigc__p_wxPostScriptDC,
33137 _swigc__p_wxPrintData,
33138 _swigc__p_wxPrinterDC,
27e45892 33139 _swigc__p_wxPseudoDC,
1bd55598
RD
33140 _swigc__p_wxPyApp,
33141 _swigc__p_wxPyCommandEvent,
33142 _swigc__p_wxPyEvent,
33143 _swigc__p_wxPyFontEnumerator,
33144 _swigc__p_wxPyImageHandler,
fc46b7f3 33145 _swigc__p_wxPyLocale,
1bd55598
RD
33146 _swigc__p_wxPySizer,
33147 _swigc__p_wxPyValidator,
33148 _swigc__p_wxQueryNewPaletteEvent,
33149 _swigc__p_wxRect,
33150 _swigc__p_wxRegion,
33151 _swigc__p_wxRegionIterator,
33152 _swigc__p_wxRendererNative,
33153 _swigc__p_wxRendererVersion,
33154 _swigc__p_wxScreenDC,
33155 _swigc__p_wxScrollEvent,
33156 _swigc__p_wxScrollWinEvent,
33157 _swigc__p_wxSetCursorEvent,
33158 _swigc__p_wxShowEvent,
33159 _swigc__p_wxSize,
33160 _swigc__p_wxSizeEvent,
33161 _swigc__p_wxSizer,
33162 _swigc__p_wxSizerItem,
33163 _swigc__p_wxSplitterRenderParams,
33164 _swigc__p_wxStaticBoxSizer,
33165 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 33166 _swigc__p_wxStockGDI,
1bd55598
RD
33167 _swigc__p_wxString,
33168 _swigc__p_wxSysColourChangedEvent,
33169 _swigc__p_wxTIFFHandler,
33170 _swigc__p_wxUpdateUIEvent,
33171 _swigc__p_wxValidator,
33172 _swigc__p_wxWindow,
33173 _swigc__p_wxWindowCreateEvent,
33174 _swigc__p_wxWindowDC,
33175 _swigc__p_wxWindowDestroyEvent,
33176 _swigc__p_wxXPMHandler,
33177};
33178
33179
33180/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33181
33182static swig_const_info swig_const_table[] = {
33183{0, 0, 0, 0.0, 0, 0}};
33184
33185#ifdef __cplusplus
33186}
33187#endif
33188/* -----------------------------------------------------------------------------
33189 * Type initialization:
33190 * This problem is tough by the requirement that no dynamic
33191 * memory is used. Also, since swig_type_info structures store pointers to
33192 * swig_cast_info structures and swig_cast_info structures store pointers back
33193 * to swig_type_info structures, we need some lookup code at initialization.
33194 * The idea is that swig generates all the structures that are needed.
33195 * The runtime then collects these partially filled structures.
33196 * The SWIG_InitializeModule function takes these initial arrays out of
33197 * swig_module, and does all the lookup, filling in the swig_module.types
33198 * array with the correct data and linking the correct swig_cast_info
33199 * structures together.
33200 *
33201 * The generated swig_type_info structures are assigned staticly to an initial
33202 * array. We just loop though that array, and handle each type individually.
33203 * First we lookup if this type has been already loaded, and if so, use the
33204 * loaded structure instead of the generated one. Then we have to fill in the
33205 * cast linked list. The cast data is initially stored in something like a
33206 * two-dimensional array. Each row corresponds to a type (there are the same
33207 * number of rows as there are in the swig_type_initial array). Each entry in
33208 * a column is one of the swig_cast_info structures for that type.
33209 * The cast_initial array is actually an array of arrays, because each row has
33210 * a variable number of columns. So to actually build the cast linked list,
33211 * we find the array of casts associated with the type, and loop through it
33212 * adding the casts to the list. The one last trick we need to do is making
33213 * sure the type pointer in the swig_cast_info struct is correct.
33214 *
33215 * First off, we lookup the cast->type name to see if it is already loaded.
33216 * There are three cases to handle:
33217 * 1) If the cast->type has already been loaded AND the type we are adding
33218 * casting info to has not been loaded (it is in this module), THEN we
33219 * replace the cast->type pointer with the type pointer that has already
33220 * been loaded.
33221 * 2) If BOTH types (the one we are adding casting info to, and the
33222 * cast->type) are loaded, THEN the cast info has already been loaded by
33223 * the previous module so we just ignore it.
33224 * 3) Finally, if cast->type has not already been loaded, then we add that
33225 * swig_cast_info to the linked list (because the cast->type) pointer will
33226 * be correct.
33227 * ----------------------------------------------------------------------------- */
33228
33229#ifdef __cplusplus
33230extern "C" {
33231#if 0
33232} /* c-mode */
33233#endif
33234#endif
33235
33236#if 0
33237#define SWIGRUNTIME_DEBUG
33238#endif
33239
33240SWIGRUNTIME void
33241SWIG_InitializeModule(void *clientdata) {
33242 size_t i;
33243 swig_module_info *module_head;
33244 static int init_run = 0;
33245
33246 clientdata = clientdata;
33247
33248 if (init_run) return;
33249 init_run = 1;
33250
33251 /* Initialize the swig_module */
33252 swig_module.type_initial = swig_type_initial;
33253 swig_module.cast_initial = swig_cast_initial;
33254
33255 /* Try and load any already created modules */
33256 module_head = SWIG_GetModule(clientdata);
33257 if (module_head) {
33258 swig_module.next = module_head->next;
33259 module_head->next = &swig_module;
33260 } else {
33261 /* This is the first module loaded */
33262 swig_module.next = &swig_module;
33263 SWIG_SetModule(clientdata, &swig_module);
33264 }
33265
33266 /* Now work on filling in swig_module.types */
33267#ifdef SWIGRUNTIME_DEBUG
33268 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
33269#endif
33270 for (i = 0; i < swig_module.size; ++i) {
33271 swig_type_info *type = 0;
33272 swig_type_info *ret;
33273 swig_cast_info *cast;
33274
33275#ifdef SWIGRUNTIME_DEBUG
33276 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33277#endif
33278
33279 /* if there is another module already loaded */
33280 if (swig_module.next != &swig_module) {
33281 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 33282 }
1bd55598
RD
33283 if (type) {
33284 /* Overwrite clientdata field */
33285#ifdef SWIGRUNTIME_DEBUG
33286 printf("SWIG_InitializeModule: found type %s\n", type->name);
33287#endif
33288 if (swig_module.type_initial[i]->clientdata) {
33289 type->clientdata = swig_module.type_initial[i]->clientdata;
33290#ifdef SWIGRUNTIME_DEBUG
33291 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
33292#endif
33293 }
33294 } else {
33295 type = swig_module.type_initial[i];
be9b1dca 33296 }
1bd55598
RD
33297
33298 /* Insert casting types */
33299 cast = swig_module.cast_initial[i];
33300 while (cast->type) {
33301 /* Don't need to add information already in the list */
33302 ret = 0;
33303#ifdef SWIGRUNTIME_DEBUG
33304 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
33305#endif
33306 if (swig_module.next != &swig_module) {
33307 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
33308#ifdef SWIGRUNTIME_DEBUG
33309 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
33310#endif
33311 }
33312 if (ret) {
33313 if (type == swig_module.type_initial[i]) {
33314#ifdef SWIGRUNTIME_DEBUG
33315 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
33316#endif
33317 cast->type = ret;
33318 ret = 0;
33319 } else {
33320 /* Check for casting already in the list */
33321 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
33322#ifdef SWIGRUNTIME_DEBUG
33323 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
33324#endif
33325 if (!ocast) ret = 0;
33326 }
33327 }
33328
33329 if (!ret) {
33330#ifdef SWIGRUNTIME_DEBUG
33331 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
33332#endif
33333 if (type->cast) {
33334 type->cast->prev = cast;
33335 cast->next = type->cast;
33336 }
33337 type->cast = cast;
33338 }
33339 cast++;
be9b1dca 33340 }
1bd55598
RD
33341 /* Set entry in modules->types array equal to the type */
33342 swig_module.types[i] = type;
33343 }
33344 swig_module.types[i] = 0;
33345
33346#ifdef SWIGRUNTIME_DEBUG
33347 printf("**** SWIG_InitializeModule: Cast List ******\n");
33348 for (i = 0; i < swig_module.size; ++i) {
33349 int j = 0;
33350 swig_cast_info *cast = swig_module.cast_initial[i];
33351 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33352 while (cast->type) {
33353 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
33354 cast++;
33355 ++j;
33356 }
33357 printf("---- Total casts: %d\n",j);
33358 }
33359 printf("**** SWIG_InitializeModule: Cast List ******\n");
33360#endif
33361}
33362
33363/* This function will propagate the clientdata field of type to
33364* any new swig_type_info structures that have been added into the list
33365* of equivalent types. It is like calling
33366* SWIG_TypeClientData(type, clientdata) a second time.
33367*/
33368SWIGRUNTIME void
33369SWIG_PropagateClientData(void) {
33370 size_t i;
33371 swig_cast_info *equiv;
33372 static int init_run = 0;
33373
33374 if (init_run) return;
33375 init_run = 1;
33376
33377 for (i = 0; i < swig_module.size; i++) {
33378 if (swig_module.types[i]->clientdata) {
33379 equiv = swig_module.types[i]->cast;
33380 while (equiv) {
33381 if (!equiv->converter) {
33382 if (equiv->type && !equiv->type->clientdata)
33383 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
33384 }
33385 equiv = equiv->next;
33386 }
be9b1dca 33387 }
1bd55598
RD
33388 }
33389}
33390
33391#ifdef __cplusplus
33392#if 0
33393{
33394 /* c-mode */
33395#endif
33396}
33397#endif
33398
33399
33400
33401#ifdef __cplusplus
33402extern "C" {
33403#endif
33404
33405 /* Python-specific SWIG API */
33406#define SWIG_newvarlink() SWIG_Python_newvarlink()
33407#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
33408#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
33409
33410 /* -----------------------------------------------------------------------------
33411 * global variable support code.
33412 * ----------------------------------------------------------------------------- */
33413
33414 typedef struct swig_globalvar {
33415 char *name; /* Name of global variable */
33416 PyObject *(*get_attr)(void); /* Return the current value */
33417 int (*set_attr)(PyObject *); /* Set the value */
33418 struct swig_globalvar *next;
33419 } swig_globalvar;
33420
33421 typedef struct swig_varlinkobject {
33422 PyObject_HEAD
33423 swig_globalvar *vars;
33424 } swig_varlinkobject;
33425
33426 SWIGINTERN PyObject *
33427 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
33428 return PyString_FromString("<Swig global variables>");
33429 }
33430
33431 SWIGINTERN PyObject *
33432 swig_varlink_str(swig_varlinkobject *v) {
33433 PyObject *str = PyString_FromString("(");
33434 swig_globalvar *var;
33435 for (var = v->vars; var; var=var->next) {
33436 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
33437 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
33438 }
33439 PyString_ConcatAndDel(&str,PyString_FromString(")"));
33440 return str;
33441 }
33442
33443 SWIGINTERN int
33444 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
33445 PyObject *str = swig_varlink_str(v);
33446 fprintf(fp,"Swig global variables ");
33447 fprintf(fp,"%s\n", PyString_AsString(str));
33448 Py_DECREF(str);
33449 return 0;
33450 }
33451
33452 SWIGINTERN void
33453 swig_varlink_dealloc(swig_varlinkobject *v) {
33454 swig_globalvar *var = v->vars;
33455 while (var) {
33456 swig_globalvar *n = var->next;
33457 free(var->name);
33458 free(var);
33459 var = n;
be9b1dca 33460 }
1bd55598
RD
33461 }
33462
33463 SWIGINTERN PyObject *
33464 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
33465 PyObject *res = NULL;
33466 swig_globalvar *var = v->vars;
33467 while (var) {
33468 if (strcmp(var->name,n) == 0) {
33469 res = (*var->get_attr)();
33470 break;
33471 }
33472 var = var->next;
be9b1dca 33473 }
1bd55598
RD
33474 if (res == NULL && !PyErr_Occurred()) {
33475 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 33476 }
1bd55598
RD
33477 return res;
33478 }
33479
33480 SWIGINTERN int
33481 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
33482 int res = 1;
33483 swig_globalvar *var = v->vars;
33484 while (var) {
33485 if (strcmp(var->name,n) == 0) {
33486 res = (*var->set_attr)(p);
33487 break;
33488 }
33489 var = var->next;
be9b1dca 33490 }
1bd55598
RD
33491 if (res == 1 && !PyErr_Occurred()) {
33492 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 33493 }
1bd55598
RD
33494 return res;
33495 }
33496
33497 SWIGINTERN PyTypeObject*
33498 swig_varlink_type(void) {
33499 static char varlink__doc__[] = "Swig var link object";
33500 static PyTypeObject varlink_type;
33501 static int type_init = 0;
33502 if (!type_init) {
33503 const PyTypeObject tmp
33504 = {
33505 PyObject_HEAD_INIT(NULL)
33506 0, /* Number of items in variable part (ob_size) */
33507 (char *)"swigvarlink", /* Type name (tp_name) */
33508 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
33509 0, /* Itemsize (tp_itemsize) */
33510 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
33511 (printfunc) swig_varlink_print, /* Print (tp_print) */
33512 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
33513 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
33514 0, /* tp_compare */
33515 (reprfunc) swig_varlink_repr, /* tp_repr */
33516 0, /* tp_as_number */
33517 0, /* tp_as_sequence */
33518 0, /* tp_as_mapping */
33519 0, /* tp_hash */
33520 0, /* tp_call */
33521 (reprfunc)swig_varlink_str, /* tp_str */
33522 0, /* tp_getattro */
33523 0, /* tp_setattro */
33524 0, /* tp_as_buffer */
33525 0, /* tp_flags */
33526 varlink__doc__, /* tp_doc */
33527 0, /* tp_traverse */
33528 0, /* tp_clear */
33529 0, /* tp_richcompare */
33530 0, /* tp_weaklistoffset */
33531#if PY_VERSION_HEX >= 0x02020000
33532 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
33533#endif
33534#if PY_VERSION_HEX >= 0x02030000
33535 0, /* tp_del */
33536#endif
33537#ifdef COUNT_ALLOCS
33538 0,0,0,0 /* tp_alloc -> tp_next */
33539#endif
33540 };
33541 varlink_type = tmp;
33542 varlink_type.ob_type = &PyType_Type;
33543 type_init = 1;
be9b1dca 33544 }
1bd55598
RD
33545 return &varlink_type;
33546 }
33547
33548 /* Create a variable linking object for use later */
33549 SWIGINTERN PyObject *
33550 SWIG_Python_newvarlink(void) {
33551 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
33552 if (result) {
33553 result->vars = 0;
33554 }
33555 return ((PyObject*) result);
33556 }
33557
33558 SWIGINTERN void
33559 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
33560 swig_varlinkobject *v = (swig_varlinkobject *) p;
33561 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
33562 if (gv) {
33563 size_t size = strlen(name)+1;
33564 gv->name = (char *)malloc(size);
33565 if (gv->name) {
33566 strncpy(gv->name,name,size);
33567 gv->get_attr = get_attr;
33568 gv->set_attr = set_attr;
33569 gv->next = v->vars;
33570 }
be9b1dca 33571 }
1bd55598
RD
33572 v->vars = gv;
33573 }
33574
33575 SWIGINTERN PyObject *
33576 SWIG_globals() {
33577 static PyObject *_SWIG_globals = 0;
33578 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
33579 return _SWIG_globals;
33580 }
33581
33582 /* -----------------------------------------------------------------------------
33583 * constants/methods manipulation
33584 * ----------------------------------------------------------------------------- */
33585
33586 /* Install Constants */
33587 SWIGINTERN void
33588 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
33589 PyObject *obj = 0;
33590 size_t i;
33591 for (i = 0; constants[i].type; ++i) {
33592 switch(constants[i].type) {
33593 case SWIG_PY_POINTER:
33594 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
33595 break;
33596 case SWIG_PY_BINARY:
33597 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
33598 break;
33599 default:
33600 obj = 0;
33601 break;
33602 }
33603 if (obj) {
33604 PyDict_SetItemString(d, constants[i].name, obj);
33605 Py_DECREF(obj);
33606 }
be9b1dca 33607 }
1bd55598
RD
33608 }
33609
33610 /* -----------------------------------------------------------------------------*/
33611 /* Fix SwigMethods to carry the callback ptrs when needed */
33612 /* -----------------------------------------------------------------------------*/
33613
33614 SWIGINTERN void
33615 SWIG_Python_FixMethods(PyMethodDef *methods,
33616 swig_const_info *const_table,
33617 swig_type_info **types,
33618 swig_type_info **types_initial) {
33619 size_t i;
33620 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 33621 const char *c = methods[i].ml_doc;
1bd55598
RD
33622 if (c && (c = strstr(c, "swig_ptr: "))) {
33623 int j;
33624 swig_const_info *ci = 0;
3d6c9062 33625 const char *name = c + 10;
1bd55598
RD
33626 for (j = 0; const_table[j].type; ++j) {
33627 if (strncmp(const_table[j].name, name,
33628 strlen(const_table[j].name)) == 0) {
33629 ci = &(const_table[j]);
33630 break;
33631 }
33632 }
33633 if (ci) {
33634 size_t shift = (ci->ptype) - types;
33635 swig_type_info *ty = types_initial[shift];
33636 size_t ldoc = (c - methods[i].ml_doc);
33637 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
33638 char *ndoc = (char*)malloc(ldoc + lptr + 10);
33639 if (ndoc) {
33640 char *buff = ndoc;
33641 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
33642 if (ptr) {
33643 strncpy(buff, methods[i].ml_doc, ldoc);
33644 buff += ldoc;
33645 strncpy(buff, "swig_ptr: ", 10);
33646 buff += 10;
33647 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
33648 methods[i].ml_doc = ndoc;
33649 }
33650 }
33651 }
33652 }
be9b1dca 33653 }
1bd55598
RD
33654 }
33655
33656#ifdef __cplusplus
33657}
33658#endif
33659
33660/* -----------------------------------------------------------------------------*
33661 * Partial Init method
33662 * -----------------------------------------------------------------------------*/
33663
33664#ifdef __cplusplus
33665extern "C"
33666#endif
33667SWIGEXPORT void SWIG_init(void) {
33668 PyObject *m, *d;
33669
33670 /* Fix SwigMethods to carry the callback ptrs when needed */
33671 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
33672
33673 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33674 d = PyModule_GetDict(m);
33675
33676 SWIG_InitializeModule(0);
33677 SWIG_InstallConstants(d,swig_const_table);
33678
33679
2131d850
RD
33680 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
33681 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
33682 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
33683 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
33684 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
33685 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
33686 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
33687 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
33688 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
33689 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
33690 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
33691 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
33692 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
33693 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
33694 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
33695 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
33696 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
33697 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
33698 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
33699 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
33700 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
33701 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
33702 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
33703 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
33704 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
33705 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
33706 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
33707 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
33708 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
33709 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
33710 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
33711 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
33712 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
33713 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
33714 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
33715 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
33716 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
33717 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
33718 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
33719 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
33720 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
33721 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
33722 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
33723 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
33724 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
33725 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
33726 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
33727 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
33728 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
33729 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
33730 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
33731 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
33732 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
33733 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
33734 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
33735 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
33736 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
33737 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
33738 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
33739 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
33740 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
33741 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
33742 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
33743 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
33744 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
33745 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
33746 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
33747 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
33748 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
33749 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
33750 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
33751 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
33752 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
33753 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
33754 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
33755 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
33756 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
33757 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
33758 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
33759 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
33760 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
33761 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
33762 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
33763 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
33764 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
33765 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
33766 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
33767 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
33768 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
33769 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
33770 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
33771 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
33772 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
33773 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
33774 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
33775 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
33776 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
33777 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
33778 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
33779 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
33780 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
33781 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
33782 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
33783 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
33784 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
33785 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
33786 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
33787 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
33788 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
33789 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
33790 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
33791 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
33792 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
33793 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
33794 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
33795 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
33796 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
33797 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
33798 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
33799 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
33800 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
33801 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
33802 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
33803 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
33804 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
33805 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
33806 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
33807 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
33808 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
33809 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
33810 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
33811 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
33812
33813 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
33814
33815 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
33816 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
33817 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
33818 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
33819 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
33820 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
33821 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
33822 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
33823 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
33824 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
33825 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
33826 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
33827 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
33828 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
33829 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
33830 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
33831 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
33832 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
33833 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
33834 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
33835 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
33836 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
33837 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
33838 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
33839 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
33840 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
33841 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
33842 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
33843 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
33844 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
33845 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
33846 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
33847 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
33848 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
33849 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
33850 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
33851 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
33852 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
33853 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
33854 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
33855 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
33856 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
33857 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
33858 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
33859 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
33860 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
33861 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
33862 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
33863 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
33864 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
33865 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
33866 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
33867 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
33868 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
33869 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
33870 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
33871 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
33872 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
33873 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
33874 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
33875 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
33876 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
33877 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
33878 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
33879 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
33880 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
33881 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
33882 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
33883 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
33884 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
33885 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
33886 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
33887 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
33888 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
33889 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
33890 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
33891 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
33892 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
33893 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
33894 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
33895 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
33896 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
33897 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
33898 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
33899 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
33900 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
33901 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
33902 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
33903 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
33904 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
33905 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
33906 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
33907 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
33908 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
33909 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
33910 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
33911 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
33912 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33913 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33914 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33915 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33916 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33917 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33918 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33919 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33920 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33921 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33922 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33923 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33924 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33925 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33926 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33927 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33928 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33929 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33930 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33931 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33932 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33933 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33934 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33935 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33936 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33937 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33938 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33939 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33940 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33941 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33942 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33943 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33944 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33945 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33946 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33947 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33948 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33949 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33950 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33951 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33952 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33953 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33954 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33955 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33956 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33957 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33958 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33959 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33960 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33961 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33962 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33963 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33964 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33965 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33966 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33967 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33968 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33969 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33970 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33971 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33972 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33973 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33974 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33975 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33976 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33977 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33978 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33979 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33980 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33981 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33982 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33983 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33984 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33985 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33986 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33987 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33988 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33989 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33990 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33991 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33992 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33993 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33994 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33995 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33996 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33997 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33998 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33999 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
34000 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
34001 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
34002 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
34003 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
34004 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
34005 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
34006 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
34007 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
34008 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
34009 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
34010 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
34011 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
34012 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
34013 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
34014 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
34015 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
34016 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
34017 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
34018 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
34019 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
34020 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
34021 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
34022 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
34023 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
34024 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
34025 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
34026 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
34027 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
34028 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
34029 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
34030 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
34031 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
34032 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
34033 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
34034 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
34035 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
34036 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
34037 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
34038 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
34039 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
34040 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
34041 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
34042 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
34043 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
34044 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
34045 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
34046 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
34047 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
34048 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
34049 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
34050 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
34051 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
34052 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
34053 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
34054 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
34055 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
34056 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
34057 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
34058 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
34059 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
34060 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
34061 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
34062 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
34063 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
34064 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
34065 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
34066 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
34067 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
34068 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
34069 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
34070 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
34071 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
34072 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
34073 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
34074 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
34075 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
34076 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
34077 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
34078 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
34079 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
34080 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
34081 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
34082 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
34083 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
34084 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
34085 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
34086 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
34087 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
34088 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
34089 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
34090 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
34091 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
34092 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
34093 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
34094 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
34095 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
34096 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
34097 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
34098 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
34099 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
34100 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
34101 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
34102 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
34103 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
34104 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598 34105 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
1bd55598
RD
34106 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
34107 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
34108 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
34109 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
34110 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
34111 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
34112 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
34113 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
34114 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
34115 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
34116 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 34117 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
34118 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
34119 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
34120 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 34121 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
34122 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
34123 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
34124 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
34125 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
34126 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
34127 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
34128 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
34129 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
34130 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
34131 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
34132 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
34133 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
34134
34135 // Work around a chicken/egg problem in drawlist.cpp
34136 wxPyDrawList_SetAPIPtr();
34137
d55e5bfc
RD
34138}
34139