]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[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
2466#define SWIGTYPE_p_char swig_types[0]
2467#define SWIGTYPE_p_double swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_unsigned_char swig_types[4]
2471#define SWIGTYPE_p_unsigned_int swig_types[5]
2472#define SWIGTYPE_p_unsigned_long swig_types[6]
2473#define SWIGTYPE_p_wxANIHandler swig_types[7]
2474#define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475#define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476#define SWIGTYPE_p_wxBMPHandler swig_types[10]
2477#define SWIGTYPE_p_wxBitmap swig_types[11]
2478#define SWIGTYPE_p_wxBoxSizer swig_types[12]
2479#define SWIGTYPE_p_wxBrush swig_types[13]
2480#define SWIGTYPE_p_wxBrushList swig_types[14]
2481#define SWIGTYPE_p_wxBufferedDC swig_types[15]
2482#define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2483#define SWIGTYPE_p_wxCURHandler swig_types[17]
2484#define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2485#define SWIGTYPE_p_wxClientDC swig_types[19]
2131d850
RD
2486#define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2487#define SWIGTYPE_p_wxCloseEvent swig_types[21]
2488#define SWIGTYPE_p_wxColour swig_types[22]
2489#define SWIGTYPE_p_wxColourDatabase swig_types[23]
2490#define SWIGTYPE_p_wxCommandEvent swig_types[24]
2491#define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2492#define SWIGTYPE_p_wxControl swig_types[26]
2493#define SWIGTYPE_p_wxControlWithItems swig_types[27]
2494#define SWIGTYPE_p_wxCursor swig_types[28]
2495#define SWIGTYPE_p_wxDC swig_types[29]
2496#define SWIGTYPE_p_wxDash swig_types[30]
2497#define SWIGTYPE_p_wxDateEvent swig_types[31]
2498#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2499#define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2500#define SWIGTYPE_p_wxDuplexMode swig_types[34]
2501#define SWIGTYPE_p_wxEffects swig_types[35]
2502#define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2503#define SWIGTYPE_p_wxEraseEvent swig_types[37]
2504#define SWIGTYPE_p_wxEvent swig_types[38]
2505#define SWIGTYPE_p_wxEvtHandler swig_types[39]
2506#define SWIGTYPE_p_wxFSFile swig_types[40]
2507#define SWIGTYPE_p_wxFileSystem swig_types[41]
2508#define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509#define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510#define SWIGTYPE_p_wxFont swig_types[44]
2511#define SWIGTYPE_p_wxFontList swig_types[45]
2512#define SWIGTYPE_p_wxFontMapper swig_types[46]
2513#define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2514#define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2515#define SWIGTYPE_p_wxGDIObject swig_types[49]
2516#define SWIGTYPE_p_wxGIFHandler swig_types[50]
2517#define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2518#define SWIGTYPE_p_wxGridSizer swig_types[52]
2519#define SWIGTYPE_p_wxICOHandler swig_types[53]
2520#define SWIGTYPE_p_wxIcon swig_types[54]
2521#define SWIGTYPE_p_wxIconBundle swig_types[55]
2522#define SWIGTYPE_p_wxIconLocation swig_types[56]
2523#define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2524#define SWIGTYPE_p_wxIdleEvent swig_types[58]
2525#define SWIGTYPE_p_wxImage swig_types[59]
2526#define SWIGTYPE_p_wxImageHandler swig_types[60]
2527#define SWIGTYPE_p_wxImageList swig_types[61]
2528#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2529#define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2530#define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2531#define SWIGTYPE_p_wxKeyEvent swig_types[65]
2532#define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2533#define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2534#define SWIGTYPE_p_wxLocale swig_types[68]
2535#define SWIGTYPE_p_wxMask swig_types[69]
2536#define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2537#define SWIGTYPE_p_wxMemoryDC swig_types[71]
2538#define SWIGTYPE_p_wxMenu swig_types[72]
2539#define SWIGTYPE_p_wxMenuBar swig_types[73]
2540#define SWIGTYPE_p_wxMenuEvent swig_types[74]
2541#define SWIGTYPE_p_wxMenuItem swig_types[75]
2542#define SWIGTYPE_p_wxMetaFile swig_types[76]
2543#define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2544#define SWIGTYPE_p_wxMirrorDC swig_types[78]
2545#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2546#define SWIGTYPE_p_wxMouseEvent swig_types[80]
2547#define SWIGTYPE_p_wxMoveEvent swig_types[81]
2548#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2549#define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2550#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2552#define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2553#define SWIGTYPE_p_wxObject swig_types[87]
2554#define SWIGTYPE_p_wxPCXHandler swig_types[88]
2555#define SWIGTYPE_p_wxPNGHandler swig_types[89]
2556#define SWIGTYPE_p_wxPNMHandler swig_types[90]
2557#define SWIGTYPE_p_wxPaintDC swig_types[91]
2558#define SWIGTYPE_p_wxPaintEvent swig_types[92]
2559#define SWIGTYPE_p_wxPalette swig_types[93]
2560#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2561#define SWIGTYPE_p_wxPaperSize swig_types[95]
2562#define SWIGTYPE_p_wxPen swig_types[96]
2563#define SWIGTYPE_p_wxPenList swig_types[97]
2564#define SWIGTYPE_p_wxPoint swig_types[98]
2565#define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2566#define SWIGTYPE_p_wxPrintData swig_types[100]
2567#define SWIGTYPE_p_wxPrinterDC swig_types[101]
27e45892
RD
2568#define SWIGTYPE_p_wxPseudoDC swig_types[102]
2569#define SWIGTYPE_p_wxPyApp swig_types[103]
2570#define SWIGTYPE_p_wxPyCommandEvent swig_types[104]
2571#define SWIGTYPE_p_wxPyEvent swig_types[105]
2572#define SWIGTYPE_p_wxPyFontEnumerator swig_types[106]
2573#define SWIGTYPE_p_wxPyImageHandler swig_types[107]
2574#define SWIGTYPE_p_wxPySizer swig_types[108]
2575#define SWIGTYPE_p_wxPyValidator swig_types[109]
2576#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[110]
2577#define SWIGTYPE_p_wxRect swig_types[111]
2578#define SWIGTYPE_p_wxRegion swig_types[112]
2579#define SWIGTYPE_p_wxRegionIterator swig_types[113]
2580#define SWIGTYPE_p_wxRendererNative swig_types[114]
2581#define SWIGTYPE_p_wxRendererVersion swig_types[115]
2582#define SWIGTYPE_p_wxScreenDC swig_types[116]
2583#define SWIGTYPE_p_wxScrollEvent swig_types[117]
2584#define SWIGTYPE_p_wxScrollWinEvent swig_types[118]
2585#define SWIGTYPE_p_wxSetCursorEvent swig_types[119]
2586#define SWIGTYPE_p_wxShowEvent swig_types[120]
2587#define SWIGTYPE_p_wxSize swig_types[121]
2588#define SWIGTYPE_p_wxSizeEvent swig_types[122]
2589#define SWIGTYPE_p_wxSizer swig_types[123]
2590#define SWIGTYPE_p_wxSizerItem swig_types[124]
2591#define SWIGTYPE_p_wxSplitterRenderParams swig_types[125]
2592#define SWIGTYPE_p_wxStaticBoxSizer swig_types[126]
2593#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[127]
2594#define SWIGTYPE_p_wxStockGDI swig_types[128]
2595#define SWIGTYPE_p_wxString swig_types[129]
2596#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[130]
2597#define SWIGTYPE_p_wxTIFFHandler swig_types[131]
2598#define SWIGTYPE_p_wxUpdateUIEvent swig_types[132]
2599#define SWIGTYPE_p_wxValidator swig_types[133]
2600#define SWIGTYPE_p_wxWindow swig_types[134]
2601#define SWIGTYPE_p_wxWindowCreateEvent swig_types[135]
2602#define SWIGTYPE_p_wxWindowDC swig_types[136]
2603#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[137]
2604#define SWIGTYPE_p_wxXPMHandler swig_types[138]
2605static swig_type_info *swig_types[140];
2606static swig_module_info swig_module = {swig_types, 139, 0, 0, 0, 0};
32fe5131
RD
2607#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2608#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2609
36ed4f51 2610/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2611
1bd55598
RD
2612#if (PY_VERSION_HEX <= 0x02000000)
2613# if !defined(SWIG_PYTHON_CLASSIC)
2614# error "This python version requires to use swig with the '-classic' option"
2615# endif
2616#endif
2617#if (PY_VERSION_HEX <= 0x02020000)
2618# error "This python version requires to use swig with the '-nomodern' option"
2619#endif
2620#if (PY_VERSION_HEX <= 0x02020000)
2621# error "This python version requires to use swig with the '-nomodernargs' option"
2622#endif
2623#ifndef METH_O
2624# error "This python version requires to use swig with the '-nofastunpack' option"
2625#endif
d55e5bfc 2626
36ed4f51
RD
2627/*-----------------------------------------------
2628 @(target):= _gdi_.so
2629 ------------------------------------------------*/
2630#define SWIG_init init_gdi_
d55e5bfc 2631
36ed4f51 2632#define SWIG_name "_gdi_"
d55e5bfc 2633
1bd55598 2634#define SWIGVERSION 0x010329
d55e5bfc 2635
d55e5bfc 2636
1bd55598
RD
2637#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2638#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2639
2640
1bd55598
RD
2641#include <stdexcept>
2642
2643
2644namespace swig {
2645 class PyObject_ptr {
2646 protected:
2647 PyObject *_obj;
2648
2649 public:
2650 PyObject_ptr() :_obj(0)
2651 {
36ed4f51 2652 }
1bd55598
RD
2653
2654 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2655 {
2656 Py_XINCREF(_obj);
36ed4f51 2657 }
1bd55598
RD
2658
2659 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2660 {
2661 if (initial_ref) Py_XINCREF(_obj);
2662 }
2663
2664 PyObject_ptr & operator=(const PyObject_ptr& item)
2665 {
2666 Py_XINCREF(item._obj);
2667 Py_XDECREF(_obj);
2668 _obj = item._obj;
2669 return *this;
2670 }
2671
2672 ~PyObject_ptr()
2673 {
2674 Py_XDECREF(_obj);
2675 }
2676
2677 operator PyObject *() const
2678 {
2679 return _obj;
2680 }
2681
2682 PyObject *operator->() const
2683 {
2684 return _obj;
2685 }
2686 };
36ed4f51 2687}
d55e5bfc 2688
d55e5bfc 2689
1bd55598
RD
2690namespace swig {
2691 struct PyObject_var : PyObject_ptr {
2692 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2693
2694 PyObject_var & operator = (PyObject* obj)
2695 {
2696 Py_XDECREF(_obj);
2697 _obj = obj;
2698 return *this;
d55e5bfc 2699 }
1bd55598 2700 };
d55e5bfc
RD
2701}
2702
2703
1bd55598
RD
2704#include "wx/wxPython/wxPython.h"
2705#include "wx/wxPython/pyclasses.h"
2706
2707
2708 static const wxString wxPyEmptyString(wxEmptyString);
2709
2131d850
RD
2710 #define SWIG_From_long PyInt_FromLong
2711
2712
2713SWIGINTERNINLINE PyObject *
2714SWIG_From_int (int value)
2715{
2716 return SWIG_From_long (value);
2717}
2718
2719
1bd55598
RD
2720#include <limits.h>
2721#ifndef LLONG_MIN
2722# define LLONG_MIN LONG_LONG_MIN
2723#endif
2724#ifndef LLONG_MAX
2725# define LLONG_MAX LONG_LONG_MAX
2726#endif
2727#ifndef ULLONG_MAX
2728# define ULLONG_MAX ULONG_LONG_MAX
2729#endif
d55e5bfc
RD
2730
2731
da91cb0f
RD
2732SWIGINTERN int
2733SWIG_AsVal_long (PyObject* obj, long* val)
2734{
2735 if (PyNumber_Check(obj)) {
2736 if (val) *val = PyInt_AsLong(obj);
2737 return SWIG_OK;
2738 }
2739 return SWIG_TypeError;
2740}
2741
2742
36ed4f51 2743SWIGINTERN int
1bd55598 2744SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2745{
2746 long v = 0;
2747 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2748 return SWIG_TypeError;
36ed4f51
RD
2749 }
2750 else if (val)
2751 *val = (unsigned long)v;
1bd55598 2752 return SWIG_OK;
36ed4f51 2753}
d55e5bfc
RD
2754
2755
36ed4f51 2756SWIGINTERN int
1bd55598
RD
2757SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2758{
36ed4f51 2759 unsigned long v;
1bd55598
RD
2760 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2761 if (SWIG_IsOK(res)) {
2762 if ((v > UCHAR_MAX)) {
2763 return SWIG_OverflowError;
36ed4f51 2764 } else {
1bd55598 2765 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2766 }
1bd55598
RD
2767 }
2768 return res;
36ed4f51 2769}
d55e5bfc 2770
d55e5bfc 2771
1bd55598
RD
2772SWIGINTERNINLINE PyObject*
2773SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2774{
1bd55598
RD
2775 return (value > LONG_MAX) ?
2776 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2777}
2778
2779
1bd55598
RD
2780SWIGINTERNINLINE PyObject *
2781SWIG_From_unsigned_SS_char (unsigned char value)
2782{
2783 return SWIG_From_unsigned_SS_long (value);
2784}
d55e5bfc 2785
e9d6f3a4
RD
2786SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2787 wxColour temp, *obj = &temp;
2788 if ( other == Py_None ) return false;
2789 if ( ! wxColour_helper(other, &obj) ) {
2790 PyErr_Clear();
2791 return false;
2792 }
2793 return self->operator==(*obj);
2794 }
2795SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return true;
2798 if ( ! wxColour_helper(other, &obj)) {
2799 PyErr_Clear();
2800 return true;
2801 }
2802 return self->operator!=(*obj);
2803 }
1bd55598 2804SWIGINTERN PyObject *wxColour_Get(wxColour *self){
36ed4f51
RD
2805 PyObject* rv = PyTuple_New(3);
2806 int red = -1;
2807 int green = -1;
2808 int blue = -1;
2809 if (self->Ok()) {
2810 red = self->Red();
2811 green = self->Green();
2812 blue = self->Blue();
2813 }
2814 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2815 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2816 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2817 return rv;
2818 }
1bd55598 2819SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2820 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2821 }
d55e5bfc 2822
1bd55598
RD
2823SWIGINTERN int
2824SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2825{
1bd55598
RD
2826 long v;
2827 int res = SWIG_AsVal_long (obj, &v);
2828 if (SWIG_IsOK(res)) {
2829 if ((v < INT_MIN || v > INT_MAX)) {
2830 return SWIG_OverflowError;
2831 } else {
2832 if (val) *val = static_cast< int >(v);
2833 }
2834 }
2835 return res;
d55e5bfc
RD
2836}
2837
1bd55598 2838SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2839 wxDash* dashes;
2840 int count = self->GetDashes(&dashes);
5a446332 2841 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2842 PyObject* retval = PyList_New(0);
2843 for (int x=0; x<count; x++) {
2844 PyObject* pyint = PyInt_FromLong(dashes[x]);
2845 PyList_Append(retval, pyint);
2846 Py_DECREF(pyint);
2847 }
2848 wxPyEndBlockThreads(blocked);
2849 return retval;
2850 }
1bd55598 2851SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2852 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2853 int size = PyList_Size(pyDashes);
2854 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2855
36ed4f51
RD
2856 // black magic warning! The array of wxDashes needs to exist as
2857 // long as the pen does because wxPen does not copy the array. So
2858 // stick a copy in a Python string object and attach it to _self,
2859 // and then call SetDashes with a pointer to that array. Then
2860 // when the Python pen object is destroyed the array will be
2861 // cleaned up too.
2862 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2863 PyObject_SetAttrString(_self, "_dashes", strDashes);
2864
2865 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2866 delete [] dashes;
2867 Py_DECREF(strDashes);
2868 wxPyEndBlockThreads(blocked);
2869 }
1bd55598
RD
2870SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2871SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2872
1bd55598
RD
2873SWIGINTERNINLINE PyObject *
2874SWIG_From_short (short value)
2875{
2876 return SWIG_From_long (value);
2877}
d55e5bfc
RD
2878
2879
36ed4f51 2880SWIGINTERN int
1bd55598
RD
2881SWIG_AsVal_short (PyObject * obj, short *val)
2882{
36ed4f51 2883 long v;
1bd55598
RD
2884 int res = SWIG_AsVal_long (obj, &v);
2885 if (SWIG_IsOK(res)) {
2886 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2887 return SWIG_OverflowError;
36ed4f51 2888 } else {
1bd55598
RD
2889 if (val) *val = static_cast< short >(v);
2890 }
2891 }
2892 return res;
d55e5bfc
RD
2893}
2894
2895
36ed4f51 2896#include <wx/image.h>
d55e5bfc 2897
36ed4f51
RD
2898 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2899 char** cArray = NULL;
2900 int count;
d55e5bfc 2901
36ed4f51
RD
2902 if (!PyList_Check(listOfStrings)) {
2903 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2904 return NULL;
2905 }
2906 count = PyList_Size(listOfStrings);
2907 cArray = new char*[count];
d55e5bfc 2908
36ed4f51
RD
2909 for(int x=0; x<count; x++) {
2910 // TODO: Need some validation and error checking here
2911 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2912 }
2913 return cArray;
d55e5bfc 2914 }
d55e5bfc
RD
2915
2916
1bd55598 2917SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
36ed4f51
RD
2918 char** cArray = NULL;
2919 wxBitmap* bmp;
d55e5bfc 2920
36ed4f51
RD
2921 cArray = ConvertListOfStrings(listOfStrings);
2922 if (! cArray)
2923 return NULL;
2924 bmp = new wxBitmap(cArray);
2925 delete [] cArray;
2926 return bmp;
2927 }
1bd55598 2928SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
4f89b6b7
RD
2929 char* buf;
2930 Py_ssize_t length;
36ed4f51
RD
2931 PyString_AsStringAndSize(bits, &buf, &length);
2932 return new wxBitmap(buf, width, height, depth);
2933 }
1bd55598 2934SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2935 wxSize size(self->GetWidth(), self->GetHeight());
2936 return size;
2937 }
1bd55598 2938SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2939 wxMask *mask = new wxMask(*self, colour);
2940 self->SetMask(mask);
2941 }
1bd55598 2942SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2943 self->SetWidth(size.x);
2944 self->SetHeight(size.y);
2945 }
1bd55598
RD
2946SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2947SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2948SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
36ed4f51
RD
2949 if ( !colour.Ok() )
2950 return new wxMask(bitmap, *wxBLACK);
2951 else
2952 return new wxMask(bitmap, colour);
2953 }
d55e5bfc 2954
36ed4f51 2955#include <wx/iconbndl.h>
d55e5bfc 2956
1bd55598 2957SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
2958 wxIcon* icon = new wxIcon();
2959 icon->CopyFromBitmap(bmp);
2960 return icon;
2961 }
1bd55598 2962SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
2963 char** cArray = NULL;
2964 wxIcon* icon;
d55e5bfc 2965
36ed4f51
RD
2966 cArray = ConvertListOfStrings(listOfStrings);
2967 if (! cArray)
2968 return NULL;
2969 icon = new wxIcon(cArray);
2970 delete [] cArray;
2971 return icon;
2972 }
1bd55598 2973SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
2974
2975
d55e5bfc 2976
36ed4f51 2977 return new wxIconLocation(*filename);
d55e5bfc 2978
36ed4f51 2979 }
1bd55598 2980SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
2981
2982
d55e5bfc 2983
36ed4f51 2984 // do nothing
d55e5bfc 2985
36ed4f51 2986 }
1bd55598 2987SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
2988
2989
d55e5bfc 2990
36ed4f51 2991 return -1;
d55e5bfc 2992
36ed4f51 2993 }
1bd55598 2994SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 2995#ifdef __WXGTK__
fef4c27a
RD
2996 wxImage img(cursorName, type);
2997 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2998 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2999 return new wxCursor(img);
36ed4f51 3000#else
fef4c27a 3001 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3002#endif
3003 }
d55e5bfc 3004
d55e5bfc 3005
1bd55598 3006SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3007 (*self) ++;
3008 }
1bd55598 3009SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3010 return self->operator bool();
3011 }
d55e5bfc 3012
36ed4f51
RD
3013#include <wx/fontutil.h>
3014#include <wx/fontmap.h>
3015#include <wx/fontenum.h>
d55e5bfc 3016
da91cb0f
RD
3017
3018SWIGINTERN int
3019SWIG_AsVal_bool (PyObject *obj, bool *val)
3020{
3021 if (obj == Py_True) {
3022 if (val) *val = true;
3023 return SWIG_OK;
3024 } else if (obj == Py_False) {
3025 if (val) *val = false;
3026 return SWIG_OK;
3027 } else {
3028 long v = 0;
3029 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3030 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3031 return res;
3032 }
3033}
3034
1bd55598 3035SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3036 return self->ToString();
3037 }
d55e5bfc 3038
36ed4f51
RD
3039 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3040 static wxNativeEncodingInfo info;
3041 if ( wxGetNativeFontEncoding(encoding, &info) )
3042 return &info;
3043 else
3044 return NULL;
d55e5bfc 3045 }
d55e5bfc 3046
1bd55598
RD
3047
3048SWIGINTERNINLINE PyObject *
3049SWIG_From_size_t (size_t value)
3050{
3051 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3052}
3053
3054
3055SWIGINTERNINLINE int
3056SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3057{
3058 unsigned long v;
3059 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3060 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3061 return res;
3062}
3063
3064SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3065 wxFontEncoding alt_enc;
3066 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3067 return PyInt_FromLong(alt_enc);
3068 else {
3069 Py_INCREF(Py_None);
3070 return Py_None;
3071 }
3072 }
1bd55598 3073SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3074 wxNativeFontInfo nfi;
3075 nfi.FromString(info);
3076 return new wxFont(nfi);
3077 }
1bd55598 3078SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3079 return wxFont::New(pointSize, family, flags, face, encoding);
3080 }
1bd55598 3081SWIGINTERN 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
3082 return wxFontBase::New(pixelSize, family,
3083 style, weight, underlined,
3084 face, encoding);
3085 }
1bd55598 3086SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3087 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3088 }
1bd55598
RD
3089SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3090SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3091
36ed4f51
RD
3092class wxPyFontEnumerator : public wxFontEnumerator {
3093public:
3094 wxPyFontEnumerator() {}
3095 ~wxPyFontEnumerator() {}
d55e5bfc 3096
36ed4f51
RD
3097 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3098 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3099
36ed4f51
RD
3100 PYPRIVATE;
3101};
d55e5bfc 3102
36ed4f51
RD
3103IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3104IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3105
36ed4f51 3106
704eda0c 3107SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3108 PyObject* ret;
704eda0c 3109 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3110 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3111 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3112 wxPyEndBlockThreads(blocked);
3113 return ret;
36ed4f51 3114 }
704eda0c 3115SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3116 PyObject* ret;
704eda0c 3117 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3118 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3119 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3120 wxPyEndBlockThreads(blocked);
3121 return ret;
36ed4f51
RD
3122 }
3123
3124#include <locale.h>
3125
1bd55598 3126SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3127 wxLocale* loc;
3128 if (language == -1)
3129 loc = new wxLocale();
3130 else
3131 loc = new wxLocale(language, flags);
3132 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3133 // for the floating point conversions and such to work right.
3134#if PY_VERSION_HEX < 0x02040000
3135 setlocale(LC_NUMERIC, "C");
3136#endif
3137 return loc;
3138 }
1bd55598 3139SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3140 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3141 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3142 // for the floating point conversions and such to work right.
3143#if PY_VERSION_HEX < 0x02040000
3144 setlocale(LC_NUMERIC, "C");
3145#endif
3146 return rc;
3147 }
1bd55598 3148SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3149 bool rc = self->Init(language, flags);
3150 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3151 // for the floating point conversions and such to work right.
3152#if PY_VERSION_HEX < 0x02040000
3153 setlocale(LC_NUMERIC, "C");
3154#endif
3155 return rc;
3156 }
3157
3158#include "wx/wxPython/pydrawxxx.h"
3159
1bd55598 3160SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3161 wxColour col;
3162 self->GetPixel(x, y, &col);
3163 return col;
3164 }
1bd55598 3165SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3166 wxColour col;
3167 self->GetPixel(pt, &col);
3168 return col;
3169 }
3170
3171SWIGINTERN int
1bd55598 3172SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3173{
3174 if (PyNumber_Check(obj)) {
3175 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3176 return SWIG_OK;
d55e5bfc 3177 }
1bd55598 3178 return SWIG_TypeError;
36ed4f51
RD
3179}
3180
1bd55598 3181SWIGINTERN 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
3182 wxRect rv;
3183 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3184 return rv;
3185 }
1bd55598 3186SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3187 wxRect rect;
3188 self->GetClippingBox(rect);
3189 return rect;
3190 }
1bd55598 3191SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3192 wxArrayInt widths;
3193 self->GetPartialTextExtents(text, widths);
3194 return widths;
3195 }
3196
1bd55598 3197 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3198
1bd55598 3199SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3200 self->SetLogicalOrigin(point.x, point.y);
3201 }
1bd55598 3202SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3203 self->SetDeviceOrigin(point.x, point.y);
3204 }
1bd55598 3205SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3206 self->CalcBoundingBox(point.x, point.y);
3207 }
1bd55598 3208SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3209 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3210 }
1bd55598 3211SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3212 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3213 }
1bd55598 3214SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3215 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3216 }
1bd55598 3217SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3218 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3219 }
1bd55598 3220SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3221 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3222 }
1bd55598 3223SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3224 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3225 }
3226
3227static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3228 *x1 = dc->MinX();
3229 *y1 = dc->MinY();
3230 *x2 = dc->MaxX();
3231 *y2 = dc->MaxY();
3232}
3233
3234
3235#include <wx/dcbuffer.h>
3236
3237
3238#include <wx/dcps.h>
3239
3240
3241#include <wx/metafile.h>
3242
3243
3244
1bd55598 3245SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3246 self->AddColour(name, wxColour(red, green, blue));
3247 }
3248
da91cb0f
RD
3249 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3250 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3251 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3252 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3253
3254
36ed4f51
RD
3255#include <wx/effects.h>
3256
be9b1dca
RD
3257
3258#include "wx/renderer.h"
3259
3260
32fe5131 3261SWIGINTERNINLINE PyObject*
1bd55598 3262 SWIG_From_bool (bool value)
be9b1dca 3263{
1bd55598 3264 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3265}
3266
27e45892
RD
3267
3268#include "wx/wxPython/pseudodc.h"
3269
3270SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3271 wxRect rect;
3272 self->GetIdBounds(id, rect);
3273 return rect;
3274 }
36ed4f51
RD
3275#ifdef __cplusplus
3276extern "C" {
3277#endif
1bd55598
RD
3278SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3279 PyObject *resultobj = 0;
3280 wxGDIObject *result = 0 ;
3281
3282 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3283 {
3284 if (!wxPyCheckForApp()) SWIG_fail;
3285 PyThreadState* __tstate = wxPyBeginAllowThreads();
3286 result = (wxGDIObject *)new wxGDIObject();
3287 wxPyEndAllowThreads(__tstate);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 }
3290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3291 return resultobj;
3292fail:
3293 return NULL;
d55e5bfc
RD
3294}
3295
3296
1bd55598
RD
3297SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3298 PyObject *resultobj = 0;
3299 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3300 void *argp1 = 0 ;
3301 int res1 = 0 ;
3302 PyObject *swig_obj[1] ;
3303
3304 if (!args) SWIG_fail;
3305 swig_obj[0] = args;
3306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3307 if (!SWIG_IsOK(res1)) {
3308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3309 }
3310 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 delete arg1;
d55e5bfc 3314
1bd55598
RD
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 resultobj = SWIG_Py_Void();
3319 return resultobj;
3320fail:
3321 return NULL;
d55e5bfc
RD
3322}
3323
3324
1bd55598
RD
3325SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3326 PyObject *resultobj = 0;
3327 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3328 bool result;
3329 void *argp1 = 0 ;
3330 int res1 = 0 ;
3331 PyObject *swig_obj[1] ;
3332
3333 if (!args) SWIG_fail;
3334 swig_obj[0] = args;
3335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3336 if (!SWIG_IsOK(res1)) {
3337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3338 }
3339 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3340 {
3341 PyThreadState* __tstate = wxPyBeginAllowThreads();
3342 result = (bool)(arg1)->IsNull();
3343 wxPyEndAllowThreads(__tstate);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 {
3347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3348 }
3349 return resultobj;
3350fail:
3351 return NULL;
3352}
3353
3354
3355SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3356 PyObject *obj;
3357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3358 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3359 return SWIG_Py_Void();
3360}
3361
3362SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3363 return SWIG_Python_InitShadowInstance(args);
3364}
3365
3366SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3367 PyObject *resultobj = 0;
3368 byte arg1 = (byte) 0 ;
3369 byte arg2 = (byte) 0 ;
3370 byte arg3 = (byte) 0 ;
3371 wxColour *result = 0 ;
3372 unsigned char val1 ;
3373 int ecode1 = 0 ;
3374 unsigned char val2 ;
3375 int ecode2 = 0 ;
3376 unsigned char val3 ;
3377 int ecode3 = 0 ;
3378 PyObject * obj0 = 0 ;
3379 PyObject * obj1 = 0 ;
3380 PyObject * obj2 = 0 ;
3381 char * kwnames[] = {
3382 (char *) "red",(char *) "green",(char *) "blue", NULL
3383 };
3384
3385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3386 if (obj0) {
3387 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3388 if (!SWIG_IsOK(ecode1)) {
3389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3390 }
3391 arg1 = static_cast< byte >(val1);
3392 }
3393 if (obj1) {
3394 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3395 if (!SWIG_IsOK(ecode2)) {
3396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3397 }
3398 arg2 = static_cast< byte >(val2);
3399 }
3400 if (obj2) {
3401 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3402 if (!SWIG_IsOK(ecode3)) {
3403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3404 }
3405 arg3 = static_cast< byte >(val3);
3406 }
3407 {
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3414 return resultobj;
3415fail:
3416 return NULL;
d55e5bfc
RD
3417}
3418
3419
1bd55598
RD
3420SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3421 PyObject *resultobj = 0;
3422 wxString *arg1 = 0 ;
3423 wxColour *result = 0 ;
3424 bool temp1 = false ;
3425 PyObject * obj0 = 0 ;
3426 char * kwnames[] = {
3427 (char *) "colorName", NULL
3428 };
3429
3430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3431 {
3432 arg1 = wxString_in_helper(obj0);
3433 if (arg1 == NULL) SWIG_fail;
3434 temp1 = true;
3435 }
3436 {
3437 if (!wxPyCheckForApp()) SWIG_fail;
3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
3439 result = (wxColour *)new wxColour((wxString const &)*arg1);
3440 wxPyEndAllowThreads(__tstate);
3441 if (PyErr_Occurred()) SWIG_fail;
3442 }
3443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3444 {
3445 if (temp1)
3446 delete arg1;
3447 }
3448 return resultobj;
3449fail:
3450 {
3451 if (temp1)
3452 delete arg1;
3453 }
3454 return NULL;
36ed4f51
RD
3455}
3456
3457
1bd55598
RD
3458SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3459 PyObject *resultobj = 0;
3460 unsigned long arg1 ;
3461 wxColour *result = 0 ;
3462 unsigned long val1 ;
3463 int ecode1 = 0 ;
3464 PyObject * obj0 = 0 ;
3465 char * kwnames[] = {
3466 (char *) "colRGB", NULL
3467 };
3468
3469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3470 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3471 if (!SWIG_IsOK(ecode1)) {
3472 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3473 }
3474 arg1 = static_cast< unsigned long >(val1);
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 result = (wxColour *)new wxColour(arg1);
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3482 return resultobj;
3483fail:
3484 return NULL;
d55e5bfc
RD
3485}
3486
3487
1bd55598
RD
3488SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3489 PyObject *resultobj = 0;
3490 wxColour *arg1 = (wxColour *) 0 ;
3491 void *argp1 = 0 ;
3492 int res1 = 0 ;
3493 PyObject *swig_obj[1] ;
3494
3495 if (!args) SWIG_fail;
3496 swig_obj[0] = args;
3497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3498 if (!SWIG_IsOK(res1)) {
3499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3500 }
3501 arg1 = reinterpret_cast< wxColour * >(argp1);
3502 {
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 delete arg1;
d55e5bfc 3505
1bd55598
RD
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 resultobj = SWIG_Py_Void();
3510 return resultobj;
3511fail:
3512 return NULL;
d55e5bfc
RD
3513}
3514
3515
1bd55598
RD
3516SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3517 PyObject *resultobj = 0;
3518 wxColour *arg1 = (wxColour *) 0 ;
3519 byte result;
3520 void *argp1 = 0 ;
3521 int res1 = 0 ;
3522 PyObject *swig_obj[1] ;
3523
3524 if (!args) SWIG_fail;
3525 swig_obj[0] = args;
3526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3527 if (!SWIG_IsOK(res1)) {
3528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3529 }
3530 arg1 = reinterpret_cast< wxColour * >(argp1);
3531 {
3532 PyThreadState* __tstate = wxPyBeginAllowThreads();
3533 result = (byte)(arg1)->Red();
3534 wxPyEndAllowThreads(__tstate);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3538 return resultobj;
3539fail:
3540 return NULL;
d55e5bfc
RD
3541}
3542
3543
1bd55598
RD
3544SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3545 PyObject *resultobj = 0;
3546 wxColour *arg1 = (wxColour *) 0 ;
3547 byte result;
3548 void *argp1 = 0 ;
3549 int res1 = 0 ;
3550 PyObject *swig_obj[1] ;
3551
3552 if (!args) SWIG_fail;
3553 swig_obj[0] = args;
3554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3555 if (!SWIG_IsOK(res1)) {
3556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3557 }
3558 arg1 = reinterpret_cast< wxColour * >(argp1);
3559 {
3560 PyThreadState* __tstate = wxPyBeginAllowThreads();
3561 result = (byte)(arg1)->Green();
3562 wxPyEndAllowThreads(__tstate);
3563 if (PyErr_Occurred()) SWIG_fail;
3564 }
3565 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3566 return resultobj;
3567fail:
3568 return NULL;
d55e5bfc
RD
3569}
3570
3571
1bd55598
RD
3572SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3573 PyObject *resultobj = 0;
3574 wxColour *arg1 = (wxColour *) 0 ;
3575 byte result;
3576 void *argp1 = 0 ;
3577 int res1 = 0 ;
3578 PyObject *swig_obj[1] ;
3579
3580 if (!args) SWIG_fail;
3581 swig_obj[0] = args;
3582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3583 if (!SWIG_IsOK(res1)) {
3584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3585 }
3586 arg1 = reinterpret_cast< wxColour * >(argp1);
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 result = (byte)(arg1)->Blue();
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3594 return resultobj;
3595fail:
3596 return NULL;
d55e5bfc
RD
3597}
3598
3599
1bd55598
RD
3600SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3601 PyObject *resultobj = 0;
3602 wxColour *arg1 = (wxColour *) 0 ;
3603 bool result;
3604 void *argp1 = 0 ;
3605 int res1 = 0 ;
3606 PyObject *swig_obj[1] ;
3607
3608 if (!args) SWIG_fail;
3609 swig_obj[0] = args;
3610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3611 if (!SWIG_IsOK(res1)) {
3612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3613 }
3614 arg1 = reinterpret_cast< wxColour * >(argp1);
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 result = (bool)(arg1)->Ok();
3618 wxPyEndAllowThreads(__tstate);
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 {
3622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3623 }
3624 return resultobj;
3625fail:
3626 return NULL;
3627}
3628
3629
3630SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3631 PyObject *resultobj = 0;
3632 wxColour *arg1 = (wxColour *) 0 ;
3633 byte arg2 ;
3634 byte arg3 ;
3635 byte arg4 ;
3636 void *argp1 = 0 ;
3637 int res1 = 0 ;
3638 unsigned char val2 ;
3639 int ecode2 = 0 ;
3640 unsigned char val3 ;
3641 int ecode3 = 0 ;
3642 unsigned char val4 ;
3643 int ecode4 = 0 ;
3644 PyObject * obj0 = 0 ;
3645 PyObject * obj1 = 0 ;
3646 PyObject * obj2 = 0 ;
3647 PyObject * obj3 = 0 ;
3648 char * kwnames[] = {
3649 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3650 };
3651
3652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3654 if (!SWIG_IsOK(res1)) {
3655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3656 }
3657 arg1 = reinterpret_cast< wxColour * >(argp1);
3658 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3659 if (!SWIG_IsOK(ecode2)) {
3660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3661 }
3662 arg2 = static_cast< byte >(val2);
3663 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3664 if (!SWIG_IsOK(ecode3)) {
3665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3666 }
3667 arg3 = static_cast< byte >(val3);
3668 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3669 if (!SWIG_IsOK(ecode4)) {
3670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3671 }
3672 arg4 = static_cast< byte >(val4);
3673 {
3674 PyThreadState* __tstate = wxPyBeginAllowThreads();
3675 (arg1)->Set(arg2,arg3,arg4);
3676 wxPyEndAllowThreads(__tstate);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 resultobj = SWIG_Py_Void();
3680 return resultobj;
3681fail:
3682 return NULL;
3683}
3684
3685
3686SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3687 PyObject *resultobj = 0;
3688 wxColour *arg1 = (wxColour *) 0 ;
3689 unsigned long arg2 ;
3690 void *argp1 = 0 ;
3691 int res1 = 0 ;
3692 unsigned long val2 ;
3693 int ecode2 = 0 ;
3694 PyObject * obj0 = 0 ;
3695 PyObject * obj1 = 0 ;
3696 char * kwnames[] = {
3697 (char *) "self",(char *) "colRGB", NULL
3698 };
3699
3700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3702 if (!SWIG_IsOK(res1)) {
3703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3704 }
3705 arg1 = reinterpret_cast< wxColour * >(argp1);
3706 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3707 if (!SWIG_IsOK(ecode2)) {
3708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3709 }
3710 arg2 = static_cast< unsigned long >(val2);
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 (arg1)->Set(arg2);
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_Py_Void();
3718 return resultobj;
3719fail:
3720 return NULL;
3721}
3722
3723
3724SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxColour *arg1 = (wxColour *) 0 ;
3727 wxString *arg2 = 0 ;
3728 void *argp1 = 0 ;
3729 int res1 = 0 ;
3730 bool temp2 = false ;
3731 PyObject * obj0 = 0 ;
3732 PyObject * obj1 = 0 ;
3733 char * kwnames[] = {
3734 (char *) "self",(char *) "colourName", NULL
3735 };
3736
3737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3739 if (!SWIG_IsOK(res1)) {
3740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3741 }
3742 arg1 = reinterpret_cast< wxColour * >(argp1);
3743 {
3744 arg2 = wxString_in_helper(obj1);
3745 if (arg2 == NULL) SWIG_fail;
3746 temp2 = true;
3747 }
3748 {
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 (arg1)->InitFromName((wxString const &)*arg2);
3751 wxPyEndAllowThreads(__tstate);
3752 if (PyErr_Occurred()) SWIG_fail;
3753 }
3754 resultobj = SWIG_Py_Void();
3755 {
3756 if (temp2)
3757 delete arg2;
3758 }
3759 return resultobj;
3760fail:
3761 {
3762 if (temp2)
3763 delete arg2;
3764 }
3765 return NULL;
d55e5bfc
RD
3766}
3767
3768
2131d850
RD
3769SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3770 PyObject *resultobj = 0;
3771 wxColour *arg1 = (wxColour *) 0 ;
3772 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3773 wxString result;
3774 void *argp1 = 0 ;
3775 int res1 = 0 ;
3776 long val2 ;
3777 int ecode2 = 0 ;
3778 PyObject * obj0 = 0 ;
3779 PyObject * obj1 = 0 ;
3780 char * kwnames[] = {
3781 (char *) "self",(char *) "flags", NULL
3782 };
3783
3784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3786 if (!SWIG_IsOK(res1)) {
3787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3788 }
3789 arg1 = reinterpret_cast< wxColour * >(argp1);
3790 if (obj1) {
3791 ecode2 = SWIG_AsVal_long(obj1, &val2);
3792 if (!SWIG_IsOK(ecode2)) {
3793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3794 }
3795 arg2 = static_cast< long >(val2);
3796 }
3797 {
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
3799 result = ((wxColour const *)arg1)->GetAsString(arg2);
3800 wxPyEndAllowThreads(__tstate);
3801 if (PyErr_Occurred()) SWIG_fail;
3802 }
3803 {
3804#if wxUSE_UNICODE
3805 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3806#else
3807 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3808#endif
3809 }
3810 return resultobj;
3811fail:
3812 return NULL;
3813}
3814
3815
1bd55598
RD
3816SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3817 PyObject *resultobj = 0;
3818 wxColour *arg1 = (wxColour *) 0 ;
3819 long result;
3820 void *argp1 = 0 ;
3821 int res1 = 0 ;
3822 PyObject *swig_obj[1] ;
3823
3824 if (!args) SWIG_fail;
3825 swig_obj[0] = args;
3826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3827 if (!SWIG_IsOK(res1)) {
3828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3829 }
3830 arg1 = reinterpret_cast< wxColour * >(argp1);
3831 {
3832 PyThreadState* __tstate = wxPyBeginAllowThreads();
3833 result = (long)((wxColour const *)arg1)->GetPixel();
3834 wxPyEndAllowThreads(__tstate);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 resultobj = SWIG_From_long(static_cast< long >(result));
3838 return resultobj;
3839fail:
3840 return NULL;
3841}
3842
3843
3844SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3845 PyObject *resultobj = 0;
3846 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 3847 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
3848 bool result;
3849 void *argp1 = 0 ;
3850 int res1 = 0 ;
1bd55598
RD
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 char * kwnames[] = {
e9d6f3a4 3854 (char *) "self",(char *) "other", NULL
1bd55598
RD
3855 };
3856
3857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3859 if (!SWIG_IsOK(res1)) {
e9d6f3a4 3860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
3861 }
3862 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 3863 arg2 = obj1;
1bd55598 3864 {
e9d6f3a4 3865 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
3866 if (PyErr_Occurred()) SWIG_fail;
3867 }
3868 {
3869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3870 }
3871 return resultobj;
3872fail:
3873 return NULL;
3874}
3875
3876
3877SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3878 PyObject *resultobj = 0;
3879 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 3880 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
3881 bool result;
3882 void *argp1 = 0 ;
3883 int res1 = 0 ;
1bd55598
RD
3884 PyObject * obj0 = 0 ;
3885 PyObject * obj1 = 0 ;
3886 char * kwnames[] = {
e9d6f3a4 3887 (char *) "self",(char *) "other", NULL
1bd55598
RD
3888 };
3889
3890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3892 if (!SWIG_IsOK(res1)) {
e9d6f3a4 3893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
3894 }
3895 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 3896 arg2 = obj1;
1bd55598 3897 {
e9d6f3a4 3898 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 {
3902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3903 }
3904 return resultobj;
3905fail:
3906 return NULL;
d55e5bfc
RD
3907}
3908
3909
1bd55598
RD
3910SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3911 PyObject *resultobj = 0;
3912 wxColour *arg1 = (wxColour *) 0 ;
3913 PyObject *result = 0 ;
3914 void *argp1 = 0 ;
3915 int res1 = 0 ;
3916 PyObject *swig_obj[1] ;
3917
3918 if (!args) SWIG_fail;
3919 swig_obj[0] = args;
3920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3921 if (!SWIG_IsOK(res1)) {
3922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3923 }
3924 arg1 = reinterpret_cast< wxColour * >(argp1);
3925 {
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (PyObject *)wxColour_Get(arg1);
3928 wxPyEndAllowThreads(__tstate);
3929 if (PyErr_Occurred()) SWIG_fail;
3930 }
3931 resultobj = result;
3932 return resultobj;
3933fail:
3934 return NULL;
d55e5bfc
RD
3935}
3936
3937
1bd55598
RD
3938SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3939 PyObject *resultobj = 0;
3940 wxColour *arg1 = (wxColour *) 0 ;
3941 unsigned long result;
3942 void *argp1 = 0 ;
3943 int res1 = 0 ;
3944 PyObject *swig_obj[1] ;
3945
3946 if (!args) SWIG_fail;
3947 swig_obj[0] = args;
3948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3949 if (!SWIG_IsOK(res1)) {
3950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3951 }
3952 arg1 = reinterpret_cast< wxColour * >(argp1);
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 result = (unsigned long)wxColour_GetRGB(arg1);
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3960 return resultobj;
3961fail:
3962 return NULL;
3963}
3964
3965
3966SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3967 PyObject *obj;
3968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3969 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3970 return SWIG_Py_Void();
3971}
3972
3973SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3974 return SWIG_Python_InitShadowInstance(args);
3975}
3976
3977SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3978 PyObject *resultobj = 0;
3979 int arg1 ;
3980 unsigned char *arg2 = (unsigned char *) 0 ;
3981 unsigned char *arg3 = (unsigned char *) 0 ;
3982 unsigned char *arg4 = (unsigned char *) 0 ;
3983 wxPalette *result = 0 ;
3984 int val1 ;
3985 int ecode1 = 0 ;
3986 void *argp2 = 0 ;
3987 int res2 = 0 ;
3988 void *argp3 = 0 ;
3989 int res3 = 0 ;
3990 void *argp4 = 0 ;
3991 int res4 = 0 ;
3992 PyObject * obj0 = 0 ;
3993 PyObject * obj1 = 0 ;
3994 PyObject * obj2 = 0 ;
3995 PyObject * obj3 = 0 ;
3996 char * kwnames[] = {
3997 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3998 };
3999
4000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4001 ecode1 = SWIG_AsVal_int(obj0, &val1);
4002 if (!SWIG_IsOK(ecode1)) {
4003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4004 }
4005 arg1 = static_cast< int >(val1);
4006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4007 if (!SWIG_IsOK(res2)) {
4008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4009 }
4010 arg2 = reinterpret_cast< unsigned char * >(argp2);
4011 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4012 if (!SWIG_IsOK(res3)) {
4013 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4014 }
4015 arg3 = reinterpret_cast< unsigned char * >(argp3);
4016 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4017 if (!SWIG_IsOK(res4)) {
4018 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4019 }
4020 arg4 = reinterpret_cast< unsigned char * >(argp4);
4021 {
4022 if (!wxPyCheckForApp()) SWIG_fail;
4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
4024 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4025 wxPyEndAllowThreads(__tstate);
4026 if (PyErr_Occurred()) SWIG_fail;
4027 }
4028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4029 return resultobj;
4030fail:
4031 return NULL;
d55e5bfc
RD
4032}
4033
4034
1bd55598
RD
4035SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4036 PyObject *resultobj = 0;
4037 wxPalette *arg1 = (wxPalette *) 0 ;
4038 void *argp1 = 0 ;
4039 int res1 = 0 ;
4040 PyObject *swig_obj[1] ;
4041
4042 if (!args) SWIG_fail;
4043 swig_obj[0] = args;
4044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4045 if (!SWIG_IsOK(res1)) {
4046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4047 }
4048 arg1 = reinterpret_cast< wxPalette * >(argp1);
4049 {
4050 PyThreadState* __tstate = wxPyBeginAllowThreads();
4051 delete arg1;
d55e5bfc 4052
1bd55598
RD
4053 wxPyEndAllowThreads(__tstate);
4054 if (PyErr_Occurred()) SWIG_fail;
4055 }
4056 resultobj = SWIG_Py_Void();
4057 return resultobj;
4058fail:
4059 return NULL;
4060}
4061
4062
4063SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4064 PyObject *resultobj = 0;
4065 wxPalette *arg1 = (wxPalette *) 0 ;
4066 byte arg2 ;
4067 byte arg3 ;
4068 byte arg4 ;
4069 int result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 unsigned char val2 ;
4073 int ecode2 = 0 ;
4074 unsigned char val3 ;
4075 int ecode3 = 0 ;
4076 unsigned char val4 ;
4077 int ecode4 = 0 ;
4078 PyObject * obj0 = 0 ;
4079 PyObject * obj1 = 0 ;
4080 PyObject * obj2 = 0 ;
4081 PyObject * obj3 = 0 ;
4082 char * kwnames[] = {
4083 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4084 };
4085
4086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4088 if (!SWIG_IsOK(res1)) {
4089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4090 }
4091 arg1 = reinterpret_cast< wxPalette * >(argp1);
4092 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4093 if (!SWIG_IsOK(ecode2)) {
4094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4095 }
4096 arg2 = static_cast< byte >(val2);
4097 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4098 if (!SWIG_IsOK(ecode3)) {
4099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4100 }
4101 arg3 = static_cast< byte >(val3);
4102 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4103 if (!SWIG_IsOK(ecode4)) {
4104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4105 }
4106 arg4 = static_cast< byte >(val4);
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 resultobj = SWIG_From_int(static_cast< int >(result));
4114 return resultobj;
4115fail:
4116 return NULL;
4117}
4118
4119
4120SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj = 0;
4122 wxPalette *arg1 = (wxPalette *) 0 ;
4123 int arg2 ;
4124 byte *arg3 = (byte *) 0 ;
4125 byte *arg4 = (byte *) 0 ;
4126 byte *arg5 = (byte *) 0 ;
4127 bool result;
4128 void *argp1 = 0 ;
4129 int res1 = 0 ;
4130 int val2 ;
4131 int ecode2 = 0 ;
4132 byte temp3 ;
4133 int res3 = SWIG_TMPOBJ ;
4134 byte temp4 ;
4135 int res4 = SWIG_TMPOBJ ;
4136 byte temp5 ;
4137 int res5 = SWIG_TMPOBJ ;
4138 PyObject * obj0 = 0 ;
4139 PyObject * obj1 = 0 ;
4140 char * kwnames[] = {
4141 (char *) "self",(char *) "pixel", NULL
4142 };
4143
4144 arg3 = &temp3;
4145 arg4 = &temp4;
4146 arg5 = &temp5;
4147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4149 if (!SWIG_IsOK(res1)) {
4150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4151 }
4152 arg1 = reinterpret_cast< wxPalette * >(argp1);
4153 ecode2 = SWIG_AsVal_int(obj1, &val2);
4154 if (!SWIG_IsOK(ecode2)) {
4155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4156 }
4157 arg2 = static_cast< int >(val2);
4158 {
4159 PyThreadState* __tstate = wxPyBeginAllowThreads();
4160 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 {
4165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4166 }
4167 if (SWIG_IsTmpObj(res3)) {
4168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4169 } else {
4170 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4172 }
4173 if (SWIG_IsTmpObj(res4)) {
4174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4175 } else {
4176 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4178 }
4179 if (SWIG_IsTmpObj(res5)) {
4180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4181 } else {
4182 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4184 }
4185 return resultobj;
4186fail:
4187 return NULL;
d55e5bfc
RD
4188}
4189
4190
1bd55598
RD
4191SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4192 PyObject *resultobj = 0;
4193 wxPalette *arg1 = (wxPalette *) 0 ;
4194 int result;
4195 void *argp1 = 0 ;
4196 int res1 = 0 ;
4197 PyObject *swig_obj[1] ;
4198
4199 if (!args) SWIG_fail;
4200 swig_obj[0] = args;
4201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4202 if (!SWIG_IsOK(res1)) {
4203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4204 }
4205 arg1 = reinterpret_cast< wxPalette * >(argp1);
4206 {
4207 PyThreadState* __tstate = wxPyBeginAllowThreads();
4208 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4209 wxPyEndAllowThreads(__tstate);
4210 if (PyErr_Occurred()) SWIG_fail;
4211 }
4212 resultobj = SWIG_From_int(static_cast< int >(result));
4213 return resultobj;
4214fail:
4215 return NULL;
d55e5bfc
RD
4216}
4217
4218
1bd55598
RD
4219SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4220 PyObject *resultobj = 0;
4221 wxPalette *arg1 = (wxPalette *) 0 ;
4222 bool result;
4223 void *argp1 = 0 ;
4224 int res1 = 0 ;
4225 PyObject *swig_obj[1] ;
4226
4227 if (!args) SWIG_fail;
4228 swig_obj[0] = args;
4229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4230 if (!SWIG_IsOK(res1)) {
4231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4232 }
4233 arg1 = reinterpret_cast< wxPalette * >(argp1);
4234 {
4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
4236 result = (bool)(arg1)->Ok();
4237 wxPyEndAllowThreads(__tstate);
4238 if (PyErr_Occurred()) SWIG_fail;
4239 }
4240 {
4241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4242 }
4243 return resultobj;
4244fail:
4245 return NULL;
4246}
4247
4248
4249SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4250 PyObject *obj;
4251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4252 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4253 return SWIG_Py_Void();
4254}
4255
4256SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4257 return SWIG_Python_InitShadowInstance(args);
4258}
4259
4260SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4261 PyObject *resultobj = 0;
4262 wxColour *arg1 = 0 ;
4263 int arg2 = (int) 1 ;
4264 int arg3 = (int) wxSOLID ;
4265 wxPen *result = 0 ;
4266 wxColour temp1 ;
4267 int val2 ;
4268 int ecode2 = 0 ;
4269 int val3 ;
4270 int ecode3 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 PyObject * obj2 = 0 ;
4274 char * kwnames[] = {
4275 (char *) "colour",(char *) "width",(char *) "style", NULL
4276 };
4277
4278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4279 {
4280 arg1 = &temp1;
4281 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4282 }
4283 if (obj1) {
4284 ecode2 = SWIG_AsVal_int(obj1, &val2);
4285 if (!SWIG_IsOK(ecode2)) {
4286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4287 }
4288 arg2 = static_cast< int >(val2);
4289 }
4290 if (obj2) {
4291 ecode3 = SWIG_AsVal_int(obj2, &val3);
4292 if (!SWIG_IsOK(ecode3)) {
4293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4294 }
4295 arg3 = static_cast< int >(val3);
4296 }
4297 {
4298 if (!wxPyCheckForApp()) SWIG_fail;
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4305 return resultobj;
4306fail:
4307 return NULL;
d55e5bfc
RD
4308}
4309
4310
1bd55598
RD
4311SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4312 PyObject *resultobj = 0;
4313 wxPen *arg1 = (wxPen *) 0 ;
4314 void *argp1 = 0 ;
4315 int res1 = 0 ;
4316 PyObject *swig_obj[1] ;
4317
4318 if (!args) SWIG_fail;
4319 swig_obj[0] = args;
4320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4321 if (!SWIG_IsOK(res1)) {
4322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4323 }
4324 arg1 = reinterpret_cast< wxPen * >(argp1);
4325 {
4326 PyThreadState* __tstate = wxPyBeginAllowThreads();
4327 delete arg1;
f78cc896 4328
1bd55598
RD
4329 wxPyEndAllowThreads(__tstate);
4330 if (PyErr_Occurred()) SWIG_fail;
4331 }
4332 resultobj = SWIG_Py_Void();
4333 return resultobj;
4334fail:
4335 return NULL;
f78cc896
RD
4336}
4337
4338
1bd55598
RD
4339SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4340 PyObject *resultobj = 0;
4341 wxPen *arg1 = (wxPen *) 0 ;
4342 int result;
4343 void *argp1 = 0 ;
4344 int res1 = 0 ;
4345 PyObject *swig_obj[1] ;
4346
4347 if (!args) SWIG_fail;
4348 swig_obj[0] = args;
4349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4350 if (!SWIG_IsOK(res1)) {
4351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4352 }
4353 arg1 = reinterpret_cast< wxPen * >(argp1);
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 result = (int)(arg1)->GetCap();
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 resultobj = SWIG_From_int(static_cast< int >(result));
4361 return resultobj;
4362fail:
4363 return NULL;
d55e5bfc
RD
4364}
4365
4366
1bd55598
RD
4367SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4368 PyObject *resultobj = 0;
4369 wxPen *arg1 = (wxPen *) 0 ;
4370 wxColour result;
4371 void *argp1 = 0 ;
4372 int res1 = 0 ;
4373 PyObject *swig_obj[1] ;
4374
4375 if (!args) SWIG_fail;
4376 swig_obj[0] = args;
4377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4378 if (!SWIG_IsOK(res1)) {
4379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4380 }
4381 arg1 = reinterpret_cast< wxPen * >(argp1);
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 result = (arg1)->GetColour();
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4389 return resultobj;
4390fail:
4391 return NULL;
d55e5bfc
RD
4392}
4393
4394
1bd55598
RD
4395SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4396 PyObject *resultobj = 0;
4397 wxPen *arg1 = (wxPen *) 0 ;
4398 int result;
4399 void *argp1 = 0 ;
4400 int res1 = 0 ;
4401 PyObject *swig_obj[1] ;
4402
4403 if (!args) SWIG_fail;
4404 swig_obj[0] = args;
4405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4408 }
4409 arg1 = reinterpret_cast< wxPen * >(argp1);
4410 {
4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
4412 result = (int)(arg1)->GetJoin();
4413 wxPyEndAllowThreads(__tstate);
4414 if (PyErr_Occurred()) SWIG_fail;
4415 }
4416 resultobj = SWIG_From_int(static_cast< int >(result));
4417 return resultobj;
4418fail:
4419 return NULL;
d55e5bfc
RD
4420}
4421
4422
1bd55598
RD
4423SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4424 PyObject *resultobj = 0;
4425 wxPen *arg1 = (wxPen *) 0 ;
4426 int result;
4427 void *argp1 = 0 ;
4428 int res1 = 0 ;
4429 PyObject *swig_obj[1] ;
4430
4431 if (!args) SWIG_fail;
4432 swig_obj[0] = args;
4433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4434 if (!SWIG_IsOK(res1)) {
4435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4436 }
4437 arg1 = reinterpret_cast< wxPen * >(argp1);
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 result = (int)(arg1)->GetStyle();
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 resultobj = SWIG_From_int(static_cast< int >(result));
4445 return resultobj;
4446fail:
4447 return NULL;
d55e5bfc
RD
4448}
4449
4450
1bd55598
RD
4451SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4452 PyObject *resultobj = 0;
4453 wxPen *arg1 = (wxPen *) 0 ;
4454 int result;
4455 void *argp1 = 0 ;
4456 int res1 = 0 ;
4457 PyObject *swig_obj[1] ;
4458
4459 if (!args) SWIG_fail;
4460 swig_obj[0] = args;
4461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4462 if (!SWIG_IsOK(res1)) {
4463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4464 }
4465 arg1 = reinterpret_cast< wxPen * >(argp1);
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 result = (int)(arg1)->GetWidth();
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 resultobj = SWIG_From_int(static_cast< int >(result));
4473 return resultobj;
4474fail:
4475 return NULL;
d55e5bfc
RD
4476}
4477
4478
1bd55598
RD
4479SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4480 PyObject *resultobj = 0;
4481 wxPen *arg1 = (wxPen *) 0 ;
4482 bool result;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 PyObject *swig_obj[1] ;
4486
4487 if (!args) SWIG_fail;
4488 swig_obj[0] = args;
4489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4490 if (!SWIG_IsOK(res1)) {
4491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4492 }
4493 arg1 = reinterpret_cast< wxPen * >(argp1);
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 result = (bool)(arg1)->Ok();
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) SWIG_fail;
4499 }
4500 {
4501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4502 }
4503 return resultobj;
4504fail:
4505 return NULL;
4506}
4507
4508
4509SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4510 PyObject *resultobj = 0;
4511 wxPen *arg1 = (wxPen *) 0 ;
4512 int arg2 ;
4513 void *argp1 = 0 ;
4514 int res1 = 0 ;
4515 int val2 ;
4516 int ecode2 = 0 ;
4517 PyObject * obj0 = 0 ;
4518 PyObject * obj1 = 0 ;
4519 char * kwnames[] = {
4520 (char *) "self",(char *) "cap_style", NULL
4521 };
4522
4523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4525 if (!SWIG_IsOK(res1)) {
4526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4527 }
4528 arg1 = reinterpret_cast< wxPen * >(argp1);
4529 ecode2 = SWIG_AsVal_int(obj1, &val2);
4530 if (!SWIG_IsOK(ecode2)) {
4531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4532 }
4533 arg2 = static_cast< int >(val2);
4534 {
4535 PyThreadState* __tstate = wxPyBeginAllowThreads();
4536 (arg1)->SetCap(arg2);
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 }
4540 resultobj = SWIG_Py_Void();
4541 return resultobj;
4542fail:
4543 return NULL;
4544}
4545
4546
4547SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4548 PyObject *resultobj = 0;
4549 wxPen *arg1 = (wxPen *) 0 ;
4550 wxColour *arg2 = 0 ;
4551 void *argp1 = 0 ;
4552 int res1 = 0 ;
4553 wxColour temp2 ;
4554 PyObject * obj0 = 0 ;
4555 PyObject * obj1 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "self",(char *) "colour", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4564 }
4565 arg1 = reinterpret_cast< wxPen * >(argp1);
4566 {
4567 arg2 = &temp2;
4568 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4569 }
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 (arg1)->SetColour(*arg2);
4573 wxPyEndAllowThreads(__tstate);
4574 if (PyErr_Occurred()) SWIG_fail;
4575 }
4576 resultobj = SWIG_Py_Void();
4577 return resultobj;
4578fail:
4579 return NULL;
4580}
4581
4582
4583SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4584 PyObject *resultobj = 0;
4585 wxPen *arg1 = (wxPen *) 0 ;
4586 int arg2 ;
4587 void *argp1 = 0 ;
4588 int res1 = 0 ;
4589 int val2 ;
4590 int ecode2 = 0 ;
4591 PyObject * obj0 = 0 ;
4592 PyObject * obj1 = 0 ;
4593 char * kwnames[] = {
4594 (char *) "self",(char *) "join_style", NULL
4595 };
4596
4597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4599 if (!SWIG_IsOK(res1)) {
4600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4601 }
4602 arg1 = reinterpret_cast< wxPen * >(argp1);
4603 ecode2 = SWIG_AsVal_int(obj1, &val2);
4604 if (!SWIG_IsOK(ecode2)) {
4605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4606 }
4607 arg2 = static_cast< int >(val2);
4608 {
4609 PyThreadState* __tstate = wxPyBeginAllowThreads();
4610 (arg1)->SetJoin(arg2);
4611 wxPyEndAllowThreads(__tstate);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 resultobj = SWIG_Py_Void();
4615 return resultobj;
4616fail:
4617 return NULL;
4618}
4619
4620
4621SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4622 PyObject *resultobj = 0;
4623 wxPen *arg1 = (wxPen *) 0 ;
4624 int arg2 ;
4625 void *argp1 = 0 ;
4626 int res1 = 0 ;
4627 int val2 ;
4628 int ecode2 = 0 ;
4629 PyObject * obj0 = 0 ;
4630 PyObject * obj1 = 0 ;
4631 char * kwnames[] = {
4632 (char *) "self",(char *) "style", NULL
4633 };
4634
4635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4637 if (!SWIG_IsOK(res1)) {
4638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4639 }
4640 arg1 = reinterpret_cast< wxPen * >(argp1);
4641 ecode2 = SWIG_AsVal_int(obj1, &val2);
4642 if (!SWIG_IsOK(ecode2)) {
4643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4644 }
4645 arg2 = static_cast< int >(val2);
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 (arg1)->SetStyle(arg2);
4649 wxPyEndAllowThreads(__tstate);
4650 if (PyErr_Occurred()) SWIG_fail;
4651 }
4652 resultobj = SWIG_Py_Void();
4653 return resultobj;
4654fail:
4655 return NULL;
4656}
4657
4658
4659SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4660 PyObject *resultobj = 0;
4661 wxPen *arg1 = (wxPen *) 0 ;
4662 int arg2 ;
4663 void *argp1 = 0 ;
4664 int res1 = 0 ;
4665 int val2 ;
4666 int ecode2 = 0 ;
4667 PyObject * obj0 = 0 ;
4668 PyObject * obj1 = 0 ;
4669 char * kwnames[] = {
4670 (char *) "self",(char *) "width", NULL
4671 };
4672
4673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4675 if (!SWIG_IsOK(res1)) {
4676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4677 }
4678 arg1 = reinterpret_cast< wxPen * >(argp1);
4679 ecode2 = SWIG_AsVal_int(obj1, &val2);
4680 if (!SWIG_IsOK(ecode2)) {
4681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4682 }
4683 arg2 = static_cast< int >(val2);
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 (arg1)->SetWidth(arg2);
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 resultobj = SWIG_Py_Void();
4691 return resultobj;
4692fail:
4693 return NULL;
4694}
4695
4696
4697SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4698 PyObject *resultobj = 0;
4699 wxPen *arg1 = (wxPen *) 0 ;
4700 int arg2 ;
4701 wxDash *arg3 = (wxDash *) 0 ;
4702 void *argp1 = 0 ;
4703 int res1 = 0 ;
4704 PyObject * obj0 = 0 ;
4705 PyObject * obj1 = 0 ;
4706 char * kwnames[] = {
4707 (char *) "self",(char *) "dashes", NULL
4708 };
4709
4710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4714 }
4715 arg1 = reinterpret_cast< wxPen * >(argp1);
4716 {
4717 arg2 = PyList_Size(obj1);
4718 arg3 = (wxDash*)byte_LIST_helper(obj1);
4719 if (arg3 == NULL) SWIG_fail;
4720 }
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 (arg1)->SetDashes(arg2,arg3);
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 resultobj = SWIG_Py_Void();
4728 {
4729 if (arg3) delete [] arg3;
4730 }
4731 return resultobj;
4732fail:
4733 {
4734 if (arg3) delete [] arg3;
4735 }
4736 return NULL;
d6c14a4c
RD
4737}
4738
4739
1bd55598
RD
4740SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4741 PyObject *resultobj = 0;
4742 wxPen *arg1 = (wxPen *) 0 ;
4743 PyObject *result = 0 ;
4744 void *argp1 = 0 ;
4745 int res1 = 0 ;
4746 PyObject *swig_obj[1] ;
4747
4748 if (!args) SWIG_fail;
4749 swig_obj[0] = args;
4750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4751 if (!SWIG_IsOK(res1)) {
4752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4753 }
4754 arg1 = reinterpret_cast< wxPen * >(argp1);
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 result = (PyObject *)wxPen_GetDashes(arg1);
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = result;
4762 return resultobj;
4763fail:
4764 return NULL;
4765}
4766
4767
4768SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4769 PyObject *resultobj = 0;
4770 wxPen *arg1 = (wxPen *) 0 ;
4771 PyObject *arg2 = (PyObject *) 0 ;
4772 PyObject *arg3 = (PyObject *) 0 ;
4773 void *argp1 = 0 ;
4774 int res1 = 0 ;
4775 PyObject * obj0 = 0 ;
4776 PyObject * obj1 = 0 ;
4777 PyObject * obj2 = 0 ;
4778 char * kwnames[] = {
4779 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4780 };
4781
4782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4786 }
4787 arg1 = reinterpret_cast< wxPen * >(argp1);
4788 arg2 = obj1;
4789 arg3 = obj2;
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 wxPen__SetDashes(arg1,arg2,arg3);
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 resultobj = SWIG_Py_Void();
4797 return resultobj;
4798fail:
4799 return NULL;
4800}
4801
4802
4803SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4804 PyObject *resultobj = 0;
4805 wxPen *arg1 = (wxPen *) 0 ;
4806 wxPen *arg2 = (wxPen *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 void *argp2 = 0 ;
4811 int res2 = 0 ;
4812 PyObject * obj0 = 0 ;
4813 PyObject * obj1 = 0 ;
4814 char * kwnames[] = {
4815 (char *) "self",(char *) "other", NULL
4816 };
4817
4818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4820 if (!SWIG_IsOK(res1)) {
4821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4822 }
4823 arg1 = reinterpret_cast< wxPen * >(argp1);
4824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4825 if (!SWIG_IsOK(res2)) {
4826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4827 }
4828 arg2 = reinterpret_cast< wxPen * >(argp2);
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 {
4836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4837 }
4838 return resultobj;
4839fail:
4840 return NULL;
4841}
4842
4843
4844SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4845 PyObject *resultobj = 0;
4846 wxPen *arg1 = (wxPen *) 0 ;
4847 wxPen *arg2 = (wxPen *) 0 ;
4848 bool result;
4849 void *argp1 = 0 ;
4850 int res1 = 0 ;
4851 void *argp2 = 0 ;
4852 int res2 = 0 ;
4853 PyObject * obj0 = 0 ;
4854 PyObject * obj1 = 0 ;
4855 char * kwnames[] = {
4856 (char *) "self",(char *) "other", NULL
4857 };
4858
4859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4861 if (!SWIG_IsOK(res1)) {
4862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4863 }
4864 arg1 = reinterpret_cast< wxPen * >(argp1);
4865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4866 if (!SWIG_IsOK(res2)) {
4867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4868 }
4869 arg2 = reinterpret_cast< wxPen * >(argp2);
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 {
4877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4878 }
4879 return resultobj;
4880fail:
4881 return NULL;
4882}
d55e5bfc
RD
4883
4884
1bd55598
RD
4885SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 PyObject *obj;
4887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4888 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4889 return SWIG_Py_Void();
d55e5bfc
RD
4890}
4891
1bd55598
RD
4892SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4893 return SWIG_Python_InitShadowInstance(args);
4894}
d55e5bfc 4895
1bd55598
RD
4896SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj = 0;
4898 wxColour *arg1 = 0 ;
4899 int arg2 = (int) wxSOLID ;
4900 wxBrush *result = 0 ;
4901 wxColour temp1 ;
4902 int val2 ;
4903 int ecode2 = 0 ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 char * kwnames[] = {
4907 (char *) "colour",(char *) "style", NULL
4908 };
4909
4910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4911 {
4912 arg1 = &temp1;
4913 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4914 }
4915 if (obj1) {
4916 ecode2 = SWIG_AsVal_int(obj1, &val2);
4917 if (!SWIG_IsOK(ecode2)) {
4918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4919 }
4920 arg2 = static_cast< int >(val2);
4921 }
4922 {
4923 if (!wxPyCheckForApp()) SWIG_fail;
4924 PyThreadState* __tstate = wxPyBeginAllowThreads();
4925 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4930 return resultobj;
4931fail:
4932 return NULL;
4933}
4934
4935
4936SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4937 PyObject *resultobj = 0;
4938 wxBitmap *arg1 = 0 ;
4939 wxBrush *result = 0 ;
4940 void *argp1 = 0 ;
4941 int res1 = 0 ;
4942 PyObject * obj0 = 0 ;
4943 char * kwnames[] = {
4944 (char *) "stippleBitmap", NULL
4945 };
4946
4947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4948 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4951 }
4952 if (!argp1) {
4953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4954 }
4955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4956 {
4957 if (!wxPyCheckForApp()) SWIG_fail;
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4964 return resultobj;
4965fail:
4966 return NULL;
d55e5bfc
RD
4967}
4968
4969
1bd55598
RD
4970SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4971 PyObject *resultobj = 0;
4972 wxBrush *arg1 = (wxBrush *) 0 ;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4982 }
4983 arg1 = reinterpret_cast< wxBrush * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 delete arg1;
d55e5bfc 4987
1bd55598
RD
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 resultobj = SWIG_Py_Void();
4992 return resultobj;
4993fail:
4994 return NULL;
4995}
4996
4997
4998SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj = 0;
5000 wxBrush *arg1 = (wxBrush *) 0 ;
5001 wxColour *arg2 = 0 ;
5002 void *argp1 = 0 ;
5003 int res1 = 0 ;
5004 wxColour temp2 ;
5005 PyObject * obj0 = 0 ;
5006 PyObject * obj1 = 0 ;
5007 char * kwnames[] = {
5008 (char *) "self",(char *) "col", NULL
5009 };
5010
5011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5013 if (!SWIG_IsOK(res1)) {
5014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5015 }
5016 arg1 = reinterpret_cast< wxBrush * >(argp1);
5017 {
5018 arg2 = &temp2;
5019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5020 }
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 (arg1)->SetColour((wxColour const &)*arg2);
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 resultobj = SWIG_Py_Void();
5028 return resultobj;
5029fail:
5030 return NULL;
5031}
5032
5033
5034SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj = 0;
5036 wxBrush *arg1 = (wxBrush *) 0 ;
5037 int arg2 ;
5038 void *argp1 = 0 ;
5039 int res1 = 0 ;
5040 int val2 ;
5041 int ecode2 = 0 ;
5042 PyObject * obj0 = 0 ;
5043 PyObject * obj1 = 0 ;
5044 char * kwnames[] = {
5045 (char *) "self",(char *) "style", NULL
5046 };
5047
5048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5050 if (!SWIG_IsOK(res1)) {
5051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5052 }
5053 arg1 = reinterpret_cast< wxBrush * >(argp1);
5054 ecode2 = SWIG_AsVal_int(obj1, &val2);
5055 if (!SWIG_IsOK(ecode2)) {
5056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5057 }
5058 arg2 = static_cast< int >(val2);
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 (arg1)->SetStyle(arg2);
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 resultobj = SWIG_Py_Void();
5066 return resultobj;
5067fail:
5068 return NULL;
5069}
5070
5071
5072SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj = 0;
5074 wxBrush *arg1 = (wxBrush *) 0 ;
5075 wxBitmap *arg2 = 0 ;
5076 void *argp1 = 0 ;
5077 int res1 = 0 ;
5078 void *argp2 = 0 ;
5079 int res2 = 0 ;
5080 PyObject * obj0 = 0 ;
5081 PyObject * obj1 = 0 ;
5082 char * kwnames[] = {
5083 (char *) "self",(char *) "stipple", NULL
5084 };
5085
5086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5088 if (!SWIG_IsOK(res1)) {
5089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5090 }
5091 arg1 = reinterpret_cast< wxBrush * >(argp1);
5092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5093 if (!SWIG_IsOK(res2)) {
5094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5095 }
5096 if (!argp2) {
5097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5098 }
5099 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 (arg1)->SetStipple((wxBitmap const &)*arg2);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_Py_Void();
5107 return resultobj;
5108fail:
5109 return NULL;
d55e5bfc
RD
5110}
5111
5112
1bd55598
RD
5113SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5114 PyObject *resultobj = 0;
5115 wxBrush *arg1 = (wxBrush *) 0 ;
5116 wxColour result;
5117 void *argp1 = 0 ;
5118 int res1 = 0 ;
5119 PyObject *swig_obj[1] ;
5120
5121 if (!args) SWIG_fail;
5122 swig_obj[0] = args;
5123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5124 if (!SWIG_IsOK(res1)) {
5125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5126 }
5127 arg1 = reinterpret_cast< wxBrush * >(argp1);
5128 {
5129 PyThreadState* __tstate = wxPyBeginAllowThreads();
5130 result = ((wxBrush const *)arg1)->GetColour();
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5135 return resultobj;
5136fail:
5137 return NULL;
d55e5bfc
RD
5138}
5139
5140
1bd55598
RD
5141SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5142 PyObject *resultobj = 0;
5143 wxBrush *arg1 = (wxBrush *) 0 ;
5144 int result;
5145 void *argp1 = 0 ;
5146 int res1 = 0 ;
5147 PyObject *swig_obj[1] ;
5148
5149 if (!args) SWIG_fail;
5150 swig_obj[0] = args;
5151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5154 }
5155 arg1 = reinterpret_cast< wxBrush * >(argp1);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (int)((wxBrush const *)arg1)->GetStyle();
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_From_int(static_cast< int >(result));
5163 return resultobj;
5164fail:
5165 return NULL;
d55e5bfc
RD
5166}
5167
5168
1bd55598
RD
5169SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5170 PyObject *resultobj = 0;
5171 wxBrush *arg1 = (wxBrush *) 0 ;
5172 wxBitmap *result = 0 ;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 PyObject *swig_obj[1] ;
5176
5177 if (!args) SWIG_fail;
5178 swig_obj[0] = args;
5179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5182 }
5183 arg1 = reinterpret_cast< wxBrush * >(argp1);
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5191 return resultobj;
5192fail:
5193 return NULL;
d55e5bfc
RD
5194}
5195
5196
1bd55598
RD
5197SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxBrush *arg1 = (wxBrush *) 0 ;
5200 bool result;
5201 void *argp1 = 0 ;
5202 int res1 = 0 ;
5203 PyObject *swig_obj[1] ;
5204
5205 if (!args) SWIG_fail;
5206 swig_obj[0] = args;
5207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5210 }
5211 arg1 = reinterpret_cast< wxBrush * >(argp1);
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (bool)((wxBrush const *)arg1)->IsHatch();
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 {
5219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5220 }
5221 return resultobj;
5222fail:
5223 return NULL;
d55e5bfc
RD
5224}
5225
5226
1bd55598
RD
5227SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228 PyObject *resultobj = 0;
5229 wxBrush *arg1 = (wxBrush *) 0 ;
5230 bool result;
5231 void *argp1 = 0 ;
5232 int res1 = 0 ;
5233 PyObject *swig_obj[1] ;
5234
5235 if (!args) SWIG_fail;
5236 swig_obj[0] = args;
5237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5238 if (!SWIG_IsOK(res1)) {
5239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5240 }
5241 arg1 = reinterpret_cast< wxBrush * >(argp1);
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 result = (bool)(arg1)->Ok();
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 {
5249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5250 }
5251 return resultobj;
5252fail:
5253 return NULL;
d55e5bfc
RD
5254}
5255
5256
1bd55598
RD
5257SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5258 PyObject *resultobj = 0;
5259 wxBrush *arg1 = (wxBrush *) 0 ;
5260 short result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 PyObject *swig_obj[1] ;
5264
5265 if (!args) SWIG_fail;
5266 swig_obj[0] = args;
5267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5268 if (!SWIG_IsOK(res1)) {
5269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5270 }
5271 arg1 = reinterpret_cast< wxBrush * >(argp1);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (short)(arg1)->MacGetTheme();
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 resultobj = SWIG_From_short(static_cast< short >(result));
5279 return resultobj;
5280fail:
5281 return NULL;
5282}
5283
5284
5285SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5286 PyObject *resultobj = 0;
5287 wxBrush *arg1 = (wxBrush *) 0 ;
5288 short arg2 ;
5289 void *argp1 = 0 ;
5290 int res1 = 0 ;
5291 short val2 ;
5292 int ecode2 = 0 ;
5293 PyObject * obj0 = 0 ;
5294 PyObject * obj1 = 0 ;
5295 char * kwnames[] = {
5296 (char *) "self",(char *) "macThemeBrush", NULL
5297 };
5298
5299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5301 if (!SWIG_IsOK(res1)) {
5302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5303 }
5304 arg1 = reinterpret_cast< wxBrush * >(argp1);
5305 ecode2 = SWIG_AsVal_short(obj1, &val2);
5306 if (!SWIG_IsOK(ecode2)) {
5307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5308 }
5309 arg2 = static_cast< short >(val2);
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 (arg1)->MacSetTheme(arg2);
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 resultobj = SWIG_Py_Void();
5317 return resultobj;
5318fail:
5319 return NULL;
d55e5bfc
RD
5320}
5321
5322
1bd55598
RD
5323SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5324 PyObject *obj;
5325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5326 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5327 return SWIG_Py_Void();
d55e5bfc
RD
5328}
5329
1bd55598
RD
5330SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5331 return SWIG_Python_InitShadowInstance(args);
5332}
d55e5bfc 5333
1bd55598
RD
5334SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj = 0;
5336 wxString *arg1 = 0 ;
5337 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5338 wxBitmap *result = 0 ;
5339 bool temp1 = false ;
5340 int val2 ;
5341 int ecode2 = 0 ;
5342 PyObject * obj0 = 0 ;
5343 PyObject * obj1 = 0 ;
5344 char * kwnames[] = {
5345 (char *) "name",(char *) "type", NULL
5346 };
5347
5348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5349 {
5350 arg1 = wxString_in_helper(obj0);
5351 if (arg1 == NULL) SWIG_fail;
5352 temp1 = true;
5353 }
5354 if (obj1) {
5355 ecode2 = SWIG_AsVal_int(obj1, &val2);
5356 if (!SWIG_IsOK(ecode2)) {
5357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5358 }
5359 arg2 = static_cast< wxBitmapType >(val2);
5360 }
5361 {
5362 if (!wxPyCheckForApp()) SWIG_fail;
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5369 {
5370 if (temp1)
5371 delete arg1;
5372 }
5373 return resultobj;
5374fail:
5375 {
5376 if (temp1)
5377 delete arg1;
5378 }
5379 return NULL;
d55e5bfc
RD
5380}
5381
5382
1bd55598
RD
5383SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5384 PyObject *resultobj = 0;
5385 wxBitmap *arg1 = (wxBitmap *) 0 ;
5386 void *argp1 = 0 ;
5387 int res1 = 0 ;
5388 PyObject *swig_obj[1] ;
5389
5390 if (!args) SWIG_fail;
5391 swig_obj[0] = args;
5392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5393 if (!SWIG_IsOK(res1)) {
5394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5395 }
5396 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 delete arg1;
d55e5bfc 5400
1bd55598
RD
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 resultobj = SWIG_Py_Void();
5405 return resultobj;
5406fail:
5407 return NULL;
5408}
5409
5410
5411SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj = 0;
5413 int arg1 ;
5414 int arg2 ;
5415 int arg3 = (int) -1 ;
5416 wxBitmap *result = 0 ;
5417 int val1 ;
5418 int ecode1 = 0 ;
5419 int val2 ;
5420 int ecode2 = 0 ;
5421 int val3 ;
5422 int ecode3 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 PyObject * obj1 = 0 ;
5425 PyObject * obj2 = 0 ;
5426 char * kwnames[] = {
5427 (char *) "width",(char *) "height",(char *) "depth", NULL
5428 };
5429
5430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5434 }
5435 arg1 = static_cast< int >(val1);
5436 ecode2 = SWIG_AsVal_int(obj1, &val2);
5437 if (!SWIG_IsOK(ecode2)) {
5438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5439 }
5440 arg2 = static_cast< int >(val2);
5441 if (obj2) {
5442 ecode3 = SWIG_AsVal_int(obj2, &val3);
5443 if (!SWIG_IsOK(ecode3)) {
5444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5445 }
5446 arg3 = static_cast< int >(val3);
5447 }
5448 {
5449 if (!wxPyCheckForApp()) SWIG_fail;
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
5455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5456 return resultobj;
5457fail:
5458 return NULL;
5459}
5460
5461
5462SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj = 0;
5464 wxIcon *arg1 = 0 ;
5465 wxBitmap *result = 0 ;
5466 void *argp1 = 0 ;
5467 int res1 = 0 ;
5468 PyObject * obj0 = 0 ;
5469 char * kwnames[] = {
5470 (char *) "icon", NULL
5471 };
5472
5473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5474 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5475 if (!SWIG_IsOK(res1)) {
5476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5477 }
5478 if (!argp1) {
5479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5480 }
5481 arg1 = reinterpret_cast< wxIcon * >(argp1);
5482 {
5483 if (!wxPyCheckForApp()) SWIG_fail;
5484 PyThreadState* __tstate = wxPyBeginAllowThreads();
5485 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5490 return resultobj;
5491fail:
5492 return NULL;
5493}
5494
5495
5496SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5497 PyObject *resultobj = 0;
5498 wxImage *arg1 = 0 ;
5499 int arg2 = (int) -1 ;
5500 wxBitmap *result = 0 ;
5501 void *argp1 = 0 ;
5502 int res1 = 0 ;
5503 int val2 ;
5504 int ecode2 = 0 ;
5505 PyObject * obj0 = 0 ;
5506 PyObject * obj1 = 0 ;
5507 char * kwnames[] = {
5508 (char *) "image",(char *) "depth", NULL
5509 };
5510
5511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5512 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5513 if (!SWIG_IsOK(res1)) {
5514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5515 }
5516 if (!argp1) {
5517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5518 }
5519 arg1 = reinterpret_cast< wxImage * >(argp1);
5520 if (obj1) {
5521 ecode2 = SWIG_AsVal_int(obj1, &val2);
5522 if (!SWIG_IsOK(ecode2)) {
5523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5524 }
5525 arg2 = static_cast< int >(val2);
5526 }
5527 {
5528 if (!wxPyCheckForApp()) SWIG_fail;
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5535 return resultobj;
5536fail:
5537 return NULL;
d55e5bfc
RD
5538}
5539
5540
1bd55598
RD
5541SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5542 PyObject *resultobj = 0;
5543 PyObject *arg1 = (PyObject *) 0 ;
5544 wxBitmap *result = 0 ;
5545 PyObject * obj0 = 0 ;
5546 char * kwnames[] = {
5547 (char *) "listOfStrings", NULL
5548 };
5549
5550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5551 arg1 = obj0;
5552 {
5553 if (!wxPyCheckForApp()) SWIG_fail;
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (wxBitmap *)new_wxBitmap(arg1);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5560 return resultobj;
5561fail:
5562 return NULL;
5563}
5564
5565
5566SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj = 0;
5568 PyObject *arg1 = (PyObject *) 0 ;
5569 int arg2 ;
5570 int arg3 ;
5571 int arg4 = (int) 1 ;
5572 wxBitmap *result = 0 ;
5573 int val2 ;
5574 int ecode2 = 0 ;
5575 int val3 ;
5576 int ecode3 = 0 ;
5577 int val4 ;
5578 int ecode4 = 0 ;
5579 PyObject * obj0 = 0 ;
5580 PyObject * obj1 = 0 ;
5581 PyObject * obj2 = 0 ;
5582 PyObject * obj3 = 0 ;
5583 char * kwnames[] = {
5584 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5585 };
5586
5587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5588 arg1 = obj0;
5589 ecode2 = SWIG_AsVal_int(obj1, &val2);
5590 if (!SWIG_IsOK(ecode2)) {
5591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5592 }
5593 arg2 = static_cast< int >(val2);
5594 ecode3 = SWIG_AsVal_int(obj2, &val3);
5595 if (!SWIG_IsOK(ecode3)) {
5596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5597 }
5598 arg3 = static_cast< int >(val3);
5599 if (obj3) {
5600 ecode4 = SWIG_AsVal_int(obj3, &val4);
5601 if (!SWIG_IsOK(ecode4)) {
5602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5603 }
5604 arg4 = static_cast< int >(val4);
5605 }
5606 {
5607 if (!wxPyCheckForApp()) SWIG_fail;
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5610 wxPyEndAllowThreads(__tstate);
5611 if (PyErr_Occurred()) SWIG_fail;
5612 }
5613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5614 return resultobj;
5615fail:
5616 return NULL;
d55e5bfc
RD
5617}
5618
5619
1bd55598
RD
5620SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5621 PyObject *resultobj = 0;
5622 wxBitmap *arg1 = (wxBitmap *) 0 ;
5623 bool result;
5624 void *argp1 = 0 ;
5625 int res1 = 0 ;
5626 PyObject *swig_obj[1] ;
5627
5628 if (!args) SWIG_fail;
5629 swig_obj[0] = args;
5630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5631 if (!SWIG_IsOK(res1)) {
5632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5633 }
5634 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 result = (bool)(arg1)->Ok();
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 {
5642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5643 }
5644 return resultobj;
5645fail:
5646 return NULL;
d55e5bfc
RD
5647}
5648
5649
1bd55598
RD
5650SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5651 PyObject *resultobj = 0;
5652 wxBitmap *arg1 = (wxBitmap *) 0 ;
5653 int result;
5654 void *argp1 = 0 ;
5655 int res1 = 0 ;
5656 PyObject *swig_obj[1] ;
5657
5658 if (!args) SWIG_fail;
5659 swig_obj[0] = args;
5660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5661 if (!SWIG_IsOK(res1)) {
5662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5663 }
5664 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (int)(arg1)->GetWidth();
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_From_int(static_cast< int >(result));
5672 return resultobj;
5673fail:
5674 return NULL;
070c48b4
RD
5675}
5676
5677
1bd55598
RD
5678SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5679 PyObject *resultobj = 0;
5680 wxBitmap *arg1 = (wxBitmap *) 0 ;
5681 int result;
5682 void *argp1 = 0 ;
5683 int res1 = 0 ;
5684 PyObject *swig_obj[1] ;
5685
5686 if (!args) SWIG_fail;
5687 swig_obj[0] = args;
5688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5689 if (!SWIG_IsOK(res1)) {
5690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5691 }
5692 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (int)(arg1)->GetHeight();
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_From_int(static_cast< int >(result));
5700 return resultobj;
5701fail:
5702 return NULL;
d55e5bfc
RD
5703}
5704
5705
1bd55598
RD
5706SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707 PyObject *resultobj = 0;
5708 wxBitmap *arg1 = (wxBitmap *) 0 ;
5709 int result;
5710 void *argp1 = 0 ;
5711 int res1 = 0 ;
5712 PyObject *swig_obj[1] ;
5713
5714 if (!args) SWIG_fail;
5715 swig_obj[0] = args;
5716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5717 if (!SWIG_IsOK(res1)) {
5718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5719 }
5720 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (int)(arg1)->GetDepth();
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_From_int(static_cast< int >(result));
5728 return resultobj;
5729fail:
5730 return NULL;
d55e5bfc
RD
5731}
5732
5733
1bd55598
RD
5734SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5735 PyObject *resultobj = 0;
5736 wxBitmap *arg1 = (wxBitmap *) 0 ;
5737 wxSize result;
5738 void *argp1 = 0 ;
5739 int res1 = 0 ;
5740 PyObject *swig_obj[1] ;
5741
5742 if (!args) SWIG_fail;
5743 swig_obj[0] = args;
5744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5745 if (!SWIG_IsOK(res1)) {
5746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5747 }
5748 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 result = wxBitmap_GetSize(arg1);
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5756 return resultobj;
5757fail:
5758 return NULL;
d55e5bfc
RD
5759}
5760
5761
1bd55598
RD
5762SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5763 PyObject *resultobj = 0;
5764 wxBitmap *arg1 = (wxBitmap *) 0 ;
5765 SwigValueWrapper<wxImage > result;
5766 void *argp1 = 0 ;
5767 int res1 = 0 ;
5768 PyObject *swig_obj[1] ;
5769
5770 if (!args) SWIG_fail;
5771 swig_obj[0] = args;
5772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5773 if (!SWIG_IsOK(res1)) {
5774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5775 }
5776 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5777 {
5778 PyThreadState* __tstate = wxPyBeginAllowThreads();
5779 result = ((wxBitmap const *)arg1)->ConvertToImage();
5780 wxPyEndAllowThreads(__tstate);
5781 if (PyErr_Occurred()) SWIG_fail;
5782 }
5783 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5784 return resultobj;
5785fail:
5786 return NULL;
d55e5bfc
RD
5787}
5788
5789
1bd55598
RD
5790SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5791 PyObject *resultobj = 0;
5792 wxBitmap *arg1 = (wxBitmap *) 0 ;
5793 wxMask *result = 0 ;
5794 void *argp1 = 0 ;
5795 int res1 = 0 ;
5796 PyObject *swig_obj[1] ;
5797
5798 if (!args) SWIG_fail;
5799 swig_obj[0] = args;
5800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5801 if (!SWIG_IsOK(res1)) {
5802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5803 }
5804 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5805 {
5806 PyThreadState* __tstate = wxPyBeginAllowThreads();
5807 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5812 return resultobj;
5813fail:
5814 return NULL;
5815}
5816
5817
5818SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj = 0;
5820 wxBitmap *arg1 = (wxBitmap *) 0 ;
5821 wxMask *arg2 = (wxMask *) 0 ;
5822 void *argp1 = 0 ;
5823 int res1 = 0 ;
5824 int res2 = 0 ;
5825 PyObject * obj0 = 0 ;
5826 PyObject * obj1 = 0 ;
5827 char * kwnames[] = {
5828 (char *) "self",(char *) "mask", NULL
5829 };
5830
5831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5833 if (!SWIG_IsOK(res1)) {
5834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5835 }
5836 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5837 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5838 if (!SWIG_IsOK(res2)) {
5839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5840 }
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 (arg1)->SetMask(arg2);
5844 wxPyEndAllowThreads(__tstate);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 resultobj = SWIG_Py_Void();
5848 return resultobj;
5849fail:
5850 return NULL;
5851}
5852
5853
5854SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5855 PyObject *resultobj = 0;
5856 wxBitmap *arg1 = (wxBitmap *) 0 ;
5857 wxColour *arg2 = 0 ;
5858 void *argp1 = 0 ;
5859 int res1 = 0 ;
5860 wxColour temp2 ;
5861 PyObject * obj0 = 0 ;
5862 PyObject * obj1 = 0 ;
5863 char * kwnames[] = {
5864 (char *) "self",(char *) "colour", NULL
5865 };
5866
5867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5869 if (!SWIG_IsOK(res1)) {
5870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5871 }
5872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5873 {
5874 arg2 = &temp2;
5875 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5876 }
5877 {
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
5879 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 resultobj = SWIG_Py_Void();
5884 return resultobj;
5885fail:
5886 return NULL;
5887}
5888
5889
5890SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj = 0;
5892 wxBitmap *arg1 = (wxBitmap *) 0 ;
5893 wxRect *arg2 = 0 ;
5894 SwigValueWrapper<wxBitmap > result;
5895 void *argp1 = 0 ;
5896 int res1 = 0 ;
5897 wxRect temp2 ;
5898 PyObject * obj0 = 0 ;
5899 PyObject * obj1 = 0 ;
5900 char * kwnames[] = {
5901 (char *) "self",(char *) "rect", NULL
5902 };
5903
5904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5908 }
5909 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5910 {
5911 arg2 = &temp2;
5912 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5913 }
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5921 return resultobj;
5922fail:
5923 return NULL;
5924}
5925
5926
5927SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj = 0;
5929 wxBitmap *arg1 = (wxBitmap *) 0 ;
5930 wxString *arg2 = 0 ;
5931 wxBitmapType arg3 ;
5932 wxPalette *arg4 = (wxPalette *) NULL ;
5933 bool result;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 bool temp2 = false ;
5937 int val3 ;
5938 int ecode3 = 0 ;
5939 void *argp4 = 0 ;
5940 int res4 = 0 ;
5941 PyObject * obj0 = 0 ;
5942 PyObject * obj1 = 0 ;
5943 PyObject * obj2 = 0 ;
5944 PyObject * obj3 = 0 ;
5945 char * kwnames[] = {
5946 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5947 };
5948
5949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5951 if (!SWIG_IsOK(res1)) {
5952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5953 }
5954 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5955 {
5956 arg2 = wxString_in_helper(obj1);
5957 if (arg2 == NULL) SWIG_fail;
5958 temp2 = true;
5959 }
5960 ecode3 = SWIG_AsVal_int(obj2, &val3);
5961 if (!SWIG_IsOK(ecode3)) {
5962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5963 }
5964 arg3 = static_cast< wxBitmapType >(val3);
5965 if (obj3) {
5966 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5967 if (!SWIG_IsOK(res4)) {
5968 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 5969 }
1bd55598
RD
5970 arg4 = reinterpret_cast< wxPalette * >(argp4);
5971 }
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 {
5979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5980 }
5981 {
5982 if (temp2)
5983 delete arg2;
5984 }
5985 return resultobj;
5986fail:
5987 {
5988 if (temp2)
5989 delete arg2;
5990 }
5991 return NULL;
5992}
5993
5994
5995SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj = 0;
5997 wxBitmap *arg1 = (wxBitmap *) 0 ;
5998 wxString *arg2 = 0 ;
5999 wxBitmapType arg3 ;
6000 bool result;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 bool temp2 = false ;
6004 int val3 ;
6005 int ecode3 = 0 ;
6006 PyObject * obj0 = 0 ;
6007 PyObject * obj1 = 0 ;
6008 PyObject * obj2 = 0 ;
6009 char * kwnames[] = {
6010 (char *) "self",(char *) "name",(char *) "type", NULL
6011 };
6012
6013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6015 if (!SWIG_IsOK(res1)) {
6016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6017 }
6018 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6019 {
6020 arg2 = wxString_in_helper(obj1);
6021 if (arg2 == NULL) SWIG_fail;
6022 temp2 = true;
6023 }
6024 ecode3 = SWIG_AsVal_int(obj2, &val3);
6025 if (!SWIG_IsOK(ecode3)) {
6026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6027 }
6028 arg3 = static_cast< wxBitmapType >(val3);
6029 {
6030 PyThreadState* __tstate = wxPyBeginAllowThreads();
6031 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6032 wxPyEndAllowThreads(__tstate);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 {
6036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6037 }
6038 {
6039 if (temp2)
6040 delete arg2;
6041 }
6042 return resultobj;
6043fail:
6044 {
6045 if (temp2)
6046 delete arg2;
6047 }
6048 return NULL;
d04418a7
RD
6049}
6050
6051
1bd55598
RD
6052SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6053 PyObject *resultobj = 0;
6054 wxBitmap *arg1 = (wxBitmap *) 0 ;
6055 wxPalette *result = 0 ;
6056 void *argp1 = 0 ;
6057 int res1 = 0 ;
6058 PyObject *swig_obj[1] ;
6059
6060 if (!args) SWIG_fail;
6061 swig_obj[0] = args;
6062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6063 if (!SWIG_IsOK(res1)) {
6064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6065 }
6066 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6067 {
6068 PyThreadState* __tstate = wxPyBeginAllowThreads();
6069 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6070 wxPyEndAllowThreads(__tstate);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 }
6073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6074 return resultobj;
6075fail:
6076 return NULL;
6077}
6078
6079
6080SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6081 PyObject *resultobj = 0;
6082 wxBitmap *arg1 = (wxBitmap *) 0 ;
6083 wxIcon *arg2 = 0 ;
6084 bool result;
6085 void *argp1 = 0 ;
6086 int res1 = 0 ;
6087 void *argp2 = 0 ;
6088 int res2 = 0 ;
6089 PyObject * obj0 = 0 ;
6090 PyObject * obj1 = 0 ;
6091 char * kwnames[] = {
6092 (char *) "self",(char *) "icon", NULL
6093 };
6094
6095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6097 if (!SWIG_IsOK(res1)) {
6098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6099 }
6100 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6102 if (!SWIG_IsOK(res2)) {
6103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6104 }
6105 if (!argp2) {
6106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6107 }
6108 arg2 = reinterpret_cast< wxIcon * >(argp2);
6109 {
6110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6111 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6112 wxPyEndAllowThreads(__tstate);
6113 if (PyErr_Occurred()) SWIG_fail;
6114 }
6115 {
6116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6117 }
6118 return resultobj;
6119fail:
6120 return NULL;
6121}
6122
6123
6124SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj = 0;
6126 wxBitmap *arg1 = (wxBitmap *) 0 ;
6127 int arg2 ;
6128 void *argp1 = 0 ;
6129 int res1 = 0 ;
6130 int val2 ;
6131 int ecode2 = 0 ;
6132 PyObject * obj0 = 0 ;
6133 PyObject * obj1 = 0 ;
6134 char * kwnames[] = {
6135 (char *) "self",(char *) "height", NULL
6136 };
6137
6138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6140 if (!SWIG_IsOK(res1)) {
6141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6142 }
6143 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6144 ecode2 = SWIG_AsVal_int(obj1, &val2);
6145 if (!SWIG_IsOK(ecode2)) {
6146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6147 }
6148 arg2 = static_cast< int >(val2);
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 (arg1)->SetHeight(arg2);
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_Py_Void();
6156 return resultobj;
6157fail:
6158 return NULL;
6159}
6160
6161
6162SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 int arg2 ;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 int val2 ;
6169 int ecode2 = 0 ;
6170 PyObject * obj0 = 0 ;
6171 PyObject * obj1 = 0 ;
6172 char * kwnames[] = {
6173 (char *) "self",(char *) "width", NULL
6174 };
6175
6176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6178 if (!SWIG_IsOK(res1)) {
6179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6180 }
6181 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6182 ecode2 = SWIG_AsVal_int(obj1, &val2);
6183 if (!SWIG_IsOK(ecode2)) {
6184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6185 }
6186 arg2 = static_cast< int >(val2);
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 (arg1)->SetWidth(arg2);
6190 wxPyEndAllowThreads(__tstate);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 }
6193 resultobj = SWIG_Py_Void();
6194 return resultobj;
6195fail:
6196 return NULL;
6197}
6198
6199
6200SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj = 0;
6202 wxBitmap *arg1 = (wxBitmap *) 0 ;
6203 int arg2 ;
6204 void *argp1 = 0 ;
6205 int res1 = 0 ;
6206 int val2 ;
6207 int ecode2 = 0 ;
6208 PyObject * obj0 = 0 ;
6209 PyObject * obj1 = 0 ;
6210 char * kwnames[] = {
6211 (char *) "self",(char *) "depth", NULL
6212 };
6213
6214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6216 if (!SWIG_IsOK(res1)) {
6217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6218 }
6219 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6220 ecode2 = SWIG_AsVal_int(obj1, &val2);
6221 if (!SWIG_IsOK(ecode2)) {
6222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6223 }
6224 arg2 = static_cast< int >(val2);
6225 {
6226 PyThreadState* __tstate = wxPyBeginAllowThreads();
6227 (arg1)->SetDepth(arg2);
6228 wxPyEndAllowThreads(__tstate);
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_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj = 0;
6240 wxBitmap *arg1 = (wxBitmap *) 0 ;
6241 wxSize *arg2 = 0 ;
6242 void *argp1 = 0 ;
6243 int res1 = 0 ;
6244 wxSize temp2 ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 char * kwnames[] = {
6248 (char *) "self",(char *) "size", NULL
6249 };
6250
6251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6255 }
6256 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6257 {
6258 arg2 = &temp2;
6259 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6260 }
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_Py_Void();
6268 return resultobj;
6269fail:
6270 return NULL;
6271}
6272
6273
6274SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 wxBitmap *arg1 = (wxBitmap *) 0 ;
6277 wxBitmap *arg2 = (wxBitmap *) 0 ;
6278 bool result;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 void *argp2 = 0 ;
6282 int res2 = 0 ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 char * kwnames[] = {
6286 (char *) "self",(char *) "other", NULL
6287 };
6288
6289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6291 if (!SWIG_IsOK(res1)) {
6292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6293 }
6294 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6296 if (!SWIG_IsOK(res2)) {
6297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6298 }
6299 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6303 wxPyEndAllowThreads(__tstate);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 {
6307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6308 }
6309 return resultobj;
6310fail:
6311 return NULL;
6312}
6313
6314
6315SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj = 0;
6317 wxBitmap *arg1 = (wxBitmap *) 0 ;
6318 wxBitmap *arg2 = (wxBitmap *) 0 ;
6319 bool result;
6320 void *argp1 = 0 ;
6321 int res1 = 0 ;
6322 void *argp2 = 0 ;
6323 int res2 = 0 ;
6324 PyObject * obj0 = 0 ;
6325 PyObject * obj1 = 0 ;
6326 char * kwnames[] = {
6327 (char *) "self",(char *) "other", NULL
6328 };
6329
6330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6332 if (!SWIG_IsOK(res1)) {
6333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6334 }
6335 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6336 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6337 if (!SWIG_IsOK(res2)) {
6338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6339 }
6340 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 {
6348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6349 }
6350 return resultobj;
6351fail:
6352 return NULL;
d55e5bfc
RD
6353}
6354
6355
1bd55598
RD
6356SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *obj;
6358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6359 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6360 return SWIG_Py_Void();
d55e5bfc
RD
6361}
6362
1bd55598
RD
6363SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6364 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
6365}
6366
1bd55598
RD
6367SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj = 0;
6369 wxBitmap *arg1 = 0 ;
6370 wxColour const &arg2_defvalue = wxNullColour ;
6371 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6372 wxMask *result = 0 ;
6373 void *argp1 = 0 ;
6374 int res1 = 0 ;
6375 wxColour temp2 ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 char * kwnames[] = {
6379 (char *) "bitmap",(char *) "colour", NULL
6380 };
6381
6382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6383 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6386 }
6387 if (!argp1) {
6388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6389 }
6390 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6391 if (obj1) {
d55e5bfc 6392 {
1bd55598
RD
6393 arg2 = &temp2;
6394 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 6395 }
1bd55598
RD
6396 }
6397 {
6398 if (!wxPyCheckForApp()) SWIG_fail;
6399 PyThreadState* __tstate = wxPyBeginAllowThreads();
6400 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6401 wxPyEndAllowThreads(__tstate);
6402 if (PyErr_Occurred()) SWIG_fail;
6403 }
6404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6405 return resultobj;
6406fail:
6407 return NULL;
d55e5bfc
RD
6408}
6409
6410
1bd55598
RD
6411SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6412 PyObject *resultobj = 0;
6413 wxMask *arg1 = (wxMask *) 0 ;
6414 void *argp1 = 0 ;
6415 int res1 = 0 ;
6416 PyObject *swig_obj[1] ;
6417
6418 if (!args) SWIG_fail;
6419 swig_obj[0] = args;
6420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6421 if (!SWIG_IsOK(res1)) {
6422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6423 }
6424 arg1 = reinterpret_cast< wxMask * >(argp1);
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 delete arg1;
d55e5bfc 6428
1bd55598
RD
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 resultobj = SWIG_Py_Void();
6433 return resultobj;
6434fail:
6435 return NULL;
6436}
6437
6438
6439SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6440 PyObject *obj;
6441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6442 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6443 return SWIG_Py_Void();
6444}
6445
6446SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6447 return SWIG_Python_InitShadowInstance(args);
6448}
6449
6450SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6451 PyObject *resultobj = 0;
6452 wxString *arg1 = 0 ;
6453 wxBitmapType arg2 ;
6454 int arg3 = (int) -1 ;
6455 int arg4 = (int) -1 ;
6456 wxIcon *result = 0 ;
6457 bool temp1 = false ;
6458 int val2 ;
6459 int ecode2 = 0 ;
6460 int val3 ;
6461 int ecode3 = 0 ;
6462 int val4 ;
6463 int ecode4 = 0 ;
6464 PyObject * obj0 = 0 ;
6465 PyObject * obj1 = 0 ;
6466 PyObject * obj2 = 0 ;
6467 PyObject * obj3 = 0 ;
6468 char * kwnames[] = {
6469 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6470 };
6471
6472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6473 {
6474 arg1 = wxString_in_helper(obj0);
6475 if (arg1 == NULL) SWIG_fail;
6476 temp1 = true;
6477 }
6478 ecode2 = SWIG_AsVal_int(obj1, &val2);
6479 if (!SWIG_IsOK(ecode2)) {
6480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6481 }
6482 arg2 = static_cast< wxBitmapType >(val2);
6483 if (obj2) {
6484 ecode3 = SWIG_AsVal_int(obj2, &val3);
6485 if (!SWIG_IsOK(ecode3)) {
6486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6487 }
6488 arg3 = static_cast< int >(val3);
6489 }
6490 if (obj3) {
6491 ecode4 = SWIG_AsVal_int(obj3, &val4);
6492 if (!SWIG_IsOK(ecode4)) {
6493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6494 }
6495 arg4 = static_cast< int >(val4);
6496 }
6497 {
6498 if (!wxPyCheckForApp()) SWIG_fail;
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6505 {
6506 if (temp1)
6507 delete arg1;
6508 }
6509 return resultobj;
6510fail:
6511 {
6512 if (temp1)
6513 delete arg1;
6514 }
6515 return NULL;
d55e5bfc
RD
6516}
6517
6518
1bd55598
RD
6519SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6520 PyObject *resultobj = 0;
6521 wxIcon *arg1 = (wxIcon *) 0 ;
6522 void *argp1 = 0 ;
6523 int res1 = 0 ;
6524 PyObject *swig_obj[1] ;
6525
6526 if (!args) SWIG_fail;
6527 swig_obj[0] = args;
6528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6529 if (!SWIG_IsOK(res1)) {
6530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6531 }
6532 arg1 = reinterpret_cast< wxIcon * >(argp1);
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 delete arg1;
d55e5bfc 6536
1bd55598
RD
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
6540 resultobj = SWIG_Py_Void();
6541 return resultobj;
6542fail:
6543 return NULL;
d55e5bfc
RD
6544}
6545
6546
1bd55598
RD
6547SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6548 PyObject *resultobj = 0;
6549 wxIcon *result = 0 ;
6550
6551 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6552 {
6553 if (!wxPyCheckForApp()) SWIG_fail;
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
6555 result = (wxIcon *)new wxIcon();
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6560 return resultobj;
6561fail:
6562 return NULL;
6563}
6564
6565
6566SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj = 0;
6568 wxIconLocation *arg1 = 0 ;
6569 wxIcon *result = 0 ;
6570 void *argp1 = 0 ;
6571 int res1 = 0 ;
6572 PyObject * obj0 = 0 ;
6573 char * kwnames[] = {
6574 (char *) "loc", NULL
6575 };
6576
6577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6578 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6581 }
6582 if (!argp1) {
6583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6584 }
6585 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6586 {
6587 if (!wxPyCheckForApp()) SWIG_fail;
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6594 return resultobj;
6595fail:
6596 return NULL;
6597}
6598
6599
6600SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj = 0;
6602 wxBitmap *arg1 = 0 ;
6603 wxIcon *result = 0 ;
6604 void *argp1 = 0 ;
6605 int res1 = 0 ;
6606 PyObject * obj0 = 0 ;
6607 char * kwnames[] = {
6608 (char *) "bmp", NULL
6609 };
6610
6611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6612 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6613 if (!SWIG_IsOK(res1)) {
6614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6615 }
6616 if (!argp1) {
6617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6618 }
6619 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6620 {
6621 if (!wxPyCheckForApp()) SWIG_fail;
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6628 return resultobj;
6629fail:
6630 return NULL;
d55e5bfc
RD
6631}
6632
6633
1bd55598
RD
6634SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj = 0;
6636 PyObject *arg1 = (PyObject *) 0 ;
6637 wxIcon *result = 0 ;
6638 PyObject * obj0 = 0 ;
6639 char * kwnames[] = {
6640 (char *) "listOfStrings", NULL
6641 };
6642
6643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6644 arg1 = obj0;
6645 {
6646 if (!wxPyCheckForApp()) SWIG_fail;
6647 PyThreadState* __tstate = wxPyBeginAllowThreads();
6648 result = (wxIcon *)new_wxIcon(arg1);
6649 wxPyEndAllowThreads(__tstate);
6650 if (PyErr_Occurred()) SWIG_fail;
6651 }
6652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6653 return resultobj;
6654fail:
6655 return NULL;
d55e5bfc
RD
6656}
6657
6658
1bd55598
RD
6659SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6660 PyObject *resultobj = 0;
6661 wxIcon *arg1 = (wxIcon *) 0 ;
6662 bool result;
6663 void *argp1 = 0 ;
6664 int res1 = 0 ;
6665 PyObject *swig_obj[1] ;
6666
6667 if (!args) SWIG_fail;
6668 swig_obj[0] = args;
6669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6670 if (!SWIG_IsOK(res1)) {
6671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6672 }
6673 arg1 = reinterpret_cast< wxIcon * >(argp1);
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = (bool)(arg1)->Ok();
6677 wxPyEndAllowThreads(__tstate);
6678 if (PyErr_Occurred()) SWIG_fail;
6679 }
6680 {
6681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6682 }
6683 return resultobj;
6684fail:
6685 return NULL;
d55e5bfc
RD
6686}
6687
6688
1bd55598
RD
6689SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6690 PyObject *resultobj = 0;
6691 wxIcon *arg1 = (wxIcon *) 0 ;
6692 int result;
6693 void *argp1 = 0 ;
6694 int res1 = 0 ;
6695 PyObject *swig_obj[1] ;
6696
6697 if (!args) SWIG_fail;
6698 swig_obj[0] = args;
6699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6700 if (!SWIG_IsOK(res1)) {
6701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6702 }
6703 arg1 = reinterpret_cast< wxIcon * >(argp1);
6704 {
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 result = (int)(arg1)->GetWidth();
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 resultobj = SWIG_From_int(static_cast< int >(result));
6711 return resultobj;
6712fail:
6713 return NULL;
d55e5bfc
RD
6714}
6715
6716
1bd55598
RD
6717SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6718 PyObject *resultobj = 0;
6719 wxIcon *arg1 = (wxIcon *) 0 ;
6720 int result;
6721 void *argp1 = 0 ;
6722 int res1 = 0 ;
6723 PyObject *swig_obj[1] ;
6724
6725 if (!args) SWIG_fail;
6726 swig_obj[0] = args;
6727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6728 if (!SWIG_IsOK(res1)) {
6729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6730 }
6731 arg1 = reinterpret_cast< wxIcon * >(argp1);
6732 {
6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
6734 result = (int)(arg1)->GetHeight();
6735 wxPyEndAllowThreads(__tstate);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 resultobj = SWIG_From_int(static_cast< int >(result));
6739 return resultobj;
6740fail:
6741 return NULL;
d55e5bfc
RD
6742}
6743
6744
1bd55598
RD
6745SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6746 PyObject *resultobj = 0;
6747 wxIcon *arg1 = (wxIcon *) 0 ;
6748 int result;
6749 void *argp1 = 0 ;
6750 int res1 = 0 ;
6751 PyObject *swig_obj[1] ;
6752
6753 if (!args) SWIG_fail;
6754 swig_obj[0] = args;
6755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6756 if (!SWIG_IsOK(res1)) {
6757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6758 }
6759 arg1 = reinterpret_cast< wxIcon * >(argp1);
6760 {
6761 PyThreadState* __tstate = wxPyBeginAllowThreads();
6762 result = (int)(arg1)->GetDepth();
6763 wxPyEndAllowThreads(__tstate);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 resultobj = SWIG_From_int(static_cast< int >(result));
6767 return resultobj;
6768fail:
6769 return NULL;
6770}
6771
6772
6773SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 wxIcon *arg1 = (wxIcon *) 0 ;
6776 int arg2 ;
6777 void *argp1 = 0 ;
6778 int res1 = 0 ;
6779 int val2 ;
6780 int ecode2 = 0 ;
6781 PyObject * obj0 = 0 ;
6782 PyObject * obj1 = 0 ;
6783 char * kwnames[] = {
6784 (char *) "self",(char *) "w", NULL
6785 };
6786
6787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6789 if (!SWIG_IsOK(res1)) {
6790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6791 }
6792 arg1 = reinterpret_cast< wxIcon * >(argp1);
6793 ecode2 = SWIG_AsVal_int(obj1, &val2);
6794 if (!SWIG_IsOK(ecode2)) {
6795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6796 }
6797 arg2 = static_cast< int >(val2);
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 (arg1)->SetWidth(arg2);
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 resultobj = SWIG_Py_Void();
6805 return resultobj;
6806fail:
6807 return NULL;
6808}
6809
6810
6811SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6812 PyObject *resultobj = 0;
6813 wxIcon *arg1 = (wxIcon *) 0 ;
6814 int arg2 ;
6815 void *argp1 = 0 ;
6816 int res1 = 0 ;
6817 int val2 ;
6818 int ecode2 = 0 ;
6819 PyObject * obj0 = 0 ;
6820 PyObject * obj1 = 0 ;
6821 char * kwnames[] = {
6822 (char *) "self",(char *) "h", NULL
6823 };
6824
6825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6827 if (!SWIG_IsOK(res1)) {
6828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6829 }
6830 arg1 = reinterpret_cast< wxIcon * >(argp1);
6831 ecode2 = SWIG_AsVal_int(obj1, &val2);
6832 if (!SWIG_IsOK(ecode2)) {
6833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6834 }
6835 arg2 = static_cast< int >(val2);
6836 {
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
6838 (arg1)->SetHeight(arg2);
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 resultobj = SWIG_Py_Void();
6843 return resultobj;
6844fail:
6845 return NULL;
6846}
6847
6848
6849SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj = 0;
6851 wxIcon *arg1 = (wxIcon *) 0 ;
6852 int arg2 ;
6853 void *argp1 = 0 ;
6854 int res1 = 0 ;
6855 int val2 ;
6856 int ecode2 = 0 ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 char * kwnames[] = {
6860 (char *) "self",(char *) "d", NULL
6861 };
6862
6863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6865 if (!SWIG_IsOK(res1)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6867 }
6868 arg1 = reinterpret_cast< wxIcon * >(argp1);
6869 ecode2 = SWIG_AsVal_int(obj1, &val2);
6870 if (!SWIG_IsOK(ecode2)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6872 }
6873 arg2 = static_cast< int >(val2);
6874 {
6875 PyThreadState* __tstate = wxPyBeginAllowThreads();
6876 (arg1)->SetDepth(arg2);
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 resultobj = SWIG_Py_Void();
6881 return resultobj;
6882fail:
6883 return NULL;
6884}
6885
6886
6887SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6888 PyObject *resultobj = 0;
6889 wxIcon *arg1 = (wxIcon *) 0 ;
6890 wxBitmap *arg2 = 0 ;
6891 void *argp1 = 0 ;
6892 int res1 = 0 ;
6893 void *argp2 = 0 ;
6894 int res2 = 0 ;
6895 PyObject * obj0 = 0 ;
6896 PyObject * obj1 = 0 ;
6897 char * kwnames[] = {
6898 (char *) "self",(char *) "bmp", NULL
6899 };
6900
6901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6903 if (!SWIG_IsOK(res1)) {
6904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6905 }
6906 arg1 = reinterpret_cast< wxIcon * >(argp1);
6907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6908 if (!SWIG_IsOK(res2)) {
6909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6910 }
6911 if (!argp2) {
6912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6913 }
6914 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6918 wxPyEndAllowThreads(__tstate);
6919 if (PyErr_Occurred()) SWIG_fail;
6920 }
6921 resultobj = SWIG_Py_Void();
6922 return resultobj;
6923fail:
6924 return NULL;
d55e5bfc
RD
6925}
6926
6927
1bd55598
RD
6928SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6929 PyObject *obj;
6930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6931 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6932 return SWIG_Py_Void();
d55e5bfc
RD
6933}
6934
1bd55598
RD
6935SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6936 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
6937}
6938
1bd55598
RD
6939SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj = 0;
6941 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6942 int arg2 = (int) 0 ;
6943 wxIconLocation *result = 0 ;
6944 bool temp1 = false ;
6945 int val2 ;
6946 int ecode2 = 0 ;
6947 PyObject * obj0 = 0 ;
6948 PyObject * obj1 = 0 ;
6949 char * kwnames[] = {
6950 (char *) "filename",(char *) "num", NULL
6951 };
6952
6953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6954 if (obj0) {
d55e5bfc 6955 {
1bd55598
RD
6956 arg1 = wxString_in_helper(obj0);
6957 if (arg1 == NULL) SWIG_fail;
6958 temp1 = true;
d55e5bfc 6959 }
1bd55598
RD
6960 }
6961 if (obj1) {
6962 ecode2 = SWIG_AsVal_int(obj1, &val2);
6963 if (!SWIG_IsOK(ecode2)) {
6964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6965 }
6966 arg2 = static_cast< int >(val2);
6967 }
6968 {
6969 PyThreadState* __tstate = wxPyBeginAllowThreads();
6970 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6975 {
6976 if (temp1)
6977 delete arg1;
6978 }
6979 return resultobj;
6980fail:
6981 {
6982 if (temp1)
6983 delete arg1;
6984 }
6985 return NULL;
d55e5bfc
RD
6986}
6987
6988
1bd55598
RD
6989SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6990 PyObject *resultobj = 0;
6991 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6992 void *argp1 = 0 ;
6993 int res1 = 0 ;
6994 PyObject *swig_obj[1] ;
6995
6996 if (!args) SWIG_fail;
6997 swig_obj[0] = args;
6998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
6999 if (!SWIG_IsOK(res1)) {
7000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7001 }
7002 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7003 {
7004 PyThreadState* __tstate = wxPyBeginAllowThreads();
7005 delete arg1;
d55e5bfc 7006
1bd55598
RD
7007 wxPyEndAllowThreads(__tstate);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 resultobj = SWIG_Py_Void();
7011 return resultobj;
7012fail:
7013 return NULL;
d55e5bfc
RD
7014}
7015
7016
1bd55598
RD
7017SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7018 PyObject *resultobj = 0;
7019 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7020 bool result;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 PyObject *swig_obj[1] ;
7024
7025 if (!args) SWIG_fail;
7026 swig_obj[0] = args;
7027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7028 if (!SWIG_IsOK(res1)) {
7029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7030 }
7031 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7035 wxPyEndAllowThreads(__tstate);
7036 if (PyErr_Occurred()) SWIG_fail;
7037 }
7038 {
7039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7040 }
7041 return resultobj;
7042fail:
7043 return NULL;
7044}
7045
7046
7047SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj = 0;
7049 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7050 wxString *arg2 = 0 ;
7051 void *argp1 = 0 ;
7052 int res1 = 0 ;
7053 bool temp2 = false ;
7054 PyObject * obj0 = 0 ;
7055 PyObject * obj1 = 0 ;
7056 char * kwnames[] = {
7057 (char *) "self",(char *) "filename", NULL
7058 };
7059
7060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7062 if (!SWIG_IsOK(res1)) {
7063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7064 }
7065 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7066 {
7067 arg2 = wxString_in_helper(obj1);
7068 if (arg2 == NULL) SWIG_fail;
7069 temp2 = true;
7070 }
7071 {
7072 PyThreadState* __tstate = wxPyBeginAllowThreads();
7073 (arg1)->SetFileName((wxString const &)*arg2);
7074 wxPyEndAllowThreads(__tstate);
7075 if (PyErr_Occurred()) SWIG_fail;
7076 }
7077 resultobj = SWIG_Py_Void();
7078 {
7079 if (temp2)
7080 delete arg2;
7081 }
7082 return resultobj;
7083fail:
7084 {
7085 if (temp2)
7086 delete arg2;
7087 }
7088 return NULL;
d55e5bfc
RD
7089}
7090
7091
1bd55598
RD
7092SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7093 PyObject *resultobj = 0;
7094 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7095 wxString *result = 0 ;
7096 void *argp1 = 0 ;
7097 int res1 = 0 ;
7098 PyObject *swig_obj[1] ;
7099
7100 if (!args) SWIG_fail;
7101 swig_obj[0] = args;
7102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7103 if (!SWIG_IsOK(res1)) {
7104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7105 }
7106 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 7109 {
1bd55598
RD
7110 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7111 result = (wxString *) &_result_ref;
d55e5bfc 7112 }
1bd55598
RD
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 {
7117#if wxUSE_UNICODE
7118 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7119#else
7120 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7121#endif
7122 }
7123 return resultobj;
7124fail:
7125 return NULL;
7126}
7127
7128
7129SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7130 PyObject *resultobj = 0;
7131 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7132 int arg2 ;
7133 void *argp1 = 0 ;
7134 int res1 = 0 ;
7135 int val2 ;
7136 int ecode2 = 0 ;
7137 PyObject * obj0 = 0 ;
7138 PyObject * obj1 = 0 ;
7139 char * kwnames[] = {
7140 (char *) "self",(char *) "num", NULL
7141 };
7142
7143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7145 if (!SWIG_IsOK(res1)) {
7146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7147 }
7148 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7149 ecode2 = SWIG_AsVal_int(obj1, &val2);
7150 if (!SWIG_IsOK(ecode2)) {
7151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7152 }
7153 arg2 = static_cast< int >(val2);
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 wxIconLocation_SetIndex(arg1,arg2);
7157 wxPyEndAllowThreads(__tstate);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 resultobj = SWIG_Py_Void();
7161 return resultobj;
7162fail:
7163 return NULL;
d55e5bfc
RD
7164}
7165
7166
1bd55598
RD
7167SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7168 PyObject *resultobj = 0;
7169 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7170 int result;
7171 void *argp1 = 0 ;
7172 int res1 = 0 ;
7173 PyObject *swig_obj[1] ;
7174
7175 if (!args) SWIG_fail;
7176 swig_obj[0] = args;
7177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7178 if (!SWIG_IsOK(res1)) {
7179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7180 }
7181 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = (int)wxIconLocation_GetIndex(arg1);
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 resultobj = SWIG_From_int(static_cast< int >(result));
7189 return resultobj;
7190fail:
7191 return NULL;
d55e5bfc
RD
7192}
7193
7194
1bd55598
RD
7195SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7196 PyObject *obj;
7197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7198 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7199 return SWIG_Py_Void();
d55e5bfc
RD
7200}
7201
1bd55598
RD
7202SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7203 return SWIG_Python_InitShadowInstance(args);
7204}
d55e5bfc 7205
1bd55598
RD
7206SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7207 PyObject *resultobj = 0;
7208 wxIconBundle *result = 0 ;
7209
7210 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 result = (wxIconBundle *)new wxIconBundle();
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7218 return resultobj;
7219fail:
7220 return NULL;
7221}
7222
7223
7224SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7225 PyObject *resultobj = 0;
7226 wxString *arg1 = 0 ;
7227 long arg2 ;
7228 wxIconBundle *result = 0 ;
7229 bool temp1 = false ;
7230 long val2 ;
7231 int ecode2 = 0 ;
7232 PyObject * obj0 = 0 ;
7233 PyObject * obj1 = 0 ;
7234 char * kwnames[] = {
7235 (char *) "file",(char *) "type", NULL
7236 };
7237
7238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7239 {
7240 arg1 = wxString_in_helper(obj0);
7241 if (arg1 == NULL) SWIG_fail;
7242 temp1 = true;
7243 }
7244 ecode2 = SWIG_AsVal_long(obj1, &val2);
7245 if (!SWIG_IsOK(ecode2)) {
7246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7247 }
7248 arg2 = static_cast< long >(val2);
7249 {
7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
7251 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7252 wxPyEndAllowThreads(__tstate);
7253 if (PyErr_Occurred()) SWIG_fail;
7254 }
7255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7256 {
7257 if (temp1)
7258 delete arg1;
7259 }
7260 return resultobj;
7261fail:
7262 {
7263 if (temp1)
7264 delete arg1;
7265 }
7266 return NULL;
d55e5bfc
RD
7267}
7268
7269
1bd55598
RD
7270SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7271 PyObject *resultobj = 0;
7272 wxIcon *arg1 = 0 ;
7273 wxIconBundle *result = 0 ;
7274 void *argp1 = 0 ;
7275 int res1 = 0 ;
7276 PyObject * obj0 = 0 ;
7277 char * kwnames[] = {
7278 (char *) "icon", NULL
7279 };
7280
7281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7283 if (!SWIG_IsOK(res1)) {
7284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7285 }
7286 if (!argp1) {
7287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7288 }
7289 arg1 = reinterpret_cast< wxIcon * >(argp1);
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7293 wxPyEndAllowThreads(__tstate);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7297 return resultobj;
7298fail:
7299 return NULL;
d55e5bfc
RD
7300}
7301
7302
1bd55598
RD
7303SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7304 PyObject *resultobj = 0;
7305 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7306 void *argp1 = 0 ;
7307 int res1 = 0 ;
7308 PyObject *swig_obj[1] ;
7309
7310 if (!args) SWIG_fail;
7311 swig_obj[0] = args;
7312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7313 if (!SWIG_IsOK(res1)) {
7314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7315 }
7316 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 delete arg1;
d55e5bfc 7320
1bd55598
RD
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_Py_Void();
7325 return resultobj;
7326fail:
7327 return NULL;
7328}
7329
7330
7331SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj = 0;
7333 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7334 wxIcon *arg2 = 0 ;
7335 void *argp1 = 0 ;
7336 int res1 = 0 ;
7337 void *argp2 = 0 ;
7338 int res2 = 0 ;
7339 PyObject * obj0 = 0 ;
7340 PyObject * obj1 = 0 ;
7341 char * kwnames[] = {
7342 (char *) "self",(char *) "icon", NULL
7343 };
7344
7345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7347 if (!SWIG_IsOK(res1)) {
7348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7349 }
7350 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7352 if (!SWIG_IsOK(res2)) {
7353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7354 }
7355 if (!argp2) {
7356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7357 }
7358 arg2 = reinterpret_cast< wxIcon * >(argp2);
7359 {
7360 PyThreadState* __tstate = wxPyBeginAllowThreads();
7361 (arg1)->AddIcon((wxIcon const &)*arg2);
7362 wxPyEndAllowThreads(__tstate);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 resultobj = SWIG_Py_Void();
7366 return resultobj;
7367fail:
7368 return NULL;
7369}
7370
7371
7372SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7373 PyObject *resultobj = 0;
7374 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7375 wxString *arg2 = 0 ;
7376 long arg3 ;
7377 void *argp1 = 0 ;
7378 int res1 = 0 ;
7379 bool temp2 = false ;
7380 long val3 ;
7381 int ecode3 = 0 ;
7382 PyObject * obj0 = 0 ;
7383 PyObject * obj1 = 0 ;
7384 PyObject * obj2 = 0 ;
7385 char * kwnames[] = {
7386 (char *) "self",(char *) "file",(char *) "type", NULL
7387 };
7388
7389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7391 if (!SWIG_IsOK(res1)) {
7392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7393 }
7394 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7395 {
7396 arg2 = wxString_in_helper(obj1);
7397 if (arg2 == NULL) SWIG_fail;
7398 temp2 = true;
7399 }
7400 ecode3 = SWIG_AsVal_long(obj2, &val3);
7401 if (!SWIG_IsOK(ecode3)) {
7402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7403 }
7404 arg3 = static_cast< long >(val3);
7405 {
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_Py_Void();
7412 {
7413 if (temp2)
7414 delete arg2;
7415 }
7416 return resultobj;
7417fail:
7418 {
7419 if (temp2)
7420 delete arg2;
7421 }
7422 return NULL;
7423}
7424
7425
7426SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7427 PyObject *resultobj = 0;
7428 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7429 wxSize *arg2 = 0 ;
7430 wxIcon *result = 0 ;
7431 void *argp1 = 0 ;
7432 int res1 = 0 ;
7433 wxSize temp2 ;
7434 PyObject * obj0 = 0 ;
7435 PyObject * obj1 = 0 ;
7436 char * kwnames[] = {
7437 (char *) "self",(char *) "size", NULL
7438 };
7439
7440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7442 if (!SWIG_IsOK(res1)) {
7443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7444 }
7445 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7446 {
7447 arg2 = &temp2;
7448 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7449 }
7450 {
7451 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 7452 {
1bd55598
RD
7453 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7454 result = (wxIcon *) &_result_ref;
d55e5bfc 7455 }
1bd55598
RD
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 {
7460 wxIcon* resultptr = new wxIcon(*result);
7461 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7462 }
7463 return resultobj;
7464fail:
7465 return NULL;
7466}
7467
7468
7469SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7470 PyObject *obj;
7471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7472 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7473 return SWIG_Py_Void();
7474}
7475
7476SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7477 return SWIG_Python_InitShadowInstance(args);
7478}
7479
7480SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7481 PyObject *resultobj = 0;
7482 wxString *arg1 = 0 ;
7483 long arg2 ;
7484 int arg3 = (int) 0 ;
7485 int arg4 = (int) 0 ;
7486 wxCursor *result = 0 ;
7487 bool temp1 = false ;
7488 long val2 ;
7489 int ecode2 = 0 ;
7490 int val3 ;
7491 int ecode3 = 0 ;
7492 int val4 ;
7493 int ecode4 = 0 ;
7494 PyObject * obj0 = 0 ;
7495 PyObject * obj1 = 0 ;
7496 PyObject * obj2 = 0 ;
7497 PyObject * obj3 = 0 ;
7498 char * kwnames[] = {
7499 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7500 };
7501
7502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7503 {
7504 arg1 = wxString_in_helper(obj0);
7505 if (arg1 == NULL) SWIG_fail;
7506 temp1 = true;
7507 }
7508 ecode2 = SWIG_AsVal_long(obj1, &val2);
7509 if (!SWIG_IsOK(ecode2)) {
7510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7511 }
7512 arg2 = static_cast< long >(val2);
7513 if (obj2) {
7514 ecode3 = SWIG_AsVal_int(obj2, &val3);
7515 if (!SWIG_IsOK(ecode3)) {
7516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7517 }
7518 arg3 = static_cast< int >(val3);
7519 }
7520 if (obj3) {
7521 ecode4 = SWIG_AsVal_int(obj3, &val4);
7522 if (!SWIG_IsOK(ecode4)) {
7523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7524 }
7525 arg4 = static_cast< int >(val4);
7526 }
7527 {
7528 if (!wxPyCheckForApp()) SWIG_fail;
7529 PyThreadState* __tstate = wxPyBeginAllowThreads();
7530 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7531 wxPyEndAllowThreads(__tstate);
7532 if (PyErr_Occurred()) SWIG_fail;
7533 }
7534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7535 {
7536 if (temp1)
7537 delete arg1;
7538 }
7539 return resultobj;
7540fail:
7541 {
7542 if (temp1)
7543 delete arg1;
7544 }
7545 return NULL;
d55e5bfc
RD
7546}
7547
7548
1bd55598
RD
7549SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7550 PyObject *resultobj = 0;
7551 wxCursor *arg1 = (wxCursor *) 0 ;
7552 void *argp1 = 0 ;
7553 int res1 = 0 ;
7554 PyObject *swig_obj[1] ;
7555
7556 if (!args) SWIG_fail;
7557 swig_obj[0] = args;
7558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7561 }
7562 arg1 = reinterpret_cast< wxCursor * >(argp1);
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 delete arg1;
d55e5bfc 7566
1bd55598
RD
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 resultobj = SWIG_Py_Void();
7571 return resultobj;
7572fail:
7573 return NULL;
7574}
7575
7576
7577SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj = 0;
7579 int arg1 ;
7580 wxCursor *result = 0 ;
7581 int val1 ;
7582 int ecode1 = 0 ;
7583 PyObject * obj0 = 0 ;
7584 char * kwnames[] = {
7585 (char *) "id", NULL
7586 };
7587
7588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7589 ecode1 = SWIG_AsVal_int(obj0, &val1);
7590 if (!SWIG_IsOK(ecode1)) {
7591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7592 }
7593 arg1 = static_cast< int >(val1);
7594 {
7595 if (!wxPyCheckForApp()) SWIG_fail;
7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
7597 result = (wxCursor *)new wxCursor(arg1);
7598 wxPyEndAllowThreads(__tstate);
7599 if (PyErr_Occurred()) SWIG_fail;
7600 }
7601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7602 return resultobj;
7603fail:
7604 return NULL;
7605}
7606
7607
7608SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj = 0;
7610 wxImage *arg1 = 0 ;
7611 wxCursor *result = 0 ;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 PyObject * obj0 = 0 ;
7615 char * kwnames[] = {
7616 (char *) "image", NULL
7617 };
7618
7619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7620 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7621 if (!SWIG_IsOK(res1)) {
7622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7623 }
7624 if (!argp1) {
7625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7626 }
7627 arg1 = reinterpret_cast< wxImage * >(argp1);
7628 {
7629 if (!wxPyCheckForApp()) SWIG_fail;
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7636 return resultobj;
7637fail:
7638 return NULL;
d55e5bfc
RD
7639}
7640
7641
1bd55598
RD
7642SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7643 PyObject *resultobj = 0;
7644 wxCursor *arg1 = (wxCursor *) 0 ;
7645 bool result;
7646 void *argp1 = 0 ;
7647 int res1 = 0 ;
7648 PyObject *swig_obj[1] ;
7649
7650 if (!args) SWIG_fail;
7651 swig_obj[0] = args;
7652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7653 if (!SWIG_IsOK(res1)) {
7654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7655 }
7656 arg1 = reinterpret_cast< wxCursor * >(argp1);
7657 {
7658 PyThreadState* __tstate = wxPyBeginAllowThreads();
7659 result = (bool)(arg1)->Ok();
7660 wxPyEndAllowThreads(__tstate);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 }
7663 {
7664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7665 }
7666 return resultobj;
7667fail:
7668 return NULL;
7669}
7670
7671
7672SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7673 PyObject *obj;
7674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7675 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7676 return SWIG_Py_Void();
7677}
7678
7679SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7680 return SWIG_Python_InitShadowInstance(args);
7681}
7682
7683SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj = 0;
7685 int arg1 = (int) 0 ;
7686 int arg2 = (int) 0 ;
7687 int arg3 = (int) 0 ;
7688 int arg4 = (int) 0 ;
7689 wxRegion *result = 0 ;
7690 int val1 ;
7691 int ecode1 = 0 ;
7692 int val2 ;
7693 int ecode2 = 0 ;
7694 int val3 ;
7695 int ecode3 = 0 ;
7696 int val4 ;
7697 int ecode4 = 0 ;
7698 PyObject * obj0 = 0 ;
7699 PyObject * obj1 = 0 ;
7700 PyObject * obj2 = 0 ;
7701 PyObject * obj3 = 0 ;
7702 char * kwnames[] = {
7703 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7704 };
7705
7706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7707 if (obj0) {
7708 ecode1 = SWIG_AsVal_int(obj0, &val1);
7709 if (!SWIG_IsOK(ecode1)) {
7710 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7711 }
7712 arg1 = static_cast< int >(val1);
7713 }
7714 if (obj1) {
7715 ecode2 = SWIG_AsVal_int(obj1, &val2);
7716 if (!SWIG_IsOK(ecode2)) {
7717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7718 }
7719 arg2 = static_cast< int >(val2);
7720 }
7721 if (obj2) {
7722 ecode3 = SWIG_AsVal_int(obj2, &val3);
7723 if (!SWIG_IsOK(ecode3)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7725 }
7726 arg3 = static_cast< int >(val3);
7727 }
7728 if (obj3) {
7729 ecode4 = SWIG_AsVal_int(obj3, &val4);
7730 if (!SWIG_IsOK(ecode4)) {
7731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7732 }
7733 arg4 = static_cast< int >(val4);
7734 }
7735 {
7736 if (!wxPyCheckForApp()) SWIG_fail;
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7739 wxPyEndAllowThreads(__tstate);
7740 if (PyErr_Occurred()) SWIG_fail;
7741 }
7742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7743 return resultobj;
7744fail:
7745 return NULL;
7746}
7747
7748
7749SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj = 0;
7751 wxBitmap *arg1 = 0 ;
7752 wxRegion *result = 0 ;
7753 void *argp1 = 0 ;
7754 int res1 = 0 ;
7755 PyObject * obj0 = 0 ;
7756 char * kwnames[] = {
7757 (char *) "bmp", NULL
7758 };
7759
7760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7761 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7764 }
7765 if (!argp1) {
7766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7767 }
7768 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7769 {
7770 if (!wxPyCheckForApp()) SWIG_fail;
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7773 wxPyEndAllowThreads(__tstate);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7777 return resultobj;
7778fail:
7779 return NULL;
7780}
7781
7782
7783SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj = 0;
7785 wxBitmap *arg1 = 0 ;
7786 wxColour *arg2 = 0 ;
7787 int arg3 = (int) 0 ;
7788 wxRegion *result = 0 ;
7789 void *argp1 = 0 ;
7790 int res1 = 0 ;
7791 wxColour temp2 ;
7792 int val3 ;
7793 int ecode3 = 0 ;
7794 PyObject * obj0 = 0 ;
7795 PyObject * obj1 = 0 ;
7796 PyObject * obj2 = 0 ;
7797 char * kwnames[] = {
7798 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7799 };
7800
7801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7802 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7803 if (!SWIG_IsOK(res1)) {
7804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7805 }
7806 if (!argp1) {
7807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7808 }
7809 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7810 {
7811 arg2 = &temp2;
7812 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7813 }
7814 if (obj2) {
7815 ecode3 = SWIG_AsVal_int(obj2, &val3);
7816 if (!SWIG_IsOK(ecode3)) {
7817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7818 }
7819 arg3 = static_cast< int >(val3);
7820 }
7821 {
7822 if (!wxPyCheckForApp()) SWIG_fail;
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7829 return resultobj;
7830fail:
7831 return NULL;
7832}
7833
7834
7835SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7836 PyObject *resultobj = 0;
7837 int arg1 ;
7838 wxPoint *arg2 = (wxPoint *) 0 ;
7839 int arg3 = (int) wxWINDING_RULE ;
7840 wxRegion *result = 0 ;
7841 int val3 ;
7842 int ecode3 = 0 ;
7843 PyObject * obj0 = 0 ;
7844 PyObject * obj1 = 0 ;
7845 char * kwnames[] = {
7846 (char *) "points",(char *) "fillStyle", NULL
7847 };
7848
7849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7850 {
7851 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7852 if (arg2 == NULL) SWIG_fail;
7853 }
7854 if (obj1) {
7855 ecode3 = SWIG_AsVal_int(obj1, &val3);
7856 if (!SWIG_IsOK(ecode3)) {
7857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7858 }
7859 arg3 = static_cast< int >(val3);
7860 }
7861 {
7862 if (!wxPyCheckForApp()) SWIG_fail;
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7865 wxPyEndAllowThreads(__tstate);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7869 {
7870 if (arg2) delete [] arg2;
7871 }
7872 return resultobj;
7873fail:
7874 {
7875 if (arg2) delete [] arg2;
7876 }
7877 return NULL;
d55e5bfc
RD
7878}
7879
7880
1bd55598
RD
7881SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 PyObject *resultobj = 0;
7883 wxRegion *arg1 = (wxRegion *) 0 ;
7884 void *argp1 = 0 ;
7885 int res1 = 0 ;
7886 PyObject *swig_obj[1] ;
7887
7888 if (!args) SWIG_fail;
7889 swig_obj[0] = args;
7890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7891 if (!SWIG_IsOK(res1)) {
7892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7893 }
7894 arg1 = reinterpret_cast< wxRegion * >(argp1);
7895 {
7896 PyThreadState* __tstate = wxPyBeginAllowThreads();
7897 delete arg1;
d55e5bfc 7898
1bd55598
RD
7899 wxPyEndAllowThreads(__tstate);
7900 if (PyErr_Occurred()) SWIG_fail;
7901 }
7902 resultobj = SWIG_Py_Void();
7903 return resultobj;
7904fail:
7905 return NULL;
d55e5bfc
RD
7906}
7907
7908
1bd55598
RD
7909SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7910 PyObject *resultobj = 0;
7911 wxRegion *arg1 = (wxRegion *) 0 ;
7912 void *argp1 = 0 ;
7913 int res1 = 0 ;
7914 PyObject *swig_obj[1] ;
7915
7916 if (!args) SWIG_fail;
7917 swig_obj[0] = args;
7918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7919 if (!SWIG_IsOK(res1)) {
7920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7921 }
7922 arg1 = reinterpret_cast< wxRegion * >(argp1);
7923 {
7924 PyThreadState* __tstate = wxPyBeginAllowThreads();
7925 (arg1)->Clear();
7926 wxPyEndAllowThreads(__tstate);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 resultobj = SWIG_Py_Void();
7930 return resultobj;
7931fail:
7932 return NULL;
7933}
7934
7935
7936SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7937 PyObject *resultobj = 0;
7938 wxRegion *arg1 = (wxRegion *) 0 ;
7939 int arg2 ;
7940 int arg3 ;
7941 bool result;
7942 void *argp1 = 0 ;
7943 int res1 = 0 ;
7944 int val2 ;
7945 int ecode2 = 0 ;
7946 int val3 ;
7947 int ecode3 = 0 ;
7948 PyObject * obj0 = 0 ;
7949 PyObject * obj1 = 0 ;
7950 PyObject * obj2 = 0 ;
7951 char * kwnames[] = {
7952 (char *) "self",(char *) "x",(char *) "y", NULL
7953 };
7954
7955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7957 if (!SWIG_IsOK(res1)) {
7958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7959 }
7960 arg1 = reinterpret_cast< wxRegion * >(argp1);
7961 ecode2 = SWIG_AsVal_int(obj1, &val2);
7962 if (!SWIG_IsOK(ecode2)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7964 }
7965 arg2 = static_cast< int >(val2);
7966 ecode3 = SWIG_AsVal_int(obj2, &val3);
7967 if (!SWIG_IsOK(ecode3)) {
7968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7969 }
7970 arg3 = static_cast< int >(val3);
7971 {
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 result = (bool)(arg1)->Offset(arg2,arg3);
7974 wxPyEndAllowThreads(__tstate);
7975 if (PyErr_Occurred()) SWIG_fail;
7976 }
7977 {
7978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7979 }
7980 return resultobj;
7981fail:
7982 return NULL;
7983}
7984
7985
7986SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj = 0;
7988 wxRegion *arg1 = (wxRegion *) 0 ;
7989 int arg2 ;
7990 int arg3 ;
7991 wxRegionContain result;
7992 void *argp1 = 0 ;
7993 int res1 = 0 ;
7994 int val2 ;
7995 int ecode2 = 0 ;
7996 int val3 ;
7997 int ecode3 = 0 ;
7998 PyObject * obj0 = 0 ;
7999 PyObject * obj1 = 0 ;
8000 PyObject * obj2 = 0 ;
8001 char * kwnames[] = {
8002 (char *) "self",(char *) "x",(char *) "y", NULL
8003 };
8004
8005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8007 if (!SWIG_IsOK(res1)) {
8008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8009 }
8010 arg1 = reinterpret_cast< wxRegion * >(argp1);
8011 ecode2 = SWIG_AsVal_int(obj1, &val2);
8012 if (!SWIG_IsOK(ecode2)) {
8013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8014 }
8015 arg2 = static_cast< int >(val2);
8016 ecode3 = SWIG_AsVal_int(obj2, &val3);
8017 if (!SWIG_IsOK(ecode3)) {
8018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8019 }
8020 arg3 = static_cast< int >(val3);
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8024 wxPyEndAllowThreads(__tstate);
8025 if (PyErr_Occurred()) SWIG_fail;
8026 }
8027 resultobj = SWIG_From_int(static_cast< int >(result));
8028 return resultobj;
8029fail:
8030 return NULL;
8031}
8032
8033
8034SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj = 0;
8036 wxRegion *arg1 = (wxRegion *) 0 ;
8037 wxPoint *arg2 = 0 ;
8038 wxRegionContain result;
8039 void *argp1 = 0 ;
8040 int res1 = 0 ;
8041 wxPoint temp2 ;
8042 PyObject * obj0 = 0 ;
8043 PyObject * obj1 = 0 ;
8044 char * kwnames[] = {
8045 (char *) "self",(char *) "pt", NULL
8046 };
8047
8048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8050 if (!SWIG_IsOK(res1)) {
8051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8052 }
8053 arg1 = reinterpret_cast< wxRegion * >(argp1);
8054 {
8055 arg2 = &temp2;
8056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8057 }
8058 {
8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
8060 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8061 wxPyEndAllowThreads(__tstate);
8062 if (PyErr_Occurred()) SWIG_fail;
8063 }
8064 resultobj = SWIG_From_int(static_cast< int >(result));
8065 return resultobj;
8066fail:
8067 return NULL;
8068}
8069
8070
8071SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8072 PyObject *resultobj = 0;
8073 wxRegion *arg1 = (wxRegion *) 0 ;
8074 wxRect *arg2 = 0 ;
8075 wxRegionContain result;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 wxRect temp2 ;
8079 PyObject * obj0 = 0 ;
8080 PyObject * obj1 = 0 ;
8081 char * kwnames[] = {
8082 (char *) "self",(char *) "rect", NULL
8083 };
8084
8085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8087 if (!SWIG_IsOK(res1)) {
8088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8089 }
8090 arg1 = reinterpret_cast< wxRegion * >(argp1);
8091 {
8092 arg2 = &temp2;
8093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8094 }
8095 {
8096 PyThreadState* __tstate = wxPyBeginAllowThreads();
8097 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 resultobj = SWIG_From_int(static_cast< int >(result));
8102 return resultobj;
8103fail:
8104 return NULL;
8105}
8106
8107
8108SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj = 0;
8110 wxRegion *arg1 = (wxRegion *) 0 ;
8111 int arg2 ;
8112 int arg3 ;
8113 int arg4 ;
8114 int arg5 ;
8115 wxRegionContain result;
8116 void *argp1 = 0 ;
8117 int res1 = 0 ;
8118 int val2 ;
8119 int ecode2 = 0 ;
8120 int val3 ;
8121 int ecode3 = 0 ;
8122 int val4 ;
8123 int ecode4 = 0 ;
8124 int val5 ;
8125 int ecode5 = 0 ;
8126 PyObject * obj0 = 0 ;
8127 PyObject * obj1 = 0 ;
8128 PyObject * obj2 = 0 ;
8129 PyObject * obj3 = 0 ;
8130 PyObject * obj4 = 0 ;
8131 char * kwnames[] = {
8132 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8133 };
8134
8135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8137 if (!SWIG_IsOK(res1)) {
8138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8139 }
8140 arg1 = reinterpret_cast< wxRegion * >(argp1);
8141 ecode2 = SWIG_AsVal_int(obj1, &val2);
8142 if (!SWIG_IsOK(ecode2)) {
8143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8144 }
8145 arg2 = static_cast< int >(val2);
8146 ecode3 = SWIG_AsVal_int(obj2, &val3);
8147 if (!SWIG_IsOK(ecode3)) {
8148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8149 }
8150 arg3 = static_cast< int >(val3);
8151 ecode4 = SWIG_AsVal_int(obj3, &val4);
8152 if (!SWIG_IsOK(ecode4)) {
8153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8154 }
8155 arg4 = static_cast< int >(val4);
8156 ecode5 = SWIG_AsVal_int(obj4, &val5);
8157 if (!SWIG_IsOK(ecode5)) {
8158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8159 }
8160 arg5 = static_cast< int >(val5);
8161 {
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8164 wxPyEndAllowThreads(__tstate);
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 resultobj = SWIG_From_int(static_cast< int >(result));
8168 return resultobj;
8169fail:
8170 return NULL;
d55e5bfc
RD
8171}
8172
8173
1bd55598
RD
8174SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8175 PyObject *resultobj = 0;
8176 wxRegion *arg1 = (wxRegion *) 0 ;
8177 wxRect result;
8178 void *argp1 = 0 ;
8179 int res1 = 0 ;
8180 PyObject *swig_obj[1] ;
8181
8182 if (!args) SWIG_fail;
8183 swig_obj[0] = args;
8184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8185 if (!SWIG_IsOK(res1)) {
8186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8187 }
8188 arg1 = reinterpret_cast< wxRegion * >(argp1);
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 result = (arg1)->GetBox();
8192 wxPyEndAllowThreads(__tstate);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8196 return resultobj;
8197fail:
8198 return NULL;
8199}
8200
8201
8202SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8203 PyObject *resultobj = 0;
8204 wxRegion *arg1 = (wxRegion *) 0 ;
8205 int arg2 ;
8206 int arg3 ;
8207 int arg4 ;
8208 int arg5 ;
8209 bool result;
8210 void *argp1 = 0 ;
8211 int res1 = 0 ;
8212 int val2 ;
8213 int ecode2 = 0 ;
8214 int val3 ;
8215 int ecode3 = 0 ;
8216 int val4 ;
8217 int ecode4 = 0 ;
8218 int val5 ;
8219 int ecode5 = 0 ;
8220 PyObject * obj0 = 0 ;
8221 PyObject * obj1 = 0 ;
8222 PyObject * obj2 = 0 ;
8223 PyObject * obj3 = 0 ;
8224 PyObject * obj4 = 0 ;
8225 char * kwnames[] = {
8226 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8227 };
8228
8229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8231 if (!SWIG_IsOK(res1)) {
8232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8233 }
8234 arg1 = reinterpret_cast< wxRegion * >(argp1);
8235 ecode2 = SWIG_AsVal_int(obj1, &val2);
8236 if (!SWIG_IsOK(ecode2)) {
8237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8238 }
8239 arg2 = static_cast< int >(val2);
8240 ecode3 = SWIG_AsVal_int(obj2, &val3);
8241 if (!SWIG_IsOK(ecode3)) {
8242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8243 }
8244 arg3 = static_cast< int >(val3);
8245 ecode4 = SWIG_AsVal_int(obj3, &val4);
8246 if (!SWIG_IsOK(ecode4)) {
8247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8248 }
8249 arg4 = static_cast< int >(val4);
8250 ecode5 = SWIG_AsVal_int(obj4, &val5);
8251 if (!SWIG_IsOK(ecode5)) {
8252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8253 }
8254 arg5 = static_cast< int >(val5);
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8263 }
8264 return resultobj;
8265fail:
8266 return NULL;
8267}
8268
8269
8270SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8271 PyObject *resultobj = 0;
8272 wxRegion *arg1 = (wxRegion *) 0 ;
8273 wxRect *arg2 = 0 ;
8274 bool result;
8275 void *argp1 = 0 ;
8276 int res1 = 0 ;
8277 wxRect temp2 ;
8278 PyObject * obj0 = 0 ;
8279 PyObject * obj1 = 0 ;
8280 char * kwnames[] = {
8281 (char *) "self",(char *) "rect", NULL
8282 };
8283
8284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8286 if (!SWIG_IsOK(res1)) {
8287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8288 }
8289 arg1 = reinterpret_cast< wxRegion * >(argp1);
8290 {
8291 arg2 = &temp2;
8292 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8293 }
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8297 wxPyEndAllowThreads(__tstate);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 {
8301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8302 }
8303 return resultobj;
8304fail:
8305 return NULL;
8306}
8307
8308
8309SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj = 0;
8311 wxRegion *arg1 = (wxRegion *) 0 ;
8312 wxRegion *arg2 = 0 ;
8313 bool result;
8314 void *argp1 = 0 ;
8315 int res1 = 0 ;
8316 void *argp2 = 0 ;
8317 int res2 = 0 ;
8318 PyObject * obj0 = 0 ;
8319 PyObject * obj1 = 0 ;
8320 char * kwnames[] = {
8321 (char *) "self",(char *) "region", NULL
8322 };
8323
8324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8326 if (!SWIG_IsOK(res1)) {
8327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8328 }
8329 arg1 = reinterpret_cast< wxRegion * >(argp1);
8330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8331 if (!SWIG_IsOK(res2)) {
8332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8333 }
8334 if (!argp2) {
8335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8336 }
8337 arg2 = reinterpret_cast< wxRegion * >(argp2);
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 {
8345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8346 }
8347 return resultobj;
8348fail:
8349 return NULL;
d55e5bfc
RD
8350}
8351
8352
1bd55598
RD
8353SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxRegion *arg1 = (wxRegion *) 0 ;
8356 bool result;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8366 }
8367 arg1 = reinterpret_cast< wxRegion * >(argp1);
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 result = (bool)(arg1)->IsEmpty();
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 {
8375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8376 }
8377 return resultobj;
8378fail:
8379 return NULL;
8380}
8381
8382
8383SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8384 PyObject *resultobj = 0;
8385 wxRegion *arg1 = (wxRegion *) 0 ;
8386 int arg2 ;
8387 int arg3 ;
8388 int arg4 ;
8389 int arg5 ;
8390 bool result;
8391 void *argp1 = 0 ;
8392 int res1 = 0 ;
8393 int val2 ;
8394 int ecode2 = 0 ;
8395 int val3 ;
8396 int ecode3 = 0 ;
8397 int val4 ;
8398 int ecode4 = 0 ;
8399 int val5 ;
8400 int ecode5 = 0 ;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 PyObject * obj2 = 0 ;
8404 PyObject * obj3 = 0 ;
8405 PyObject * obj4 = 0 ;
8406 char * kwnames[] = {
8407 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8408 };
8409
8410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8412 if (!SWIG_IsOK(res1)) {
8413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8414 }
8415 arg1 = reinterpret_cast< wxRegion * >(argp1);
8416 ecode2 = SWIG_AsVal_int(obj1, &val2);
8417 if (!SWIG_IsOK(ecode2)) {
8418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8419 }
8420 arg2 = static_cast< int >(val2);
8421 ecode3 = SWIG_AsVal_int(obj2, &val3);
8422 if (!SWIG_IsOK(ecode3)) {
8423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8424 }
8425 arg3 = static_cast< int >(val3);
8426 ecode4 = SWIG_AsVal_int(obj3, &val4);
8427 if (!SWIG_IsOK(ecode4)) {
8428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8429 }
8430 arg4 = static_cast< int >(val4);
8431 ecode5 = SWIG_AsVal_int(obj4, &val5);
8432 if (!SWIG_IsOK(ecode5)) {
8433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8434 }
8435 arg5 = static_cast< int >(val5);
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 {
8443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8444 }
8445 return resultobj;
8446fail:
8447 return NULL;
8448}
8449
8450
8451SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj = 0;
8453 wxRegion *arg1 = (wxRegion *) 0 ;
8454 wxRect *arg2 = 0 ;
8455 bool result;
8456 void *argp1 = 0 ;
8457 int res1 = 0 ;
8458 wxRect temp2 ;
8459 PyObject * obj0 = 0 ;
8460 PyObject * obj1 = 0 ;
8461 char * kwnames[] = {
8462 (char *) "self",(char *) "rect", NULL
8463 };
8464
8465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8467 if (!SWIG_IsOK(res1)) {
8468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8469 }
8470 arg1 = reinterpret_cast< wxRegion * >(argp1);
8471 {
8472 arg2 = &temp2;
8473 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8474 }
8475 {
8476 PyThreadState* __tstate = wxPyBeginAllowThreads();
8477 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 {
8482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8483 }
8484 return resultobj;
8485fail:
8486 return NULL;
8487}
8488
8489
8490SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj = 0;
8492 wxRegion *arg1 = (wxRegion *) 0 ;
8493 wxRegion *arg2 = 0 ;
8494 bool result;
8495 void *argp1 = 0 ;
8496 int res1 = 0 ;
8497 void *argp2 = 0 ;
8498 int res2 = 0 ;
8499 PyObject * obj0 = 0 ;
8500 PyObject * obj1 = 0 ;
8501 char * kwnames[] = {
8502 (char *) "self",(char *) "region", NULL
8503 };
8504
8505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8507 if (!SWIG_IsOK(res1)) {
8508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8509 }
8510 arg1 = reinterpret_cast< wxRegion * >(argp1);
8511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8512 if (!SWIG_IsOK(res2)) {
8513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8514 }
8515 if (!argp2) {
8516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8517 }
8518 arg2 = reinterpret_cast< wxRegion * >(argp2);
8519 {
8520 PyThreadState* __tstate = wxPyBeginAllowThreads();
8521 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8522 wxPyEndAllowThreads(__tstate);
8523 if (PyErr_Occurred()) SWIG_fail;
8524 }
8525 {
8526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8527 }
8528 return resultobj;
8529fail:
8530 return NULL;
8531}
8532
8533
8534SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8535 PyObject *resultobj = 0;
8536 wxRegion *arg1 = (wxRegion *) 0 ;
8537 int arg2 ;
8538 int arg3 ;
8539 int arg4 ;
8540 int arg5 ;
8541 bool result;
8542 void *argp1 = 0 ;
8543 int res1 = 0 ;
8544 int val2 ;
8545 int ecode2 = 0 ;
8546 int val3 ;
8547 int ecode3 = 0 ;
8548 int val4 ;
8549 int ecode4 = 0 ;
8550 int val5 ;
8551 int ecode5 = 0 ;
8552 PyObject * obj0 = 0 ;
8553 PyObject * obj1 = 0 ;
8554 PyObject * obj2 = 0 ;
8555 PyObject * obj3 = 0 ;
8556 PyObject * obj4 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8565 }
8566 arg1 = reinterpret_cast< wxRegion * >(argp1);
8567 ecode2 = SWIG_AsVal_int(obj1, &val2);
8568 if (!SWIG_IsOK(ecode2)) {
8569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8570 }
8571 arg2 = static_cast< int >(val2);
8572 ecode3 = SWIG_AsVal_int(obj2, &val3);
8573 if (!SWIG_IsOK(ecode3)) {
8574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8575 }
8576 arg3 = static_cast< int >(val3);
8577 ecode4 = SWIG_AsVal_int(obj3, &val4);
8578 if (!SWIG_IsOK(ecode4)) {
8579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8580 }
8581 arg4 = static_cast< int >(val4);
8582 ecode5 = SWIG_AsVal_int(obj4, &val5);
8583 if (!SWIG_IsOK(ecode5)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8585 }
8586 arg5 = static_cast< int >(val5);
8587 {
8588 PyThreadState* __tstate = wxPyBeginAllowThreads();
8589 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8590 wxPyEndAllowThreads(__tstate);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 {
8594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8595 }
8596 return resultobj;
8597fail:
8598 return NULL;
8599}
8600
8601
8602SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8603 PyObject *resultobj = 0;
8604 wxRegion *arg1 = (wxRegion *) 0 ;
8605 wxRect *arg2 = 0 ;
8606 bool result;
8607 void *argp1 = 0 ;
8608 int res1 = 0 ;
8609 wxRect temp2 ;
8610 PyObject * obj0 = 0 ;
8611 PyObject * obj1 = 0 ;
8612 char * kwnames[] = {
8613 (char *) "self",(char *) "rect", NULL
8614 };
8615
8616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8620 }
8621 arg1 = reinterpret_cast< wxRegion * >(argp1);
8622 {
8623 arg2 = &temp2;
8624 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8625 }
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 {
8633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8634 }
8635 return resultobj;
8636fail:
8637 return NULL;
8638}
8639
8640
8641SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8642 PyObject *resultobj = 0;
8643 wxRegion *arg1 = (wxRegion *) 0 ;
8644 wxRegion *arg2 = 0 ;
8645 bool result;
8646 void *argp1 = 0 ;
8647 int res1 = 0 ;
8648 void *argp2 = 0 ;
8649 int res2 = 0 ;
8650 PyObject * obj0 = 0 ;
8651 PyObject * obj1 = 0 ;
8652 char * kwnames[] = {
8653 (char *) "self",(char *) "region", NULL
8654 };
8655
8656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8658 if (!SWIG_IsOK(res1)) {
8659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8660 }
8661 arg1 = reinterpret_cast< wxRegion * >(argp1);
8662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8663 if (!SWIG_IsOK(res2)) {
8664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8665 }
8666 if (!argp2) {
8667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8668 }
8669 arg2 = reinterpret_cast< wxRegion * >(argp2);
8670 {
8671 PyThreadState* __tstate = wxPyBeginAllowThreads();
8672 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8673 wxPyEndAllowThreads(__tstate);
8674 if (PyErr_Occurred()) SWIG_fail;
8675 }
8676 {
8677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8678 }
8679 return resultobj;
8680fail:
8681 return NULL;
8682}
8683
8684
8685SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8686 PyObject *resultobj = 0;
8687 wxRegion *arg1 = (wxRegion *) 0 ;
8688 int arg2 ;
8689 int arg3 ;
8690 int arg4 ;
8691 int arg5 ;
8692 bool result;
8693 void *argp1 = 0 ;
8694 int res1 = 0 ;
8695 int val2 ;
8696 int ecode2 = 0 ;
8697 int val3 ;
8698 int ecode3 = 0 ;
8699 int val4 ;
8700 int ecode4 = 0 ;
8701 int val5 ;
8702 int ecode5 = 0 ;
8703 PyObject * obj0 = 0 ;
8704 PyObject * obj1 = 0 ;
8705 PyObject * obj2 = 0 ;
8706 PyObject * obj3 = 0 ;
8707 PyObject * obj4 = 0 ;
8708 char * kwnames[] = {
8709 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8710 };
8711
8712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8714 if (!SWIG_IsOK(res1)) {
8715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8716 }
8717 arg1 = reinterpret_cast< wxRegion * >(argp1);
8718 ecode2 = SWIG_AsVal_int(obj1, &val2);
8719 if (!SWIG_IsOK(ecode2)) {
8720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8721 }
8722 arg2 = static_cast< int >(val2);
8723 ecode3 = SWIG_AsVal_int(obj2, &val3);
8724 if (!SWIG_IsOK(ecode3)) {
8725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8726 }
8727 arg3 = static_cast< int >(val3);
8728 ecode4 = SWIG_AsVal_int(obj3, &val4);
8729 if (!SWIG_IsOK(ecode4)) {
8730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8731 }
8732 arg4 = static_cast< int >(val4);
8733 ecode5 = SWIG_AsVal_int(obj4, &val5);
8734 if (!SWIG_IsOK(ecode5)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8736 }
8737 arg5 = static_cast< int >(val5);
8738 {
8739 PyThreadState* __tstate = wxPyBeginAllowThreads();
8740 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 {
8745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8746 }
8747 return resultobj;
8748fail:
8749 return NULL;
8750}
8751
8752
8753SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj = 0;
8755 wxRegion *arg1 = (wxRegion *) 0 ;
8756 wxRect *arg2 = 0 ;
8757 bool result;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 wxRect temp2 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "rect", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8771 }
8772 arg1 = reinterpret_cast< wxRegion * >(argp1);
8773 {
8774 arg2 = &temp2;
8775 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8776 }
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8780 wxPyEndAllowThreads(__tstate);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 {
8784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8785 }
8786 return resultobj;
8787fail:
8788 return NULL;
8789}
8790
8791
8792SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxRegion *arg1 = (wxRegion *) 0 ;
8795 wxRegion *arg2 = 0 ;
8796 bool result;
8797 void *argp1 = 0 ;
8798 int res1 = 0 ;
8799 void *argp2 = 0 ;
8800 int res2 = 0 ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803 char * kwnames[] = {
8804 (char *) "self",(char *) "region", NULL
8805 };
8806
8807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8809 if (!SWIG_IsOK(res1)) {
8810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8811 }
8812 arg1 = reinterpret_cast< wxRegion * >(argp1);
8813 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8814 if (!SWIG_IsOK(res2)) {
8815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8816 }
8817 if (!argp2) {
8818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8819 }
8820 arg2 = reinterpret_cast< wxRegion * >(argp2);
8821 {
8822 PyThreadState* __tstate = wxPyBeginAllowThreads();
8823 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8824 wxPyEndAllowThreads(__tstate);
8825 if (PyErr_Occurred()) SWIG_fail;
8826 }
8827 {
8828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8829 }
8830 return resultobj;
8831fail:
8832 return NULL;
d55e5bfc
RD
8833}
8834
8835
1bd55598
RD
8836SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8837 PyObject *resultobj = 0;
8838 wxRegion *arg1 = (wxRegion *) 0 ;
8839 SwigValueWrapper<wxBitmap > result;
8840 void *argp1 = 0 ;
8841 int res1 = 0 ;
8842 PyObject *swig_obj[1] ;
8843
8844 if (!args) SWIG_fail;
8845 swig_obj[0] = args;
8846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8847 if (!SWIG_IsOK(res1)) {
8848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8849 }
8850 arg1 = reinterpret_cast< wxRegion * >(argp1);
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (arg1)->ConvertToBitmap();
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8858 return resultobj;
8859fail:
8860 return NULL;
8861}
8862
8863
8864SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxRegion *arg1 = (wxRegion *) 0 ;
8867 wxBitmap *arg2 = 0 ;
8868 bool result;
8869 void *argp1 = 0 ;
8870 int res1 = 0 ;
8871 void *argp2 = 0 ;
8872 int res2 = 0 ;
8873 PyObject * obj0 = 0 ;
8874 PyObject * obj1 = 0 ;
8875 char * kwnames[] = {
8876 (char *) "self",(char *) "bmp", NULL
8877 };
8878
8879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8881 if (!SWIG_IsOK(res1)) {
8882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8883 }
8884 arg1 = reinterpret_cast< wxRegion * >(argp1);
8885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8886 if (!SWIG_IsOK(res2)) {
8887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8888 }
8889 if (!argp2) {
8890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8891 }
8892 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 {
8900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8901 }
8902 return resultobj;
8903fail:
8904 return NULL;
8905}
8906
8907
8908SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj = 0;
8910 wxRegion *arg1 = (wxRegion *) 0 ;
8911 wxBitmap *arg2 = 0 ;
8912 wxColour *arg3 = 0 ;
8913 int arg4 = (int) 0 ;
8914 bool result;
8915 void *argp1 = 0 ;
8916 int res1 = 0 ;
8917 void *argp2 = 0 ;
8918 int res2 = 0 ;
8919 wxColour temp3 ;
8920 int val4 ;
8921 int ecode4 = 0 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 PyObject * obj2 = 0 ;
8925 PyObject * obj3 = 0 ;
8926 char * kwnames[] = {
8927 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8928 };
8929
8930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8932 if (!SWIG_IsOK(res1)) {
8933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8934 }
8935 arg1 = reinterpret_cast< wxRegion * >(argp1);
8936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8937 if (!SWIG_IsOK(res2)) {
8938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8939 }
8940 if (!argp2) {
8941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8942 }
8943 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8944 {
8945 arg3 = &temp3;
8946 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8947 }
8948 if (obj3) {
8949 ecode4 = SWIG_AsVal_int(obj3, &val4);
8950 if (!SWIG_IsOK(ecode4)) {
8951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8952 }
8953 arg4 = static_cast< int >(val4);
8954 }
8955 {
8956 PyThreadState* __tstate = wxPyBeginAllowThreads();
8957 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8958 wxPyEndAllowThreads(__tstate);
8959 if (PyErr_Occurred()) SWIG_fail;
8960 }
8961 {
8962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8963 }
8964 return resultobj;
8965fail:
8966 return NULL;
d55e5bfc
RD
8967}
8968
8969
1bd55598
RD
8970SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8971 PyObject *obj;
8972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8973 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8974 return SWIG_Py_Void();
d55e5bfc
RD
8975}
8976
1bd55598
RD
8977SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8978 return SWIG_Python_InitShadowInstance(args);
8979}
d55e5bfc 8980
1bd55598
RD
8981SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8982 PyObject *resultobj = 0;
8983 wxRegion *arg1 = 0 ;
8984 wxRegionIterator *result = 0 ;
8985 void *argp1 = 0 ;
8986 int res1 = 0 ;
8987 PyObject * obj0 = 0 ;
8988 char * kwnames[] = {
8989 (char *) "region", NULL
8990 };
8991
8992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8993 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8994 if (!SWIG_IsOK(res1)) {
8995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8996 }
8997 if (!argp1) {
8998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8999 }
9000 arg1 = reinterpret_cast< wxRegion * >(argp1);
9001 {
9002 if (!wxPyCheckForApp()) SWIG_fail;
9003 PyThreadState* __tstate = wxPyBeginAllowThreads();
9004 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9005 wxPyEndAllowThreads(__tstate);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9009 return resultobj;
9010fail:
9011 return NULL;
d55e5bfc
RD
9012}
9013
9014
1bd55598
RD
9015SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9016 PyObject *resultobj = 0;
9017 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9018 void *argp1 = 0 ;
9019 int res1 = 0 ;
9020 PyObject *swig_obj[1] ;
9021
9022 if (!args) SWIG_fail;
9023 swig_obj[0] = args;
9024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9025 if (!SWIG_IsOK(res1)) {
9026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9027 }
9028 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
9031 delete arg1;
d55e5bfc 9032
1bd55598
RD
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 resultobj = SWIG_Py_Void();
9037 return resultobj;
9038fail:
9039 return NULL;
d55e5bfc
RD
9040}
9041
9042
1bd55598
RD
9043SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9044 PyObject *resultobj = 0;
9045 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9046 int result;
9047 void *argp1 = 0 ;
9048 int res1 = 0 ;
9049 PyObject *swig_obj[1] ;
9050
9051 if (!args) SWIG_fail;
9052 swig_obj[0] = args;
9053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9054 if (!SWIG_IsOK(res1)) {
9055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9056 }
9057 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 result = (int)(arg1)->GetX();
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 resultobj = SWIG_From_int(static_cast< int >(result));
9065 return resultobj;
9066fail:
9067 return NULL;
d55e5bfc
RD
9068}
9069
9070
1bd55598
RD
9071SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9072 PyObject *resultobj = 0;
9073 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9074 int result;
9075 void *argp1 = 0 ;
9076 int res1 = 0 ;
9077 PyObject *swig_obj[1] ;
9078
9079 if (!args) SWIG_fail;
9080 swig_obj[0] = args;
9081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9082 if (!SWIG_IsOK(res1)) {
9083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9084 }
9085 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9086 {
9087 PyThreadState* __tstate = wxPyBeginAllowThreads();
9088 result = (int)(arg1)->GetY();
9089 wxPyEndAllowThreads(__tstate);
9090 if (PyErr_Occurred()) SWIG_fail;
9091 }
9092 resultobj = SWIG_From_int(static_cast< int >(result));
9093 return resultobj;
9094fail:
9095 return NULL;
d55e5bfc
RD
9096}
9097
9098
1bd55598
RD
9099SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9100 PyObject *resultobj = 0;
9101 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9102 int result;
9103 void *argp1 = 0 ;
9104 int res1 = 0 ;
9105 PyObject *swig_obj[1] ;
9106
9107 if (!args) SWIG_fail;
9108 swig_obj[0] = args;
9109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9110 if (!SWIG_IsOK(res1)) {
9111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9112 }
9113 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = (int)(arg1)->GetW();
9117 wxPyEndAllowThreads(__tstate);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 }
9120 resultobj = SWIG_From_int(static_cast< int >(result));
9121 return resultobj;
9122fail:
9123 return NULL;
d55e5bfc
RD
9124}
9125
9126
1bd55598
RD
9127SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9128 PyObject *resultobj = 0;
9129 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9130 int result;
9131 void *argp1 = 0 ;
9132 int res1 = 0 ;
9133 PyObject *swig_obj[1] ;
9134
9135 if (!args) SWIG_fail;
9136 swig_obj[0] = args;
9137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9138 if (!SWIG_IsOK(res1)) {
9139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9140 }
9141 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 result = (int)(arg1)->GetWidth();
9145 wxPyEndAllowThreads(__tstate);
9146 if (PyErr_Occurred()) SWIG_fail;
9147 }
9148 resultobj = SWIG_From_int(static_cast< int >(result));
9149 return resultobj;
9150fail:
9151 return NULL;
d55e5bfc
RD
9152}
9153
9154
1bd55598
RD
9155SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9156 PyObject *resultobj = 0;
9157 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9158 int result;
9159 void *argp1 = 0 ;
9160 int res1 = 0 ;
9161 PyObject *swig_obj[1] ;
9162
9163 if (!args) SWIG_fail;
9164 swig_obj[0] = args;
9165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9166 if (!SWIG_IsOK(res1)) {
9167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9168 }
9169 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = (int)(arg1)->GetH();
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_From_int(static_cast< int >(result));
9177 return resultobj;
9178fail:
9179 return NULL;
d07096ad
RD
9180}
9181
9182
1bd55598
RD
9183SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9184 PyObject *resultobj = 0;
9185 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9186 int result;
9187 void *argp1 = 0 ;
9188 int res1 = 0 ;
9189 PyObject *swig_obj[1] ;
9190
9191 if (!args) SWIG_fail;
9192 swig_obj[0] = args;
9193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9194 if (!SWIG_IsOK(res1)) {
9195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9196 }
9197 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 result = (int)(arg1)->GetHeight();
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 resultobj = SWIG_From_int(static_cast< int >(result));
9205 return resultobj;
9206fail:
9207 return NULL;
d55e5bfc
RD
9208}
9209
9210
1bd55598
RD
9211SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9212 PyObject *resultobj = 0;
9213 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9214 wxRect result;
9215 void *argp1 = 0 ;
9216 int res1 = 0 ;
9217 PyObject *swig_obj[1] ;
9218
9219 if (!args) SWIG_fail;
9220 swig_obj[0] = args;
9221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9222 if (!SWIG_IsOK(res1)) {
9223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9224 }
9225 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 result = (arg1)->GetRect();
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9233 return resultobj;
9234fail:
9235 return NULL;
d55e5bfc
RD
9236}
9237
9238
1bd55598
RD
9239SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9240 PyObject *resultobj = 0;
9241 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9242 bool result;
9243 void *argp1 = 0 ;
9244 int res1 = 0 ;
9245 PyObject *swig_obj[1] ;
9246
9247 if (!args) SWIG_fail;
9248 swig_obj[0] = args;
9249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9252 }
9253 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 result = (bool)(arg1)->HaveRects();
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 {
9261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9262 }
9263 return resultobj;
9264fail:
9265 return NULL;
d55e5bfc
RD
9266}
9267
9268
1bd55598
RD
9269SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9270 PyObject *resultobj = 0;
9271 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9272 void *argp1 = 0 ;
9273 int res1 = 0 ;
9274 PyObject *swig_obj[1] ;
9275
9276 if (!args) SWIG_fail;
9277 swig_obj[0] = args;
9278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9279 if (!SWIG_IsOK(res1)) {
9280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9281 }
9282 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9283 {
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 (arg1)->Reset();
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_Py_Void();
9290 return resultobj;
9291fail:
9292 return NULL;
d55e5bfc
RD
9293}
9294
9295
1bd55598
RD
9296SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9297 PyObject *resultobj = 0;
9298 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 PyObject *swig_obj[1] ;
9302
9303 if (!args) SWIG_fail;
9304 swig_obj[0] = args;
9305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9306 if (!SWIG_IsOK(res1)) {
9307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9308 }
9309 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 wxRegionIterator_Next(arg1);
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 resultobj = SWIG_Py_Void();
9317 return resultobj;
9318fail:
9319 return NULL;
070c48b4
RD
9320}
9321
9322
1bd55598
RD
9323SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9324 PyObject *resultobj = 0;
9325 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9326 bool result;
9327 void *argp1 = 0 ;
9328 int res1 = 0 ;
9329 PyObject *swig_obj[1] ;
9330
9331 if (!args) SWIG_fail;
9332 swig_obj[0] = args;
9333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9334 if (!SWIG_IsOK(res1)) {
9335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9336 }
9337 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (bool)wxRegionIterator___nonzero__(arg1);
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 {
9345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9346 }
9347 return resultobj;
9348fail:
9349 return NULL;
d55e5bfc
RD
9350}
9351
9352
1bd55598
RD
9353SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 PyObject *obj;
9355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9356 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9357 return SWIG_Py_Void();
d55e5bfc
RD
9358}
9359
1bd55598
RD
9360SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9361 return SWIG_Python_InitShadowInstance(args);
9362}
d55e5bfc 9363
1bd55598
RD
9364SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9365 PyObject *resultobj = 0;
9366 wxNativeFontInfo *result = 0 ;
9367
9368 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9376 return resultobj;
9377fail:
9378 return NULL;
d55e5bfc
RD
9379}
9380
9381
1bd55598
RD
9382SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9383 PyObject *resultobj = 0;
9384 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 PyObject *swig_obj[1] ;
9388
9389 if (!args) SWIG_fail;
9390 swig_obj[0] = args;
9391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9392 if (!SWIG_IsOK(res1)) {
9393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9394 }
9395 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 delete arg1;
d55e5bfc 9399
1bd55598
RD
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_Py_Void();
9404 return resultobj;
9405fail:
9406 return NULL;
d55e5bfc
RD
9407}
9408
9409
1bd55598
RD
9410SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9411 PyObject *resultobj = 0;
9412 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9413 void *argp1 = 0 ;
9414 int res1 = 0 ;
9415 PyObject *swig_obj[1] ;
9416
9417 if (!args) SWIG_fail;
9418 swig_obj[0] = args;
9419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9420 if (!SWIG_IsOK(res1)) {
9421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9422 }
9423 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Init();
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432fail:
9433 return NULL;
9434}
9435
9436
9437SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9440 wxFont *arg2 = 0 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 void *argp2 = 0 ;
9444 int res2 = 0 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char * kwnames[] = {
9448 (char *) "self",(char *) "font", NULL
9449 };
9450
9451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9455 }
9456 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9458 if (!SWIG_IsOK(res2)) {
9459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9460 }
9461 if (!argp2) {
9462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9463 }
9464 arg2 = reinterpret_cast< wxFont * >(argp2);
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 (arg1)->InitFromFont((wxFont const &)*arg2);
9468 wxPyEndAllowThreads(__tstate);
9469 if (PyErr_Occurred()) SWIG_fail;
9470 }
9471 resultobj = SWIG_Py_Void();
9472 return resultobj;
9473fail:
9474 return NULL;
d55e5bfc
RD
9475}
9476
9477
1bd55598
RD
9478SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9479 PyObject *resultobj = 0;
9480 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9481 int result;
9482 void *argp1 = 0 ;
9483 int res1 = 0 ;
9484 PyObject *swig_obj[1] ;
9485
9486 if (!args) SWIG_fail;
9487 swig_obj[0] = args;
9488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9489 if (!SWIG_IsOK(res1)) {
9490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9491 }
9492 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9496 wxPyEndAllowThreads(__tstate);
9497 if (PyErr_Occurred()) SWIG_fail;
9498 }
9499 resultobj = SWIG_From_int(static_cast< int >(result));
9500 return resultobj;
9501fail:
9502 return NULL;
d55e5bfc
RD
9503}
9504
9505
1bd55598
RD
9506SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9507 PyObject *resultobj = 0;
9508 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9509 wxFontStyle result;
9510 void *argp1 = 0 ;
9511 int res1 = 0 ;
9512 PyObject *swig_obj[1] ;
9513
9514 if (!args) SWIG_fail;
9515 swig_obj[0] = args;
9516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9517 if (!SWIG_IsOK(res1)) {
9518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9519 }
9520 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9524 wxPyEndAllowThreads(__tstate);
9525 if (PyErr_Occurred()) SWIG_fail;
9526 }
9527 resultobj = SWIG_From_int(static_cast< int >(result));
9528 return resultobj;
9529fail:
9530 return NULL;
d55e5bfc
RD
9531}
9532
9533
1bd55598
RD
9534SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9535 PyObject *resultobj = 0;
9536 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9537 wxFontWeight result;
9538 void *argp1 = 0 ;
9539 int res1 = 0 ;
9540 PyObject *swig_obj[1] ;
9541
9542 if (!args) SWIG_fail;
9543 swig_obj[0] = args;
9544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9545 if (!SWIG_IsOK(res1)) {
9546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9547 }
9548 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 }
9555 resultobj = SWIG_From_int(static_cast< int >(result));
9556 return resultobj;
9557fail:
9558 return NULL;
d55e5bfc
RD
9559}
9560
9561
1bd55598
RD
9562SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9563 PyObject *resultobj = 0;
9564 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9565 bool result;
9566 void *argp1 = 0 ;
9567 int res1 = 0 ;
9568 PyObject *swig_obj[1] ;
9569
9570 if (!args) SWIG_fail;
9571 swig_obj[0] = args;
9572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9573 if (!SWIG_IsOK(res1)) {
9574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9575 }
9576 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9577 {
9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
9579 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9580 wxPyEndAllowThreads(__tstate);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 }
9583 {
9584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9585 }
9586 return resultobj;
9587fail:
9588 return NULL;
d55e5bfc
RD
9589}
9590
9591
1bd55598
RD
9592SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9593 PyObject *resultobj = 0;
9594 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9595 wxString result;
9596 void *argp1 = 0 ;
9597 int res1 = 0 ;
9598 PyObject *swig_obj[1] ;
9599
9600 if (!args) SWIG_fail;
9601 swig_obj[0] = args;
9602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9603 if (!SWIG_IsOK(res1)) {
9604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9605 }
9606 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 {
9614#if wxUSE_UNICODE
9615 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9616#else
9617 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9618#endif
9619 }
9620 return resultobj;
9621fail:
9622 return NULL;
d55e5bfc
RD
9623}
9624
9625
1bd55598
RD
9626SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9627 PyObject *resultobj = 0;
9628 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9629 wxFontFamily result;
9630 void *argp1 = 0 ;
9631 int res1 = 0 ;
9632 PyObject *swig_obj[1] ;
9633
9634 if (!args) SWIG_fail;
9635 swig_obj[0] = args;
9636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9639 }
9640 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9641 {
9642 PyThreadState* __tstate = wxPyBeginAllowThreads();
9643 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_From_int(static_cast< int >(result));
9648 return resultobj;
9649fail:
9650 return NULL;
d55e5bfc
RD
9651}
9652
9653
1bd55598
RD
9654SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9655 PyObject *resultobj = 0;
9656 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9657 wxFontEncoding result;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 PyObject *swig_obj[1] ;
9661
9662 if (!args) SWIG_fail;
9663 swig_obj[0] = args;
9664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9667 }
9668 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_From_int(static_cast< int >(result));
9676 return resultobj;
9677fail:
9678 return NULL;
9679}
9680
9681
9682SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9685 int arg2 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 int val2 ;
9689 int ecode2 = 0 ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char * kwnames[] = {
9693 (char *) "self",(char *) "pointsize", NULL
9694 };
9695
9696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9700 }
9701 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9702 ecode2 = SWIG_AsVal_int(obj1, &val2);
9703 if (!SWIG_IsOK(ecode2)) {
9704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9705 }
9706 arg2 = static_cast< int >(val2);
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 (arg1)->SetPointSize(arg2);
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = SWIG_Py_Void();
9714 return resultobj;
9715fail:
9716 return NULL;
9717}
9718
9719
9720SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj = 0;
9722 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9723 wxFontStyle arg2 ;
9724 void *argp1 = 0 ;
9725 int res1 = 0 ;
9726 int val2 ;
9727 int ecode2 = 0 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char * kwnames[] = {
9731 (char *) "self",(char *) "style", NULL
9732 };
9733
9734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9738 }
9739 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9740 ecode2 = SWIG_AsVal_int(obj1, &val2);
9741 if (!SWIG_IsOK(ecode2)) {
9742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9743 }
9744 arg2 = static_cast< wxFontStyle >(val2);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 (arg1)->SetStyle(arg2);
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 resultobj = SWIG_Py_Void();
9752 return resultobj;
9753fail:
9754 return NULL;
9755}
9756
9757
9758SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj = 0;
9760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9761 wxFontWeight arg2 ;
9762 void *argp1 = 0 ;
9763 int res1 = 0 ;
9764 int val2 ;
9765 int ecode2 = 0 ;
9766 PyObject * obj0 = 0 ;
9767 PyObject * obj1 = 0 ;
9768 char * kwnames[] = {
9769 (char *) "self",(char *) "weight", NULL
9770 };
9771
9772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9774 if (!SWIG_IsOK(res1)) {
9775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9776 }
9777 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9778 ecode2 = SWIG_AsVal_int(obj1, &val2);
9779 if (!SWIG_IsOK(ecode2)) {
9780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9781 }
9782 arg2 = static_cast< wxFontWeight >(val2);
9783 {
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 (arg1)->SetWeight(arg2);
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = SWIG_Py_Void();
9790 return resultobj;
9791fail:
9792 return NULL;
9793}
9794
9795
9796SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj = 0;
9798 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9799 bool arg2 ;
9800 void *argp1 = 0 ;
9801 int res1 = 0 ;
9802 bool val2 ;
9803 int ecode2 = 0 ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 char * kwnames[] = {
9807 (char *) "self",(char *) "underlined", NULL
9808 };
9809
9810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9812 if (!SWIG_IsOK(res1)) {
9813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9814 }
9815 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9816 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9817 if (!SWIG_IsOK(ecode2)) {
9818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9819 }
9820 arg2 = static_cast< bool >(val2);
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 (arg1)->SetUnderlined(arg2);
9824 wxPyEndAllowThreads(__tstate);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 }
9827 resultobj = SWIG_Py_Void();
9828 return resultobj;
9829fail:
9830 return NULL;
9831}
9832
9833
9834SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9835 PyObject *resultobj = 0;
9836 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9837 wxString arg2 ;
704eda0c 9838 bool result;
1bd55598
RD
9839 void *argp1 = 0 ;
9840 int res1 = 0 ;
9841 PyObject * obj0 = 0 ;
9842 PyObject * obj1 = 0 ;
9843 char * kwnames[] = {
9844 (char *) "self",(char *) "facename", NULL
9845 };
9846
9847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9849 if (!SWIG_IsOK(res1)) {
9850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9851 }
9852 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9853 {
9854 wxString* sptr = wxString_in_helper(obj1);
9855 if (sptr == NULL) SWIG_fail;
9856 arg2 = *sptr;
9857 delete sptr;
9858 }
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 9861 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
704eda0c
RD
9865 {
9866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9867 }
1bd55598
RD
9868 return resultobj;
9869fail:
9870 return NULL;
9871}
9872
9873
9874SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj = 0;
9876 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9877 wxFontFamily arg2 ;
9878 void *argp1 = 0 ;
9879 int res1 = 0 ;
9880 int val2 ;
9881 int ecode2 = 0 ;
9882 PyObject * obj0 = 0 ;
9883 PyObject * obj1 = 0 ;
9884 char * kwnames[] = {
9885 (char *) "self",(char *) "family", NULL
9886 };
9887
9888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9890 if (!SWIG_IsOK(res1)) {
9891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9892 }
9893 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9894 ecode2 = SWIG_AsVal_int(obj1, &val2);
9895 if (!SWIG_IsOK(ecode2)) {
9896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9897 }
9898 arg2 = static_cast< wxFontFamily >(val2);
9899 {
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 (arg1)->SetFamily(arg2);
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 resultobj = SWIG_Py_Void();
9906 return resultobj;
9907fail:
9908 return NULL;
9909}
9910
9911
9912SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9913 PyObject *resultobj = 0;
9914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9915 wxFontEncoding arg2 ;
9916 void *argp1 = 0 ;
9917 int res1 = 0 ;
9918 int val2 ;
9919 int ecode2 = 0 ;
9920 PyObject * obj0 = 0 ;
9921 PyObject * obj1 = 0 ;
9922 char * kwnames[] = {
9923 (char *) "self",(char *) "encoding", NULL
9924 };
9925
9926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9928 if (!SWIG_IsOK(res1)) {
9929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9930 }
9931 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9932 ecode2 = SWIG_AsVal_int(obj1, &val2);
9933 if (!SWIG_IsOK(ecode2)) {
9934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9935 }
9936 arg2 = static_cast< wxFontEncoding >(val2);
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 (arg1)->SetEncoding(arg2);
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 resultobj = SWIG_Py_Void();
9944 return resultobj;
9945fail:
9946 return NULL;
9947}
9948
9949
9950SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj = 0;
9952 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9953 wxString *arg2 = 0 ;
9954 bool result;
9955 void *argp1 = 0 ;
9956 int res1 = 0 ;
9957 bool temp2 = false ;
9958 PyObject * obj0 = 0 ;
9959 PyObject * obj1 = 0 ;
9960 char * kwnames[] = {
9961 (char *) "self",(char *) "s", NULL
9962 };
9963
9964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9966 if (!SWIG_IsOK(res1)) {
9967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9968 }
9969 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9970 {
9971 arg2 = wxString_in_helper(obj1);
9972 if (arg2 == NULL) SWIG_fail;
9973 temp2 = true;
9974 }
9975 {
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 {
9982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9983 }
9984 {
9985 if (temp2)
9986 delete arg2;
9987 }
9988 return resultobj;
9989fail:
9990 {
9991 if (temp2)
9992 delete arg2;
9993 }
9994 return NULL;
d55e5bfc
RD
9995}
9996
9997
1bd55598
RD
9998SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9999 PyObject *resultobj = 0;
10000 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10001 wxString result;
10002 void *argp1 = 0 ;
10003 int res1 = 0 ;
10004 PyObject *swig_obj[1] ;
10005
10006 if (!args) SWIG_fail;
10007 swig_obj[0] = args;
10008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10009 if (!SWIG_IsOK(res1)) {
10010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10011 }
10012 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
10015 result = ((wxNativeFontInfo const *)arg1)->ToString();
10016 wxPyEndAllowThreads(__tstate);
10017 if (PyErr_Occurred()) SWIG_fail;
10018 }
10019 {
10020#if wxUSE_UNICODE
10021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10022#else
10023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10024#endif
10025 }
10026 return resultobj;
10027fail:
10028 return NULL;
d55e5bfc
RD
10029}
10030
10031
1bd55598
RD
10032SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10033 PyObject *resultobj = 0;
10034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10035 wxString result;
10036 void *argp1 = 0 ;
10037 int res1 = 0 ;
10038 PyObject *swig_obj[1] ;
10039
10040 if (!args) SWIG_fail;
10041 swig_obj[0] = args;
10042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10043 if (!SWIG_IsOK(res1)) {
10044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10045 }
10046 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 result = wxNativeFontInfo___str__(arg1);
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
10053 {
10054#if wxUSE_UNICODE
10055 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10056#else
10057 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10058#endif
10059 }
10060 return resultobj;
10061fail:
10062 return NULL;
10063}
10064
10065
10066SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj = 0;
10068 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10069 wxString *arg2 = 0 ;
10070 bool result;
10071 void *argp1 = 0 ;
10072 int res1 = 0 ;
10073 bool temp2 = false ;
10074 PyObject * obj0 = 0 ;
10075 PyObject * obj1 = 0 ;
10076 char * kwnames[] = {
10077 (char *) "self",(char *) "s", NULL
10078 };
10079
10080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10082 if (!SWIG_IsOK(res1)) {
10083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10084 }
10085 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10086 {
10087 arg2 = wxString_in_helper(obj1);
10088 if (arg2 == NULL) SWIG_fail;
10089 temp2 = true;
10090 }
10091 {
10092 PyThreadState* __tstate = wxPyBeginAllowThreads();
10093 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10094 wxPyEndAllowThreads(__tstate);
10095 if (PyErr_Occurred()) SWIG_fail;
10096 }
10097 {
10098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10099 }
10100 {
10101 if (temp2)
10102 delete arg2;
10103 }
10104 return resultobj;
10105fail:
10106 {
10107 if (temp2)
10108 delete arg2;
10109 }
10110 return NULL;
d55e5bfc
RD
10111}
10112
10113
1bd55598
RD
10114SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10115 PyObject *resultobj = 0;
10116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10117 wxString result;
10118 void *argp1 = 0 ;
10119 int res1 = 0 ;
10120 PyObject *swig_obj[1] ;
10121
10122 if (!args) SWIG_fail;
10123 swig_obj[0] = args;
10124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10125 if (!SWIG_IsOK(res1)) {
10126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10127 }
10128 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10129 {
10130 PyThreadState* __tstate = wxPyBeginAllowThreads();
10131 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10132 wxPyEndAllowThreads(__tstate);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 }
10135 {
36ed4f51 10136#if wxUSE_UNICODE
1bd55598 10137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 10138#else
1bd55598 10139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 10140#endif
1bd55598
RD
10141 }
10142 return resultobj;
10143fail:
10144 return NULL;
d55e5bfc
RD
10145}
10146
10147
1bd55598
RD
10148SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10149 PyObject *obj;
10150 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10151 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10152 return SWIG_Py_Void();
d55e5bfc
RD
10153}
10154
1bd55598
RD
10155SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10156 return SWIG_Python_InitShadowInstance(args);
10157}
d55e5bfc 10158
1bd55598
RD
10159SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10160 PyObject *resultobj = 0;
10161 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10162 wxString *arg2 = (wxString *) 0 ;
10163 void *argp1 = 0 ;
10164 int res1 = 0 ;
10165 bool temp2 = false ;
10166 PyObject *swig_obj[2] ;
10167
10168 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10170 if (!SWIG_IsOK(res1)) {
10171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10172 }
10173 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10174 {
10175 arg2 = wxString_in_helper(swig_obj[1]);
10176 if (arg2 == NULL) SWIG_fail;
10177 temp2 = true;
10178 }
10179 if (arg1) (arg1)->facename = *arg2;
10180
10181 resultobj = SWIG_Py_Void();
10182 {
10183 if (temp2)
10184 delete arg2;
10185 }
10186 return resultobj;
10187fail:
10188 {
10189 if (temp2)
10190 delete arg2;
10191 }
10192 return NULL;
d55e5bfc
RD
10193}
10194
10195
1bd55598
RD
10196SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10197 PyObject *resultobj = 0;
10198 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10199 wxString *result = 0 ;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 PyObject *swig_obj[1] ;
10203
10204 if (!args) SWIG_fail;
10205 swig_obj[0] = args;
10206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10207 if (!SWIG_IsOK(res1)) {
10208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10209 }
10210 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10211 result = (wxString *)& ((arg1)->facename);
10212 {
10213#if wxUSE_UNICODE
10214 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10215#else
10216 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10217#endif
10218 }
10219 return resultobj;
10220fail:
10221 return NULL;
d55e5bfc
RD
10222}
10223
10224
1bd55598
RD
10225SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10226 PyObject *resultobj = 0;
10227 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10228 wxFontEncoding arg2 ;
10229 void *argp1 = 0 ;
10230 int res1 = 0 ;
10231 int val2 ;
10232 int ecode2 = 0 ;
10233 PyObject *swig_obj[2] ;
10234
10235 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10237 if (!SWIG_IsOK(res1)) {
10238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10239 }
10240 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10241 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10242 if (!SWIG_IsOK(ecode2)) {
10243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10244 }
10245 arg2 = static_cast< wxFontEncoding >(val2);
10246 if (arg1) (arg1)->encoding = arg2;
10247
10248 resultobj = SWIG_Py_Void();
10249 return resultobj;
10250fail:
10251 return NULL;
d55e5bfc
RD
10252}
10253
10254
1bd55598
RD
10255SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10256 PyObject *resultobj = 0;
10257 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10258 wxFontEncoding result;
10259 void *argp1 = 0 ;
10260 int res1 = 0 ;
10261 PyObject *swig_obj[1] ;
10262
10263 if (!args) SWIG_fail;
10264 swig_obj[0] = args;
10265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10266 if (!SWIG_IsOK(res1)) {
10267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10268 }
10269 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10270 result = (wxFontEncoding) ((arg1)->encoding);
10271 resultobj = SWIG_From_int(static_cast< int >(result));
10272 return resultobj;
10273fail:
10274 return NULL;
d07096ad
RD
10275}
10276
10277
1bd55598
RD
10278SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10279 PyObject *resultobj = 0;
10280 wxNativeEncodingInfo *result = 0 ;
10281
10282 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
10285 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10286 wxPyEndAllowThreads(__tstate);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 }
10289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10290 return resultobj;
10291fail:
10292 return NULL;
d55e5bfc
RD
10293}
10294
10295
1bd55598
RD
10296SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10297 PyObject *resultobj = 0;
10298 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10299 void *argp1 = 0 ;
10300 int res1 = 0 ;
10301 PyObject *swig_obj[1] ;
10302
10303 if (!args) SWIG_fail;
10304 swig_obj[0] = args;
10305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10306 if (!SWIG_IsOK(res1)) {
10307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10308 }
10309 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 delete arg1;
d55e5bfc 10313
1bd55598
RD
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 resultobj = SWIG_Py_Void();
10318 return resultobj;
10319fail:
10320 return NULL;
10321}
10322
10323
10324SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10325 PyObject *resultobj = 0;
10326 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10327 wxString *arg2 = 0 ;
10328 bool result;
10329 void *argp1 = 0 ;
10330 int res1 = 0 ;
10331 bool temp2 = false ;
10332 PyObject * obj0 = 0 ;
10333 PyObject * obj1 = 0 ;
10334 char * kwnames[] = {
10335 (char *) "self",(char *) "s", NULL
10336 };
10337
10338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10340 if (!SWIG_IsOK(res1)) {
10341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10342 }
10343 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10344 {
10345 arg2 = wxString_in_helper(obj1);
10346 if (arg2 == NULL) SWIG_fail;
10347 temp2 = true;
10348 }
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10352 wxPyEndAllowThreads(__tstate);
10353 if (PyErr_Occurred()) SWIG_fail;
10354 }
10355 {
10356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10357 }
10358 {
10359 if (temp2)
10360 delete arg2;
10361 }
10362 return resultobj;
10363fail:
10364 {
10365 if (temp2)
10366 delete arg2;
10367 }
10368 return NULL;
d55e5bfc
RD
10369}
10370
10371
1bd55598
RD
10372SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10373 PyObject *resultobj = 0;
10374 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10375 wxString result;
10376 void *argp1 = 0 ;
10377 int res1 = 0 ;
10378 PyObject *swig_obj[1] ;
10379
10380 if (!args) SWIG_fail;
10381 swig_obj[0] = args;
10382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10383 if (!SWIG_IsOK(res1)) {
10384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10385 }
10386 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 {
10394#if wxUSE_UNICODE
10395 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10396#else
10397 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10398#endif
10399 }
10400 return resultobj;
10401fail:
10402 return NULL;
d55e5bfc
RD
10403}
10404
10405
1bd55598
RD
10406SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10407 PyObject *obj;
10408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10409 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10410 return SWIG_Py_Void();
d55e5bfc
RD
10411}
10412
1bd55598
RD
10413SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10414 return SWIG_Python_InitShadowInstance(args);
10415}
d55e5bfc 10416
1bd55598
RD
10417SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj = 0;
10419 wxFontEncoding arg1 ;
10420 wxNativeEncodingInfo *result = 0 ;
10421 int val1 ;
10422 int ecode1 = 0 ;
10423 PyObject * obj0 = 0 ;
10424 char * kwnames[] = {
10425 (char *) "encoding", NULL
10426 };
10427
10428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10429 ecode1 = SWIG_AsVal_int(obj0, &val1);
10430 if (!SWIG_IsOK(ecode1)) {
10431 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10432 }
10433 arg1 = static_cast< wxFontEncoding >(val1);
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10441 return resultobj;
10442fail:
10443 return NULL;
10444}
10445
10446
10447SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 wxNativeEncodingInfo *arg1 = 0 ;
10450 bool result;
10451 void *argp1 = 0 ;
10452 int res1 = 0 ;
10453 PyObject * obj0 = 0 ;
10454 char * kwnames[] = {
10455 (char *) "info", NULL
10456 };
10457
10458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10459 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10460 if (!SWIG_IsOK(res1)) {
10461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10462 }
10463 if (!argp1) {
10464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10465 }
10466 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 {
10474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10475 }
10476 return resultobj;
10477fail:
10478 return NULL;
d55e5bfc
RD
10479}
10480
10481
1bd55598
RD
10482SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10483 PyObject *resultobj = 0;
10484 wxFontMapper *result = 0 ;
10485
10486 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 result = (wxFontMapper *)new wxFontMapper();
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10494 return resultobj;
10495fail:
10496 return NULL;
d55e5bfc
RD
10497}
10498
10499
1bd55598
RD
10500SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10501 PyObject *resultobj = 0;
10502 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10503 void *argp1 = 0 ;
10504 int res1 = 0 ;
10505 PyObject *swig_obj[1] ;
10506
10507 if (!args) SWIG_fail;
10508 swig_obj[0] = args;
10509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10510 if (!SWIG_IsOK(res1)) {
10511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10512 }
10513 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 delete arg1;
d55e5bfc 10517
1bd55598
RD
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 resultobj = SWIG_Py_Void();
10522 return resultobj;
10523fail:
10524 return NULL;
d55e5bfc
RD
10525}
10526
10527
1bd55598
RD
10528SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10529 PyObject *resultobj = 0;
10530 wxFontMapper *result = 0 ;
10531
10532 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 result = (wxFontMapper *)wxFontMapper::Get();
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10540 return resultobj;
10541fail:
10542 return NULL;
10543}
10544
10545
10546SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj = 0;
10548 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10549 wxFontMapper *result = 0 ;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 PyObject * obj0 = 0 ;
10553 char * kwnames[] = {
10554 (char *) "mapper", NULL
10555 };
10556
10557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10559 if (!SWIG_IsOK(res1)) {
10560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10561 }
10562 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10570 return resultobj;
10571fail:
10572 return NULL;
10573}
10574
10575
10576SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj = 0;
10578 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10579 wxString *arg2 = 0 ;
10580 bool arg3 = (bool) true ;
10581 wxFontEncoding result;
10582 void *argp1 = 0 ;
10583 int res1 = 0 ;
10584 bool temp2 = false ;
10585 bool val3 ;
10586 int ecode3 = 0 ;
10587 PyObject * obj0 = 0 ;
10588 PyObject * obj1 = 0 ;
10589 PyObject * obj2 = 0 ;
10590 char * kwnames[] = {
10591 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10592 };
10593
10594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10596 if (!SWIG_IsOK(res1)) {
10597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10598 }
10599 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10600 {
10601 arg2 = wxString_in_helper(obj1);
10602 if (arg2 == NULL) SWIG_fail;
10603 temp2 = true;
10604 }
10605 if (obj2) {
10606 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10607 if (!SWIG_IsOK(ecode3)) {
10608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10609 }
10610 arg3 = static_cast< bool >(val3);
10611 }
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 resultobj = SWIG_From_int(static_cast< int >(result));
10619 {
10620 if (temp2)
10621 delete arg2;
10622 }
10623 return resultobj;
10624fail:
10625 {
10626 if (temp2)
10627 delete arg2;
10628 }
10629 return NULL;
d55e5bfc
RD
10630}
10631
10632
1bd55598
RD
10633SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10634 PyObject *resultobj = 0;
10635 size_t result;
10636
10637 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10645 return resultobj;
10646fail:
10647 return NULL;
10648}
10649
10650
10651SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj = 0;
10653 size_t arg1 ;
10654 wxFontEncoding result;
10655 size_t val1 ;
10656 int ecode1 = 0 ;
10657 PyObject * obj0 = 0 ;
10658 char * kwnames[] = {
10659 (char *) "n", NULL
10660 };
10661
10662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10663 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10664 if (!SWIG_IsOK(ecode1)) {
10665 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10666 }
10667 arg1 = static_cast< size_t >(val1);
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_From_int(static_cast< int >(result));
10675 return resultobj;
10676fail:
10677 return NULL;
10678}
10679
10680
10681SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj = 0;
10683 wxFontEncoding arg1 ;
10684 wxString result;
10685 int val1 ;
10686 int ecode1 = 0 ;
10687 PyObject * obj0 = 0 ;
10688 char * kwnames[] = {
10689 (char *) "encoding", NULL
10690 };
10691
10692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10693 ecode1 = SWIG_AsVal_int(obj0, &val1);
10694 if (!SWIG_IsOK(ecode1)) {
10695 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10696 }
10697 arg1 = static_cast< wxFontEncoding >(val1);
10698 {
10699 PyThreadState* __tstate = wxPyBeginAllowThreads();
10700 result = wxFontMapper::GetEncodingName(arg1);
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 {
10705#if wxUSE_UNICODE
10706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10707#else
10708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10709#endif
10710 }
10711 return resultobj;
10712fail:
10713 return NULL;
d55e5bfc
RD
10714}
10715
10716
1bd55598
RD
10717SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj = 0;
10719 wxFontEncoding arg1 ;
10720 wxString result;
10721 int val1 ;
10722 int ecode1 = 0 ;
10723 PyObject * obj0 = 0 ;
10724 char * kwnames[] = {
10725 (char *) "encoding", NULL
10726 };
10727
10728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10729 ecode1 = SWIG_AsVal_int(obj0, &val1);
10730 if (!SWIG_IsOK(ecode1)) {
10731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10732 }
10733 arg1 = static_cast< wxFontEncoding >(val1);
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 result = wxFontMapper::GetEncodingDescription(arg1);
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 {
10741#if wxUSE_UNICODE
10742 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10743#else
10744 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10745#endif
10746 }
10747 return resultobj;
10748fail:
10749 return NULL;
d55e5bfc
RD
10750}
10751
10752
1bd55598
RD
10753SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj = 0;
10755 wxString *arg1 = 0 ;
10756 wxFontEncoding result;
10757 bool temp1 = false ;
10758 PyObject * obj0 = 0 ;
10759 char * kwnames[] = {
10760 (char *) "name", NULL
10761 };
10762
10763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10764 {
10765 arg1 = wxString_in_helper(obj0);
10766 if (arg1 == NULL) SWIG_fail;
10767 temp1 = true;
10768 }
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 resultobj = SWIG_From_int(static_cast< int >(result));
10776 {
10777 if (temp1)
10778 delete arg1;
10779 }
10780 return resultobj;
10781fail:
10782 {
10783 if (temp1)
10784 delete arg1;
10785 }
10786 return NULL;
d55e5bfc
RD
10787}
10788
10789
1bd55598
RD
10790SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10791 PyObject *resultobj = 0;
10792 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10793 wxString *arg2 = 0 ;
10794 void *argp1 = 0 ;
10795 int res1 = 0 ;
10796 bool temp2 = false ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 char * kwnames[] = {
10800 (char *) "self",(char *) "prefix", NULL
10801 };
10802
10803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10805 if (!SWIG_IsOK(res1)) {
10806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10807 }
10808 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10809 {
10810 arg2 = wxString_in_helper(obj1);
10811 if (arg2 == NULL) SWIG_fail;
10812 temp2 = true;
10813 }
10814 {
10815 PyThreadState* __tstate = wxPyBeginAllowThreads();
10816 (arg1)->SetConfigPath((wxString const &)*arg2);
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 resultobj = SWIG_Py_Void();
10821 {
10822 if (temp2)
10823 delete arg2;
10824 }
10825 return resultobj;
10826fail:
10827 {
10828 if (temp2)
10829 delete arg2;
10830 }
10831 return NULL;
10832}
10833
10834
10835SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10836 PyObject *resultobj = 0;
10837 wxString result;
10838
10839 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10840 {
10841 PyThreadState* __tstate = wxPyBeginAllowThreads();
10842 result = wxFontMapper::GetDefaultConfigPath();
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 {
10847#if wxUSE_UNICODE
10848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10849#else
10850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10851#endif
10852 }
10853 return resultobj;
10854fail:
10855 return NULL;
10856}
10857
10858
10859SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10860 PyObject *resultobj = 0;
10861 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10862 wxFontEncoding arg2 ;
10863 wxString const &arg3_defvalue = wxPyEmptyString ;
10864 wxString *arg3 = (wxString *) &arg3_defvalue ;
10865 bool arg4 = (bool) true ;
10866 PyObject *result = 0 ;
10867 void *argp1 = 0 ;
10868 int res1 = 0 ;
10869 int val2 ;
10870 int ecode2 = 0 ;
10871 bool temp3 = false ;
10872 bool val4 ;
10873 int ecode4 = 0 ;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 PyObject * obj2 = 0 ;
10877 PyObject * obj3 = 0 ;
10878 char * kwnames[] = {
10879 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10880 };
10881
10882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10884 if (!SWIG_IsOK(res1)) {
10885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10886 }
10887 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10888 ecode2 = SWIG_AsVal_int(obj1, &val2);
10889 if (!SWIG_IsOK(ecode2)) {
10890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10891 }
10892 arg2 = static_cast< wxFontEncoding >(val2);
10893 if (obj2) {
36ed4f51 10894 {
1bd55598
RD
10895 arg3 = wxString_in_helper(obj2);
10896 if (arg3 == NULL) SWIG_fail;
10897 temp3 = true;
36ed4f51 10898 }
1bd55598
RD
10899 }
10900 if (obj3) {
10901 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10902 if (!SWIG_IsOK(ecode4)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10904 }
10905 arg4 = static_cast< bool >(val4);
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 resultobj = result;
10914 {
10915 if (temp3)
10916 delete arg3;
10917 }
10918 return resultobj;
10919fail:
10920 {
10921 if (temp3)
10922 delete arg3;
10923 }
10924 return NULL;
10925}
10926
10927
10928SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10929 PyObject *resultobj = 0;
10930 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10931 wxFontEncoding arg2 ;
10932 wxString const &arg3_defvalue = wxPyEmptyString ;
10933 wxString *arg3 = (wxString *) &arg3_defvalue ;
10934 bool result;
10935 void *argp1 = 0 ;
10936 int res1 = 0 ;
10937 int val2 ;
10938 int ecode2 = 0 ;
10939 bool temp3 = false ;
10940 PyObject * obj0 = 0 ;
10941 PyObject * obj1 = 0 ;
10942 PyObject * obj2 = 0 ;
10943 char * kwnames[] = {
10944 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10945 };
10946
10947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10949 if (!SWIG_IsOK(res1)) {
10950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10951 }
10952 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10953 ecode2 = SWIG_AsVal_int(obj1, &val2);
10954 if (!SWIG_IsOK(ecode2)) {
10955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10956 }
10957 arg2 = static_cast< wxFontEncoding >(val2);
10958 if (obj2) {
36ed4f51 10959 {
1bd55598
RD
10960 arg3 = wxString_in_helper(obj2);
10961 if (arg3 == NULL) SWIG_fail;
10962 temp3 = true;
36ed4f51 10963 }
1bd55598
RD
10964 }
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10968 wxPyEndAllowThreads(__tstate);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 }
10971 {
10972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10973 }
10974 {
10975 if (temp3)
10976 delete arg3;
10977 }
10978 return resultobj;
10979fail:
10980 {
10981 if (temp3)
10982 delete arg3;
10983 }
10984 return NULL;
10985}
10986
10987
10988SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10989 PyObject *resultobj = 0;
10990 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10991 wxWindow *arg2 = (wxWindow *) 0 ;
10992 void *argp1 = 0 ;
10993 int res1 = 0 ;
10994 void *argp2 = 0 ;
10995 int res2 = 0 ;
10996 PyObject * obj0 = 0 ;
10997 PyObject * obj1 = 0 ;
10998 char * kwnames[] = {
10999 (char *) "self",(char *) "parent", NULL
11000 };
11001
11002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11006 }
11007 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11008 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11009 if (!SWIG_IsOK(res2)) {
11010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11011 }
11012 arg2 = reinterpret_cast< wxWindow * >(argp2);
11013 {
11014 PyThreadState* __tstate = wxPyBeginAllowThreads();
11015 (arg1)->SetDialogParent(arg2);
11016 wxPyEndAllowThreads(__tstate);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 resultobj = SWIG_Py_Void();
11020 return resultobj;
11021fail:
11022 return NULL;
11023}
11024
11025
11026SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11027 PyObject *resultobj = 0;
11028 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11029 wxString *arg2 = 0 ;
11030 void *argp1 = 0 ;
11031 int res1 = 0 ;
11032 bool temp2 = false ;
11033 PyObject * obj0 = 0 ;
11034 PyObject * obj1 = 0 ;
11035 char * kwnames[] = {
11036 (char *) "self",(char *) "title", NULL
11037 };
11038
11039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11041 if (!SWIG_IsOK(res1)) {
11042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11043 }
11044 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11045 {
11046 arg2 = wxString_in_helper(obj1);
11047 if (arg2 == NULL) SWIG_fail;
11048 temp2 = true;
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 (arg1)->SetDialogTitle((wxString const &)*arg2);
11053 wxPyEndAllowThreads(__tstate);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
11056 resultobj = SWIG_Py_Void();
11057 {
11058 if (temp2)
11059 delete arg2;
11060 }
11061 return resultobj;
11062fail:
11063 {
11064 if (temp2)
11065 delete arg2;
11066 }
11067 return NULL;
11068}
11069
11070
11071SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11072 PyObject *obj;
11073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11074 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11075 return SWIG_Py_Void();
11076}
11077
11078SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11079 return SWIG_Python_InitShadowInstance(args);
11080}
11081
11082SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj = 0;
11084 int arg1 ;
11085 int arg2 ;
11086 int arg3 ;
11087 int arg4 ;
11088 bool arg5 = (bool) false ;
11089 wxString const &arg6_defvalue = wxPyEmptyString ;
11090 wxString *arg6 = (wxString *) &arg6_defvalue ;
11091 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11092 wxFont *result = 0 ;
11093 int val1 ;
11094 int ecode1 = 0 ;
11095 int val2 ;
11096 int ecode2 = 0 ;
11097 int val3 ;
11098 int ecode3 = 0 ;
11099 int val4 ;
11100 int ecode4 = 0 ;
11101 bool val5 ;
11102 int ecode5 = 0 ;
11103 bool temp6 = false ;
11104 int val7 ;
11105 int ecode7 = 0 ;
11106 PyObject * obj0 = 0 ;
11107 PyObject * obj1 = 0 ;
11108 PyObject * obj2 = 0 ;
11109 PyObject * obj3 = 0 ;
11110 PyObject * obj4 = 0 ;
11111 PyObject * obj5 = 0 ;
11112 PyObject * obj6 = 0 ;
11113 char * kwnames[] = {
11114 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11115 };
11116
11117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11118 ecode1 = SWIG_AsVal_int(obj0, &val1);
11119 if (!SWIG_IsOK(ecode1)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11121 }
11122 arg1 = static_cast< int >(val1);
11123 ecode2 = SWIG_AsVal_int(obj1, &val2);
11124 if (!SWIG_IsOK(ecode2)) {
11125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11126 }
11127 arg2 = static_cast< int >(val2);
11128 ecode3 = SWIG_AsVal_int(obj2, &val3);
11129 if (!SWIG_IsOK(ecode3)) {
11130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11131 }
11132 arg3 = static_cast< int >(val3);
11133 ecode4 = SWIG_AsVal_int(obj3, &val4);
11134 if (!SWIG_IsOK(ecode4)) {
11135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11136 }
11137 arg4 = static_cast< int >(val4);
11138 if (obj4) {
11139 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11140 if (!SWIG_IsOK(ecode5)) {
11141 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11142 }
11143 arg5 = static_cast< bool >(val5);
11144 }
11145 if (obj5) {
d55e5bfc 11146 {
1bd55598
RD
11147 arg6 = wxString_in_helper(obj5);
11148 if (arg6 == NULL) SWIG_fail;
11149 temp6 = true;
d55e5bfc 11150 }
1bd55598
RD
11151 }
11152 if (obj6) {
11153 ecode7 = SWIG_AsVal_int(obj6, &val7);
11154 if (!SWIG_IsOK(ecode7)) {
11155 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11156 }
11157 arg7 = static_cast< wxFontEncoding >(val7);
11158 }
11159 {
11160 if (!wxPyCheckForApp()) SWIG_fail;
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11167 {
11168 if (temp6)
11169 delete arg6;
11170 }
11171 return resultobj;
11172fail:
11173 {
11174 if (temp6)
11175 delete arg6;
11176 }
11177 return NULL;
d55e5bfc
RD
11178}
11179
11180
1bd55598
RD
11181SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11182 PyObject *resultobj = 0;
11183 wxFont *arg1 = (wxFont *) 0 ;
11184 void *argp1 = 0 ;
11185 int res1 = 0 ;
11186 PyObject *swig_obj[1] ;
11187
11188 if (!args) SWIG_fail;
11189 swig_obj[0] = args;
11190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11191 if (!SWIG_IsOK(res1)) {
11192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11193 }
11194 arg1 = reinterpret_cast< wxFont * >(argp1);
11195 {
11196 PyThreadState* __tstate = wxPyBeginAllowThreads();
11197 delete arg1;
d55e5bfc 11198
1bd55598
RD
11199 wxPyEndAllowThreads(__tstate);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 resultobj = SWIG_Py_Void();
11203 return resultobj;
11204fail:
11205 return NULL;
11206}
11207
11208
11209SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11210 PyObject *resultobj = 0;
11211 wxNativeFontInfo *arg1 = 0 ;
11212 wxFont *result = 0 ;
11213 void *argp1 = 0 ;
11214 int res1 = 0 ;
11215 PyObject * obj0 = 0 ;
11216 char * kwnames[] = {
11217 (char *) "info", NULL
11218 };
11219
11220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11221 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11222 if (!SWIG_IsOK(res1)) {
11223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11224 }
11225 if (!argp1) {
11226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11227 }
11228 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11229 {
11230 if (!wxPyCheckForApp()) SWIG_fail;
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
11232 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11233 wxPyEndAllowThreads(__tstate);
11234 if (PyErr_Occurred()) SWIG_fail;
11235 }
11236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11237 return resultobj;
11238fail:
11239 return NULL;
d55e5bfc
RD
11240}
11241
11242
1bd55598
RD
11243SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj = 0;
11245 wxString *arg1 = 0 ;
11246 wxFont *result = 0 ;
11247 bool temp1 = false ;
11248 PyObject * obj0 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "info", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11254 {
11255 arg1 = wxString_in_helper(obj0);
11256 if (arg1 == NULL) SWIG_fail;
11257 temp1 = true;
11258 }
11259 {
11260 if (!wxPyCheckForApp()) SWIG_fail;
11261 PyThreadState* __tstate = wxPyBeginAllowThreads();
11262 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11267 {
11268 if (temp1)
11269 delete arg1;
11270 }
11271 return resultobj;
11272fail:
11273 {
11274 if (temp1)
11275 delete arg1;
11276 }
11277 return NULL;
11278}
11279
11280
11281SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11282 PyObject *resultobj = 0;
11283 int arg1 ;
11284 wxFontFamily arg2 ;
11285 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11286 wxString const &arg4_defvalue = wxPyEmptyString ;
11287 wxString *arg4 = (wxString *) &arg4_defvalue ;
11288 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11289 wxFont *result = 0 ;
11290 int val1 ;
11291 int ecode1 = 0 ;
11292 int val2 ;
11293 int ecode2 = 0 ;
11294 int val3 ;
11295 int ecode3 = 0 ;
11296 bool temp4 = false ;
11297 int val5 ;
11298 int ecode5 = 0 ;
11299 PyObject * obj0 = 0 ;
11300 PyObject * obj1 = 0 ;
11301 PyObject * obj2 = 0 ;
11302 PyObject * obj3 = 0 ;
11303 PyObject * obj4 = 0 ;
11304 char * kwnames[] = {
11305 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11306 };
11307
11308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11309 ecode1 = SWIG_AsVal_int(obj0, &val1);
11310 if (!SWIG_IsOK(ecode1)) {
11311 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11312 }
11313 arg1 = static_cast< int >(val1);
11314 ecode2 = SWIG_AsVal_int(obj1, &val2);
11315 if (!SWIG_IsOK(ecode2)) {
11316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11317 }
11318 arg2 = static_cast< wxFontFamily >(val2);
11319 if (obj2) {
11320 ecode3 = SWIG_AsVal_int(obj2, &val3);
11321 if (!SWIG_IsOK(ecode3)) {
11322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11323 }
11324 arg3 = static_cast< int >(val3);
11325 }
11326 if (obj3) {
36ed4f51 11327 {
1bd55598
RD
11328 arg4 = wxString_in_helper(obj3);
11329 if (arg4 == NULL) SWIG_fail;
11330 temp4 = true;
36ed4f51 11331 }
1bd55598
RD
11332 }
11333 if (obj4) {
11334 ecode5 = SWIG_AsVal_int(obj4, &val5);
11335 if (!SWIG_IsOK(ecode5)) {
11336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11337 }
11338 arg5 = static_cast< wxFontEncoding >(val5);
11339 }
11340 {
11341 if (!wxPyCheckForApp()) SWIG_fail;
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11348 {
11349 if (temp4)
11350 delete arg4;
11351 }
11352 return resultobj;
11353fail:
11354 {
11355 if (temp4)
11356 delete arg4;
11357 }
11358 return NULL;
11359}
11360
11361
11362SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11363 PyObject *resultobj = 0;
11364 wxSize *arg1 = 0 ;
11365 int arg2 ;
11366 int arg3 ;
11367 int arg4 ;
11368 bool arg5 = (bool) false ;
11369 wxString const &arg6_defvalue = wxEmptyString ;
11370 wxString *arg6 = (wxString *) &arg6_defvalue ;
11371 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11372 wxFont *result = 0 ;
11373 wxSize temp1 ;
11374 int val2 ;
11375 int ecode2 = 0 ;
11376 int val3 ;
11377 int ecode3 = 0 ;
11378 int val4 ;
11379 int ecode4 = 0 ;
11380 bool val5 ;
11381 int ecode5 = 0 ;
11382 bool temp6 = false ;
11383 int val7 ;
11384 int ecode7 = 0 ;
11385 PyObject * obj0 = 0 ;
11386 PyObject * obj1 = 0 ;
11387 PyObject * obj2 = 0 ;
11388 PyObject * obj3 = 0 ;
11389 PyObject * obj4 = 0 ;
11390 PyObject * obj5 = 0 ;
11391 PyObject * obj6 = 0 ;
11392 char * kwnames[] = {
11393 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11394 };
11395
11396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11397 {
11398 arg1 = &temp1;
11399 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11400 }
11401 ecode2 = SWIG_AsVal_int(obj1, &val2);
11402 if (!SWIG_IsOK(ecode2)) {
11403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11404 }
11405 arg2 = static_cast< int >(val2);
11406 ecode3 = SWIG_AsVal_int(obj2, &val3);
11407 if (!SWIG_IsOK(ecode3)) {
11408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11409 }
11410 arg3 = static_cast< int >(val3);
11411 ecode4 = SWIG_AsVal_int(obj3, &val4);
11412 if (!SWIG_IsOK(ecode4)) {
11413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11414 }
11415 arg4 = static_cast< int >(val4);
11416 if (obj4) {
11417 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11418 if (!SWIG_IsOK(ecode5)) {
11419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11420 }
11421 arg5 = static_cast< bool >(val5);
11422 }
11423 if (obj5) {
d55e5bfc 11424 {
1bd55598
RD
11425 arg6 = wxString_in_helper(obj5);
11426 if (arg6 == NULL) SWIG_fail;
11427 temp6 = true;
d55e5bfc 11428 }
1bd55598
RD
11429 }
11430 if (obj6) {
11431 ecode7 = SWIG_AsVal_int(obj6, &val7);
11432 if (!SWIG_IsOK(ecode7)) {
11433 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11434 }
11435 arg7 = static_cast< wxFontEncoding >(val7);
11436 }
11437 {
11438 if (!wxPyCheckForApp()) SWIG_fail;
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11441 wxPyEndAllowThreads(__tstate);
11442 if (PyErr_Occurred()) SWIG_fail;
11443 }
11444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11445 {
11446 if (temp6)
11447 delete arg6;
11448 }
11449 return resultobj;
11450fail:
11451 {
11452 if (temp6)
11453 delete arg6;
11454 }
11455 return NULL;
11456}
11457
11458
11459SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj = 0;
11461 wxSize *arg1 = 0 ;
11462 wxFontFamily arg2 ;
11463 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11464 wxString const &arg4_defvalue = wxEmptyString ;
11465 wxString *arg4 = (wxString *) &arg4_defvalue ;
11466 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11467 wxFont *result = 0 ;
11468 wxSize temp1 ;
11469 int val2 ;
11470 int ecode2 = 0 ;
11471 int val3 ;
11472 int ecode3 = 0 ;
11473 bool temp4 = false ;
11474 int val5 ;
11475 int ecode5 = 0 ;
11476 PyObject * obj0 = 0 ;
11477 PyObject * obj1 = 0 ;
11478 PyObject * obj2 = 0 ;
11479 PyObject * obj3 = 0 ;
11480 PyObject * obj4 = 0 ;
11481 char * kwnames[] = {
11482 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11483 };
11484
11485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11486 {
11487 arg1 = &temp1;
11488 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11489 }
11490 ecode2 = SWIG_AsVal_int(obj1, &val2);
11491 if (!SWIG_IsOK(ecode2)) {
11492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11493 }
11494 arg2 = static_cast< wxFontFamily >(val2);
11495 if (obj2) {
11496 ecode3 = SWIG_AsVal_int(obj2, &val3);
11497 if (!SWIG_IsOK(ecode3)) {
11498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11499 }
11500 arg3 = static_cast< int >(val3);
11501 }
11502 if (obj3) {
36ed4f51 11503 {
1bd55598
RD
11504 arg4 = wxString_in_helper(obj3);
11505 if (arg4 == NULL) SWIG_fail;
11506 temp4 = true;
36ed4f51 11507 }
1bd55598
RD
11508 }
11509 if (obj4) {
11510 ecode5 = SWIG_AsVal_int(obj4, &val5);
11511 if (!SWIG_IsOK(ecode5)) {
11512 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11513 }
11514 arg5 = static_cast< wxFontEncoding >(val5);
11515 }
11516 {
11517 if (!wxPyCheckForApp()) SWIG_fail;
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11524 {
11525 if (temp4)
11526 delete arg4;
11527 }
11528 return resultobj;
11529fail:
11530 {
11531 if (temp4)
11532 delete arg4;
11533 }
11534 return NULL;
d55e5bfc
RD
11535}
11536
11537
1bd55598
RD
11538SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11539 PyObject *resultobj = 0;
11540 wxFont *arg1 = (wxFont *) 0 ;
11541 bool result;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 PyObject *swig_obj[1] ;
11545
11546 if (!args) SWIG_fail;
11547 swig_obj[0] = args;
11548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11549 if (!SWIG_IsOK(res1)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11551 }
11552 arg1 = reinterpret_cast< wxFont * >(argp1);
11553 {
11554 PyThreadState* __tstate = wxPyBeginAllowThreads();
11555 result = (bool)((wxFont const *)arg1)->Ok();
11556 wxPyEndAllowThreads(__tstate);
11557 if (PyErr_Occurred()) SWIG_fail;
11558 }
11559 {
11560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11561 }
11562 return resultobj;
11563fail:
11564 return NULL;
11565}
11566
11567
11568SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11569 PyObject *resultobj = 0;
11570 wxFont *arg1 = (wxFont *) 0 ;
11571 wxFont *arg2 = (wxFont *) 0 ;
11572 bool result;
11573 void *argp1 = 0 ;
11574 int res1 = 0 ;
11575 void *argp2 = 0 ;
11576 int res2 = 0 ;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 char * kwnames[] = {
11580 (char *) "self",(char *) "other", NULL
11581 };
11582
11583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11585 if (!SWIG_IsOK(res1)) {
11586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11587 }
11588 arg1 = reinterpret_cast< wxFont * >(argp1);
11589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11590 if (!SWIG_IsOK(res2)) {
11591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11592 }
11593 arg2 = reinterpret_cast< wxFont * >(argp2);
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 {
11601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11602 }
11603 return resultobj;
11604fail:
11605 return NULL;
11606}
11607
11608
11609SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11610 PyObject *resultobj = 0;
11611 wxFont *arg1 = (wxFont *) 0 ;
11612 wxFont *arg2 = (wxFont *) 0 ;
11613 bool result;
11614 void *argp1 = 0 ;
11615 int res1 = 0 ;
11616 void *argp2 = 0 ;
11617 int res2 = 0 ;
11618 PyObject * obj0 = 0 ;
11619 PyObject * obj1 = 0 ;
11620 char * kwnames[] = {
11621 (char *) "self",(char *) "other", NULL
11622 };
11623
11624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11626 if (!SWIG_IsOK(res1)) {
11627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11628 }
11629 arg1 = reinterpret_cast< wxFont * >(argp1);
11630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11631 if (!SWIG_IsOK(res2)) {
11632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11633 }
11634 arg2 = reinterpret_cast< wxFont * >(argp2);
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11638 wxPyEndAllowThreads(__tstate);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 }
11641 {
11642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11643 }
11644 return resultobj;
11645fail:
11646 return NULL;
d55e5bfc
RD
11647}
11648
11649
1bd55598
RD
11650SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11651 PyObject *resultobj = 0;
11652 wxFont *arg1 = (wxFont *) 0 ;
11653 int result;
11654 void *argp1 = 0 ;
11655 int res1 = 0 ;
11656 PyObject *swig_obj[1] ;
11657
11658 if (!args) SWIG_fail;
11659 swig_obj[0] = args;
11660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11661 if (!SWIG_IsOK(res1)) {
11662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11663 }
11664 arg1 = reinterpret_cast< wxFont * >(argp1);
11665 {
11666 PyThreadState* __tstate = wxPyBeginAllowThreads();
11667 result = (int)((wxFont const *)arg1)->GetPointSize();
11668 wxPyEndAllowThreads(__tstate);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 }
11671 resultobj = SWIG_From_int(static_cast< int >(result));
11672 return resultobj;
11673fail:
11674 return NULL;
d55e5bfc
RD
11675}
11676
11677
1bd55598
RD
11678SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11679 PyObject *resultobj = 0;
11680 wxFont *arg1 = (wxFont *) 0 ;
11681 wxSize result;
11682 void *argp1 = 0 ;
11683 int res1 = 0 ;
11684 PyObject *swig_obj[1] ;
11685
11686 if (!args) SWIG_fail;
11687 swig_obj[0] = args;
11688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11689 if (!SWIG_IsOK(res1)) {
11690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11691 }
11692 arg1 = reinterpret_cast< wxFont * >(argp1);
11693 {
11694 PyThreadState* __tstate = wxPyBeginAllowThreads();
11695 result = ((wxFont const *)arg1)->GetPixelSize();
11696 wxPyEndAllowThreads(__tstate);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11700 return resultobj;
11701fail:
11702 return NULL;
d55e5bfc
RD
11703}
11704
11705
1bd55598
RD
11706SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11707 PyObject *resultobj = 0;
11708 wxFont *arg1 = (wxFont *) 0 ;
11709 bool result;
11710 void *argp1 = 0 ;
11711 int res1 = 0 ;
11712 PyObject *swig_obj[1] ;
11713
11714 if (!args) SWIG_fail;
11715 swig_obj[0] = args;
11716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11717 if (!SWIG_IsOK(res1)) {
11718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11719 }
11720 arg1 = reinterpret_cast< wxFont * >(argp1);
11721 {
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 {
11728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11729 }
11730 return resultobj;
11731fail:
11732 return NULL;
d55e5bfc
RD
11733}
11734
11735
1bd55598
RD
11736SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11737 PyObject *resultobj = 0;
11738 wxFont *arg1 = (wxFont *) 0 ;
11739 int result;
11740 void *argp1 = 0 ;
11741 int res1 = 0 ;
11742 PyObject *swig_obj[1] ;
11743
11744 if (!args) SWIG_fail;
11745 swig_obj[0] = args;
11746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11747 if (!SWIG_IsOK(res1)) {
11748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11749 }
11750 arg1 = reinterpret_cast< wxFont * >(argp1);
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 result = (int)((wxFont const *)arg1)->GetFamily();
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
11757 resultobj = SWIG_From_int(static_cast< int >(result));
11758 return resultobj;
11759fail:
11760 return NULL;
d55e5bfc
RD
11761}
11762
11763
1bd55598
RD
11764SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11765 PyObject *resultobj = 0;
11766 wxFont *arg1 = (wxFont *) 0 ;
11767 int result;
11768 void *argp1 = 0 ;
11769 int res1 = 0 ;
11770 PyObject *swig_obj[1] ;
11771
11772 if (!args) SWIG_fail;
11773 swig_obj[0] = args;
11774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11775 if (!SWIG_IsOK(res1)) {
11776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11777 }
11778 arg1 = reinterpret_cast< wxFont * >(argp1);
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 result = (int)((wxFont const *)arg1)->GetStyle();
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 resultobj = SWIG_From_int(static_cast< int >(result));
11786 return resultobj;
11787fail:
11788 return NULL;
d55e5bfc
RD
11789}
11790
11791
1bd55598
RD
11792SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11793 PyObject *resultobj = 0;
11794 wxFont *arg1 = (wxFont *) 0 ;
11795 int result;
11796 void *argp1 = 0 ;
11797 int res1 = 0 ;
11798 PyObject *swig_obj[1] ;
11799
11800 if (!args) SWIG_fail;
11801 swig_obj[0] = args;
11802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11803 if (!SWIG_IsOK(res1)) {
11804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11805 }
11806 arg1 = reinterpret_cast< wxFont * >(argp1);
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = (int)((wxFont const *)arg1)->GetWeight();
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 resultobj = SWIG_From_int(static_cast< int >(result));
11814 return resultobj;
11815fail:
11816 return NULL;
d55e5bfc
RD
11817}
11818
11819
1bd55598
RD
11820SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11821 PyObject *resultobj = 0;
11822 wxFont *arg1 = (wxFont *) 0 ;
11823 bool result;
11824 void *argp1 = 0 ;
11825 int res1 = 0 ;
11826 PyObject *swig_obj[1] ;
11827
11828 if (!args) SWIG_fail;
11829 swig_obj[0] = args;
11830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11831 if (!SWIG_IsOK(res1)) {
11832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11833 }
11834 arg1 = reinterpret_cast< wxFont * >(argp1);
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 {
11842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11843 }
11844 return resultobj;
11845fail:
11846 return NULL;
d55e5bfc
RD
11847}
11848
11849
1bd55598
RD
11850SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11851 PyObject *resultobj = 0;
11852 wxFont *arg1 = (wxFont *) 0 ;
11853 wxString result;
11854 void *argp1 = 0 ;
11855 int res1 = 0 ;
11856 PyObject *swig_obj[1] ;
11857
11858 if (!args) SWIG_fail;
11859 swig_obj[0] = args;
11860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11861 if (!SWIG_IsOK(res1)) {
11862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11863 }
11864 arg1 = reinterpret_cast< wxFont * >(argp1);
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 result = ((wxFont const *)arg1)->GetFaceName();
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 {
11872#if wxUSE_UNICODE
11873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11874#else
11875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11876#endif
11877 }
11878 return resultobj;
11879fail:
11880 return NULL;
d55e5bfc
RD
11881}
11882
11883
1bd55598
RD
11884SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11885 PyObject *resultobj = 0;
11886 wxFont *arg1 = (wxFont *) 0 ;
11887 wxFontEncoding result;
11888 void *argp1 = 0 ;
11889 int res1 = 0 ;
11890 PyObject *swig_obj[1] ;
11891
11892 if (!args) SWIG_fail;
11893 swig_obj[0] = args;
11894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11895 if (!SWIG_IsOK(res1)) {
11896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11897 }
11898 arg1 = reinterpret_cast< wxFont * >(argp1);
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = SWIG_From_int(static_cast< int >(result));
11906 return resultobj;
11907fail:
11908 return NULL;
d55e5bfc
RD
11909}
11910
11911
1bd55598
RD
11912SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11913 PyObject *resultobj = 0;
11914 wxFont *arg1 = (wxFont *) 0 ;
11915 wxNativeFontInfo *result = 0 ;
11916 void *argp1 = 0 ;
11917 int res1 = 0 ;
11918 PyObject *swig_obj[1] ;
11919
11920 if (!args) SWIG_fail;
11921 swig_obj[0] = args;
11922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11925 }
11926 arg1 = reinterpret_cast< wxFont * >(argp1);
11927 {
11928 PyThreadState* __tstate = wxPyBeginAllowThreads();
11929 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11934 return resultobj;
11935fail:
11936 return NULL;
d55e5bfc
RD
11937}
11938
11939
1bd55598
RD
11940SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11941 PyObject *resultobj = 0;
11942 wxFont *arg1 = (wxFont *) 0 ;
11943 bool result;
11944 void *argp1 = 0 ;
11945 int res1 = 0 ;
11946 PyObject *swig_obj[1] ;
11947
11948 if (!args) SWIG_fail;
11949 swig_obj[0] = args;
11950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11951 if (!SWIG_IsOK(res1)) {
11952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11953 }
11954 arg1 = reinterpret_cast< wxFont * >(argp1);
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11963 }
11964 return resultobj;
11965fail:
11966 return NULL;
d55e5bfc
RD
11967}
11968
11969
1bd55598
RD
11970SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11971 PyObject *resultobj = 0;
11972 wxFont *arg1 = (wxFont *) 0 ;
11973 wxString result;
11974 void *argp1 = 0 ;
11975 int res1 = 0 ;
11976 PyObject *swig_obj[1] ;
11977
11978 if (!args) SWIG_fail;
11979 swig_obj[0] = args;
11980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11981 if (!SWIG_IsOK(res1)) {
11982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11983 }
11984 arg1 = reinterpret_cast< wxFont * >(argp1);
11985 {
11986 PyThreadState* __tstate = wxPyBeginAllowThreads();
11987 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11988 wxPyEndAllowThreads(__tstate);
11989 if (PyErr_Occurred()) SWIG_fail;
11990 }
11991 {
11992#if wxUSE_UNICODE
11993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11994#else
11995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11996#endif
11997 }
11998 return resultobj;
11999fail:
12000 return NULL;
d55e5bfc
RD
12001}
12002
12003
1bd55598
RD
12004SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxFont *arg1 = (wxFont *) 0 ;
12007 wxString result;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 PyObject *swig_obj[1] ;
12011
12012 if (!args) SWIG_fail;
12013 swig_obj[0] = args;
12014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12015 if (!SWIG_IsOK(res1)) {
12016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12017 }
12018 arg1 = reinterpret_cast< wxFont * >(argp1);
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026#if wxUSE_UNICODE
12027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12028#else
12029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12030#endif
12031 }
12032 return resultobj;
12033fail:
12034 return NULL;
12035}
12036
12037
12038SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12039 PyObject *resultobj = 0;
12040 wxFont *arg1 = (wxFont *) 0 ;
12041 int arg2 ;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 int val2 ;
12045 int ecode2 = 0 ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 char * kwnames[] = {
12049 (char *) "self",(char *) "pointSize", NULL
12050 };
12051
12052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12056 }
12057 arg1 = reinterpret_cast< wxFont * >(argp1);
12058 ecode2 = SWIG_AsVal_int(obj1, &val2);
12059 if (!SWIG_IsOK(ecode2)) {
12060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12061 }
12062 arg2 = static_cast< int >(val2);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 (arg1)->SetPointSize(arg2);
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_Py_Void();
12070 return resultobj;
12071fail:
12072 return NULL;
12073}
12074
12075
12076SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12077 PyObject *resultobj = 0;
12078 wxFont *arg1 = (wxFont *) 0 ;
12079 wxSize *arg2 = 0 ;
12080 void *argp1 = 0 ;
12081 int res1 = 0 ;
12082 wxSize temp2 ;
12083 PyObject * obj0 = 0 ;
12084 PyObject * obj1 = 0 ;
12085 char * kwnames[] = {
12086 (char *) "self",(char *) "pixelSize", NULL
12087 };
12088
12089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12091 if (!SWIG_IsOK(res1)) {
12092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12093 }
12094 arg1 = reinterpret_cast< wxFont * >(argp1);
12095 {
12096 arg2 = &temp2;
12097 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12098 }
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 (arg1)->SetPixelSize((wxSize const &)*arg2);
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 resultobj = SWIG_Py_Void();
12106 return resultobj;
12107fail:
12108 return NULL;
12109}
12110
12111
12112SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12113 PyObject *resultobj = 0;
12114 wxFont *arg1 = (wxFont *) 0 ;
12115 int arg2 ;
12116 void *argp1 = 0 ;
12117 int res1 = 0 ;
12118 int val2 ;
12119 int ecode2 = 0 ;
12120 PyObject * obj0 = 0 ;
12121 PyObject * obj1 = 0 ;
12122 char * kwnames[] = {
12123 (char *) "self",(char *) "family", NULL
12124 };
12125
12126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12128 if (!SWIG_IsOK(res1)) {
12129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12130 }
12131 arg1 = reinterpret_cast< wxFont * >(argp1);
12132 ecode2 = SWIG_AsVal_int(obj1, &val2);
12133 if (!SWIG_IsOK(ecode2)) {
12134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12135 }
12136 arg2 = static_cast< int >(val2);
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 (arg1)->SetFamily(arg2);
12140 wxPyEndAllowThreads(__tstate);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 resultobj = SWIG_Py_Void();
12144 return resultobj;
12145fail:
12146 return NULL;
12147}
12148
12149
12150SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12151 PyObject *resultobj = 0;
12152 wxFont *arg1 = (wxFont *) 0 ;
12153 int arg2 ;
12154 void *argp1 = 0 ;
12155 int res1 = 0 ;
12156 int val2 ;
12157 int ecode2 = 0 ;
12158 PyObject * obj0 = 0 ;
12159 PyObject * obj1 = 0 ;
12160 char * kwnames[] = {
12161 (char *) "self",(char *) "style", NULL
12162 };
12163
12164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12168 }
12169 arg1 = reinterpret_cast< wxFont * >(argp1);
12170 ecode2 = SWIG_AsVal_int(obj1, &val2);
12171 if (!SWIG_IsOK(ecode2)) {
12172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12173 }
12174 arg2 = static_cast< int >(val2);
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 (arg1)->SetStyle(arg2);
12178 wxPyEndAllowThreads(__tstate);
12179 if (PyErr_Occurred()) SWIG_fail;
12180 }
12181 resultobj = SWIG_Py_Void();
12182 return resultobj;
12183fail:
12184 return NULL;
12185}
12186
12187
12188SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12189 PyObject *resultobj = 0;
12190 wxFont *arg1 = (wxFont *) 0 ;
12191 int arg2 ;
12192 void *argp1 = 0 ;
12193 int res1 = 0 ;
12194 int val2 ;
12195 int ecode2 = 0 ;
12196 PyObject * obj0 = 0 ;
12197 PyObject * obj1 = 0 ;
12198 char * kwnames[] = {
12199 (char *) "self",(char *) "weight", NULL
12200 };
12201
12202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12204 if (!SWIG_IsOK(res1)) {
12205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12206 }
12207 arg1 = reinterpret_cast< wxFont * >(argp1);
12208 ecode2 = SWIG_AsVal_int(obj1, &val2);
12209 if (!SWIG_IsOK(ecode2)) {
12210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12211 }
12212 arg2 = static_cast< int >(val2);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 (arg1)->SetWeight(arg2);
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_Py_Void();
12220 return resultobj;
12221fail:
12222 return NULL;
12223}
12224
12225
12226SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj = 0;
12228 wxFont *arg1 = (wxFont *) 0 ;
12229 wxString *arg2 = 0 ;
704eda0c 12230 bool result;
1bd55598
RD
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 bool temp2 = false ;
12234 PyObject * obj0 = 0 ;
12235 PyObject * obj1 = 0 ;
12236 char * kwnames[] = {
12237 (char *) "self",(char *) "faceName", NULL
12238 };
12239
12240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12242 if (!SWIG_IsOK(res1)) {
12243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12244 }
12245 arg1 = reinterpret_cast< wxFont * >(argp1);
12246 {
12247 arg2 = wxString_in_helper(obj1);
12248 if (arg2 == NULL) SWIG_fail;
12249 temp2 = true;
12250 }
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12253 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
12254 wxPyEndAllowThreads(__tstate);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
704eda0c
RD
12257 {
12258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12259 }
1bd55598
RD
12260 {
12261 if (temp2)
12262 delete arg2;
12263 }
12264 return resultobj;
12265fail:
12266 {
12267 if (temp2)
12268 delete arg2;
12269 }
12270 return NULL;
12271}
12272
12273
12274SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12275 PyObject *resultobj = 0;
12276 wxFont *arg1 = (wxFont *) 0 ;
12277 bool arg2 ;
12278 void *argp1 = 0 ;
12279 int res1 = 0 ;
12280 bool val2 ;
12281 int ecode2 = 0 ;
12282 PyObject * obj0 = 0 ;
12283 PyObject * obj1 = 0 ;
12284 char * kwnames[] = {
12285 (char *) "self",(char *) "underlined", NULL
12286 };
12287
12288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12292 }
12293 arg1 = reinterpret_cast< wxFont * >(argp1);
12294 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12295 if (!SWIG_IsOK(ecode2)) {
12296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12297 }
12298 arg2 = static_cast< bool >(val2);
12299 {
12300 PyThreadState* __tstate = wxPyBeginAllowThreads();
12301 (arg1)->SetUnderlined(arg2);
12302 wxPyEndAllowThreads(__tstate);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 resultobj = SWIG_Py_Void();
12306 return resultobj;
12307fail:
12308 return NULL;
12309}
12310
12311
12312SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12313 PyObject *resultobj = 0;
12314 wxFont *arg1 = (wxFont *) 0 ;
12315 wxFontEncoding arg2 ;
12316 void *argp1 = 0 ;
12317 int res1 = 0 ;
12318 int val2 ;
12319 int ecode2 = 0 ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 char * kwnames[] = {
12323 (char *) "self",(char *) "encoding", NULL
12324 };
12325
12326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12328 if (!SWIG_IsOK(res1)) {
12329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12330 }
12331 arg1 = reinterpret_cast< wxFont * >(argp1);
12332 ecode2 = SWIG_AsVal_int(obj1, &val2);
12333 if (!SWIG_IsOK(ecode2)) {
12334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12335 }
12336 arg2 = static_cast< wxFontEncoding >(val2);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 (arg1)->SetEncoding(arg2);
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_Py_Void();
12344 return resultobj;
12345fail:
12346 return NULL;
12347}
12348
12349
12350SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12351 PyObject *resultobj = 0;
12352 wxFont *arg1 = (wxFont *) 0 ;
12353 wxNativeFontInfo *arg2 = 0 ;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 void *argp2 = 0 ;
12357 int res2 = 0 ;
12358 PyObject * obj0 = 0 ;
12359 PyObject * obj1 = 0 ;
12360 char * kwnames[] = {
12361 (char *) "self",(char *) "info", NULL
12362 };
12363
12364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12368 }
12369 arg1 = reinterpret_cast< wxFont * >(argp1);
12370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12371 if (!SWIG_IsOK(res2)) {
12372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12373 }
12374 if (!argp2) {
12375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12376 }
12377 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_Py_Void();
12385 return resultobj;
12386fail:
12387 return NULL;
12388}
12389
12390
12391SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj = 0;
12393 wxFont *arg1 = (wxFont *) 0 ;
12394 wxString *arg2 = 0 ;
704eda0c 12395 bool result;
1bd55598
RD
12396 void *argp1 = 0 ;
12397 int res1 = 0 ;
12398 bool temp2 = false ;
12399 PyObject * obj0 = 0 ;
12400 PyObject * obj1 = 0 ;
12401 char * kwnames[] = {
12402 (char *) "self",(char *) "info", NULL
12403 };
12404
12405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12407 if (!SWIG_IsOK(res1)) {
12408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12409 }
12410 arg1 = reinterpret_cast< wxFont * >(argp1);
12411 {
12412 arg2 = wxString_in_helper(obj1);
12413 if (arg2 == NULL) SWIG_fail;
12414 temp2 = true;
12415 }
12416 {
12417 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12418 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
704eda0c
RD
12422 {
12423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12424 }
1bd55598
RD
12425 {
12426 if (temp2)
12427 delete arg2;
12428 }
12429 return resultobj;
12430fail:
12431 {
12432 if (temp2)
12433 delete arg2;
12434 }
12435 return NULL;
d55e5bfc
RD
12436}
12437
12438
1bd55598
RD
12439SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj = 0;
12441 wxFont *arg1 = (wxFont *) 0 ;
12442 wxString *arg2 = 0 ;
704eda0c 12443 bool result;
1bd55598
RD
12444 void *argp1 = 0 ;
12445 int res1 = 0 ;
12446 bool temp2 = false ;
12447 PyObject * obj0 = 0 ;
12448 PyObject * obj1 = 0 ;
12449 char * kwnames[] = {
12450 (char *) "self",(char *) "info", NULL
12451 };
12452
12453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12457 }
12458 arg1 = reinterpret_cast< wxFont * >(argp1);
12459 {
12460 arg2 = wxString_in_helper(obj1);
12461 if (arg2 == NULL) SWIG_fail;
12462 temp2 = true;
12463 }
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12466 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
704eda0c
RD
12470 {
12471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12472 }
1bd55598
RD
12473 {
12474 if (temp2)
12475 delete arg2;
12476 }
12477 return resultobj;
12478fail:
12479 {
12480 if (temp2)
12481 delete arg2;
12482 }
12483 return NULL;
d55e5bfc
RD
12484}
12485
12486
1bd55598
RD
12487SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12488 PyObject *resultobj = 0;
12489 wxFont *arg1 = (wxFont *) 0 ;
12490 wxString result;
12491 void *argp1 = 0 ;
12492 int res1 = 0 ;
12493 PyObject *swig_obj[1] ;
12494
12495 if (!args) SWIG_fail;
12496 swig_obj[0] = args;
12497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12498 if (!SWIG_IsOK(res1)) {
12499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12500 }
12501 arg1 = reinterpret_cast< wxFont * >(argp1);
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 result = ((wxFont const *)arg1)->GetFamilyString();
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 {
12509#if wxUSE_UNICODE
12510 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12511#else
12512 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12513#endif
12514 }
12515 return resultobj;
12516fail:
12517 return NULL;
d55e5bfc
RD
12518}
12519
12520
1bd55598
RD
12521SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12522 PyObject *resultobj = 0;
12523 wxFont *arg1 = (wxFont *) 0 ;
12524 wxString result;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 PyObject *swig_obj[1] ;
12528
12529 if (!args) SWIG_fail;
12530 swig_obj[0] = args;
12531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12532 if (!SWIG_IsOK(res1)) {
12533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12534 }
12535 arg1 = reinterpret_cast< wxFont * >(argp1);
12536 {
12537 PyThreadState* __tstate = wxPyBeginAllowThreads();
12538 result = ((wxFont const *)arg1)->GetStyleString();
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 {
12543#if wxUSE_UNICODE
12544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12545#else
12546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12547#endif
12548 }
12549 return resultobj;
12550fail:
12551 return NULL;
d55e5bfc
RD
12552}
12553
12554
1bd55598
RD
12555SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12556 PyObject *resultobj = 0;
12557 wxFont *arg1 = (wxFont *) 0 ;
12558 wxString result;
12559 void *argp1 = 0 ;
12560 int res1 = 0 ;
12561 PyObject *swig_obj[1] ;
12562
12563 if (!args) SWIG_fail;
12564 swig_obj[0] = args;
12565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12566 if (!SWIG_IsOK(res1)) {
12567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12568 }
12569 arg1 = reinterpret_cast< wxFont * >(argp1);
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 result = ((wxFont const *)arg1)->GetWeightString();
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 {
12577#if wxUSE_UNICODE
12578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12579#else
12580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12581#endif
12582 }
12583 return resultobj;
12584fail:
12585 return NULL;
12586}
12587
12588
12589SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12590 PyObject *resultobj = 0;
12591 wxFont *arg1 = (wxFont *) 0 ;
12592 bool arg2 = (bool) true ;
12593 void *argp1 = 0 ;
12594 int res1 = 0 ;
12595 bool val2 ;
12596 int ecode2 = 0 ;
12597 PyObject * obj0 = 0 ;
12598 PyObject * obj1 = 0 ;
12599 char * kwnames[] = {
12600 (char *) "self",(char *) "no", NULL
12601 };
12602
12603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12605 if (!SWIG_IsOK(res1)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12607 }
12608 arg1 = reinterpret_cast< wxFont * >(argp1);
12609 if (obj1) {
12610 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12611 if (!SWIG_IsOK(ecode2)) {
12612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12613 }
12614 arg2 = static_cast< bool >(val2);
12615 }
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 (arg1)->SetNoAntiAliasing(arg2);
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 resultobj = SWIG_Py_Void();
12623 return resultobj;
12624fail:
12625 return NULL;
d55e5bfc
RD
12626}
12627
12628
1bd55598
RD
12629SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12630 PyObject *resultobj = 0;
12631 wxFont *arg1 = (wxFont *) 0 ;
12632 bool result;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 PyObject *swig_obj[1] ;
12636
12637 if (!args) SWIG_fail;
12638 swig_obj[0] = args;
12639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12642 }
12643 arg1 = reinterpret_cast< wxFont * >(argp1);
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
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_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12660 PyObject *resultobj = 0;
12661 wxFontEncoding result;
12662
12663 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12664 {
12665 if (!wxPyCheckForApp()) SWIG_fail;
12666 PyThreadState* __tstate = wxPyBeginAllowThreads();
12667 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 resultobj = SWIG_From_int(static_cast< int >(result));
12672 return resultobj;
12673fail:
12674 return NULL;
d55e5bfc
RD
12675}
12676
12677
1bd55598
RD
12678SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12679 PyObject *resultobj = 0;
12680 wxFontEncoding arg1 ;
12681 int val1 ;
12682 int ecode1 = 0 ;
12683 PyObject * obj0 = 0 ;
12684 char * kwnames[] = {
12685 (char *) "encoding", NULL
12686 };
12687
12688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12689 ecode1 = SWIG_AsVal_int(obj0, &val1);
12690 if (!SWIG_IsOK(ecode1)) {
12691 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12692 }
12693 arg1 = static_cast< wxFontEncoding >(val1);
12694 {
12695 if (!wxPyCheckForApp()) SWIG_fail;
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 wxFont::SetDefaultEncoding(arg1);
12698 wxPyEndAllowThreads(__tstate);
12699 if (PyErr_Occurred()) SWIG_fail;
12700 }
12701 resultobj = SWIG_Py_Void();
12702 return resultobj;
12703fail:
12704 return NULL;
d55e5bfc
RD
12705}
12706
12707
1bd55598
RD
12708SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12709 PyObject *obj;
12710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12711 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12712 return SWIG_Py_Void();
d55e5bfc 12713}
d55e5bfc 12714
1bd55598
RD
12715SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12716 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12717}
12718
1bd55598
RD
12719SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12720 PyObject *resultobj = 0;
12721 wxPyFontEnumerator *result = 0 ;
12722
12723 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12724 {
12725 if (!wxPyCheckForApp()) SWIG_fail;
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12732 return resultobj;
12733fail:
12734 return NULL;
d55e5bfc
RD
12735}
12736
12737
1bd55598
RD
12738SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12739 PyObject *resultobj = 0;
12740 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12741 void *argp1 = 0 ;
12742 int res1 = 0 ;
12743 PyObject *swig_obj[1] ;
12744
12745 if (!args) SWIG_fail;
12746 swig_obj[0] = args;
12747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12748 if (!SWIG_IsOK(res1)) {
12749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12750 }
12751 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12752 {
12753 PyThreadState* __tstate = wxPyBeginAllowThreads();
12754 delete arg1;
d55e5bfc 12755
1bd55598
RD
12756 wxPyEndAllowThreads(__tstate);
12757 if (PyErr_Occurred()) SWIG_fail;
12758 }
12759 resultobj = SWIG_Py_Void();
12760 return resultobj;
12761fail:
12762 return NULL;
12763}
12764
12765
12766SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12767 PyObject *resultobj = 0;
12768 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12769 PyObject *arg2 = (PyObject *) 0 ;
12770 PyObject *arg3 = (PyObject *) 0 ;
12771 bool arg4 ;
12772 void *argp1 = 0 ;
12773 int res1 = 0 ;
12774 bool val4 ;
12775 int ecode4 = 0 ;
12776 PyObject * obj0 = 0 ;
12777 PyObject * obj1 = 0 ;
12778 PyObject * obj2 = 0 ;
12779 PyObject * obj3 = 0 ;
12780 char * kwnames[] = {
12781 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12782 };
12783
12784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12786 if (!SWIG_IsOK(res1)) {
12787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12788 }
12789 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12790 arg2 = obj1;
12791 arg3 = obj2;
12792 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12793 if (!SWIG_IsOK(ecode4)) {
12794 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12795 }
12796 arg4 = static_cast< bool >(val4);
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 resultobj = SWIG_Py_Void();
12804 return resultobj;
12805fail:
12806 return NULL;
12807}
12808
12809
12810SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12811 PyObject *resultobj = 0;
12812 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12813 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12814 bool arg3 = (bool) false ;
12815 bool result;
12816 void *argp1 = 0 ;
12817 int res1 = 0 ;
12818 int val2 ;
12819 int ecode2 = 0 ;
12820 bool val3 ;
12821 int ecode3 = 0 ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 PyObject * obj2 = 0 ;
12825 char * kwnames[] = {
12826 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12827 };
12828
12829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12831 if (!SWIG_IsOK(res1)) {
12832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12833 }
12834 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12835 if (obj1) {
12836 ecode2 = SWIG_AsVal_int(obj1, &val2);
12837 if (!SWIG_IsOK(ecode2)) {
12838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12839 }
12840 arg2 = static_cast< wxFontEncoding >(val2);
12841 }
12842 if (obj2) {
12843 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12844 if (!SWIG_IsOK(ecode3)) {
12845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12846 }
12847 arg3 = static_cast< bool >(val3);
12848 }
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 {
12856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12857 }
12858 return resultobj;
12859fail:
12860 return NULL;
12861}
12862
12863
12864SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12867 wxString const &arg2_defvalue = wxPyEmptyString ;
12868 wxString *arg2 = (wxString *) &arg2_defvalue ;
12869 bool result;
12870 void *argp1 = 0 ;
12871 int res1 = 0 ;
12872 bool temp2 = false ;
12873 PyObject * obj0 = 0 ;
12874 PyObject * obj1 = 0 ;
12875 char * kwnames[] = {
12876 (char *) "self",(char *) "facename", NULL
12877 };
12878
12879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12881 if (!SWIG_IsOK(res1)) {
12882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12883 }
12884 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12885 if (obj1) {
36ed4f51 12886 {
1bd55598
RD
12887 arg2 = wxString_in_helper(obj1);
12888 if (arg2 == NULL) SWIG_fail;
12889 temp2 = true;
36ed4f51 12890 }
1bd55598
RD
12891 }
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 {
12899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12900 }
12901 {
12902 if (temp2)
12903 delete arg2;
12904 }
12905 return resultobj;
12906fail:
12907 {
12908 if (temp2)
12909 delete arg2;
12910 }
12911 return NULL;
d55e5bfc
RD
12912}
12913
12914
1bd55598
RD
12915SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12916 PyObject *resultobj = 0;
1bd55598 12917 PyObject *result = 0 ;
1bd55598 12918
704eda0c 12919 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12922 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = result;
12927 return resultobj;
12928fail:
12929 return NULL;
d55e5bfc
RD
12930}
12931
12932
1bd55598
RD
12933SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
1bd55598 12935 PyObject *result = 0 ;
1bd55598 12936
704eda0c 12937 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12940 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = result;
12945 return resultobj;
12946fail:
12947 return NULL;
d55e5bfc
RD
12948}
12949
12950
704eda0c
RD
12951SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12952 PyObject *resultobj = 0;
12953 wxString *arg1 = 0 ;
12954 bool result;
12955 bool temp1 = false ;
12956 PyObject * obj0 = 0 ;
12957 char * kwnames[] = {
12958 (char *) "str", NULL
12959 };
12960
12961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
12962 {
12963 arg1 = wxString_in_helper(obj0);
12964 if (arg1 == NULL) SWIG_fail;
12965 temp1 = true;
12966 }
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 {
12974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12975 }
12976 {
12977 if (temp1)
12978 delete arg1;
12979 }
12980 return resultobj;
12981fail:
12982 {
12983 if (temp1)
12984 delete arg1;
12985 }
12986 return NULL;
12987}
12988
12989
1bd55598
RD
12990SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12991 PyObject *obj;
12992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12993 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12994 return SWIG_Py_Void();
d55e5bfc
RD
12995}
12996
1bd55598
RD
12997SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12998 return SWIG_Python_InitShadowInstance(args);
12999}
d55e5bfc 13000
1bd55598
RD
13001SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13002 PyObject *resultobj = 0;
13003 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13004 int arg2 ;
13005 void *argp1 = 0 ;
13006 int res1 = 0 ;
13007 int val2 ;
13008 int ecode2 = 0 ;
13009 PyObject *swig_obj[2] ;
13010
13011 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13013 if (!SWIG_IsOK(res1)) {
13014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13015 }
13016 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13017 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13018 if (!SWIG_IsOK(ecode2)) {
13019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13020 }
13021 arg2 = static_cast< int >(val2);
13022 if (arg1) (arg1)->Language = arg2;
13023
13024 resultobj = SWIG_Py_Void();
13025 return resultobj;
13026fail:
13027 return NULL;
d55e5bfc
RD
13028}
13029
13030
1bd55598
RD
13031SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13032 PyObject *resultobj = 0;
13033 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13034 int result;
13035 void *argp1 = 0 ;
13036 int res1 = 0 ;
13037 PyObject *swig_obj[1] ;
13038
13039 if (!args) SWIG_fail;
13040 swig_obj[0] = args;
13041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13042 if (!SWIG_IsOK(res1)) {
13043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13044 }
13045 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13046 result = (int) ((arg1)->Language);
13047 resultobj = SWIG_From_int(static_cast< int >(result));
13048 return resultobj;
13049fail:
13050 return NULL;
13051}
13052
13053
13054SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13055 PyObject *resultobj = 0;
13056 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13057 wxString *arg2 = (wxString *) 0 ;
13058 void *argp1 = 0 ;
13059 int res1 = 0 ;
13060 bool temp2 = false ;
13061 PyObject *swig_obj[2] ;
13062
13063 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13065 if (!SWIG_IsOK(res1)) {
13066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13067 }
13068 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13069 {
13070 arg2 = wxString_in_helper(swig_obj[1]);
13071 if (arg2 == NULL) SWIG_fail;
13072 temp2 = true;
13073 }
13074 if (arg1) (arg1)->CanonicalName = *arg2;
13075
13076 resultobj = SWIG_Py_Void();
13077 {
13078 if (temp2)
13079 delete arg2;
13080 }
13081 return resultobj;
13082fail:
13083 {
13084 if (temp2)
13085 delete arg2;
13086 }
13087 return NULL;
d55e5bfc
RD
13088}
13089
13090
1bd55598
RD
13091SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13092 PyObject *resultobj = 0;
13093 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13094 wxString *result = 0 ;
13095 void *argp1 = 0 ;
13096 int res1 = 0 ;
13097 PyObject *swig_obj[1] ;
13098
13099 if (!args) SWIG_fail;
13100 swig_obj[0] = args;
13101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13102 if (!SWIG_IsOK(res1)) {
13103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13104 }
13105 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13106 result = (wxString *)& ((arg1)->CanonicalName);
13107 {
13108#if wxUSE_UNICODE
13109 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13110#else
13111 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13112#endif
13113 }
13114 return resultobj;
13115fail:
13116 return NULL;
d55e5bfc
RD
13117}
13118
13119
1bd55598
RD
13120SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13121 PyObject *resultobj = 0;
13122 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13123 wxString *arg2 = (wxString *) 0 ;
13124 void *argp1 = 0 ;
13125 int res1 = 0 ;
13126 bool temp2 = false ;
13127 PyObject *swig_obj[2] ;
13128
13129 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13131 if (!SWIG_IsOK(res1)) {
13132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13133 }
13134 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13135 {
13136 arg2 = wxString_in_helper(swig_obj[1]);
13137 if (arg2 == NULL) SWIG_fail;
13138 temp2 = true;
13139 }
13140 if (arg1) (arg1)->Description = *arg2;
13141
13142 resultobj = SWIG_Py_Void();
13143 {
13144 if (temp2)
13145 delete arg2;
13146 }
13147 return resultobj;
13148fail:
13149 {
13150 if (temp2)
13151 delete arg2;
13152 }
13153 return NULL;
d55e5bfc
RD
13154}
13155
13156
1bd55598
RD
13157SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13158 PyObject *resultobj = 0;
13159 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13160 wxString *result = 0 ;
13161 void *argp1 = 0 ;
13162 int res1 = 0 ;
13163 PyObject *swig_obj[1] ;
13164
13165 if (!args) SWIG_fail;
13166 swig_obj[0] = args;
13167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13170 }
13171 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13172 result = (wxString *)& ((arg1)->Description);
13173 {
13174#if wxUSE_UNICODE
13175 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13176#else
13177 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13178#endif
13179 }
13180 return resultobj;
13181fail:
13182 return NULL;
13183}
13184
13185
13186SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13187 PyObject *obj;
13188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13189 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13190 return SWIG_Py_Void();
13191}
13192
13193SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj = 0;
13195 int arg1 = (int) -1 ;
13196 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13197 wxLocale *result = 0 ;
13198 int val1 ;
13199 int ecode1 = 0 ;
13200 int val2 ;
13201 int ecode2 = 0 ;
13202 PyObject * obj0 = 0 ;
13203 PyObject * obj1 = 0 ;
13204 char * kwnames[] = {
13205 (char *) "language",(char *) "flags", NULL
13206 };
13207
13208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13209 if (obj0) {
13210 ecode1 = SWIG_AsVal_int(obj0, &val1);
13211 if (!SWIG_IsOK(ecode1)) {
13212 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13213 }
13214 arg1 = static_cast< int >(val1);
13215 }
13216 if (obj1) {
13217 ecode2 = SWIG_AsVal_int(obj1, &val2);
13218 if (!SWIG_IsOK(ecode2)) {
13219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13220 }
13221 arg2 = static_cast< int >(val2);
13222 }
13223 {
13224 PyThreadState* __tstate = wxPyBeginAllowThreads();
13225 result = (wxLocale *)new_wxLocale(arg1,arg2);
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13230 return resultobj;
13231fail:
13232 return NULL;
d55e5bfc
RD
13233}
13234
13235
1bd55598
RD
13236SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13237 PyObject *resultobj = 0;
13238 wxLocale *arg1 = (wxLocale *) 0 ;
13239 void *argp1 = 0 ;
13240 int res1 = 0 ;
13241 PyObject *swig_obj[1] ;
13242
13243 if (!args) SWIG_fail;
13244 swig_obj[0] = args;
13245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13246 if (!SWIG_IsOK(res1)) {
13247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13248 }
13249 arg1 = reinterpret_cast< wxLocale * >(argp1);
13250 {
13251 PyThreadState* __tstate = wxPyBeginAllowThreads();
13252 delete arg1;
d55e5bfc 13253
1bd55598
RD
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 resultobj = SWIG_Py_Void();
13258 return resultobj;
13259fail:
13260 return NULL;
13261}
13262
13263
13264SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13265 PyObject *resultobj = 0;
13266 wxLocale *arg1 = (wxLocale *) 0 ;
13267 wxString *arg2 = 0 ;
13268 wxString const &arg3_defvalue = wxPyEmptyString ;
13269 wxString *arg3 = (wxString *) &arg3_defvalue ;
13270 wxString const &arg4_defvalue = wxPyEmptyString ;
13271 wxString *arg4 = (wxString *) &arg4_defvalue ;
13272 bool arg5 = (bool) true ;
13273 bool arg6 = (bool) false ;
13274 bool result;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 bool temp2 = false ;
13278 bool temp3 = false ;
13279 bool temp4 = false ;
13280 bool val5 ;
13281 int ecode5 = 0 ;
13282 bool val6 ;
13283 int ecode6 = 0 ;
13284 PyObject * obj0 = 0 ;
13285 PyObject * obj1 = 0 ;
13286 PyObject * obj2 = 0 ;
13287 PyObject * obj3 = 0 ;
13288 PyObject * obj4 = 0 ;
13289 PyObject * obj5 = 0 ;
13290 char * kwnames[] = {
13291 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13292 };
13293
13294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13296 if (!SWIG_IsOK(res1)) {
13297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13298 }
13299 arg1 = reinterpret_cast< wxLocale * >(argp1);
13300 {
13301 arg2 = wxString_in_helper(obj1);
13302 if (arg2 == NULL) SWIG_fail;
13303 temp2 = true;
13304 }
13305 if (obj2) {
d55e5bfc 13306 {
1bd55598
RD
13307 arg3 = wxString_in_helper(obj2);
13308 if (arg3 == NULL) SWIG_fail;
13309 temp3 = true;
d55e5bfc 13310 }
1bd55598
RD
13311 }
13312 if (obj3) {
36ed4f51 13313 {
1bd55598
RD
13314 arg4 = wxString_in_helper(obj3);
13315 if (arg4 == NULL) SWIG_fail;
13316 temp4 = true;
36ed4f51 13317 }
1bd55598
RD
13318 }
13319 if (obj4) {
13320 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13321 if (!SWIG_IsOK(ecode5)) {
13322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13323 }
13324 arg5 = static_cast< bool >(val5);
13325 }
13326 if (obj5) {
13327 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13328 if (!SWIG_IsOK(ecode6)) {
13329 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13330 }
13331 arg6 = static_cast< bool >(val6);
13332 }
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13336 wxPyEndAllowThreads(__tstate);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 }
13339 {
13340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13341 }
13342 {
13343 if (temp2)
13344 delete arg2;
13345 }
13346 {
13347 if (temp3)
13348 delete arg3;
13349 }
13350 {
13351 if (temp4)
13352 delete arg4;
13353 }
13354 return resultobj;
13355fail:
13356 {
13357 if (temp2)
13358 delete arg2;
13359 }
13360 {
13361 if (temp3)
13362 delete arg3;
13363 }
13364 {
13365 if (temp4)
13366 delete arg4;
13367 }
13368 return NULL;
13369}
13370
13371
13372SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13373 PyObject *resultobj = 0;
13374 wxLocale *arg1 = (wxLocale *) 0 ;
13375 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13376 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13377 bool result;
13378 void *argp1 = 0 ;
13379 int res1 = 0 ;
13380 int val2 ;
13381 int ecode2 = 0 ;
13382 int val3 ;
13383 int ecode3 = 0 ;
13384 PyObject * obj0 = 0 ;
13385 PyObject * obj1 = 0 ;
13386 PyObject * obj2 = 0 ;
13387 char * kwnames[] = {
13388 (char *) "self",(char *) "language",(char *) "flags", NULL
13389 };
13390
13391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13395 }
13396 arg1 = reinterpret_cast< wxLocale * >(argp1);
13397 if (obj1) {
13398 ecode2 = SWIG_AsVal_int(obj1, &val2);
13399 if (!SWIG_IsOK(ecode2)) {
13400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13401 }
13402 arg2 = static_cast< int >(val2);
13403 }
13404 if (obj2) {
13405 ecode3 = SWIG_AsVal_int(obj2, &val3);
13406 if (!SWIG_IsOK(ecode3)) {
13407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13408 }
13409 arg3 = static_cast< int >(val3);
13410 }
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 {
13418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13419 }
13420 return resultobj;
13421fail:
13422 return NULL;
d55e5bfc
RD
13423}
13424
13425
1bd55598
RD
13426SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13427 PyObject *resultobj = 0;
13428 int result;
13429
13430 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (int)wxLocale::GetSystemLanguage();
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_From_int(static_cast< int >(result));
13438 return resultobj;
13439fail:
13440 return NULL;
d55e5bfc
RD
13441}
13442
13443
1bd55598
RD
13444SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13445 PyObject *resultobj = 0;
13446 wxFontEncoding result;
13447
13448 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13449 {
13450 PyThreadState* __tstate = wxPyBeginAllowThreads();
13451 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 resultobj = SWIG_From_int(static_cast< int >(result));
13456 return resultobj;
13457fail:
13458 return NULL;
d55e5bfc
RD
13459}
13460
13461
1bd55598
RD
13462SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13463 PyObject *resultobj = 0;
13464 wxString result;
13465
13466 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = wxLocale::GetSystemEncodingName();
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
13473 {
13474#if wxUSE_UNICODE
13475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13476#else
13477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13478#endif
13479 }
13480 return resultobj;
13481fail:
13482 return NULL;
d55e5bfc
RD
13483}
13484
13485
1bd55598
RD
13486SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13487 PyObject *resultobj = 0;
13488 wxLocale *arg1 = (wxLocale *) 0 ;
13489 bool result;
13490 void *argp1 = 0 ;
13491 int res1 = 0 ;
13492 PyObject *swig_obj[1] ;
13493
13494 if (!args) SWIG_fail;
13495 swig_obj[0] = args;
13496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13497 if (!SWIG_IsOK(res1)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13499 }
13500 arg1 = reinterpret_cast< wxLocale * >(argp1);
13501 {
13502 PyThreadState* __tstate = wxPyBeginAllowThreads();
13503 result = (bool)((wxLocale const *)arg1)->IsOk();
13504 wxPyEndAllowThreads(__tstate);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 }
13507 {
13508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13509 }
13510 return resultobj;
13511fail:
13512 return NULL;
d55e5bfc
RD
13513}
13514
13515
1bd55598
RD
13516SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13517 PyObject *resultobj = 0;
13518 wxLocale *arg1 = (wxLocale *) 0 ;
13519 wxString result;
13520 void *argp1 = 0 ;
13521 int res1 = 0 ;
13522 PyObject *swig_obj[1] ;
13523
13524 if (!args) SWIG_fail;
13525 swig_obj[0] = args;
13526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13527 if (!SWIG_IsOK(res1)) {
13528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13529 }
13530 arg1 = reinterpret_cast< wxLocale * >(argp1);
13531 {
13532 PyThreadState* __tstate = wxPyBeginAllowThreads();
13533 result = ((wxLocale const *)arg1)->GetLocale();
13534 wxPyEndAllowThreads(__tstate);
13535 if (PyErr_Occurred()) SWIG_fail;
13536 }
13537 {
13538#if wxUSE_UNICODE
13539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13540#else
13541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13542#endif
13543 }
13544 return resultobj;
13545fail:
13546 return NULL;
d55e5bfc
RD
13547}
13548
13549
1bd55598
RD
13550SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13551 PyObject *resultobj = 0;
13552 wxLocale *arg1 = (wxLocale *) 0 ;
13553 int result;
13554 void *argp1 = 0 ;
13555 int res1 = 0 ;
13556 PyObject *swig_obj[1] ;
13557
13558 if (!args) SWIG_fail;
13559 swig_obj[0] = args;
13560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13561 if (!SWIG_IsOK(res1)) {
13562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13563 }
13564 arg1 = reinterpret_cast< wxLocale * >(argp1);
13565 {
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 result = (int)((wxLocale const *)arg1)->GetLanguage();
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 resultobj = SWIG_From_int(static_cast< int >(result));
13572 return resultobj;
13573fail:
13574 return NULL;
d55e5bfc
RD
13575}
13576
13577
1bd55598
RD
13578SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13579 PyObject *resultobj = 0;
13580 wxLocale *arg1 = (wxLocale *) 0 ;
13581 wxString result;
13582 void *argp1 = 0 ;
13583 int res1 = 0 ;
13584 PyObject *swig_obj[1] ;
13585
13586 if (!args) SWIG_fail;
13587 swig_obj[0] = args;
13588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13591 }
13592 arg1 = reinterpret_cast< wxLocale * >(argp1);
13593 {
13594 PyThreadState* __tstate = wxPyBeginAllowThreads();
13595 result = ((wxLocale const *)arg1)->GetSysName();
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 {
36ed4f51 13600#if wxUSE_UNICODE
1bd55598 13601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 13602#else
1bd55598 13603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 13604#endif
1bd55598
RD
13605 }
13606 return resultobj;
13607fail:
13608 return NULL;
d55e5bfc
RD
13609}
13610
13611
1bd55598
RD
13612SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13613 PyObject *resultobj = 0;
13614 wxLocale *arg1 = (wxLocale *) 0 ;
13615 wxString result;
13616 void *argp1 = 0 ;
13617 int res1 = 0 ;
13618 PyObject *swig_obj[1] ;
13619
13620 if (!args) SWIG_fail;
13621 swig_obj[0] = args;
13622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13623 if (!SWIG_IsOK(res1)) {
13624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13625 }
13626 arg1 = reinterpret_cast< wxLocale * >(argp1);
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 result = ((wxLocale const *)arg1)->GetCanonicalName();
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634#if wxUSE_UNICODE
13635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13636#else
13637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13638#endif
13639 }
13640 return resultobj;
13641fail:
13642 return NULL;
d55e5bfc
RD
13643}
13644
13645
1bd55598
RD
13646SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj = 0;
13648 wxString *arg1 = 0 ;
13649 bool temp1 = false ;
13650 PyObject * obj0 = 0 ;
13651 char * kwnames[] = {
13652 (char *) "prefix", NULL
13653 };
13654
13655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13656 {
13657 arg1 = wxString_in_helper(obj0);
13658 if (arg1 == NULL) SWIG_fail;
13659 temp1 = true;
13660 }
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 resultobj = SWIG_Py_Void();
13668 {
13669 if (temp1)
13670 delete arg1;
13671 }
13672 return resultobj;
13673fail:
13674 {
13675 if (temp1)
13676 delete arg1;
13677 }
13678 return NULL;
13679}
13680
13681
13682SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj = 0;
13684 wxLocale *arg1 = (wxLocale *) 0 ;
13685 wxString *arg2 = 0 ;
13686 bool result;
13687 void *argp1 = 0 ;
13688 int res1 = 0 ;
13689 bool temp2 = false ;
13690 PyObject * obj0 = 0 ;
13691 PyObject * obj1 = 0 ;
13692 char * kwnames[] = {
13693 (char *) "self",(char *) "szDomain", NULL
13694 };
13695
13696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13698 if (!SWIG_IsOK(res1)) {
13699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13700 }
13701 arg1 = reinterpret_cast< wxLocale * >(argp1);
13702 {
13703 arg2 = wxString_in_helper(obj1);
13704 if (arg2 == NULL) SWIG_fail;
13705 temp2 = true;
13706 }
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 {
13714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13715 }
13716 {
13717 if (temp2)
13718 delete arg2;
13719 }
13720 return resultobj;
13721fail:
13722 {
13723 if (temp2)
13724 delete arg2;
13725 }
13726 return NULL;
13727}
13728
13729
13730SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13731 PyObject *resultobj = 0;
13732 wxLocale *arg1 = (wxLocale *) 0 ;
13733 wxString *arg2 = 0 ;
13734 bool result;
13735 void *argp1 = 0 ;
13736 int res1 = 0 ;
13737 bool temp2 = false ;
13738 PyObject * obj0 = 0 ;
13739 PyObject * obj1 = 0 ;
13740 char * kwnames[] = {
13741 (char *) "self",(char *) "szDomain", NULL
13742 };
13743
13744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13746 if (!SWIG_IsOK(res1)) {
13747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13748 }
13749 arg1 = reinterpret_cast< wxLocale * >(argp1);
13750 {
13751 arg2 = wxString_in_helper(obj1);
13752 if (arg2 == NULL) SWIG_fail;
13753 temp2 = true;
13754 }
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13758 wxPyEndAllowThreads(__tstate);
13759 if (PyErr_Occurred()) SWIG_fail;
13760 }
13761 {
13762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13763 }
13764 {
13765 if (temp2)
13766 delete arg2;
13767 }
13768 return resultobj;
13769fail:
13770 {
13771 if (temp2)
13772 delete arg2;
13773 }
13774 return NULL;
d55e5bfc
RD
13775}
13776
13777
1bd55598
RD
13778SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj = 0;
13780 int arg1 ;
13781 wxLanguageInfo *result = 0 ;
13782 int val1 ;
13783 int ecode1 = 0 ;
13784 PyObject * obj0 = 0 ;
13785 char * kwnames[] = {
13786 (char *) "lang", NULL
13787 };
13788
13789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13790 ecode1 = SWIG_AsVal_int(obj0, &val1);
13791 if (!SWIG_IsOK(ecode1)) {
13792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13793 }
13794 arg1 = static_cast< int >(val1);
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13802 return resultobj;
13803fail:
13804 return NULL;
13805}
13806
13807
13808SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13809 PyObject *resultobj = 0;
13810 int arg1 ;
13811 wxString result;
13812 int val1 ;
13813 int ecode1 = 0 ;
13814 PyObject * obj0 = 0 ;
13815 char * kwnames[] = {
13816 (char *) "lang", NULL
13817 };
13818
13819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13820 ecode1 = SWIG_AsVal_int(obj0, &val1);
13821 if (!SWIG_IsOK(ecode1)) {
13822 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13823 }
13824 arg1 = static_cast< int >(val1);
13825 {
13826 PyThreadState* __tstate = wxPyBeginAllowThreads();
13827 result = wxLocale::GetLanguageName(arg1);
13828 wxPyEndAllowThreads(__tstate);
13829 if (PyErr_Occurred()) SWIG_fail;
13830 }
13831 {
13832#if wxUSE_UNICODE
13833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13834#else
13835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13836#endif
13837 }
13838 return resultobj;
13839fail:
13840 return NULL;
d55e5bfc
RD
13841}
13842
13843
1bd55598
RD
13844SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13845 PyObject *resultobj = 0;
13846 wxString *arg1 = 0 ;
13847 wxLanguageInfo *result = 0 ;
13848 bool temp1 = false ;
13849 PyObject * obj0 = 0 ;
13850 char * kwnames[] = {
13851 (char *) "locale", NULL
13852 };
13853
13854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13855 {
13856 arg1 = wxString_in_helper(obj0);
13857 if (arg1 == NULL) SWIG_fail;
13858 temp1 = true;
13859 }
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13867 {
13868 if (temp1)
13869 delete arg1;
13870 }
13871 return resultobj;
13872fail:
13873 {
13874 if (temp1)
13875 delete arg1;
13876 }
13877 return NULL;
d55e5bfc
RD
13878}
13879
13880
1bd55598
RD
13881SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13882 PyObject *resultobj = 0;
13883 wxLanguageInfo *arg1 = 0 ;
13884 void *argp1 = 0 ;
13885 int res1 = 0 ;
13886 PyObject * obj0 = 0 ;
13887 char * kwnames[] = {
13888 (char *) "info", NULL
13889 };
13890
13891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13892 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13893 if (!SWIG_IsOK(res1)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13895 }
13896 if (!argp1) {
13897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13898 }
13899 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 resultobj = SWIG_Py_Void();
13907 return resultobj;
13908fail:
13909 return NULL;
13910}
13911
13912
13913SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13914 PyObject *resultobj = 0;
13915 wxLocale *arg1 = (wxLocale *) 0 ;
13916 wxString *arg2 = 0 ;
13917 wxString const &arg3_defvalue = wxPyEmptyString ;
13918 wxString *arg3 = (wxString *) &arg3_defvalue ;
13919 wxString result;
13920 void *argp1 = 0 ;
13921 int res1 = 0 ;
13922 bool temp2 = false ;
13923 bool temp3 = false ;
13924 PyObject * obj0 = 0 ;
13925 PyObject * obj1 = 0 ;
13926 PyObject * obj2 = 0 ;
13927 char * kwnames[] = {
13928 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13929 };
13930
13931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13933 if (!SWIG_IsOK(res1)) {
13934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13935 }
13936 arg1 = reinterpret_cast< wxLocale * >(argp1);
13937 {
13938 arg2 = wxString_in_helper(obj1);
13939 if (arg2 == NULL) SWIG_fail;
13940 temp2 = true;
13941 }
13942 if (obj2) {
d55e5bfc 13943 {
1bd55598
RD
13944 arg3 = wxString_in_helper(obj2);
13945 if (arg3 == NULL) SWIG_fail;
13946 temp3 = true;
d55e5bfc 13947 }
1bd55598
RD
13948 }
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 {
13956#if wxUSE_UNICODE
13957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13958#else
13959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13960#endif
13961 }
13962 {
13963 if (temp2)
13964 delete arg2;
13965 }
13966 {
13967 if (temp3)
13968 delete arg3;
13969 }
13970 return resultobj;
13971fail:
13972 {
13973 if (temp2)
13974 delete arg2;
13975 }
13976 {
13977 if (temp3)
13978 delete arg3;
13979 }
13980 return NULL;
d55e5bfc
RD
13981}
13982
13983
1bd55598
RD
13984SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13985 PyObject *resultobj = 0;
13986 wxLocale *arg1 = (wxLocale *) 0 ;
13987 wxString *result = 0 ;
13988 void *argp1 = 0 ;
13989 int res1 = 0 ;
13990 PyObject *swig_obj[1] ;
13991
13992 if (!args) SWIG_fail;
13993 swig_obj[0] = args;
13994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13995 if (!SWIG_IsOK(res1)) {
13996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13997 }
13998 arg1 = reinterpret_cast< wxLocale * >(argp1);
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14001 {
1bd55598
RD
14002 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14003 result = (wxString *) &_result_ref;
d55e5bfc 14004 }
1bd55598
RD
14005 wxPyEndAllowThreads(__tstate);
14006 if (PyErr_Occurred()) SWIG_fail;
14007 }
14008 {
14009#if wxUSE_UNICODE
14010 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14011#else
14012 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14013#endif
14014 }
14015 return resultobj;
14016fail:
14017 return NULL;
d55e5bfc
RD
14018}
14019
14020
1bd55598
RD
14021SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14022 PyObject *obj;
14023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14024 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14025 return SWIG_Py_Void();
d55e5bfc
RD
14026}
14027
1bd55598
RD
14028SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14029 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14030}
14031
1bd55598
RD
14032SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14033 PyObject *resultobj = 0;
14034 wxLocale *result = 0 ;
14035
14036 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14037 {
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 result = (wxLocale *)wxGetLocale();
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14044 return resultobj;
14045fail:
14046 return NULL;
d55e5bfc
RD
14047}
14048
14049
1bd55598
RD
14050SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14051 PyObject *resultobj = 0;
14052 wxString *arg1 = 0 ;
14053 wxString result;
14054 bool temp1 = false ;
14055
14056 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14057 {
14058 arg1 = wxString_in_helper(swig_obj[0]);
14059 if (arg1 == NULL) SWIG_fail;
14060 temp1 = true;
14061 }
14062 {
14063 PyThreadState* __tstate = wxPyBeginAllowThreads();
14064 result = wxGetTranslation((wxString const &)*arg1);
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 {
36ed4f51 14069#if wxUSE_UNICODE
1bd55598 14070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 14071#else
1bd55598 14072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 14073#endif
1bd55598
RD
14074 }
14075 {
14076 if (temp1)
14077 delete arg1;
14078 }
14079 return resultobj;
14080fail:
14081 {
14082 if (temp1)
14083 delete arg1;
14084 }
14085 return NULL;
5e483524
RD
14086}
14087
14088
1bd55598
RD
14089SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14090 PyObject *resultobj = 0;
14091 wxString *arg1 = 0 ;
14092 wxString *arg2 = 0 ;
14093 size_t arg3 ;
14094 wxString result;
14095 bool temp1 = false ;
14096 bool temp2 = false ;
14097 size_t val3 ;
14098 int ecode3 = 0 ;
14099
14100 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14101 {
14102 arg1 = wxString_in_helper(swig_obj[0]);
14103 if (arg1 == NULL) SWIG_fail;
14104 temp1 = true;
14105 }
14106 {
14107 arg2 = wxString_in_helper(swig_obj[1]);
14108 if (arg2 == NULL) SWIG_fail;
14109 temp2 = true;
14110 }
14111 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14112 if (!SWIG_IsOK(ecode3)) {
14113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14114 }
14115 arg3 = static_cast< size_t >(val3);
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 {
36ed4f51 14123#if wxUSE_UNICODE
1bd55598 14124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 14125#else
1bd55598 14126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 14127#endif
1bd55598
RD
14128 }
14129 {
14130 if (temp1)
14131 delete arg1;
14132 }
14133 {
14134 if (temp2)
14135 delete arg2;
14136 }
14137 return resultobj;
14138fail:
14139 {
14140 if (temp1)
14141 delete arg1;
14142 }
14143 {
14144 if (temp2)
14145 delete arg2;
14146 }
14147 return NULL;
d55e5bfc
RD
14148}
14149
14150
1bd55598
RD
14151SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14152 int argc;
14153 PyObject *argv[4];
14154
14155 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14156 --argc;
14157 if (argc == 1) {
14158 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14159 }
14160 if (argc == 3) {
14161 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14162 }
14163
14164fail:
14165 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14166 return NULL;
d55e5bfc
RD
14167}
14168
14169
1bd55598
RD
14170SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14171 PyObject *resultobj = 0;
14172 wxEncodingConverter *result = 0 ;
14173
14174 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 result = (wxEncodingConverter *)new wxEncodingConverter();
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14182 return resultobj;
14183fail:
14184 return NULL;
d55e5bfc
RD
14185}
14186
14187
1bd55598
RD
14188SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14189 PyObject *resultobj = 0;
14190 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14191 void *argp1 = 0 ;
14192 int res1 = 0 ;
14193 PyObject *swig_obj[1] ;
14194
14195 if (!args) SWIG_fail;
14196 swig_obj[0] = args;
14197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14198 if (!SWIG_IsOK(res1)) {
14199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14200 }
14201 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14202 {
14203 PyThreadState* __tstate = wxPyBeginAllowThreads();
14204 delete arg1;
d55e5bfc 14205
1bd55598
RD
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 resultobj = SWIG_Py_Void();
14210 return resultobj;
14211fail:
14212 return NULL;
14213}
14214
14215
14216SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14217 PyObject *resultobj = 0;
14218 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14219 wxFontEncoding arg2 ;
14220 wxFontEncoding arg3 ;
14221 int arg4 = (int) wxCONVERT_STRICT ;
14222 bool result;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 int val2 ;
14226 int ecode2 = 0 ;
14227 int val3 ;
14228 int ecode3 = 0 ;
14229 int val4 ;
14230 int ecode4 = 0 ;
14231 PyObject * obj0 = 0 ;
14232 PyObject * obj1 = 0 ;
14233 PyObject * obj2 = 0 ;
14234 PyObject * obj3 = 0 ;
14235 char * kwnames[] = {
14236 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14237 };
14238
14239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14243 }
14244 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14245 ecode2 = SWIG_AsVal_int(obj1, &val2);
14246 if (!SWIG_IsOK(ecode2)) {
14247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14248 }
14249 arg2 = static_cast< wxFontEncoding >(val2);
14250 ecode3 = SWIG_AsVal_int(obj2, &val3);
14251 if (!SWIG_IsOK(ecode3)) {
14252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14253 }
14254 arg3 = static_cast< wxFontEncoding >(val3);
14255 if (obj3) {
14256 ecode4 = SWIG_AsVal_int(obj3, &val4);
14257 if (!SWIG_IsOK(ecode4)) {
14258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14259 }
14260 arg4 = static_cast< int >(val4);
14261 }
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 {
14269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14270 }
14271 return resultobj;
14272fail:
14273 return NULL;
14274}
14275
14276
14277SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14278 PyObject *resultobj = 0;
14279 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14280 wxString *arg2 = 0 ;
14281 wxString result;
14282 void *argp1 = 0 ;
14283 int res1 = 0 ;
14284 bool temp2 = false ;
14285 PyObject * obj0 = 0 ;
14286 PyObject * obj1 = 0 ;
14287 char * kwnames[] = {
14288 (char *) "self",(char *) "input", NULL
14289 };
14290
14291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14293 if (!SWIG_IsOK(res1)) {
14294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14295 }
14296 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14297 {
14298 arg2 = wxString_in_helper(obj1);
14299 if (arg2 == NULL) SWIG_fail;
14300 temp2 = true;
14301 }
14302 {
14303 PyThreadState* __tstate = wxPyBeginAllowThreads();
14304 result = (arg1)->Convert((wxString const &)*arg2);
14305 wxPyEndAllowThreads(__tstate);
14306 if (PyErr_Occurred()) SWIG_fail;
14307 }
14308 {
d55e5bfc 14309#if wxUSE_UNICODE
1bd55598 14310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 14311#else
1bd55598 14312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 14313#endif
1bd55598
RD
14314 }
14315 {
14316 if (temp2)
14317 delete arg2;
14318 }
14319 return resultobj;
14320fail:
14321 {
14322 if (temp2)
14323 delete arg2;
14324 }
14325 return NULL;
14326}
14327
14328
14329SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj = 0;
14331 wxFontEncoding arg1 ;
14332 int arg2 = (int) wxPLATFORM_CURRENT ;
14333 wxFontEncodingArray result;
14334 int val1 ;
14335 int ecode1 = 0 ;
14336 int val2 ;
14337 int ecode2 = 0 ;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 char * kwnames[] = {
14341 (char *) "enc",(char *) "platform", NULL
14342 };
14343
14344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14345 ecode1 = SWIG_AsVal_int(obj0, &val1);
14346 if (!SWIG_IsOK(ecode1)) {
14347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14348 }
14349 arg1 = static_cast< wxFontEncoding >(val1);
14350 if (obj1) {
14351 ecode2 = SWIG_AsVal_int(obj1, &val2);
14352 if (!SWIG_IsOK(ecode2)) {
14353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14354 }
14355 arg2 = static_cast< int >(val2);
14356 }
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 {
14364 resultobj = PyList_New(0);
14365 for (size_t i=0; i < (&result)->GetCount(); i++) {
14366 PyObject* number = PyInt_FromLong((&result)->Item(i));
14367 PyList_Append(resultobj, number);
14368 Py_DECREF(number);
d55e5bfc 14369 }
1bd55598
RD
14370 }
14371 return resultobj;
14372fail:
14373 return NULL;
d55e5bfc
RD
14374}
14375
14376
1bd55598
RD
14377SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14378 PyObject *resultobj = 0;
14379 wxFontEncoding arg1 ;
14380 wxFontEncodingArray result;
14381 int val1 ;
14382 int ecode1 = 0 ;
14383 PyObject * obj0 = 0 ;
14384 char * kwnames[] = {
14385 (char *) "enc", NULL
14386 };
14387
14388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14389 ecode1 = SWIG_AsVal_int(obj0, &val1);
14390 if (!SWIG_IsOK(ecode1)) {
14391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14392 }
14393 arg1 = static_cast< wxFontEncoding >(val1);
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 result = wxEncodingConverter::GetAllEquivalents(arg1);
14397 wxPyEndAllowThreads(__tstate);
14398 if (PyErr_Occurred()) SWIG_fail;
14399 }
14400 {
14401 resultobj = PyList_New(0);
14402 for (size_t i=0; i < (&result)->GetCount(); i++) {
14403 PyObject* number = PyInt_FromLong((&result)->Item(i));
14404 PyList_Append(resultobj, number);
14405 Py_DECREF(number);
d55e5bfc 14406 }
1bd55598
RD
14407 }
14408 return resultobj;
14409fail:
14410 return NULL;
14411}
14412
14413
14414SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14415 PyObject *resultobj = 0;
14416 wxFontEncoding arg1 ;
14417 wxFontEncoding arg2 ;
14418 bool result;
14419 int val1 ;
14420 int ecode1 = 0 ;
14421 int val2 ;
14422 int ecode2 = 0 ;
14423 PyObject * obj0 = 0 ;
14424 PyObject * obj1 = 0 ;
14425 char * kwnames[] = {
14426 (char *) "encIn",(char *) "encOut", NULL
14427 };
14428
14429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14430 ecode1 = SWIG_AsVal_int(obj0, &val1);
14431 if (!SWIG_IsOK(ecode1)) {
14432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14433 }
14434 arg1 = static_cast< wxFontEncoding >(val1);
14435 ecode2 = SWIG_AsVal_int(obj1, &val2);
14436 if (!SWIG_IsOK(ecode2)) {
14437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14438 }
14439 arg2 = static_cast< wxFontEncoding >(val2);
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 {
14447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14448 }
14449 return resultobj;
14450fail:
14451 return NULL;
d55e5bfc
RD
14452}
14453
14454
1bd55598
RD
14455SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14456 PyObject *obj;
14457 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14458 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14459 return SWIG_Py_Void();
d55e5bfc
RD
14460}
14461
1bd55598
RD
14462SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14463 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14464}
14465
1bd55598
RD
14466SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14467 PyObject *resultobj = 0;
14468 wxDC *arg1 = (wxDC *) 0 ;
14469 void *argp1 = 0 ;
14470 int res1 = 0 ;
14471 PyObject *swig_obj[1] ;
14472
14473 if (!args) SWIG_fail;
14474 swig_obj[0] = args;
14475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14476 if (!SWIG_IsOK(res1)) {
14477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14478 }
14479 arg1 = reinterpret_cast< wxDC * >(argp1);
14480 {
14481 PyThreadState* __tstate = wxPyBeginAllowThreads();
14482 delete arg1;
d55e5bfc 14483
1bd55598
RD
14484 wxPyEndAllowThreads(__tstate);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 }
14487 resultobj = SWIG_Py_Void();
14488 return resultobj;
14489fail:
14490 return NULL;
14491}
14492
14493
14494SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14495 PyObject *resultobj = 0;
14496 wxDC *arg1 = (wxDC *) 0 ;
14497 int arg2 ;
14498 int arg3 ;
14499 wxColour *arg4 = 0 ;
14500 int arg5 = (int) wxFLOOD_SURFACE ;
14501 bool result;
14502 void *argp1 = 0 ;
14503 int res1 = 0 ;
14504 int val2 ;
14505 int ecode2 = 0 ;
14506 int val3 ;
14507 int ecode3 = 0 ;
14508 wxColour temp4 ;
14509 int val5 ;
14510 int ecode5 = 0 ;
14511 PyObject * obj0 = 0 ;
14512 PyObject * obj1 = 0 ;
14513 PyObject * obj2 = 0 ;
14514 PyObject * obj3 = 0 ;
14515 PyObject * obj4 = 0 ;
14516 char * kwnames[] = {
14517 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14518 };
14519
14520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14522 if (!SWIG_IsOK(res1)) {
14523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14524 }
14525 arg1 = reinterpret_cast< wxDC * >(argp1);
14526 ecode2 = SWIG_AsVal_int(obj1, &val2);
14527 if (!SWIG_IsOK(ecode2)) {
14528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14529 }
14530 arg2 = static_cast< int >(val2);
14531 ecode3 = SWIG_AsVal_int(obj2, &val3);
14532 if (!SWIG_IsOK(ecode3)) {
14533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14534 }
14535 arg3 = static_cast< int >(val3);
14536 {
14537 arg4 = &temp4;
14538 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14539 }
14540 if (obj4) {
14541 ecode5 = SWIG_AsVal_int(obj4, &val5);
14542 if (!SWIG_IsOK(ecode5)) {
14543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14544 }
14545 arg5 = static_cast< int >(val5);
14546 }
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14550 wxPyEndAllowThreads(__tstate);
14551 if (PyErr_Occurred()) SWIG_fail;
14552 }
14553 {
14554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14555 }
14556 return resultobj;
14557fail:
14558 return NULL;
14559}
14560
14561
14562SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj = 0;
14564 wxDC *arg1 = (wxDC *) 0 ;
14565 wxPoint *arg2 = 0 ;
14566 wxColour *arg3 = 0 ;
14567 int arg4 = (int) wxFLOOD_SURFACE ;
14568 bool result;
14569 void *argp1 = 0 ;
14570 int res1 = 0 ;
14571 wxPoint temp2 ;
14572 wxColour temp3 ;
14573 int val4 ;
14574 int ecode4 = 0 ;
14575 PyObject * obj0 = 0 ;
14576 PyObject * obj1 = 0 ;
14577 PyObject * obj2 = 0 ;
14578 PyObject * obj3 = 0 ;
14579 char * kwnames[] = {
14580 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14581 };
14582
14583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14585 if (!SWIG_IsOK(res1)) {
14586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14587 }
14588 arg1 = reinterpret_cast< wxDC * >(argp1);
14589 {
14590 arg2 = &temp2;
14591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14592 }
14593 {
14594 arg3 = &temp3;
14595 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14596 }
14597 if (obj3) {
14598 ecode4 = SWIG_AsVal_int(obj3, &val4);
14599 if (!SWIG_IsOK(ecode4)) {
14600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14601 }
14602 arg4 = static_cast< int >(val4);
14603 }
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 {
14611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14612 }
14613 return resultobj;
14614fail:
14615 return NULL;
14616}
14617
14618
14619SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj = 0;
14621 wxDC *arg1 = (wxDC *) 0 ;
14622 wxRect *arg2 = 0 ;
14623 wxColour *arg3 = 0 ;
14624 wxColour *arg4 = 0 ;
14625 wxPoint *arg5 = 0 ;
14626 void *argp1 = 0 ;
14627 int res1 = 0 ;
14628 wxRect temp2 ;
14629 wxColour temp3 ;
14630 wxColour temp4 ;
14631 wxPoint temp5 ;
14632 PyObject * obj0 = 0 ;
14633 PyObject * obj1 = 0 ;
14634 PyObject * obj2 = 0 ;
14635 PyObject * obj3 = 0 ;
14636 PyObject * obj4 = 0 ;
14637 char * kwnames[] = {
14638 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14639 };
14640
14641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14643 if (!SWIG_IsOK(res1)) {
14644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14645 }
14646 arg1 = reinterpret_cast< wxDC * >(argp1);
14647 {
14648 arg2 = &temp2;
14649 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14650 }
14651 {
14652 arg3 = &temp3;
14653 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14654 }
14655 {
14656 arg4 = &temp4;
14657 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14658 }
14659 {
14660 arg5 = &temp5;
14661 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14662 }
14663 {
14664 PyThreadState* __tstate = wxPyBeginAllowThreads();
14665 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 resultobj = SWIG_Py_Void();
14670 return resultobj;
14671fail:
14672 return NULL;
14673}
14674
14675
14676SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14677 PyObject *resultobj = 0;
14678 wxDC *arg1 = (wxDC *) 0 ;
14679 wxRect *arg2 = 0 ;
14680 wxColour *arg3 = 0 ;
14681 wxColour *arg4 = 0 ;
14682 wxDirection arg5 = (wxDirection) wxEAST ;
14683 void *argp1 = 0 ;
14684 int res1 = 0 ;
14685 wxRect temp2 ;
14686 wxColour temp3 ;
14687 wxColour temp4 ;
14688 int val5 ;
14689 int ecode5 = 0 ;
14690 PyObject * obj0 = 0 ;
14691 PyObject * obj1 = 0 ;
14692 PyObject * obj2 = 0 ;
14693 PyObject * obj3 = 0 ;
14694 PyObject * obj4 = 0 ;
14695 char * kwnames[] = {
14696 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14697 };
14698
14699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14701 if (!SWIG_IsOK(res1)) {
14702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14703 }
14704 arg1 = reinterpret_cast< wxDC * >(argp1);
14705 {
14706 arg2 = &temp2;
14707 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14708 }
14709 {
14710 arg3 = &temp3;
14711 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14712 }
14713 {
14714 arg4 = &temp4;
14715 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14716 }
14717 if (obj4) {
14718 ecode5 = SWIG_AsVal_int(obj4, &val5);
14719 if (!SWIG_IsOK(ecode5)) {
14720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14721 }
14722 arg5 = static_cast< wxDirection >(val5);
14723 }
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14727 wxPyEndAllowThreads(__tstate);
14728 if (PyErr_Occurred()) SWIG_fail;
14729 }
14730 resultobj = SWIG_Py_Void();
14731 return resultobj;
14732fail:
14733 return NULL;
14734}
14735
14736
14737SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14738 PyObject *resultobj = 0;
14739 wxDC *arg1 = (wxDC *) 0 ;
14740 int arg2 ;
14741 int arg3 ;
14742 wxColour result;
14743 void *argp1 = 0 ;
14744 int res1 = 0 ;
14745 int val2 ;
14746 int ecode2 = 0 ;
14747 int val3 ;
14748 int ecode3 = 0 ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 PyObject * obj2 = 0 ;
14752 char * kwnames[] = {
14753 (char *) "self",(char *) "x",(char *) "y", NULL
14754 };
14755
14756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14758 if (!SWIG_IsOK(res1)) {
14759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14760 }
14761 arg1 = reinterpret_cast< wxDC * >(argp1);
14762 ecode2 = SWIG_AsVal_int(obj1, &val2);
14763 if (!SWIG_IsOK(ecode2)) {
14764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14765 }
14766 arg2 = static_cast< int >(val2);
14767 ecode3 = SWIG_AsVal_int(obj2, &val3);
14768 if (!SWIG_IsOK(ecode3)) {
14769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14770 }
14771 arg3 = static_cast< int >(val3);
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = wxDC_GetPixel(arg1,arg2,arg3);
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14779 return resultobj;
14780fail:
14781 return NULL;
14782}
14783
14784
14785SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14786 PyObject *resultobj = 0;
14787 wxDC *arg1 = (wxDC *) 0 ;
14788 wxPoint *arg2 = 0 ;
14789 wxColour result;
14790 void *argp1 = 0 ;
14791 int res1 = 0 ;
14792 wxPoint temp2 ;
14793 PyObject * obj0 = 0 ;
14794 PyObject * obj1 = 0 ;
14795 char * kwnames[] = {
14796 (char *) "self",(char *) "pt", NULL
14797 };
14798
14799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14801 if (!SWIG_IsOK(res1)) {
14802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14803 }
14804 arg1 = reinterpret_cast< wxDC * >(argp1);
14805 {
14806 arg2 = &temp2;
14807 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14808 }
14809 {
14810 PyThreadState* __tstate = wxPyBeginAllowThreads();
14811 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14812 wxPyEndAllowThreads(__tstate);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 }
14815 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14816 return resultobj;
14817fail:
14818 return NULL;
14819}
14820
14821
14822SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14823 PyObject *resultobj = 0;
14824 wxDC *arg1 = (wxDC *) 0 ;
14825 int arg2 ;
14826 int arg3 ;
14827 int arg4 ;
14828 int arg5 ;
14829 void *argp1 = 0 ;
14830 int res1 = 0 ;
14831 int val2 ;
14832 int ecode2 = 0 ;
14833 int val3 ;
14834 int ecode3 = 0 ;
14835 int val4 ;
14836 int ecode4 = 0 ;
14837 int val5 ;
14838 int ecode5 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 PyObject * obj2 = 0 ;
14842 PyObject * obj3 = 0 ;
14843 PyObject * obj4 = 0 ;
14844 char * kwnames[] = {
14845 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14846 };
14847
14848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14850 if (!SWIG_IsOK(res1)) {
14851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14852 }
14853 arg1 = reinterpret_cast< wxDC * >(argp1);
14854 ecode2 = SWIG_AsVal_int(obj1, &val2);
14855 if (!SWIG_IsOK(ecode2)) {
14856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14857 }
14858 arg2 = static_cast< int >(val2);
14859 ecode3 = SWIG_AsVal_int(obj2, &val3);
14860 if (!SWIG_IsOK(ecode3)) {
14861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14862 }
14863 arg3 = static_cast< int >(val3);
14864 ecode4 = SWIG_AsVal_int(obj3, &val4);
14865 if (!SWIG_IsOK(ecode4)) {
14866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14867 }
14868 arg4 = static_cast< int >(val4);
14869 ecode5 = SWIG_AsVal_int(obj4, &val5);
14870 if (!SWIG_IsOK(ecode5)) {
14871 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14872 }
14873 arg5 = static_cast< int >(val5);
14874 {
14875 PyThreadState* __tstate = wxPyBeginAllowThreads();
14876 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14877 wxPyEndAllowThreads(__tstate);
14878 if (PyErr_Occurred()) SWIG_fail;
14879 }
14880 resultobj = SWIG_Py_Void();
14881 return resultobj;
14882fail:
14883 return NULL;
14884}
14885
14886
14887SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14888 PyObject *resultobj = 0;
14889 wxDC *arg1 = (wxDC *) 0 ;
14890 wxPoint *arg2 = 0 ;
14891 wxPoint *arg3 = 0 ;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 wxPoint temp2 ;
14895 wxPoint temp3 ;
14896 PyObject * obj0 = 0 ;
14897 PyObject * obj1 = 0 ;
14898 PyObject * obj2 = 0 ;
14899 char * kwnames[] = {
14900 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14901 };
14902
14903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14907 }
14908 arg1 = reinterpret_cast< wxDC * >(argp1);
14909 {
14910 arg2 = &temp2;
14911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14912 }
14913 {
14914 arg3 = &temp3;
14915 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14916 }
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14920 wxPyEndAllowThreads(__tstate);
14921 if (PyErr_Occurred()) SWIG_fail;
14922 }
14923 resultobj = SWIG_Py_Void();
14924 return resultobj;
14925fail:
14926 return NULL;
14927}
14928
14929
14930SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14931 PyObject *resultobj = 0;
14932 wxDC *arg1 = (wxDC *) 0 ;
14933 int arg2 ;
14934 int arg3 ;
14935 void *argp1 = 0 ;
14936 int res1 = 0 ;
14937 int val2 ;
14938 int ecode2 = 0 ;
14939 int val3 ;
14940 int ecode3 = 0 ;
14941 PyObject * obj0 = 0 ;
14942 PyObject * obj1 = 0 ;
14943 PyObject * obj2 = 0 ;
14944 char * kwnames[] = {
14945 (char *) "self",(char *) "x",(char *) "y", NULL
14946 };
14947
14948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14950 if (!SWIG_IsOK(res1)) {
14951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14952 }
14953 arg1 = reinterpret_cast< wxDC * >(argp1);
14954 ecode2 = SWIG_AsVal_int(obj1, &val2);
14955 if (!SWIG_IsOK(ecode2)) {
14956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14957 }
14958 arg2 = static_cast< int >(val2);
14959 ecode3 = SWIG_AsVal_int(obj2, &val3);
14960 if (!SWIG_IsOK(ecode3)) {
14961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14962 }
14963 arg3 = static_cast< int >(val3);
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 (arg1)->CrossHair(arg2,arg3);
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 resultobj = SWIG_Py_Void();
14971 return resultobj;
14972fail:
14973 return NULL;
14974}
14975
14976
14977SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14978 PyObject *resultobj = 0;
14979 wxDC *arg1 = (wxDC *) 0 ;
14980 wxPoint *arg2 = 0 ;
14981 void *argp1 = 0 ;
14982 int res1 = 0 ;
14983 wxPoint temp2 ;
14984 PyObject * obj0 = 0 ;
14985 PyObject * obj1 = 0 ;
14986 char * kwnames[] = {
14987 (char *) "self",(char *) "pt", NULL
14988 };
14989
14990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14992 if (!SWIG_IsOK(res1)) {
14993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14994 }
14995 arg1 = reinterpret_cast< wxDC * >(argp1);
14996 {
14997 arg2 = &temp2;
14998 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14999 }
15000 {
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 (arg1)->CrossHair((wxPoint const &)*arg2);
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 resultobj = SWIG_Py_Void();
15007 return resultobj;
15008fail:
15009 return NULL;
15010}
15011
15012
15013SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj = 0;
15015 wxDC *arg1 = (wxDC *) 0 ;
15016 int arg2 ;
15017 int arg3 ;
15018 int arg4 ;
15019 int arg5 ;
15020 int arg6 ;
15021 int arg7 ;
15022 void *argp1 = 0 ;
15023 int res1 = 0 ;
15024 int val2 ;
15025 int ecode2 = 0 ;
15026 int val3 ;
15027 int ecode3 = 0 ;
15028 int val4 ;
15029 int ecode4 = 0 ;
15030 int val5 ;
15031 int ecode5 = 0 ;
15032 int val6 ;
15033 int ecode6 = 0 ;
15034 int val7 ;
15035 int ecode7 = 0 ;
15036 PyObject * obj0 = 0 ;
15037 PyObject * obj1 = 0 ;
15038 PyObject * obj2 = 0 ;
15039 PyObject * obj3 = 0 ;
15040 PyObject * obj4 = 0 ;
15041 PyObject * obj5 = 0 ;
15042 PyObject * obj6 = 0 ;
15043 char * kwnames[] = {
15044 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15045 };
15046
15047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15049 if (!SWIG_IsOK(res1)) {
15050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15051 }
15052 arg1 = reinterpret_cast< wxDC * >(argp1);
15053 ecode2 = SWIG_AsVal_int(obj1, &val2);
15054 if (!SWIG_IsOK(ecode2)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15056 }
15057 arg2 = static_cast< int >(val2);
15058 ecode3 = SWIG_AsVal_int(obj2, &val3);
15059 if (!SWIG_IsOK(ecode3)) {
15060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15061 }
15062 arg3 = static_cast< int >(val3);
15063 ecode4 = SWIG_AsVal_int(obj3, &val4);
15064 if (!SWIG_IsOK(ecode4)) {
15065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15066 }
15067 arg4 = static_cast< int >(val4);
15068 ecode5 = SWIG_AsVal_int(obj4, &val5);
15069 if (!SWIG_IsOK(ecode5)) {
15070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15071 }
15072 arg5 = static_cast< int >(val5);
15073 ecode6 = SWIG_AsVal_int(obj5, &val6);
15074 if (!SWIG_IsOK(ecode6)) {
15075 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15076 }
15077 arg6 = static_cast< int >(val6);
15078 ecode7 = SWIG_AsVal_int(obj6, &val7);
15079 if (!SWIG_IsOK(ecode7)) {
15080 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15081 }
15082 arg7 = static_cast< int >(val7);
15083 {
15084 PyThreadState* __tstate = wxPyBeginAllowThreads();
15085 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15086 wxPyEndAllowThreads(__tstate);
15087 if (PyErr_Occurred()) SWIG_fail;
15088 }
15089 resultobj = SWIG_Py_Void();
15090 return resultobj;
15091fail:
15092 return NULL;
15093}
15094
15095
15096SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15097 PyObject *resultobj = 0;
15098 wxDC *arg1 = (wxDC *) 0 ;
15099 wxPoint *arg2 = 0 ;
15100 wxPoint *arg3 = 0 ;
15101 wxPoint *arg4 = 0 ;
15102 void *argp1 = 0 ;
15103 int res1 = 0 ;
15104 wxPoint temp2 ;
15105 wxPoint temp3 ;
15106 wxPoint temp4 ;
15107 PyObject * obj0 = 0 ;
15108 PyObject * obj1 = 0 ;
15109 PyObject * obj2 = 0 ;
15110 PyObject * obj3 = 0 ;
15111 char * kwnames[] = {
15112 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15113 };
15114
15115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15117 if (!SWIG_IsOK(res1)) {
15118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15119 }
15120 arg1 = reinterpret_cast< wxDC * >(argp1);
15121 {
15122 arg2 = &temp2;
15123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15124 }
15125 {
15126 arg3 = &temp3;
15127 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15128 }
15129 {
15130 arg4 = &temp4;
15131 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15132 }
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 resultobj = SWIG_Py_Void();
15140 return resultobj;
15141fail:
15142 return NULL;
15143}
15144
15145
15146SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15147 PyObject *resultobj = 0;
15148 wxDC *arg1 = (wxDC *) 0 ;
15149 int arg2 ;
15150 int arg3 ;
15151 int arg4 ;
15152 int arg5 ;
15153 void *argp1 = 0 ;
15154 int res1 = 0 ;
15155 int val2 ;
15156 int ecode2 = 0 ;
15157 int val3 ;
15158 int ecode3 = 0 ;
15159 int val4 ;
15160 int ecode4 = 0 ;
15161 int val5 ;
15162 int ecode5 = 0 ;
15163 PyObject * obj0 = 0 ;
15164 PyObject * obj1 = 0 ;
15165 PyObject * obj2 = 0 ;
15166 PyObject * obj3 = 0 ;
15167 PyObject * obj4 = 0 ;
15168 char * kwnames[] = {
15169 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15170 };
15171
15172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15174 if (!SWIG_IsOK(res1)) {
15175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15176 }
15177 arg1 = reinterpret_cast< wxDC * >(argp1);
15178 ecode2 = SWIG_AsVal_int(obj1, &val2);
15179 if (!SWIG_IsOK(ecode2)) {
15180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15181 }
15182 arg2 = static_cast< int >(val2);
15183 ecode3 = SWIG_AsVal_int(obj2, &val3);
15184 if (!SWIG_IsOK(ecode3)) {
15185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15186 }
15187 arg3 = static_cast< int >(val3);
15188 ecode4 = SWIG_AsVal_int(obj3, &val4);
15189 if (!SWIG_IsOK(ecode4)) {
15190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15191 }
15192 arg4 = static_cast< int >(val4);
15193 ecode5 = SWIG_AsVal_int(obj4, &val5);
15194 if (!SWIG_IsOK(ecode5)) {
15195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15196 }
15197 arg5 = static_cast< int >(val5);
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 resultobj = SWIG_Py_Void();
15205 return resultobj;
15206fail:
15207 return NULL;
15208}
15209
15210
15211SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15212 PyObject *resultobj = 0;
15213 wxDC *arg1 = (wxDC *) 0 ;
15214 wxRect *arg2 = 0 ;
15215 void *argp1 = 0 ;
15216 int res1 = 0 ;
15217 wxRect temp2 ;
15218 PyObject * obj0 = 0 ;
15219 PyObject * obj1 = 0 ;
15220 char * kwnames[] = {
15221 (char *) "self",(char *) "rect", NULL
15222 };
15223
15224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15226 if (!SWIG_IsOK(res1)) {
15227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15228 }
15229 arg1 = reinterpret_cast< wxDC * >(argp1);
15230 {
15231 arg2 = &temp2;
15232 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15233 }
15234 {
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_Py_Void();
15241 return resultobj;
15242fail:
15243 return NULL;
15244}
15245
15246
15247SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15248 PyObject *resultobj = 0;
15249 wxDC *arg1 = (wxDC *) 0 ;
15250 int arg2 ;
15251 int arg3 ;
15252 int arg4 ;
15253 int arg5 ;
15254 double arg6 ;
15255 double arg7 ;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 int val2 ;
15259 int ecode2 = 0 ;
15260 int val3 ;
15261 int ecode3 = 0 ;
15262 int val4 ;
15263 int ecode4 = 0 ;
15264 int val5 ;
15265 int ecode5 = 0 ;
15266 double val6 ;
15267 int ecode6 = 0 ;
15268 double val7 ;
15269 int ecode7 = 0 ;
15270 PyObject * obj0 = 0 ;
15271 PyObject * obj1 = 0 ;
15272 PyObject * obj2 = 0 ;
15273 PyObject * obj3 = 0 ;
15274 PyObject * obj4 = 0 ;
15275 PyObject * obj5 = 0 ;
15276 PyObject * obj6 = 0 ;
15277 char * kwnames[] = {
15278 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15279 };
15280
15281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15283 if (!SWIG_IsOK(res1)) {
15284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15285 }
15286 arg1 = reinterpret_cast< wxDC * >(argp1);
15287 ecode2 = SWIG_AsVal_int(obj1, &val2);
15288 if (!SWIG_IsOK(ecode2)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15290 }
15291 arg2 = static_cast< int >(val2);
15292 ecode3 = SWIG_AsVal_int(obj2, &val3);
15293 if (!SWIG_IsOK(ecode3)) {
15294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15295 }
15296 arg3 = static_cast< int >(val3);
15297 ecode4 = SWIG_AsVal_int(obj3, &val4);
15298 if (!SWIG_IsOK(ecode4)) {
15299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15300 }
15301 arg4 = static_cast< int >(val4);
15302 ecode5 = SWIG_AsVal_int(obj4, &val5);
15303 if (!SWIG_IsOK(ecode5)) {
15304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15305 }
15306 arg5 = static_cast< int >(val5);
15307 ecode6 = SWIG_AsVal_double(obj5, &val6);
15308 if (!SWIG_IsOK(ecode6)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15310 }
15311 arg6 = static_cast< double >(val6);
15312 ecode7 = SWIG_AsVal_double(obj6, &val7);
15313 if (!SWIG_IsOK(ecode7)) {
15314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15315 }
15316 arg7 = static_cast< double >(val7);
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 resultobj = SWIG_Py_Void();
15324 return resultobj;
15325fail:
15326 return NULL;
15327}
15328
15329
15330SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15331 PyObject *resultobj = 0;
15332 wxDC *arg1 = (wxDC *) 0 ;
15333 wxPoint *arg2 = 0 ;
15334 wxSize *arg3 = 0 ;
15335 double arg4 ;
15336 double arg5 ;
15337 void *argp1 = 0 ;
15338 int res1 = 0 ;
15339 wxPoint temp2 ;
15340 wxSize temp3 ;
15341 double val4 ;
15342 int ecode4 = 0 ;
15343 double val5 ;
15344 int ecode5 = 0 ;
15345 PyObject * obj0 = 0 ;
15346 PyObject * obj1 = 0 ;
15347 PyObject * obj2 = 0 ;
15348 PyObject * obj3 = 0 ;
15349 PyObject * obj4 = 0 ;
15350 char * kwnames[] = {
15351 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15352 };
15353
15354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15356 if (!SWIG_IsOK(res1)) {
15357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15358 }
15359 arg1 = reinterpret_cast< wxDC * >(argp1);
15360 {
15361 arg2 = &temp2;
15362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15363 }
15364 {
15365 arg3 = &temp3;
15366 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15367 }
15368 ecode4 = SWIG_AsVal_double(obj3, &val4);
15369 if (!SWIG_IsOK(ecode4)) {
15370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15371 }
15372 arg4 = static_cast< double >(val4);
15373 ecode5 = SWIG_AsVal_double(obj4, &val5);
15374 if (!SWIG_IsOK(ecode5)) {
15375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15376 }
15377 arg5 = static_cast< double >(val5);
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15381 wxPyEndAllowThreads(__tstate);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 resultobj = SWIG_Py_Void();
15385 return resultobj;
15386fail:
15387 return NULL;
15388}
15389
15390
15391SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15392 PyObject *resultobj = 0;
15393 wxDC *arg1 = (wxDC *) 0 ;
15394 int arg2 ;
15395 int arg3 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 int val2 ;
15399 int ecode2 = 0 ;
15400 int val3 ;
15401 int ecode3 = 0 ;
15402 PyObject * obj0 = 0 ;
15403 PyObject * obj1 = 0 ;
15404 PyObject * obj2 = 0 ;
15405 char * kwnames[] = {
15406 (char *) "self",(char *) "x",(char *) "y", NULL
15407 };
15408
15409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15411 if (!SWIG_IsOK(res1)) {
15412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15413 }
15414 arg1 = reinterpret_cast< wxDC * >(argp1);
15415 ecode2 = SWIG_AsVal_int(obj1, &val2);
15416 if (!SWIG_IsOK(ecode2)) {
15417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15418 }
15419 arg2 = static_cast< int >(val2);
15420 ecode3 = SWIG_AsVal_int(obj2, &val3);
15421 if (!SWIG_IsOK(ecode3)) {
15422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15423 }
15424 arg3 = static_cast< int >(val3);
15425 {
15426 PyThreadState* __tstate = wxPyBeginAllowThreads();
15427 (arg1)->DrawPoint(arg2,arg3);
15428 wxPyEndAllowThreads(__tstate);
15429 if (PyErr_Occurred()) SWIG_fail;
15430 }
15431 resultobj = SWIG_Py_Void();
15432 return resultobj;
15433fail:
15434 return NULL;
15435}
15436
15437
15438SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj = 0;
15440 wxDC *arg1 = (wxDC *) 0 ;
15441 wxPoint *arg2 = 0 ;
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 wxPoint temp2 ;
15445 PyObject * obj0 = 0 ;
15446 PyObject * obj1 = 0 ;
15447 char * kwnames[] = {
15448 (char *) "self",(char *) "pt", NULL
15449 };
15450
15451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15453 if (!SWIG_IsOK(res1)) {
15454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15455 }
15456 arg1 = reinterpret_cast< wxDC * >(argp1);
15457 {
15458 arg2 = &temp2;
15459 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15460 }
15461 {
15462 PyThreadState* __tstate = wxPyBeginAllowThreads();
15463 (arg1)->DrawPoint((wxPoint const &)*arg2);
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = SWIG_Py_Void();
15468 return resultobj;
15469fail:
15470 return NULL;
15471}
15472
15473
15474SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15475 PyObject *resultobj = 0;
15476 wxDC *arg1 = (wxDC *) 0 ;
15477 int arg2 ;
15478 int arg3 ;
15479 int arg4 ;
15480 int arg5 ;
15481 void *argp1 = 0 ;
15482 int res1 = 0 ;
15483 int val2 ;
15484 int ecode2 = 0 ;
15485 int val3 ;
15486 int ecode3 = 0 ;
15487 int val4 ;
15488 int ecode4 = 0 ;
15489 int val5 ;
15490 int ecode5 = 0 ;
15491 PyObject * obj0 = 0 ;
15492 PyObject * obj1 = 0 ;
15493 PyObject * obj2 = 0 ;
15494 PyObject * obj3 = 0 ;
15495 PyObject * obj4 = 0 ;
15496 char * kwnames[] = {
15497 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15498 };
15499
15500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15502 if (!SWIG_IsOK(res1)) {
15503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15504 }
15505 arg1 = reinterpret_cast< wxDC * >(argp1);
15506 ecode2 = SWIG_AsVal_int(obj1, &val2);
15507 if (!SWIG_IsOK(ecode2)) {
15508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15509 }
15510 arg2 = static_cast< int >(val2);
15511 ecode3 = SWIG_AsVal_int(obj2, &val3);
15512 if (!SWIG_IsOK(ecode3)) {
15513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15514 }
15515 arg3 = static_cast< int >(val3);
15516 ecode4 = SWIG_AsVal_int(obj3, &val4);
15517 if (!SWIG_IsOK(ecode4)) {
15518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15519 }
15520 arg4 = static_cast< int >(val4);
15521 ecode5 = SWIG_AsVal_int(obj4, &val5);
15522 if (!SWIG_IsOK(ecode5)) {
15523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15524 }
15525 arg5 = static_cast< int >(val5);
15526 {
15527 PyThreadState* __tstate = wxPyBeginAllowThreads();
15528 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 resultobj = SWIG_Py_Void();
15533 return resultobj;
15534fail:
15535 return NULL;
15536}
15537
15538
15539SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15540 PyObject *resultobj = 0;
15541 wxDC *arg1 = (wxDC *) 0 ;
15542 wxRect *arg2 = 0 ;
15543 void *argp1 = 0 ;
15544 int res1 = 0 ;
15545 wxRect temp2 ;
15546 PyObject * obj0 = 0 ;
15547 PyObject * obj1 = 0 ;
15548 char * kwnames[] = {
15549 (char *) "self",(char *) "rect", NULL
15550 };
15551
15552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15554 if (!SWIG_IsOK(res1)) {
15555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15556 }
15557 arg1 = reinterpret_cast< wxDC * >(argp1);
15558 {
15559 arg2 = &temp2;
15560 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15561 }
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 (arg1)->DrawRectangle((wxRect const &)*arg2);
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_Py_Void();
15569 return resultobj;
15570fail:
15571 return NULL;
15572}
15573
15574
15575SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj = 0;
15577 wxDC *arg1 = (wxDC *) 0 ;
15578 wxPoint *arg2 = 0 ;
15579 wxSize *arg3 = 0 ;
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 wxPoint temp2 ;
15583 wxSize temp3 ;
15584 PyObject * obj0 = 0 ;
15585 PyObject * obj1 = 0 ;
15586 PyObject * obj2 = 0 ;
15587 char * kwnames[] = {
15588 (char *) "self",(char *) "pt",(char *) "sz", NULL
15589 };
15590
15591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15593 if (!SWIG_IsOK(res1)) {
15594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15595 }
15596 arg1 = reinterpret_cast< wxDC * >(argp1);
15597 {
15598 arg2 = &temp2;
15599 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15600 }
15601 {
15602 arg3 = &temp3;
15603 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15604 }
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
15611 resultobj = SWIG_Py_Void();
15612 return resultobj;
15613fail:
15614 return NULL;
15615}
15616
15617
15618SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj = 0;
15620 wxDC *arg1 = (wxDC *) 0 ;
15621 int arg2 ;
15622 int arg3 ;
15623 int arg4 ;
15624 int arg5 ;
15625 double arg6 ;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 int val2 ;
15629 int ecode2 = 0 ;
15630 int val3 ;
15631 int ecode3 = 0 ;
15632 int val4 ;
15633 int ecode4 = 0 ;
15634 int val5 ;
15635 int ecode5 = 0 ;
15636 double val6 ;
15637 int ecode6 = 0 ;
15638 PyObject * obj0 = 0 ;
15639 PyObject * obj1 = 0 ;
15640 PyObject * obj2 = 0 ;
15641 PyObject * obj3 = 0 ;
15642 PyObject * obj4 = 0 ;
15643 PyObject * obj5 = 0 ;
15644 char * kwnames[] = {
15645 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15646 };
15647
15648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15650 if (!SWIG_IsOK(res1)) {
15651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15652 }
15653 arg1 = reinterpret_cast< wxDC * >(argp1);
15654 ecode2 = SWIG_AsVal_int(obj1, &val2);
15655 if (!SWIG_IsOK(ecode2)) {
15656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15657 }
15658 arg2 = static_cast< int >(val2);
15659 ecode3 = SWIG_AsVal_int(obj2, &val3);
15660 if (!SWIG_IsOK(ecode3)) {
15661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15662 }
15663 arg3 = static_cast< int >(val3);
15664 ecode4 = SWIG_AsVal_int(obj3, &val4);
15665 if (!SWIG_IsOK(ecode4)) {
15666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15667 }
15668 arg4 = static_cast< int >(val4);
15669 ecode5 = SWIG_AsVal_int(obj4, &val5);
15670 if (!SWIG_IsOK(ecode5)) {
15671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15672 }
15673 arg5 = static_cast< int >(val5);
15674 ecode6 = SWIG_AsVal_double(obj5, &val6);
15675 if (!SWIG_IsOK(ecode6)) {
15676 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15677 }
15678 arg6 = static_cast< double >(val6);
15679 {
15680 PyThreadState* __tstate = wxPyBeginAllowThreads();
15681 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15682 wxPyEndAllowThreads(__tstate);
15683 if (PyErr_Occurred()) SWIG_fail;
15684 }
15685 resultobj = SWIG_Py_Void();
15686 return resultobj;
15687fail:
15688 return NULL;
15689}
15690
15691
15692SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15693 PyObject *resultobj = 0;
15694 wxDC *arg1 = (wxDC *) 0 ;
15695 wxRect *arg2 = 0 ;
15696 double arg3 ;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 wxRect temp2 ;
15700 double val3 ;
15701 int ecode3 = 0 ;
15702 PyObject * obj0 = 0 ;
15703 PyObject * obj1 = 0 ;
15704 PyObject * obj2 = 0 ;
15705 char * kwnames[] = {
15706 (char *) "self",(char *) "r",(char *) "radius", NULL
15707 };
15708
15709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15711 if (!SWIG_IsOK(res1)) {
15712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15713 }
15714 arg1 = reinterpret_cast< wxDC * >(argp1);
15715 {
15716 arg2 = &temp2;
15717 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15718 }
15719 ecode3 = SWIG_AsVal_double(obj2, &val3);
15720 if (!SWIG_IsOK(ecode3)) {
15721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15722 }
15723 arg3 = static_cast< double >(val3);
15724 {
15725 PyThreadState* __tstate = wxPyBeginAllowThreads();
15726 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15727 wxPyEndAllowThreads(__tstate);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 resultobj = SWIG_Py_Void();
15731 return resultobj;
15732fail:
15733 return NULL;
15734}
15735
15736
15737SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15738 PyObject *resultobj = 0;
15739 wxDC *arg1 = (wxDC *) 0 ;
15740 wxPoint *arg2 = 0 ;
15741 wxSize *arg3 = 0 ;
15742 double arg4 ;
15743 void *argp1 = 0 ;
15744 int res1 = 0 ;
15745 wxPoint temp2 ;
15746 wxSize temp3 ;
15747 double val4 ;
15748 int ecode4 = 0 ;
15749 PyObject * obj0 = 0 ;
15750 PyObject * obj1 = 0 ;
15751 PyObject * obj2 = 0 ;
15752 PyObject * obj3 = 0 ;
15753 char * kwnames[] = {
15754 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15755 };
15756
15757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15759 if (!SWIG_IsOK(res1)) {
15760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15761 }
15762 arg1 = reinterpret_cast< wxDC * >(argp1);
15763 {
15764 arg2 = &temp2;
15765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15766 }
15767 {
15768 arg3 = &temp3;
15769 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15770 }
15771 ecode4 = SWIG_AsVal_double(obj3, &val4);
15772 if (!SWIG_IsOK(ecode4)) {
15773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15774 }
15775 arg4 = static_cast< double >(val4);
15776 {
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15779 wxPyEndAllowThreads(__tstate);
15780 if (PyErr_Occurred()) SWIG_fail;
15781 }
15782 resultobj = SWIG_Py_Void();
15783 return resultobj;
15784fail:
15785 return NULL;
15786}
15787
15788
15789SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15790 PyObject *resultobj = 0;
15791 wxDC *arg1 = (wxDC *) 0 ;
15792 int arg2 ;
15793 int arg3 ;
15794 int arg4 ;
15795 void *argp1 = 0 ;
15796 int res1 = 0 ;
15797 int val2 ;
15798 int ecode2 = 0 ;
15799 int val3 ;
15800 int ecode3 = 0 ;
15801 int val4 ;
15802 int ecode4 = 0 ;
15803 PyObject * obj0 = 0 ;
15804 PyObject * obj1 = 0 ;
15805 PyObject * obj2 = 0 ;
15806 PyObject * obj3 = 0 ;
15807 char * kwnames[] = {
15808 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15809 };
15810
15811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15813 if (!SWIG_IsOK(res1)) {
15814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15815 }
15816 arg1 = reinterpret_cast< wxDC * >(argp1);
15817 ecode2 = SWIG_AsVal_int(obj1, &val2);
15818 if (!SWIG_IsOK(ecode2)) {
15819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15820 }
15821 arg2 = static_cast< int >(val2);
15822 ecode3 = SWIG_AsVal_int(obj2, &val3);
15823 if (!SWIG_IsOK(ecode3)) {
15824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15825 }
15826 arg3 = static_cast< int >(val3);
15827 ecode4 = SWIG_AsVal_int(obj3, &val4);
15828 if (!SWIG_IsOK(ecode4)) {
15829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15830 }
15831 arg4 = static_cast< int >(val4);
15832 {
15833 PyThreadState* __tstate = wxPyBeginAllowThreads();
15834 (arg1)->DrawCircle(arg2,arg3,arg4);
15835 wxPyEndAllowThreads(__tstate);
15836 if (PyErr_Occurred()) SWIG_fail;
15837 }
15838 resultobj = SWIG_Py_Void();
15839 return resultobj;
15840fail:
15841 return NULL;
15842}
15843
15844
15845SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15846 PyObject *resultobj = 0;
15847 wxDC *arg1 = (wxDC *) 0 ;
15848 wxPoint *arg2 = 0 ;
15849 int arg3 ;
15850 void *argp1 = 0 ;
15851 int res1 = 0 ;
15852 wxPoint temp2 ;
15853 int val3 ;
15854 int ecode3 = 0 ;
15855 PyObject * obj0 = 0 ;
15856 PyObject * obj1 = 0 ;
15857 PyObject * obj2 = 0 ;
15858 char * kwnames[] = {
15859 (char *) "self",(char *) "pt",(char *) "radius", NULL
15860 };
15861
15862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15864 if (!SWIG_IsOK(res1)) {
15865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15866 }
15867 arg1 = reinterpret_cast< wxDC * >(argp1);
15868 {
15869 arg2 = &temp2;
15870 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15871 }
15872 ecode3 = SWIG_AsVal_int(obj2, &val3);
15873 if (!SWIG_IsOK(ecode3)) {
15874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15875 }
15876 arg3 = static_cast< int >(val3);
15877 {
15878 PyThreadState* __tstate = wxPyBeginAllowThreads();
15879 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15880 wxPyEndAllowThreads(__tstate);
15881 if (PyErr_Occurred()) SWIG_fail;
15882 }
15883 resultobj = SWIG_Py_Void();
15884 return resultobj;
15885fail:
15886 return NULL;
15887}
15888
15889
15890SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15891 PyObject *resultobj = 0;
15892 wxDC *arg1 = (wxDC *) 0 ;
15893 int arg2 ;
15894 int arg3 ;
15895 int arg4 ;
15896 int arg5 ;
15897 void *argp1 = 0 ;
15898 int res1 = 0 ;
15899 int val2 ;
15900 int ecode2 = 0 ;
15901 int val3 ;
15902 int ecode3 = 0 ;
15903 int val4 ;
15904 int ecode4 = 0 ;
15905 int val5 ;
15906 int ecode5 = 0 ;
15907 PyObject * obj0 = 0 ;
15908 PyObject * obj1 = 0 ;
15909 PyObject * obj2 = 0 ;
15910 PyObject * obj3 = 0 ;
15911 PyObject * obj4 = 0 ;
15912 char * kwnames[] = {
15913 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15914 };
15915
15916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15918 if (!SWIG_IsOK(res1)) {
15919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15920 }
15921 arg1 = reinterpret_cast< wxDC * >(argp1);
15922 ecode2 = SWIG_AsVal_int(obj1, &val2);
15923 if (!SWIG_IsOK(ecode2)) {
15924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15925 }
15926 arg2 = static_cast< int >(val2);
15927 ecode3 = SWIG_AsVal_int(obj2, &val3);
15928 if (!SWIG_IsOK(ecode3)) {
15929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15930 }
15931 arg3 = static_cast< int >(val3);
15932 ecode4 = SWIG_AsVal_int(obj3, &val4);
15933 if (!SWIG_IsOK(ecode4)) {
15934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15935 }
15936 arg4 = static_cast< int >(val4);
15937 ecode5 = SWIG_AsVal_int(obj4, &val5);
15938 if (!SWIG_IsOK(ecode5)) {
15939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15940 }
15941 arg5 = static_cast< int >(val5);
15942 {
15943 PyThreadState* __tstate = wxPyBeginAllowThreads();
15944 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15945 wxPyEndAllowThreads(__tstate);
15946 if (PyErr_Occurred()) SWIG_fail;
15947 }
15948 resultobj = SWIG_Py_Void();
15949 return resultobj;
15950fail:
15951 return NULL;
15952}
15953
15954
15955SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15956 PyObject *resultobj = 0;
15957 wxDC *arg1 = (wxDC *) 0 ;
15958 wxRect *arg2 = 0 ;
15959 void *argp1 = 0 ;
15960 int res1 = 0 ;
15961 wxRect temp2 ;
15962 PyObject * obj0 = 0 ;
15963 PyObject * obj1 = 0 ;
15964 char * kwnames[] = {
15965 (char *) "self",(char *) "rect", NULL
15966 };
15967
15968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15970 if (!SWIG_IsOK(res1)) {
15971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15972 }
15973 arg1 = reinterpret_cast< wxDC * >(argp1);
15974 {
15975 arg2 = &temp2;
15976 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15977 }
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 (arg1)->DrawEllipse((wxRect const &)*arg2);
15981 wxPyEndAllowThreads(__tstate);
15982 if (PyErr_Occurred()) SWIG_fail;
15983 }
15984 resultobj = SWIG_Py_Void();
15985 return resultobj;
15986fail:
15987 return NULL;
15988}
15989
15990
15991SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15992 PyObject *resultobj = 0;
15993 wxDC *arg1 = (wxDC *) 0 ;
15994 wxPoint *arg2 = 0 ;
15995 wxSize *arg3 = 0 ;
15996 void *argp1 = 0 ;
15997 int res1 = 0 ;
15998 wxPoint temp2 ;
15999 wxSize temp3 ;
16000 PyObject * obj0 = 0 ;
16001 PyObject * obj1 = 0 ;
16002 PyObject * obj2 = 0 ;
16003 char * kwnames[] = {
16004 (char *) "self",(char *) "pt",(char *) "sz", NULL
16005 };
16006
16007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16009 if (!SWIG_IsOK(res1)) {
16010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16011 }
16012 arg1 = reinterpret_cast< wxDC * >(argp1);
16013 {
16014 arg2 = &temp2;
16015 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16016 }
16017 {
16018 arg3 = &temp3;
16019 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16020 }
16021 {
16022 PyThreadState* __tstate = wxPyBeginAllowThreads();
16023 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 resultobj = SWIG_Py_Void();
16028 return resultobj;
16029fail:
16030 return NULL;
16031}
16032
16033
16034SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16035 PyObject *resultobj = 0;
16036 wxDC *arg1 = (wxDC *) 0 ;
16037 wxIcon *arg2 = 0 ;
16038 int arg3 ;
16039 int arg4 ;
16040 void *argp1 = 0 ;
16041 int res1 = 0 ;
16042 void *argp2 = 0 ;
16043 int res2 = 0 ;
16044 int val3 ;
16045 int ecode3 = 0 ;
16046 int val4 ;
16047 int ecode4 = 0 ;
16048 PyObject * obj0 = 0 ;
16049 PyObject * obj1 = 0 ;
16050 PyObject * obj2 = 0 ;
16051 PyObject * obj3 = 0 ;
16052 char * kwnames[] = {
16053 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16054 };
16055
16056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16058 if (!SWIG_IsOK(res1)) {
16059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16060 }
16061 arg1 = reinterpret_cast< wxDC * >(argp1);
16062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16063 if (!SWIG_IsOK(res2)) {
16064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16065 }
16066 if (!argp2) {
16067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16068 }
16069 arg2 = reinterpret_cast< wxIcon * >(argp2);
16070 ecode3 = SWIG_AsVal_int(obj2, &val3);
16071 if (!SWIG_IsOK(ecode3)) {
16072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16073 }
16074 arg3 = static_cast< int >(val3);
16075 ecode4 = SWIG_AsVal_int(obj3, &val4);
16076 if (!SWIG_IsOK(ecode4)) {
16077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16078 }
16079 arg4 = static_cast< int >(val4);
16080 {
16081 PyThreadState* __tstate = wxPyBeginAllowThreads();
16082 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 resultobj = SWIG_Py_Void();
16087 return resultobj;
16088fail:
16089 return NULL;
16090}
16091
16092
16093SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16094 PyObject *resultobj = 0;
16095 wxDC *arg1 = (wxDC *) 0 ;
16096 wxIcon *arg2 = 0 ;
16097 wxPoint *arg3 = 0 ;
16098 void *argp1 = 0 ;
16099 int res1 = 0 ;
16100 void *argp2 = 0 ;
16101 int res2 = 0 ;
16102 wxPoint temp3 ;
16103 PyObject * obj0 = 0 ;
16104 PyObject * obj1 = 0 ;
16105 PyObject * obj2 = 0 ;
16106 char * kwnames[] = {
16107 (char *) "self",(char *) "icon",(char *) "pt", NULL
16108 };
16109
16110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16112 if (!SWIG_IsOK(res1)) {
16113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16114 }
16115 arg1 = reinterpret_cast< wxDC * >(argp1);
16116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16117 if (!SWIG_IsOK(res2)) {
16118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16119 }
16120 if (!argp2) {
16121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16122 }
16123 arg2 = reinterpret_cast< wxIcon * >(argp2);
16124 {
16125 arg3 = &temp3;
16126 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16127 }
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16131 wxPyEndAllowThreads(__tstate);
16132 if (PyErr_Occurred()) SWIG_fail;
16133 }
16134 resultobj = SWIG_Py_Void();
16135 return resultobj;
16136fail:
16137 return NULL;
16138}
16139
16140
16141SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16142 PyObject *resultobj = 0;
16143 wxDC *arg1 = (wxDC *) 0 ;
16144 wxBitmap *arg2 = 0 ;
16145 int arg3 ;
16146 int arg4 ;
16147 bool arg5 = (bool) false ;
16148 void *argp1 = 0 ;
16149 int res1 = 0 ;
16150 void *argp2 = 0 ;
16151 int res2 = 0 ;
16152 int val3 ;
16153 int ecode3 = 0 ;
16154 int val4 ;
16155 int ecode4 = 0 ;
16156 bool val5 ;
16157 int ecode5 = 0 ;
16158 PyObject * obj0 = 0 ;
16159 PyObject * obj1 = 0 ;
16160 PyObject * obj2 = 0 ;
16161 PyObject * obj3 = 0 ;
16162 PyObject * obj4 = 0 ;
16163 char * kwnames[] = {
16164 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16165 };
16166
16167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16169 if (!SWIG_IsOK(res1)) {
16170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16171 }
16172 arg1 = reinterpret_cast< wxDC * >(argp1);
16173 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16174 if (!SWIG_IsOK(res2)) {
16175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16176 }
16177 if (!argp2) {
16178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16179 }
16180 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16181 ecode3 = SWIG_AsVal_int(obj2, &val3);
16182 if (!SWIG_IsOK(ecode3)) {
16183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16184 }
16185 arg3 = static_cast< int >(val3);
16186 ecode4 = SWIG_AsVal_int(obj3, &val4);
16187 if (!SWIG_IsOK(ecode4)) {
16188 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16189 }
16190 arg4 = static_cast< int >(val4);
16191 if (obj4) {
16192 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16193 if (!SWIG_IsOK(ecode5)) {
16194 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16195 }
16196 arg5 = static_cast< bool >(val5);
16197 }
16198 {
16199 PyThreadState* __tstate = wxPyBeginAllowThreads();
16200 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16201 wxPyEndAllowThreads(__tstate);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 }
16204 resultobj = SWIG_Py_Void();
16205 return resultobj;
16206fail:
16207 return NULL;
16208}
16209
16210
16211SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16212 PyObject *resultobj = 0;
16213 wxDC *arg1 = (wxDC *) 0 ;
16214 wxBitmap *arg2 = 0 ;
16215 wxPoint *arg3 = 0 ;
16216 bool arg4 = (bool) false ;
16217 void *argp1 = 0 ;
16218 int res1 = 0 ;
16219 void *argp2 = 0 ;
16220 int res2 = 0 ;
16221 wxPoint temp3 ;
16222 bool val4 ;
16223 int ecode4 = 0 ;
16224 PyObject * obj0 = 0 ;
16225 PyObject * obj1 = 0 ;
16226 PyObject * obj2 = 0 ;
16227 PyObject * obj3 = 0 ;
16228 char * kwnames[] = {
16229 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16230 };
16231
16232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16234 if (!SWIG_IsOK(res1)) {
16235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16236 }
16237 arg1 = reinterpret_cast< wxDC * >(argp1);
16238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16239 if (!SWIG_IsOK(res2)) {
16240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16241 }
16242 if (!argp2) {
16243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16244 }
16245 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16246 {
16247 arg3 = &temp3;
16248 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16249 }
16250 if (obj3) {
16251 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16252 if (!SWIG_IsOK(ecode4)) {
16253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16254 }
16255 arg4 = static_cast< bool >(val4);
16256 }
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16260 wxPyEndAllowThreads(__tstate);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 resultobj = SWIG_Py_Void();
16264 return resultobj;
16265fail:
16266 return NULL;
16267}
16268
16269
16270SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16271 PyObject *resultobj = 0;
16272 wxDC *arg1 = (wxDC *) 0 ;
16273 wxString *arg2 = 0 ;
16274 int arg3 ;
16275 int arg4 ;
16276 void *argp1 = 0 ;
16277 int res1 = 0 ;
16278 bool temp2 = false ;
16279 int val3 ;
16280 int ecode3 = 0 ;
16281 int val4 ;
16282 int ecode4 = 0 ;
16283 PyObject * obj0 = 0 ;
16284 PyObject * obj1 = 0 ;
16285 PyObject * obj2 = 0 ;
16286 PyObject * obj3 = 0 ;
16287 char * kwnames[] = {
16288 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16289 };
16290
16291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16293 if (!SWIG_IsOK(res1)) {
16294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16295 }
16296 arg1 = reinterpret_cast< wxDC * >(argp1);
16297 {
16298 arg2 = wxString_in_helper(obj1);
16299 if (arg2 == NULL) SWIG_fail;
16300 temp2 = true;
16301 }
16302 ecode3 = SWIG_AsVal_int(obj2, &val3);
16303 if (!SWIG_IsOK(ecode3)) {
16304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16305 }
16306 arg3 = static_cast< int >(val3);
16307 ecode4 = SWIG_AsVal_int(obj3, &val4);
16308 if (!SWIG_IsOK(ecode4)) {
16309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16310 }
16311 arg4 = static_cast< int >(val4);
16312 {
16313 PyThreadState* __tstate = wxPyBeginAllowThreads();
16314 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16315 wxPyEndAllowThreads(__tstate);
16316 if (PyErr_Occurred()) SWIG_fail;
16317 }
16318 resultobj = SWIG_Py_Void();
16319 {
16320 if (temp2)
16321 delete arg2;
16322 }
16323 return resultobj;
16324fail:
16325 {
16326 if (temp2)
16327 delete arg2;
16328 }
16329 return NULL;
16330}
16331
16332
16333SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16334 PyObject *resultobj = 0;
16335 wxDC *arg1 = (wxDC *) 0 ;
16336 wxString *arg2 = 0 ;
16337 wxPoint *arg3 = 0 ;
16338 void *argp1 = 0 ;
16339 int res1 = 0 ;
16340 bool temp2 = false ;
16341 wxPoint temp3 ;
16342 PyObject * obj0 = 0 ;
16343 PyObject * obj1 = 0 ;
16344 PyObject * obj2 = 0 ;
16345 char * kwnames[] = {
16346 (char *) "self",(char *) "text",(char *) "pt", NULL
16347 };
16348
16349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16351 if (!SWIG_IsOK(res1)) {
16352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16353 }
16354 arg1 = reinterpret_cast< wxDC * >(argp1);
16355 {
16356 arg2 = wxString_in_helper(obj1);
16357 if (arg2 == NULL) SWIG_fail;
16358 temp2 = true;
16359 }
16360 {
16361 arg3 = &temp3;
16362 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16363 }
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16367 wxPyEndAllowThreads(__tstate);
16368 if (PyErr_Occurred()) SWIG_fail;
16369 }
16370 resultobj = SWIG_Py_Void();
16371 {
16372 if (temp2)
16373 delete arg2;
16374 }
16375 return resultobj;
16376fail:
16377 {
16378 if (temp2)
16379 delete arg2;
16380 }
16381 return NULL;
16382}
16383
16384
16385SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj = 0;
16387 wxDC *arg1 = (wxDC *) 0 ;
16388 wxString *arg2 = 0 ;
16389 int arg3 ;
16390 int arg4 ;
16391 double arg5 ;
16392 void *argp1 = 0 ;
16393 int res1 = 0 ;
16394 bool temp2 = false ;
16395 int val3 ;
16396 int ecode3 = 0 ;
16397 int val4 ;
16398 int ecode4 = 0 ;
16399 double val5 ;
16400 int ecode5 = 0 ;
16401 PyObject * obj0 = 0 ;
16402 PyObject * obj1 = 0 ;
16403 PyObject * obj2 = 0 ;
16404 PyObject * obj3 = 0 ;
16405 PyObject * obj4 = 0 ;
16406 char * kwnames[] = {
16407 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16408 };
16409
16410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16412 if (!SWIG_IsOK(res1)) {
16413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16414 }
16415 arg1 = reinterpret_cast< wxDC * >(argp1);
16416 {
16417 arg2 = wxString_in_helper(obj1);
16418 if (arg2 == NULL) SWIG_fail;
16419 temp2 = true;
16420 }
16421 ecode3 = SWIG_AsVal_int(obj2, &val3);
16422 if (!SWIG_IsOK(ecode3)) {
16423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16424 }
16425 arg3 = static_cast< int >(val3);
16426 ecode4 = SWIG_AsVal_int(obj3, &val4);
16427 if (!SWIG_IsOK(ecode4)) {
16428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16429 }
16430 arg4 = static_cast< int >(val4);
16431 ecode5 = SWIG_AsVal_double(obj4, &val5);
16432 if (!SWIG_IsOK(ecode5)) {
16433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16434 }
16435 arg5 = static_cast< double >(val5);
16436 {
16437 PyThreadState* __tstate = wxPyBeginAllowThreads();
16438 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 resultobj = SWIG_Py_Void();
16443 {
16444 if (temp2)
16445 delete arg2;
16446 }
16447 return resultobj;
16448fail:
16449 {
16450 if (temp2)
16451 delete arg2;
16452 }
16453 return NULL;
16454}
16455
16456
16457SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16458 PyObject *resultobj = 0;
16459 wxDC *arg1 = (wxDC *) 0 ;
16460 wxString *arg2 = 0 ;
16461 wxPoint *arg3 = 0 ;
16462 double arg4 ;
16463 void *argp1 = 0 ;
16464 int res1 = 0 ;
16465 bool temp2 = false ;
16466 wxPoint temp3 ;
16467 double val4 ;
16468 int ecode4 = 0 ;
16469 PyObject * obj0 = 0 ;
16470 PyObject * obj1 = 0 ;
16471 PyObject * obj2 = 0 ;
16472 PyObject * obj3 = 0 ;
16473 char * kwnames[] = {
16474 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16475 };
16476
16477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16479 if (!SWIG_IsOK(res1)) {
16480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16481 }
16482 arg1 = reinterpret_cast< wxDC * >(argp1);
16483 {
16484 arg2 = wxString_in_helper(obj1);
16485 if (arg2 == NULL) SWIG_fail;
16486 temp2 = true;
16487 }
16488 {
16489 arg3 = &temp3;
16490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16491 }
16492 ecode4 = SWIG_AsVal_double(obj3, &val4);
16493 if (!SWIG_IsOK(ecode4)) {
16494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16495 }
16496 arg4 = static_cast< double >(val4);
16497 {
16498 PyThreadState* __tstate = wxPyBeginAllowThreads();
16499 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16500 wxPyEndAllowThreads(__tstate);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 resultobj = SWIG_Py_Void();
16504 {
16505 if (temp2)
16506 delete arg2;
16507 }
16508 return resultobj;
16509fail:
16510 {
16511 if (temp2)
16512 delete arg2;
16513 }
16514 return NULL;
16515}
16516
16517
16518SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16519 PyObject *resultobj = 0;
16520 wxDC *arg1 = (wxDC *) 0 ;
16521 int arg2 ;
16522 int arg3 ;
16523 int arg4 ;
16524 int arg5 ;
16525 wxDC *arg6 = (wxDC *) 0 ;
16526 int arg7 ;
16527 int arg8 ;
16528 int arg9 = (int) wxCOPY ;
16529 bool arg10 = (bool) false ;
16530 int arg11 = (int) -1 ;
16531 int arg12 = (int) -1 ;
16532 bool result;
16533 void *argp1 = 0 ;
16534 int res1 = 0 ;
16535 int val2 ;
16536 int ecode2 = 0 ;
16537 int val3 ;
16538 int ecode3 = 0 ;
16539 int val4 ;
16540 int ecode4 = 0 ;
16541 int val5 ;
16542 int ecode5 = 0 ;
16543 void *argp6 = 0 ;
16544 int res6 = 0 ;
16545 int val7 ;
16546 int ecode7 = 0 ;
16547 int val8 ;
16548 int ecode8 = 0 ;
16549 int val9 ;
16550 int ecode9 = 0 ;
16551 bool val10 ;
16552 int ecode10 = 0 ;
16553 int val11 ;
16554 int ecode11 = 0 ;
16555 int val12 ;
16556 int ecode12 = 0 ;
16557 PyObject * obj0 = 0 ;
16558 PyObject * obj1 = 0 ;
16559 PyObject * obj2 = 0 ;
16560 PyObject * obj3 = 0 ;
16561 PyObject * obj4 = 0 ;
16562 PyObject * obj5 = 0 ;
16563 PyObject * obj6 = 0 ;
16564 PyObject * obj7 = 0 ;
16565 PyObject * obj8 = 0 ;
16566 PyObject * obj9 = 0 ;
16567 PyObject * obj10 = 0 ;
16568 PyObject * obj11 = 0 ;
16569 char * kwnames[] = {
16570 (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
16571 };
16572
16573 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;
16574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16575 if (!SWIG_IsOK(res1)) {
16576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16577 }
16578 arg1 = reinterpret_cast< wxDC * >(argp1);
16579 ecode2 = SWIG_AsVal_int(obj1, &val2);
16580 if (!SWIG_IsOK(ecode2)) {
16581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16582 }
16583 arg2 = static_cast< int >(val2);
16584 ecode3 = SWIG_AsVal_int(obj2, &val3);
16585 if (!SWIG_IsOK(ecode3)) {
16586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16587 }
16588 arg3 = static_cast< int >(val3);
16589 ecode4 = SWIG_AsVal_int(obj3, &val4);
16590 if (!SWIG_IsOK(ecode4)) {
16591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16592 }
16593 arg4 = static_cast< int >(val4);
16594 ecode5 = SWIG_AsVal_int(obj4, &val5);
16595 if (!SWIG_IsOK(ecode5)) {
16596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16597 }
16598 arg5 = static_cast< int >(val5);
16599 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16600 if (!SWIG_IsOK(res6)) {
16601 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16602 }
16603 arg6 = reinterpret_cast< wxDC * >(argp6);
16604 ecode7 = SWIG_AsVal_int(obj6, &val7);
16605 if (!SWIG_IsOK(ecode7)) {
16606 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16607 }
16608 arg7 = static_cast< int >(val7);
16609 ecode8 = SWIG_AsVal_int(obj7, &val8);
16610 if (!SWIG_IsOK(ecode8)) {
16611 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16612 }
16613 arg8 = static_cast< int >(val8);
16614 if (obj8) {
16615 ecode9 = SWIG_AsVal_int(obj8, &val9);
16616 if (!SWIG_IsOK(ecode9)) {
16617 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16618 }
16619 arg9 = static_cast< int >(val9);
16620 }
16621 if (obj9) {
16622 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16623 if (!SWIG_IsOK(ecode10)) {
16624 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16625 }
16626 arg10 = static_cast< bool >(val10);
16627 }
16628 if (obj10) {
16629 ecode11 = SWIG_AsVal_int(obj10, &val11);
16630 if (!SWIG_IsOK(ecode11)) {
16631 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16632 }
16633 arg11 = static_cast< int >(val11);
16634 }
16635 if (obj11) {
16636 ecode12 = SWIG_AsVal_int(obj11, &val12);
16637 if (!SWIG_IsOK(ecode12)) {
16638 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16639 }
16640 arg12 = static_cast< int >(val12);
16641 }
16642 {
16643 PyThreadState* __tstate = wxPyBeginAllowThreads();
16644 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16645 wxPyEndAllowThreads(__tstate);
16646 if (PyErr_Occurred()) SWIG_fail;
16647 }
16648 {
16649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16650 }
16651 return resultobj;
16652fail:
16653 return NULL;
16654}
16655
16656
16657SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16658 PyObject *resultobj = 0;
16659 wxDC *arg1 = (wxDC *) 0 ;
16660 wxPoint *arg2 = 0 ;
16661 wxSize *arg3 = 0 ;
16662 wxDC *arg4 = (wxDC *) 0 ;
16663 wxPoint *arg5 = 0 ;
16664 int arg6 = (int) wxCOPY ;
16665 bool arg7 = (bool) false ;
16666 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16667 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16668 bool result;
16669 void *argp1 = 0 ;
16670 int res1 = 0 ;
16671 wxPoint temp2 ;
16672 wxSize temp3 ;
16673 void *argp4 = 0 ;
16674 int res4 = 0 ;
16675 wxPoint temp5 ;
16676 int val6 ;
16677 int ecode6 = 0 ;
16678 bool val7 ;
16679 int ecode7 = 0 ;
16680 wxPoint temp8 ;
16681 PyObject * obj0 = 0 ;
16682 PyObject * obj1 = 0 ;
16683 PyObject * obj2 = 0 ;
16684 PyObject * obj3 = 0 ;
16685 PyObject * obj4 = 0 ;
16686 PyObject * obj5 = 0 ;
16687 PyObject * obj6 = 0 ;
16688 PyObject * obj7 = 0 ;
16689 char * kwnames[] = {
16690 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16691 };
16692
16693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16695 if (!SWIG_IsOK(res1)) {
16696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16697 }
16698 arg1 = reinterpret_cast< wxDC * >(argp1);
16699 {
16700 arg2 = &temp2;
16701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16702 }
16703 {
16704 arg3 = &temp3;
16705 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16706 }
16707 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16708 if (!SWIG_IsOK(res4)) {
16709 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16710 }
16711 arg4 = reinterpret_cast< wxDC * >(argp4);
16712 {
16713 arg5 = &temp5;
16714 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16715 }
16716 if (obj5) {
16717 ecode6 = SWIG_AsVal_int(obj5, &val6);
16718 if (!SWIG_IsOK(ecode6)) {
16719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16720 }
16721 arg6 = static_cast< int >(val6);
16722 }
16723 if (obj6) {
16724 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16725 if (!SWIG_IsOK(ecode7)) {
16726 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16727 }
16728 arg7 = static_cast< bool >(val7);
16729 }
16730 if (obj7) {
36ed4f51 16731 {
1bd55598
RD
16732 arg8 = &temp8;
16733 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 16734 }
1bd55598
RD
16735 }
16736 {
16737 PyThreadState* __tstate = wxPyBeginAllowThreads();
16738 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16739 wxPyEndAllowThreads(__tstate);
16740 if (PyErr_Occurred()) SWIG_fail;
16741 }
16742 {
16743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16744 }
16745 return resultobj;
16746fail:
16747 return NULL;
16748}
16749
16750
16751SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj = 0;
16753 wxDC *arg1 = (wxDC *) 0 ;
16754 int arg2 ;
16755 int arg3 ;
16756 int arg4 ;
16757 int arg5 ;
16758 void *argp1 = 0 ;
16759 int res1 = 0 ;
16760 int val2 ;
16761 int ecode2 = 0 ;
16762 int val3 ;
16763 int ecode3 = 0 ;
16764 int val4 ;
16765 int ecode4 = 0 ;
16766 int val5 ;
16767 int ecode5 = 0 ;
16768 PyObject * obj0 = 0 ;
16769 PyObject * obj1 = 0 ;
16770 PyObject * obj2 = 0 ;
16771 PyObject * obj3 = 0 ;
16772 PyObject * obj4 = 0 ;
16773 char * kwnames[] = {
16774 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16775 };
16776
16777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16779 if (!SWIG_IsOK(res1)) {
16780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16781 }
16782 arg1 = reinterpret_cast< wxDC * >(argp1);
16783 ecode2 = SWIG_AsVal_int(obj1, &val2);
16784 if (!SWIG_IsOK(ecode2)) {
16785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16786 }
16787 arg2 = static_cast< int >(val2);
16788 ecode3 = SWIG_AsVal_int(obj2, &val3);
16789 if (!SWIG_IsOK(ecode3)) {
16790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16791 }
16792 arg3 = static_cast< int >(val3);
16793 ecode4 = SWIG_AsVal_int(obj3, &val4);
16794 if (!SWIG_IsOK(ecode4)) {
16795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16796 }
16797 arg4 = static_cast< int >(val4);
16798 ecode5 = SWIG_AsVal_int(obj4, &val5);
16799 if (!SWIG_IsOK(ecode5)) {
16800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16801 }
16802 arg5 = static_cast< int >(val5);
16803 {
16804 PyThreadState* __tstate = wxPyBeginAllowThreads();
16805 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16806 wxPyEndAllowThreads(__tstate);
16807 if (PyErr_Occurred()) SWIG_fail;
16808 }
16809 resultobj = SWIG_Py_Void();
16810 return resultobj;
16811fail:
16812 return NULL;
16813}
16814
16815
16816SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16817 PyObject *resultobj = 0;
16818 wxDC *arg1 = (wxDC *) 0 ;
16819 wxPoint *arg2 = 0 ;
16820 wxSize *arg3 = 0 ;
16821 void *argp1 = 0 ;
16822 int res1 = 0 ;
16823 wxPoint temp2 ;
16824 wxSize temp3 ;
16825 PyObject * obj0 = 0 ;
16826 PyObject * obj1 = 0 ;
16827 PyObject * obj2 = 0 ;
16828 char * kwnames[] = {
16829 (char *) "self",(char *) "pt",(char *) "sz", NULL
16830 };
16831
16832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16834 if (!SWIG_IsOK(res1)) {
16835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16836 }
16837 arg1 = reinterpret_cast< wxDC * >(argp1);
16838 {
16839 arg2 = &temp2;
16840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16841 }
16842 {
16843 arg3 = &temp3;
16844 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16845 }
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 resultobj = SWIG_Py_Void();
16853 return resultobj;
16854fail:
16855 return NULL;
16856}
16857
16858
16859SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16860 PyObject *resultobj = 0;
16861 wxDC *arg1 = (wxDC *) 0 ;
16862 wxRegion *arg2 = 0 ;
16863 void *argp1 = 0 ;
16864 int res1 = 0 ;
16865 void *argp2 = 0 ;
16866 int res2 = 0 ;
16867 PyObject * obj0 = 0 ;
16868 PyObject * obj1 = 0 ;
16869 char * kwnames[] = {
16870 (char *) "self",(char *) "region", NULL
16871 };
16872
16873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16877 }
16878 arg1 = reinterpret_cast< wxDC * >(argp1);
16879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16880 if (!SWIG_IsOK(res2)) {
16881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16882 }
16883 if (!argp2) {
16884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16885 }
16886 arg2 = reinterpret_cast< wxRegion * >(argp2);
16887 {
16888 PyThreadState* __tstate = wxPyBeginAllowThreads();
16889 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16890 wxPyEndAllowThreads(__tstate);
16891 if (PyErr_Occurred()) SWIG_fail;
16892 }
16893 resultobj = SWIG_Py_Void();
16894 return resultobj;
16895fail:
16896 return NULL;
16897}
16898
16899
16900SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16901 PyObject *resultobj = 0;
16902 wxDC *arg1 = (wxDC *) 0 ;
16903 wxRect *arg2 = 0 ;
16904 void *argp1 = 0 ;
16905 int res1 = 0 ;
16906 wxRect temp2 ;
16907 PyObject * obj0 = 0 ;
16908 PyObject * obj1 = 0 ;
16909 char * kwnames[] = {
16910 (char *) "self",(char *) "rect", NULL
16911 };
16912
16913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16915 if (!SWIG_IsOK(res1)) {
16916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16917 }
16918 arg1 = reinterpret_cast< wxDC * >(argp1);
16919 {
16920 arg2 = &temp2;
16921 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16922 }
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16926 wxPyEndAllowThreads(__tstate);
16927 if (PyErr_Occurred()) SWIG_fail;
16928 }
16929 resultobj = SWIG_Py_Void();
16930 return resultobj;
16931fail:
16932 return NULL;
16933}
16934
16935
16936SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16937 PyObject *resultobj = 0;
16938 wxDC *arg1 = (wxDC *) 0 ;
16939 int arg2 ;
16940 wxPoint *arg3 = (wxPoint *) 0 ;
16941 int arg4 = (int) 0 ;
16942 int arg5 = (int) 0 ;
16943 void *argp1 = 0 ;
16944 int res1 = 0 ;
16945 int val4 ;
16946 int ecode4 = 0 ;
16947 int val5 ;
16948 int ecode5 = 0 ;
16949 PyObject * obj0 = 0 ;
16950 PyObject * obj1 = 0 ;
16951 PyObject * obj2 = 0 ;
16952 PyObject * obj3 = 0 ;
16953 char * kwnames[] = {
16954 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16955 };
16956
16957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16959 if (!SWIG_IsOK(res1)) {
16960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16961 }
16962 arg1 = reinterpret_cast< wxDC * >(argp1);
16963 {
16964 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16965 if (arg3 == NULL) SWIG_fail;
16966 }
16967 if (obj2) {
16968 ecode4 = SWIG_AsVal_int(obj2, &val4);
16969 if (!SWIG_IsOK(ecode4)) {
16970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16971 }
16972 arg4 = static_cast< int >(val4);
16973 }
16974 if (obj3) {
16975 ecode5 = SWIG_AsVal_int(obj3, &val5);
16976 if (!SWIG_IsOK(ecode5)) {
16977 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16978 }
16979 arg5 = static_cast< int >(val5);
16980 }
16981 {
16982 PyThreadState* __tstate = wxPyBeginAllowThreads();
16983 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16984 wxPyEndAllowThreads(__tstate);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 resultobj = SWIG_Py_Void();
16988 {
16989 if (arg3) delete [] arg3;
16990 }
16991 return resultobj;
16992fail:
16993 {
16994 if (arg3) delete [] arg3;
16995 }
16996 return NULL;
16997}
16998
16999
17000SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17001 PyObject *resultobj = 0;
17002 wxDC *arg1 = (wxDC *) 0 ;
17003 int arg2 ;
17004 wxPoint *arg3 = (wxPoint *) 0 ;
17005 int arg4 = (int) 0 ;
17006 int arg5 = (int) 0 ;
17007 int arg6 = (int) wxODDEVEN_RULE ;
17008 void *argp1 = 0 ;
17009 int res1 = 0 ;
17010 int val4 ;
17011 int ecode4 = 0 ;
17012 int val5 ;
17013 int ecode5 = 0 ;
17014 int val6 ;
17015 int ecode6 = 0 ;
17016 PyObject * obj0 = 0 ;
17017 PyObject * obj1 = 0 ;
17018 PyObject * obj2 = 0 ;
17019 PyObject * obj3 = 0 ;
17020 PyObject * obj4 = 0 ;
17021 char * kwnames[] = {
17022 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17023 };
17024
17025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17027 if (!SWIG_IsOK(res1)) {
17028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17029 }
17030 arg1 = reinterpret_cast< wxDC * >(argp1);
17031 {
17032 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17033 if (arg3 == NULL) SWIG_fail;
17034 }
17035 if (obj2) {
17036 ecode4 = SWIG_AsVal_int(obj2, &val4);
17037 if (!SWIG_IsOK(ecode4)) {
17038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17039 }
17040 arg4 = static_cast< int >(val4);
17041 }
17042 if (obj3) {
17043 ecode5 = SWIG_AsVal_int(obj3, &val5);
17044 if (!SWIG_IsOK(ecode5)) {
17045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17046 }
17047 arg5 = static_cast< int >(val5);
17048 }
17049 if (obj4) {
17050 ecode6 = SWIG_AsVal_int(obj4, &val6);
17051 if (!SWIG_IsOK(ecode6)) {
17052 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17053 }
17054 arg6 = static_cast< int >(val6);
17055 }
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 resultobj = SWIG_Py_Void();
17063 {
17064 if (arg3) delete [] arg3;
17065 }
17066 return resultobj;
17067fail:
17068 {
17069 if (arg3) delete [] arg3;
17070 }
17071 return NULL;
17072}
17073
17074
17075SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj = 0;
17077 wxDC *arg1 = (wxDC *) 0 ;
17078 wxString *arg2 = 0 ;
17079 wxRect *arg3 = 0 ;
17080 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17081 int arg5 = (int) -1 ;
17082 void *argp1 = 0 ;
17083 int res1 = 0 ;
17084 bool temp2 = false ;
17085 wxRect temp3 ;
17086 int val4 ;
17087 int ecode4 = 0 ;
17088 int val5 ;
17089 int ecode5 = 0 ;
17090 PyObject * obj0 = 0 ;
17091 PyObject * obj1 = 0 ;
17092 PyObject * obj2 = 0 ;
17093 PyObject * obj3 = 0 ;
17094 PyObject * obj4 = 0 ;
17095 char * kwnames[] = {
17096 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17097 };
17098
17099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17101 if (!SWIG_IsOK(res1)) {
17102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17103 }
17104 arg1 = reinterpret_cast< wxDC * >(argp1);
17105 {
17106 arg2 = wxString_in_helper(obj1);
17107 if (arg2 == NULL) SWIG_fail;
17108 temp2 = true;
17109 }
17110 {
17111 arg3 = &temp3;
17112 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17113 }
17114 if (obj3) {
17115 ecode4 = SWIG_AsVal_int(obj3, &val4);
17116 if (!SWIG_IsOK(ecode4)) {
17117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17118 }
17119 arg4 = static_cast< int >(val4);
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_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17125 }
17126 arg5 = static_cast< int >(val5);
17127 }
17128 {
17129 PyThreadState* __tstate = wxPyBeginAllowThreads();
17130 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 resultobj = SWIG_Py_Void();
17135 {
17136 if (temp2)
17137 delete arg2;
17138 }
17139 return resultobj;
17140fail:
17141 {
17142 if (temp2)
17143 delete arg2;
17144 }
17145 return NULL;
17146}
17147
17148
17149SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17150 PyObject *resultobj = 0;
17151 wxDC *arg1 = (wxDC *) 0 ;
17152 wxString *arg2 = 0 ;
17153 wxBitmap *arg3 = 0 ;
17154 wxRect *arg4 = 0 ;
17155 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17156 int arg6 = (int) -1 ;
17157 wxRect result;
17158 void *argp1 = 0 ;
17159 int res1 = 0 ;
17160 bool temp2 = false ;
17161 void *argp3 = 0 ;
17162 int res3 = 0 ;
17163 wxRect temp4 ;
17164 int val5 ;
17165 int ecode5 = 0 ;
17166 int val6 ;
17167 int ecode6 = 0 ;
17168 PyObject * obj0 = 0 ;
17169 PyObject * obj1 = 0 ;
17170 PyObject * obj2 = 0 ;
17171 PyObject * obj3 = 0 ;
17172 PyObject * obj4 = 0 ;
17173 PyObject * obj5 = 0 ;
17174 char * kwnames[] = {
17175 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17176 };
17177
17178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17180 if (!SWIG_IsOK(res1)) {
17181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17182 }
17183 arg1 = reinterpret_cast< wxDC * >(argp1);
17184 {
17185 arg2 = wxString_in_helper(obj1);
17186 if (arg2 == NULL) SWIG_fail;
17187 temp2 = true;
17188 }
17189 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17190 if (!SWIG_IsOK(res3)) {
17191 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17192 }
17193 if (!argp3) {
17194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17195 }
17196 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17197 {
17198 arg4 = &temp4;
17199 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17200 }
17201 if (obj4) {
17202 ecode5 = SWIG_AsVal_int(obj4, &val5);
17203 if (!SWIG_IsOK(ecode5)) {
17204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17205 }
17206 arg5 = static_cast< int >(val5);
17207 }
17208 if (obj5) {
17209 ecode6 = SWIG_AsVal_int(obj5, &val6);
17210 if (!SWIG_IsOK(ecode6)) {
17211 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17212 }
17213 arg6 = static_cast< int >(val6);
17214 }
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17222 {
17223 if (temp2)
17224 delete arg2;
17225 }
17226 return resultobj;
17227fail:
17228 {
17229 if (temp2)
17230 delete arg2;
17231 }
17232 return NULL;
17233}
17234
17235
17236SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj = 0;
17238 wxDC *arg1 = (wxDC *) 0 ;
17239 int arg2 ;
17240 wxPoint *arg3 = (wxPoint *) 0 ;
17241 void *argp1 = 0 ;
17242 int res1 = 0 ;
17243 PyObject * obj0 = 0 ;
17244 PyObject * obj1 = 0 ;
17245 char * kwnames[] = {
17246 (char *) "self",(char *) "points", NULL
17247 };
17248
17249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17251 if (!SWIG_IsOK(res1)) {
17252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17253 }
17254 arg1 = reinterpret_cast< wxDC * >(argp1);
17255 {
17256 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17257 if (arg3 == NULL) SWIG_fail;
17258 }
17259 {
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 (arg1)->DrawSpline(arg2,arg3);
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 resultobj = SWIG_Py_Void();
17266 {
17267 if (arg3) delete [] arg3;
17268 }
17269 return resultobj;
17270fail:
17271 {
17272 if (arg3) delete [] arg3;
17273 }
17274 return NULL;
17275}
17276
17277
17278SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17279 PyObject *resultobj = 0;
17280 wxDC *arg1 = (wxDC *) 0 ;
17281 void *argp1 = 0 ;
17282 int res1 = 0 ;
17283 PyObject *swig_obj[1] ;
17284
17285 if (!args) SWIG_fail;
17286 swig_obj[0] = args;
17287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17288 if (!SWIG_IsOK(res1)) {
17289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17290 }
17291 arg1 = reinterpret_cast< wxDC * >(argp1);
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 (arg1)->Clear();
17295 wxPyEndAllowThreads(__tstate);
17296 if (PyErr_Occurred()) SWIG_fail;
17297 }
17298 resultobj = SWIG_Py_Void();
17299 return resultobj;
17300fail:
17301 return NULL;
17302}
17303
17304
17305SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17306 PyObject *resultobj = 0;
17307 wxDC *arg1 = (wxDC *) 0 ;
17308 wxString *arg2 = 0 ;
17309 bool result;
17310 void *argp1 = 0 ;
17311 int res1 = 0 ;
17312 bool temp2 = false ;
17313 PyObject * obj0 = 0 ;
17314 PyObject * obj1 = 0 ;
17315 char * kwnames[] = {
17316 (char *) "self",(char *) "message", NULL
17317 };
17318
17319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17321 if (!SWIG_IsOK(res1)) {
17322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17323 }
17324 arg1 = reinterpret_cast< wxDC * >(argp1);
17325 {
17326 arg2 = wxString_in_helper(obj1);
17327 if (arg2 == NULL) SWIG_fail;
17328 temp2 = true;
17329 }
17330 {
17331 PyThreadState* __tstate = wxPyBeginAllowThreads();
17332 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17338 }
17339 {
17340 if (temp2)
17341 delete arg2;
17342 }
17343 return resultobj;
17344fail:
17345 {
17346 if (temp2)
17347 delete arg2;
17348 }
17349 return NULL;
17350}
17351
17352
17353SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17354 PyObject *resultobj = 0;
17355 wxDC *arg1 = (wxDC *) 0 ;
17356 void *argp1 = 0 ;
17357 int res1 = 0 ;
17358 PyObject *swig_obj[1] ;
17359
17360 if (!args) SWIG_fail;
17361 swig_obj[0] = args;
17362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17363 if (!SWIG_IsOK(res1)) {
17364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17365 }
17366 arg1 = reinterpret_cast< wxDC * >(argp1);
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 (arg1)->EndDoc();
17370 wxPyEndAllowThreads(__tstate);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
17373 resultobj = SWIG_Py_Void();
17374 return resultobj;
17375fail:
17376 return NULL;
17377}
17378
17379
17380SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17381 PyObject *resultobj = 0;
17382 wxDC *arg1 = (wxDC *) 0 ;
17383 void *argp1 = 0 ;
17384 int res1 = 0 ;
17385 PyObject *swig_obj[1] ;
17386
17387 if (!args) SWIG_fail;
17388 swig_obj[0] = args;
17389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17390 if (!SWIG_IsOK(res1)) {
17391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17392 }
17393 arg1 = reinterpret_cast< wxDC * >(argp1);
17394 {
17395 PyThreadState* __tstate = wxPyBeginAllowThreads();
17396 (arg1)->StartPage();
17397 wxPyEndAllowThreads(__tstate);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 }
17400 resultobj = SWIG_Py_Void();
17401 return resultobj;
17402fail:
17403 return NULL;
17404}
17405
17406
17407SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17408 PyObject *resultobj = 0;
17409 wxDC *arg1 = (wxDC *) 0 ;
17410 void *argp1 = 0 ;
17411 int res1 = 0 ;
17412 PyObject *swig_obj[1] ;
17413
17414 if (!args) SWIG_fail;
17415 swig_obj[0] = args;
17416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17417 if (!SWIG_IsOK(res1)) {
17418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17419 }
17420 arg1 = reinterpret_cast< wxDC * >(argp1);
17421 {
17422 PyThreadState* __tstate = wxPyBeginAllowThreads();
17423 (arg1)->EndPage();
17424 wxPyEndAllowThreads(__tstate);
17425 if (PyErr_Occurred()) SWIG_fail;
17426 }
17427 resultobj = SWIG_Py_Void();
17428 return resultobj;
17429fail:
17430 return NULL;
17431}
17432
17433
17434SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17435 PyObject *resultobj = 0;
17436 wxDC *arg1 = (wxDC *) 0 ;
17437 wxFont *arg2 = 0 ;
17438 void *argp1 = 0 ;
17439 int res1 = 0 ;
17440 void *argp2 = 0 ;
17441 int res2 = 0 ;
17442 PyObject * obj0 = 0 ;
17443 PyObject * obj1 = 0 ;
17444 char * kwnames[] = {
17445 (char *) "self",(char *) "font", NULL
17446 };
17447
17448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17450 if (!SWIG_IsOK(res1)) {
17451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17452 }
17453 arg1 = reinterpret_cast< wxDC * >(argp1);
17454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17455 if (!SWIG_IsOK(res2)) {
17456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17457 }
17458 if (!argp2) {
17459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17460 }
17461 arg2 = reinterpret_cast< wxFont * >(argp2);
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 (arg1)->SetFont((wxFont const &)*arg2);
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 resultobj = SWIG_Py_Void();
17469 return resultobj;
17470fail:
17471 return NULL;
17472}
17473
17474
17475SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj = 0;
17477 wxDC *arg1 = (wxDC *) 0 ;
17478 wxPen *arg2 = 0 ;
17479 void *argp1 = 0 ;
17480 int res1 = 0 ;
17481 void *argp2 = 0 ;
17482 int res2 = 0 ;
17483 PyObject * obj0 = 0 ;
17484 PyObject * obj1 = 0 ;
17485 char * kwnames[] = {
17486 (char *) "self",(char *) "pen", NULL
17487 };
17488
17489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17491 if (!SWIG_IsOK(res1)) {
17492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17493 }
17494 arg1 = reinterpret_cast< wxDC * >(argp1);
17495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17496 if (!SWIG_IsOK(res2)) {
17497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17498 }
17499 if (!argp2) {
17500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17501 }
17502 arg2 = reinterpret_cast< wxPen * >(argp2);
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 (arg1)->SetPen((wxPen const &)*arg2);
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 resultobj = SWIG_Py_Void();
17510 return resultobj;
17511fail:
17512 return NULL;
17513}
17514
17515
17516SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17517 PyObject *resultobj = 0;
17518 wxDC *arg1 = (wxDC *) 0 ;
17519 wxBrush *arg2 = 0 ;
17520 void *argp1 = 0 ;
17521 int res1 = 0 ;
17522 void *argp2 = 0 ;
17523 int res2 = 0 ;
17524 PyObject * obj0 = 0 ;
17525 PyObject * obj1 = 0 ;
17526 char * kwnames[] = {
17527 (char *) "self",(char *) "brush", NULL
17528 };
17529
17530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17532 if (!SWIG_IsOK(res1)) {
17533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17534 }
17535 arg1 = reinterpret_cast< wxDC * >(argp1);
17536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17537 if (!SWIG_IsOK(res2)) {
17538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17539 }
17540 if (!argp2) {
17541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17542 }
17543 arg2 = reinterpret_cast< wxBrush * >(argp2);
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 (arg1)->SetBrush((wxBrush const &)*arg2);
17547 wxPyEndAllowThreads(__tstate);
17548 if (PyErr_Occurred()) SWIG_fail;
17549 }
17550 resultobj = SWIG_Py_Void();
17551 return resultobj;
17552fail:
17553 return NULL;
17554}
17555
17556
17557SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17558 PyObject *resultobj = 0;
17559 wxDC *arg1 = (wxDC *) 0 ;
17560 wxBrush *arg2 = 0 ;
17561 void *argp1 = 0 ;
17562 int res1 = 0 ;
17563 void *argp2 = 0 ;
17564 int res2 = 0 ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 char * kwnames[] = {
17568 (char *) "self",(char *) "brush", NULL
17569 };
17570
17571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",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_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17575 }
17576 arg1 = reinterpret_cast< wxDC * >(argp1);
17577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17578 if (!SWIG_IsOK(res2)) {
17579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17580 }
17581 if (!argp2) {
17582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17583 }
17584 arg2 = reinterpret_cast< wxBrush * >(argp2);
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 (arg1)->SetBackground((wxBrush const &)*arg2);
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 resultobj = SWIG_Py_Void();
17592 return resultobj;
17593fail:
17594 return NULL;
17595}
17596
17597
17598SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17599 PyObject *resultobj = 0;
17600 wxDC *arg1 = (wxDC *) 0 ;
17601 int arg2 ;
17602 void *argp1 = 0 ;
17603 int res1 = 0 ;
17604 int val2 ;
17605 int ecode2 = 0 ;
17606 PyObject * obj0 = 0 ;
17607 PyObject * obj1 = 0 ;
17608 char * kwnames[] = {
17609 (char *) "self",(char *) "mode", NULL
17610 };
17611
17612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17614 if (!SWIG_IsOK(res1)) {
17615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17616 }
17617 arg1 = reinterpret_cast< wxDC * >(argp1);
17618 ecode2 = SWIG_AsVal_int(obj1, &val2);
17619 if (!SWIG_IsOK(ecode2)) {
17620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17621 }
17622 arg2 = static_cast< int >(val2);
17623 {
17624 PyThreadState* __tstate = wxPyBeginAllowThreads();
17625 (arg1)->SetBackgroundMode(arg2);
17626 wxPyEndAllowThreads(__tstate);
17627 if (PyErr_Occurred()) SWIG_fail;
17628 }
17629 resultobj = SWIG_Py_Void();
17630 return resultobj;
17631fail:
17632 return NULL;
17633}
17634
17635
17636SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17637 PyObject *resultobj = 0;
17638 wxDC *arg1 = (wxDC *) 0 ;
17639 wxPalette *arg2 = 0 ;
17640 void *argp1 = 0 ;
17641 int res1 = 0 ;
17642 void *argp2 = 0 ;
17643 int res2 = 0 ;
17644 PyObject * obj0 = 0 ;
17645 PyObject * obj1 = 0 ;
17646 char * kwnames[] = {
17647 (char *) "self",(char *) "palette", NULL
17648 };
17649
17650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17652 if (!SWIG_IsOK(res1)) {
17653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17654 }
17655 arg1 = reinterpret_cast< wxDC * >(argp1);
17656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17657 if (!SWIG_IsOK(res2)) {
17658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17659 }
17660 if (!argp2) {
17661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17662 }
17663 arg2 = reinterpret_cast< wxPalette * >(argp2);
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 (arg1)->SetPalette((wxPalette const &)*arg2);
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_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17678 PyObject *resultobj = 0;
17679 wxDC *arg1 = (wxDC *) 0 ;
17680 void *argp1 = 0 ;
17681 int res1 = 0 ;
17682 PyObject *swig_obj[1] ;
17683
17684 if (!args) SWIG_fail;
17685 swig_obj[0] = args;
17686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17687 if (!SWIG_IsOK(res1)) {
17688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17689 }
17690 arg1 = reinterpret_cast< wxDC * >(argp1);
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 (arg1)->DestroyClippingRegion();
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 resultobj = SWIG_Py_Void();
17698 return resultobj;
17699fail:
17700 return NULL;
17701}
17702
17703
17704SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17705 PyObject *resultobj = 0;
17706 wxDC *arg1 = (wxDC *) 0 ;
17707 int *arg2 = (int *) 0 ;
17708 int *arg3 = (int *) 0 ;
17709 int *arg4 = (int *) 0 ;
17710 int *arg5 = (int *) 0 ;
17711 void *argp1 = 0 ;
17712 int res1 = 0 ;
17713 int temp2 ;
17714 int res2 = SWIG_TMPOBJ ;
17715 int temp3 ;
17716 int res3 = SWIG_TMPOBJ ;
17717 int temp4 ;
17718 int res4 = SWIG_TMPOBJ ;
17719 int temp5 ;
17720 int res5 = SWIG_TMPOBJ ;
17721 PyObject *swig_obj[1] ;
17722
17723 arg2 = &temp2;
17724 arg3 = &temp3;
17725 arg4 = &temp4;
17726 arg5 = &temp5;
17727 if (!args) SWIG_fail;
17728 swig_obj[0] = args;
17729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17730 if (!SWIG_IsOK(res1)) {
17731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17732 }
17733 arg1 = reinterpret_cast< wxDC * >(argp1);
17734 {
17735 PyThreadState* __tstate = wxPyBeginAllowThreads();
17736 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17737 wxPyEndAllowThreads(__tstate);
17738 if (PyErr_Occurred()) SWIG_fail;
17739 }
17740 resultobj = SWIG_Py_Void();
17741 if (SWIG_IsTmpObj(res2)) {
17742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17743 } else {
17744 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17746 }
17747 if (SWIG_IsTmpObj(res3)) {
17748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17749 } else {
17750 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17752 }
17753 if (SWIG_IsTmpObj(res4)) {
17754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17755 } else {
17756 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17758 }
17759 if (SWIG_IsTmpObj(res5)) {
17760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17761 } else {
17762 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17764 }
17765 return resultobj;
17766fail:
17767 return NULL;
17768}
17769
17770
17771SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17772 PyObject *resultobj = 0;
17773 wxDC *arg1 = (wxDC *) 0 ;
17774 wxRect result;
17775 void *argp1 = 0 ;
17776 int res1 = 0 ;
17777 PyObject *swig_obj[1] ;
17778
17779 if (!args) SWIG_fail;
17780 swig_obj[0] = args;
17781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17782 if (!SWIG_IsOK(res1)) {
17783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17784 }
17785 arg1 = reinterpret_cast< wxDC * >(argp1);
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 result = wxDC_GetClippingRect(arg1);
17789 wxPyEndAllowThreads(__tstate);
17790 if (PyErr_Occurred()) SWIG_fail;
17791 }
17792 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17793 return resultobj;
17794fail:
17795 return NULL;
17796}
17797
17798
17799SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17800 PyObject *resultobj = 0;
17801 wxDC *arg1 = (wxDC *) 0 ;
17802 int result;
17803 void *argp1 = 0 ;
17804 int res1 = 0 ;
17805 PyObject *swig_obj[1] ;
17806
17807 if (!args) SWIG_fail;
17808 swig_obj[0] = args;
17809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17810 if (!SWIG_IsOK(res1)) {
17811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17812 }
17813 arg1 = reinterpret_cast< wxDC * >(argp1);
17814 {
17815 PyThreadState* __tstate = wxPyBeginAllowThreads();
17816 result = (int)((wxDC const *)arg1)->GetCharHeight();
17817 wxPyEndAllowThreads(__tstate);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 }
17820 resultobj = SWIG_From_int(static_cast< int >(result));
17821 return resultobj;
17822fail:
17823 return NULL;
17824}
17825
17826
17827SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17828 PyObject *resultobj = 0;
17829 wxDC *arg1 = (wxDC *) 0 ;
17830 int result;
17831 void *argp1 = 0 ;
17832 int res1 = 0 ;
17833 PyObject *swig_obj[1] ;
17834
17835 if (!args) SWIG_fail;
17836 swig_obj[0] = args;
17837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17838 if (!SWIG_IsOK(res1)) {
17839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17840 }
17841 arg1 = reinterpret_cast< wxDC * >(argp1);
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (int)((wxDC const *)arg1)->GetCharWidth();
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 resultobj = SWIG_From_int(static_cast< int >(result));
17849 return resultobj;
17850fail:
17851 return NULL;
17852}
17853
17854
17855SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17856 PyObject *resultobj = 0;
17857 wxDC *arg1 = (wxDC *) 0 ;
17858 wxString *arg2 = 0 ;
17859 int *arg3 = (int *) 0 ;
17860 int *arg4 = (int *) 0 ;
17861 void *argp1 = 0 ;
17862 int res1 = 0 ;
17863 bool temp2 = false ;
17864 int temp3 ;
17865 int res3 = SWIG_TMPOBJ ;
17866 int temp4 ;
17867 int res4 = SWIG_TMPOBJ ;
17868 PyObject * obj0 = 0 ;
17869 PyObject * obj1 = 0 ;
17870 char * kwnames[] = {
17871 (char *) "self",(char *) "string", NULL
17872 };
17873
17874 arg3 = &temp3;
17875 arg4 = &temp4;
17876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17878 if (!SWIG_IsOK(res1)) {
17879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17880 }
17881 arg1 = reinterpret_cast< wxDC * >(argp1);
17882 {
17883 arg2 = wxString_in_helper(obj1);
17884 if (arg2 == NULL) SWIG_fail;
17885 temp2 = true;
17886 }
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 resultobj = SWIG_Py_Void();
17894 if (SWIG_IsTmpObj(res3)) {
17895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17896 } else {
17897 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17899 }
17900 if (SWIG_IsTmpObj(res4)) {
17901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17902 } else {
17903 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17905 }
17906 {
17907 if (temp2)
17908 delete arg2;
17909 }
17910 return resultobj;
17911fail:
17912 {
17913 if (temp2)
17914 delete arg2;
17915 }
17916 return NULL;
17917}
17918
17919
17920SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17921 PyObject *resultobj = 0;
17922 wxDC *arg1 = (wxDC *) 0 ;
17923 wxString *arg2 = 0 ;
17924 int *arg3 = (int *) 0 ;
17925 int *arg4 = (int *) 0 ;
17926 int *arg5 = (int *) 0 ;
17927 int *arg6 = (int *) 0 ;
17928 wxFont *arg7 = (wxFont *) NULL ;
17929 void *argp1 = 0 ;
17930 int res1 = 0 ;
17931 bool temp2 = false ;
17932 int temp3 ;
17933 int res3 = SWIG_TMPOBJ ;
17934 int temp4 ;
17935 int res4 = SWIG_TMPOBJ ;
17936 int temp5 ;
17937 int res5 = SWIG_TMPOBJ ;
17938 int temp6 ;
17939 int res6 = SWIG_TMPOBJ ;
17940 void *argp7 = 0 ;
17941 int res7 = 0 ;
17942 PyObject * obj0 = 0 ;
17943 PyObject * obj1 = 0 ;
17944 PyObject * obj2 = 0 ;
17945 char * kwnames[] = {
17946 (char *) "self",(char *) "string",(char *) "font", NULL
17947 };
17948
17949 arg3 = &temp3;
17950 arg4 = &temp4;
17951 arg5 = &temp5;
17952 arg6 = &temp6;
17953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17955 if (!SWIG_IsOK(res1)) {
17956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17957 }
17958 arg1 = reinterpret_cast< wxDC * >(argp1);
17959 {
17960 arg2 = wxString_in_helper(obj1);
17961 if (arg2 == NULL) SWIG_fail;
17962 temp2 = true;
17963 }
17964 if (obj2) {
17965 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17966 if (!SWIG_IsOK(res7)) {
17967 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 17968 }
1bd55598
RD
17969 arg7 = reinterpret_cast< wxFont * >(argp7);
17970 }
17971 {
17972 PyThreadState* __tstate = wxPyBeginAllowThreads();
17973 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17974 wxPyEndAllowThreads(__tstate);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 resultobj = SWIG_Py_Void();
17978 if (SWIG_IsTmpObj(res3)) {
17979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17980 } else {
17981 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17983 }
17984 if (SWIG_IsTmpObj(res4)) {
17985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17986 } else {
17987 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17989 }
17990 if (SWIG_IsTmpObj(res5)) {
17991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17992 } else {
17993 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17995 }
17996 if (SWIG_IsTmpObj(res6)) {
17997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17998 } else {
17999 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18001 }
18002 {
18003 if (temp2)
18004 delete arg2;
18005 }
18006 return resultobj;
18007fail:
18008 {
18009 if (temp2)
18010 delete arg2;
18011 }
18012 return NULL;
18013}
18014
18015
18016SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxDC *arg1 = (wxDC *) 0 ;
18019 wxString *arg2 = 0 ;
18020 int *arg3 = (int *) 0 ;
18021 int *arg4 = (int *) 0 ;
18022 int *arg5 = (int *) 0 ;
18023 wxFont *arg6 = (wxFont *) NULL ;
18024 void *argp1 = 0 ;
18025 int res1 = 0 ;
18026 bool temp2 = false ;
18027 int temp3 ;
18028 int res3 = SWIG_TMPOBJ ;
18029 int temp4 ;
18030 int res4 = SWIG_TMPOBJ ;
18031 int temp5 ;
18032 int res5 = SWIG_TMPOBJ ;
18033 void *argp6 = 0 ;
18034 int res6 = 0 ;
18035 PyObject * obj0 = 0 ;
18036 PyObject * obj1 = 0 ;
18037 PyObject * obj2 = 0 ;
18038 char * kwnames[] = {
18039 (char *) "self",(char *) "text",(char *) "font", NULL
18040 };
18041
18042 arg3 = &temp3;
18043 arg4 = &temp4;
18044 arg5 = &temp5;
18045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18047 if (!SWIG_IsOK(res1)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18049 }
18050 arg1 = reinterpret_cast< wxDC * >(argp1);
18051 {
18052 arg2 = wxString_in_helper(obj1);
18053 if (arg2 == NULL) SWIG_fail;
18054 temp2 = true;
18055 }
18056 if (obj2) {
18057 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18058 if (!SWIG_IsOK(res6)) {
18059 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 18060 }
1bd55598
RD
18061 arg6 = reinterpret_cast< wxFont * >(argp6);
18062 }
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18066 wxPyEndAllowThreads(__tstate);
18067 if (PyErr_Occurred()) SWIG_fail;
18068 }
18069 resultobj = SWIG_Py_Void();
18070 if (SWIG_IsTmpObj(res3)) {
18071 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18072 } else {
18073 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18075 }
18076 if (SWIG_IsTmpObj(res4)) {
18077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18078 } else {
18079 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18081 }
18082 if (SWIG_IsTmpObj(res5)) {
18083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18084 } else {
18085 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18087 }
18088 {
18089 if (temp2)
18090 delete arg2;
18091 }
18092 return resultobj;
18093fail:
18094 {
18095 if (temp2)
18096 delete arg2;
18097 }
18098 return NULL;
18099}
18100
18101
18102SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj = 0;
18104 wxDC *arg1 = (wxDC *) 0 ;
18105 wxString *arg2 = 0 ;
18106 wxArrayInt result;
18107 void *argp1 = 0 ;
18108 int res1 = 0 ;
18109 bool temp2 = false ;
18110 PyObject * obj0 = 0 ;
18111 PyObject * obj1 = 0 ;
18112 char * kwnames[] = {
18113 (char *) "self",(char *) "text", NULL
18114 };
18115
18116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18118 if (!SWIG_IsOK(res1)) {
18119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18120 }
18121 arg1 = reinterpret_cast< wxDC * >(argp1);
18122 {
18123 arg2 = wxString_in_helper(obj1);
18124 if (arg2 == NULL) SWIG_fail;
18125 temp2 = true;
18126 }
18127 {
18128 PyThreadState* __tstate = wxPyBeginAllowThreads();
18129 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18130 wxPyEndAllowThreads(__tstate);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 }
18133 {
18134 resultobj = PyList_New(0);
18135 size_t idx;
18136 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18137 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18138 PyList_Append(resultobj, val);
18139 Py_DECREF(val);
36ed4f51 18140 }
1bd55598
RD
18141 }
18142 {
18143 if (temp2)
18144 delete arg2;
18145 }
18146 return resultobj;
18147fail:
18148 {
18149 if (temp2)
18150 delete arg2;
18151 }
18152 return NULL;
18153}
18154
18155
18156SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18157 PyObject *resultobj = 0;
18158 wxDC *arg1 = (wxDC *) 0 ;
18159 wxSize result;
18160 void *argp1 = 0 ;
18161 int res1 = 0 ;
18162 PyObject *swig_obj[1] ;
18163
18164 if (!args) SWIG_fail;
18165 swig_obj[0] = args;
18166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18167 if (!SWIG_IsOK(res1)) {
18168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18169 }
18170 arg1 = reinterpret_cast< wxDC * >(argp1);
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 result = (arg1)->GetSize();
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18178 return resultobj;
18179fail:
18180 return NULL;
18181}
18182
18183
18184SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18185 PyObject *resultobj = 0;
18186 wxDC *arg1 = (wxDC *) 0 ;
18187 int *arg2 = (int *) 0 ;
18188 int *arg3 = (int *) 0 ;
18189 void *argp1 = 0 ;
18190 int res1 = 0 ;
18191 int temp2 ;
18192 int res2 = SWIG_TMPOBJ ;
18193 int temp3 ;
18194 int res3 = SWIG_TMPOBJ ;
18195 PyObject *swig_obj[1] ;
18196
18197 arg2 = &temp2;
18198 arg3 = &temp3;
18199 if (!args) SWIG_fail;
18200 swig_obj[0] = args;
18201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18202 if (!SWIG_IsOK(res1)) {
18203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18204 }
18205 arg1 = reinterpret_cast< wxDC * >(argp1);
18206 {
18207 PyThreadState* __tstate = wxPyBeginAllowThreads();
18208 (arg1)->GetSize(arg2,arg3);
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 resultobj = SWIG_Py_Void();
18213 if (SWIG_IsTmpObj(res2)) {
18214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18215 } else {
18216 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18218 }
18219 if (SWIG_IsTmpObj(res3)) {
18220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18221 } else {
18222 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18224 }
18225 return resultobj;
18226fail:
18227 return NULL;
18228}
18229
18230
18231SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18232 PyObject *resultobj = 0;
18233 wxDC *arg1 = (wxDC *) 0 ;
18234 wxSize result;
18235 void *argp1 = 0 ;
18236 int res1 = 0 ;
18237 PyObject *swig_obj[1] ;
18238
18239 if (!args) SWIG_fail;
18240 swig_obj[0] = args;
18241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18242 if (!SWIG_IsOK(res1)) {
18243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18244 }
18245 arg1 = reinterpret_cast< wxDC * >(argp1);
18246 {
18247 PyThreadState* __tstate = wxPyBeginAllowThreads();
18248 result = ((wxDC const *)arg1)->GetSizeMM();
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18253 return resultobj;
18254fail:
18255 return NULL;
18256}
18257
18258
18259SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18260 PyObject *resultobj = 0;
18261 wxDC *arg1 = (wxDC *) 0 ;
18262 int *arg2 = (int *) 0 ;
18263 int *arg3 = (int *) 0 ;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 int temp2 ;
18267 int res2 = SWIG_TMPOBJ ;
18268 int temp3 ;
18269 int res3 = SWIG_TMPOBJ ;
18270 PyObject *swig_obj[1] ;
18271
18272 arg2 = &temp2;
18273 arg3 = &temp3;
18274 if (!args) SWIG_fail;
18275 swig_obj[0] = args;
18276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18277 if (!SWIG_IsOK(res1)) {
18278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18279 }
18280 arg1 = reinterpret_cast< wxDC * >(argp1);
18281 {
18282 PyThreadState* __tstate = wxPyBeginAllowThreads();
18283 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18284 wxPyEndAllowThreads(__tstate);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
18287 resultobj = SWIG_Py_Void();
18288 if (SWIG_IsTmpObj(res2)) {
18289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18290 } else {
18291 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18293 }
18294 if (SWIG_IsTmpObj(res3)) {
18295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18296 } else {
18297 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18299 }
18300 return resultobj;
18301fail:
18302 return NULL;
18303}
18304
18305
18306SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18307 PyObject *resultobj = 0;
18308 wxDC *arg1 = (wxDC *) 0 ;
18309 int arg2 ;
18310 int result;
18311 void *argp1 = 0 ;
18312 int res1 = 0 ;
18313 int val2 ;
18314 int ecode2 = 0 ;
18315 PyObject * obj0 = 0 ;
18316 PyObject * obj1 = 0 ;
18317 char * kwnames[] = {
18318 (char *) "self",(char *) "x", NULL
18319 };
18320
18321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18323 if (!SWIG_IsOK(res1)) {
18324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18325 }
18326 arg1 = reinterpret_cast< wxDC * >(argp1);
18327 ecode2 = SWIG_AsVal_int(obj1, &val2);
18328 if (!SWIG_IsOK(ecode2)) {
18329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18330 }
18331 arg2 = static_cast< int >(val2);
18332 {
18333 PyThreadState* __tstate = wxPyBeginAllowThreads();
18334 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 resultobj = SWIG_From_int(static_cast< int >(result));
18339 return resultobj;
18340fail:
18341 return NULL;
18342}
18343
18344
18345SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj = 0;
18347 wxDC *arg1 = (wxDC *) 0 ;
18348 int arg2 ;
18349 int result;
18350 void *argp1 = 0 ;
18351 int res1 = 0 ;
18352 int val2 ;
18353 int ecode2 = 0 ;
18354 PyObject * obj0 = 0 ;
18355 PyObject * obj1 = 0 ;
18356 char * kwnames[] = {
18357 (char *) "self",(char *) "y", NULL
18358 };
18359
18360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18362 if (!SWIG_IsOK(res1)) {
18363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18364 }
18365 arg1 = reinterpret_cast< wxDC * >(argp1);
18366 ecode2 = SWIG_AsVal_int(obj1, &val2);
18367 if (!SWIG_IsOK(ecode2)) {
18368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18369 }
18370 arg2 = static_cast< int >(val2);
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18374 wxPyEndAllowThreads(__tstate);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 resultobj = SWIG_From_int(static_cast< int >(result));
18378 return resultobj;
18379fail:
18380 return NULL;
18381}
18382
18383
18384SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18385 PyObject *resultobj = 0;
18386 wxDC *arg1 = (wxDC *) 0 ;
18387 int arg2 ;
18388 int result;
18389 void *argp1 = 0 ;
18390 int res1 = 0 ;
18391 int val2 ;
18392 int ecode2 = 0 ;
18393 PyObject * obj0 = 0 ;
18394 PyObject * obj1 = 0 ;
18395 char * kwnames[] = {
18396 (char *) "self",(char *) "x", NULL
18397 };
18398
18399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18401 if (!SWIG_IsOK(res1)) {
18402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18403 }
18404 arg1 = reinterpret_cast< wxDC * >(argp1);
18405 ecode2 = SWIG_AsVal_int(obj1, &val2);
18406 if (!SWIG_IsOK(ecode2)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18408 }
18409 arg2 = static_cast< int >(val2);
18410 {
18411 PyThreadState* __tstate = wxPyBeginAllowThreads();
18412 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18413 wxPyEndAllowThreads(__tstate);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 }
18416 resultobj = SWIG_From_int(static_cast< int >(result));
18417 return resultobj;
18418fail:
18419 return NULL;
18420}
18421
18422
18423SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18424 PyObject *resultobj = 0;
18425 wxDC *arg1 = (wxDC *) 0 ;
18426 int arg2 ;
18427 int result;
18428 void *argp1 = 0 ;
18429 int res1 = 0 ;
18430 int val2 ;
18431 int ecode2 = 0 ;
18432 PyObject * obj0 = 0 ;
18433 PyObject * obj1 = 0 ;
18434 char * kwnames[] = {
18435 (char *) "self",(char *) "y", NULL
18436 };
18437
18438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18440 if (!SWIG_IsOK(res1)) {
18441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18442 }
18443 arg1 = reinterpret_cast< wxDC * >(argp1);
18444 ecode2 = SWIG_AsVal_int(obj1, &val2);
18445 if (!SWIG_IsOK(ecode2)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18447 }
18448 arg2 = static_cast< int >(val2);
18449 {
18450 PyThreadState* __tstate = wxPyBeginAllowThreads();
18451 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18452 wxPyEndAllowThreads(__tstate);
18453 if (PyErr_Occurred()) SWIG_fail;
18454 }
18455 resultobj = SWIG_From_int(static_cast< int >(result));
18456 return resultobj;
18457fail:
18458 return NULL;
18459}
18460
18461
18462SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18463 PyObject *resultobj = 0;
18464 wxDC *arg1 = (wxDC *) 0 ;
18465 int arg2 ;
18466 int result;
18467 void *argp1 = 0 ;
18468 int res1 = 0 ;
18469 int val2 ;
18470 int ecode2 = 0 ;
18471 PyObject * obj0 = 0 ;
18472 PyObject * obj1 = 0 ;
18473 char * kwnames[] = {
18474 (char *) "self",(char *) "x", NULL
18475 };
18476
18477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18479 if (!SWIG_IsOK(res1)) {
18480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18481 }
18482 arg1 = reinterpret_cast< wxDC * >(argp1);
18483 ecode2 = SWIG_AsVal_int(obj1, &val2);
18484 if (!SWIG_IsOK(ecode2)) {
18485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18486 }
18487 arg2 = static_cast< int >(val2);
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 resultobj = SWIG_From_int(static_cast< int >(result));
18495 return resultobj;
18496fail:
18497 return NULL;
18498}
18499
18500
18501SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj = 0;
18503 wxDC *arg1 = (wxDC *) 0 ;
18504 int arg2 ;
18505 int result;
18506 void *argp1 = 0 ;
18507 int res1 = 0 ;
18508 int val2 ;
18509 int ecode2 = 0 ;
18510 PyObject * obj0 = 0 ;
18511 PyObject * obj1 = 0 ;
18512 char * kwnames[] = {
18513 (char *) "self",(char *) "y", NULL
18514 };
18515
18516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18518 if (!SWIG_IsOK(res1)) {
18519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18520 }
18521 arg1 = reinterpret_cast< wxDC * >(argp1);
18522 ecode2 = SWIG_AsVal_int(obj1, &val2);
18523 if (!SWIG_IsOK(ecode2)) {
18524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18525 }
18526 arg2 = static_cast< int >(val2);
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18530 wxPyEndAllowThreads(__tstate);
18531 if (PyErr_Occurred()) SWIG_fail;
18532 }
18533 resultobj = SWIG_From_int(static_cast< int >(result));
18534 return resultobj;
18535fail:
18536 return NULL;
18537}
18538
18539
18540SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18541 PyObject *resultobj = 0;
18542 wxDC *arg1 = (wxDC *) 0 ;
18543 int arg2 ;
18544 int result;
18545 void *argp1 = 0 ;
18546 int res1 = 0 ;
18547 int val2 ;
18548 int ecode2 = 0 ;
18549 PyObject * obj0 = 0 ;
18550 PyObject * obj1 = 0 ;
18551 char * kwnames[] = {
18552 (char *) "self",(char *) "x", NULL
18553 };
18554
18555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18557 if (!SWIG_IsOK(res1)) {
18558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18559 }
18560 arg1 = reinterpret_cast< wxDC * >(argp1);
18561 ecode2 = SWIG_AsVal_int(obj1, &val2);
18562 if (!SWIG_IsOK(ecode2)) {
18563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18564 }
18565 arg2 = static_cast< int >(val2);
18566 {
18567 PyThreadState* __tstate = wxPyBeginAllowThreads();
18568 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18569 wxPyEndAllowThreads(__tstate);
18570 if (PyErr_Occurred()) SWIG_fail;
18571 }
18572 resultobj = SWIG_From_int(static_cast< int >(result));
18573 return resultobj;
18574fail:
18575 return NULL;
18576}
18577
18578
18579SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18580 PyObject *resultobj = 0;
18581 wxDC *arg1 = (wxDC *) 0 ;
18582 int arg2 ;
18583 int result;
18584 void *argp1 = 0 ;
18585 int res1 = 0 ;
18586 int val2 ;
18587 int ecode2 = 0 ;
18588 PyObject * obj0 = 0 ;
18589 PyObject * obj1 = 0 ;
18590 char * kwnames[] = {
18591 (char *) "self",(char *) "y", NULL
18592 };
18593
18594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18596 if (!SWIG_IsOK(res1)) {
18597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18598 }
18599 arg1 = reinterpret_cast< wxDC * >(argp1);
18600 ecode2 = SWIG_AsVal_int(obj1, &val2);
18601 if (!SWIG_IsOK(ecode2)) {
18602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18603 }
18604 arg2 = static_cast< int >(val2);
18605 {
18606 PyThreadState* __tstate = wxPyBeginAllowThreads();
18607 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18608 wxPyEndAllowThreads(__tstate);
18609 if (PyErr_Occurred()) SWIG_fail;
18610 }
18611 resultobj = SWIG_From_int(static_cast< int >(result));
18612 return resultobj;
18613fail:
18614 return NULL;
18615}
18616
18617
18618SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18619 PyObject *resultobj = 0;
18620 wxDC *arg1 = (wxDC *) 0 ;
18621 bool result;
18622 void *argp1 = 0 ;
18623 int res1 = 0 ;
18624 PyObject *swig_obj[1] ;
18625
18626 if (!args) SWIG_fail;
18627 swig_obj[0] = args;
18628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18629 if (!SWIG_IsOK(res1)) {
18630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18631 }
18632 arg1 = reinterpret_cast< wxDC * >(argp1);
18633 {
18634 PyThreadState* __tstate = wxPyBeginAllowThreads();
18635 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 {
18640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18641 }
18642 return resultobj;
18643fail:
18644 return NULL;
18645}
18646
18647
18648SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18649 PyObject *resultobj = 0;
18650 wxDC *arg1 = (wxDC *) 0 ;
18651 bool result;
18652 void *argp1 = 0 ;
18653 int res1 = 0 ;
18654 PyObject *swig_obj[1] ;
18655
18656 if (!args) SWIG_fail;
18657 swig_obj[0] = args;
18658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18659 if (!SWIG_IsOK(res1)) {
18660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18661 }
18662 arg1 = reinterpret_cast< wxDC * >(argp1);
18663 {
18664 PyThreadState* __tstate = wxPyBeginAllowThreads();
18665 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 {
18670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18671 }
18672 return resultobj;
18673fail:
18674 return NULL;
18675}
18676
18677
18678SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18679 PyObject *resultobj = 0;
18680 wxDC *arg1 = (wxDC *) 0 ;
18681 int result;
18682 void *argp1 = 0 ;
18683 int res1 = 0 ;
18684 PyObject *swig_obj[1] ;
18685
18686 if (!args) SWIG_fail;
18687 swig_obj[0] = args;
18688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18689 if (!SWIG_IsOK(res1)) {
18690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18691 }
18692 arg1 = reinterpret_cast< wxDC * >(argp1);
18693 {
18694 PyThreadState* __tstate = wxPyBeginAllowThreads();
18695 result = (int)((wxDC const *)arg1)->GetDepth();
18696 wxPyEndAllowThreads(__tstate);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
18699 resultobj = SWIG_From_int(static_cast< int >(result));
18700 return resultobj;
18701fail:
18702 return NULL;
18703}
18704
18705
18706SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18707 PyObject *resultobj = 0;
18708 wxDC *arg1 = (wxDC *) 0 ;
18709 wxSize result;
18710 void *argp1 = 0 ;
18711 int res1 = 0 ;
18712 PyObject *swig_obj[1] ;
18713
18714 if (!args) SWIG_fail;
18715 swig_obj[0] = args;
18716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18717 if (!SWIG_IsOK(res1)) {
18718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18719 }
18720 arg1 = reinterpret_cast< wxDC * >(argp1);
18721 {
18722 PyThreadState* __tstate = wxPyBeginAllowThreads();
18723 result = ((wxDC const *)arg1)->GetPPI();
18724 wxPyEndAllowThreads(__tstate);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 }
18727 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18728 return resultobj;
18729fail:
18730 return NULL;
18731}
18732
18733
18734SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18735 PyObject *resultobj = 0;
18736 wxDC *arg1 = (wxDC *) 0 ;
18737 bool result;
18738 void *argp1 = 0 ;
18739 int res1 = 0 ;
18740 PyObject *swig_obj[1] ;
18741
18742 if (!args) SWIG_fail;
18743 swig_obj[0] = args;
18744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18745 if (!SWIG_IsOK(res1)) {
18746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18747 }
18748 arg1 = reinterpret_cast< wxDC * >(argp1);
18749 {
18750 PyThreadState* __tstate = wxPyBeginAllowThreads();
18751 result = (bool)((wxDC const *)arg1)->Ok();
18752 wxPyEndAllowThreads(__tstate);
18753 if (PyErr_Occurred()) SWIG_fail;
18754 }
18755 {
18756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18757 }
18758 return resultobj;
18759fail:
18760 return NULL;
18761}
18762
18763
18764SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18765 PyObject *resultobj = 0;
18766 wxDC *arg1 = (wxDC *) 0 ;
18767 int result;
18768 void *argp1 = 0 ;
18769 int res1 = 0 ;
18770 PyObject *swig_obj[1] ;
18771
18772 if (!args) SWIG_fail;
18773 swig_obj[0] = args;
18774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18775 if (!SWIG_IsOK(res1)) {
18776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18777 }
18778 arg1 = reinterpret_cast< wxDC * >(argp1);
18779 {
18780 PyThreadState* __tstate = wxPyBeginAllowThreads();
18781 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18782 wxPyEndAllowThreads(__tstate);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 resultobj = SWIG_From_int(static_cast< int >(result));
18786 return resultobj;
18787fail:
18788 return NULL;
18789}
18790
18791
18792SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18793 PyObject *resultobj = 0;
18794 wxDC *arg1 = (wxDC *) 0 ;
18795 wxBrush *result = 0 ;
18796 void *argp1 = 0 ;
18797 int res1 = 0 ;
18798 PyObject *swig_obj[1] ;
18799
18800 if (!args) SWIG_fail;
18801 swig_obj[0] = args;
18802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18803 if (!SWIG_IsOK(res1)) {
18804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18805 }
18806 arg1 = reinterpret_cast< wxDC * >(argp1);
18807 {
18808 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 18809 {
1bd55598
RD
18810 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18811 result = (wxBrush *) &_result_ref;
36ed4f51 18812 }
1bd55598
RD
18813 wxPyEndAllowThreads(__tstate);
18814 if (PyErr_Occurred()) SWIG_fail;
18815 }
18816 {
18817 wxBrush* resultptr = new wxBrush(*result);
18818 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18819 }
18820 return resultobj;
18821fail:
18822 return NULL;
18823}
18824
18825
18826SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18827 PyObject *resultobj = 0;
18828 wxDC *arg1 = (wxDC *) 0 ;
18829 wxBrush *result = 0 ;
18830 void *argp1 = 0 ;
18831 int res1 = 0 ;
18832 PyObject *swig_obj[1] ;
18833
18834 if (!args) SWIG_fail;
18835 swig_obj[0] = args;
18836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18837 if (!SWIG_IsOK(res1)) {
18838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18839 }
18840 arg1 = reinterpret_cast< wxDC * >(argp1);
18841 {
18842 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 18843 {
1bd55598
RD
18844 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18845 result = (wxBrush *) &_result_ref;
36ed4f51 18846 }
1bd55598
RD
18847 wxPyEndAllowThreads(__tstate);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 {
18851 wxBrush* resultptr = new wxBrush(*result);
18852 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18853 }
18854 return resultobj;
18855fail:
18856 return NULL;
18857}
18858
18859
18860SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18861 PyObject *resultobj = 0;
18862 wxDC *arg1 = (wxDC *) 0 ;
18863 wxFont *result = 0 ;
18864 void *argp1 = 0 ;
18865 int res1 = 0 ;
18866 PyObject *swig_obj[1] ;
18867
18868 if (!args) SWIG_fail;
18869 swig_obj[0] = args;
18870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18871 if (!SWIG_IsOK(res1)) {
18872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18873 }
18874 arg1 = reinterpret_cast< wxDC * >(argp1);
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 18877 {
1bd55598
RD
18878 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18879 result = (wxFont *) &_result_ref;
36ed4f51 18880 }
1bd55598
RD
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 {
18885 wxFont* resultptr = new wxFont(*result);
18886 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18887 }
18888 return resultobj;
18889fail:
18890 return NULL;
18891}
18892
18893
18894SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18895 PyObject *resultobj = 0;
18896 wxDC *arg1 = (wxDC *) 0 ;
18897 wxPen *result = 0 ;
18898 void *argp1 = 0 ;
18899 int res1 = 0 ;
18900 PyObject *swig_obj[1] ;
18901
18902 if (!args) SWIG_fail;
18903 swig_obj[0] = args;
18904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18905 if (!SWIG_IsOK(res1)) {
18906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18907 }
18908 arg1 = reinterpret_cast< wxDC * >(argp1);
18909 {
18910 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 18911 {
1bd55598
RD
18912 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18913 result = (wxPen *) &_result_ref;
36ed4f51 18914 }
1bd55598
RD
18915 wxPyEndAllowThreads(__tstate);
18916 if (PyErr_Occurred()) SWIG_fail;
18917 }
18918 {
18919 wxPen* resultptr = new wxPen(*result);
18920 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18921 }
18922 return resultobj;
18923fail:
18924 return NULL;
18925}
18926
18927
18928SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18929 PyObject *resultobj = 0;
18930 wxDC *arg1 = (wxDC *) 0 ;
18931 wxColour *result = 0 ;
18932 void *argp1 = 0 ;
18933 int res1 = 0 ;
18934 PyObject *swig_obj[1] ;
18935
18936 if (!args) SWIG_fail;
18937 swig_obj[0] = args;
18938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18939 if (!SWIG_IsOK(res1)) {
18940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18941 }
18942 arg1 = reinterpret_cast< wxDC * >(argp1);
18943 {
18944 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 18945 {
1bd55598
RD
18946 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18947 result = (wxColour *) &_result_ref;
36ed4f51 18948 }
1bd55598
RD
18949 wxPyEndAllowThreads(__tstate);
18950 if (PyErr_Occurred()) SWIG_fail;
18951 }
18952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18953 return resultobj;
18954fail:
18955 return NULL;
18956}
18957
18958
18959SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18960 PyObject *resultobj = 0;
18961 wxDC *arg1 = (wxDC *) 0 ;
18962 wxColour *result = 0 ;
18963 void *argp1 = 0 ;
18964 int res1 = 0 ;
18965 PyObject *swig_obj[1] ;
18966
18967 if (!args) SWIG_fail;
18968 swig_obj[0] = args;
18969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18970 if (!SWIG_IsOK(res1)) {
18971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18972 }
18973 arg1 = reinterpret_cast< wxDC * >(argp1);
18974 {
18975 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 18976 {
1bd55598
RD
18977 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18978 result = (wxColour *) &_result_ref;
36ed4f51 18979 }
1bd55598
RD
18980 wxPyEndAllowThreads(__tstate);
18981 if (PyErr_Occurred()) SWIG_fail;
18982 }
18983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18984 return resultobj;
18985fail:
18986 return NULL;
18987}
18988
18989
18990SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18991 PyObject *resultobj = 0;
18992 wxDC *arg1 = (wxDC *) 0 ;
18993 wxColour *arg2 = 0 ;
18994 void *argp1 = 0 ;
18995 int res1 = 0 ;
18996 wxColour temp2 ;
18997 PyObject * obj0 = 0 ;
18998 PyObject * obj1 = 0 ;
18999 char * kwnames[] = {
19000 (char *) "self",(char *) "colour", NULL
19001 };
19002
19003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19005 if (!SWIG_IsOK(res1)) {
19006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19007 }
19008 arg1 = reinterpret_cast< wxDC * >(argp1);
19009 {
19010 arg2 = &temp2;
19011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19012 }
19013 {
19014 PyThreadState* __tstate = wxPyBeginAllowThreads();
19015 (arg1)->SetTextForeground((wxColour const &)*arg2);
19016 wxPyEndAllowThreads(__tstate);
19017 if (PyErr_Occurred()) SWIG_fail;
19018 }
19019 resultobj = SWIG_Py_Void();
19020 return resultobj;
19021fail:
19022 return NULL;
19023}
19024
19025
19026SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19027 PyObject *resultobj = 0;
19028 wxDC *arg1 = (wxDC *) 0 ;
19029 wxColour *arg2 = 0 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 wxColour temp2 ;
19033 PyObject * obj0 = 0 ;
19034 PyObject * obj1 = 0 ;
19035 char * kwnames[] = {
19036 (char *) "self",(char *) "colour", NULL
19037 };
19038
19039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19041 if (!SWIG_IsOK(res1)) {
19042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19043 }
19044 arg1 = reinterpret_cast< wxDC * >(argp1);
19045 {
19046 arg2 = &temp2;
19047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19048 }
19049 {
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 (arg1)->SetTextBackground((wxColour const &)*arg2);
19052 wxPyEndAllowThreads(__tstate);
19053 if (PyErr_Occurred()) SWIG_fail;
19054 }
19055 resultobj = SWIG_Py_Void();
19056 return resultobj;
19057fail:
19058 return NULL;
19059}
19060
19061
19062SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19063 PyObject *resultobj = 0;
19064 wxDC *arg1 = (wxDC *) 0 ;
19065 int result;
19066 void *argp1 = 0 ;
19067 int res1 = 0 ;
19068 PyObject *swig_obj[1] ;
19069
19070 if (!args) SWIG_fail;
19071 swig_obj[0] = args;
19072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19073 if (!SWIG_IsOK(res1)) {
19074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19075 }
19076 arg1 = reinterpret_cast< wxDC * >(argp1);
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 result = (int)((wxDC const *)arg1)->GetMapMode();
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_From_int(static_cast< int >(result));
19084 return resultobj;
19085fail:
19086 return NULL;
19087}
19088
19089
19090SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = 0;
19092 wxDC *arg1 = (wxDC *) 0 ;
19093 int arg2 ;
19094 void *argp1 = 0 ;
19095 int res1 = 0 ;
19096 int val2 ;
19097 int ecode2 = 0 ;
19098 PyObject * obj0 = 0 ;
19099 PyObject * obj1 = 0 ;
19100 char * kwnames[] = {
19101 (char *) "self",(char *) "mode", NULL
19102 };
19103
19104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19106 if (!SWIG_IsOK(res1)) {
19107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19108 }
19109 arg1 = reinterpret_cast< wxDC * >(argp1);
19110 ecode2 = SWIG_AsVal_int(obj1, &val2);
19111 if (!SWIG_IsOK(ecode2)) {
19112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19113 }
19114 arg2 = static_cast< int >(val2);
19115 {
19116 PyThreadState* __tstate = wxPyBeginAllowThreads();
19117 (arg1)->SetMapMode(arg2);
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 resultobj = SWIG_Py_Void();
19122 return resultobj;
19123fail:
19124 return NULL;
19125}
19126
19127
19128SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19129 PyObject *resultobj = 0;
19130 wxDC *arg1 = (wxDC *) 0 ;
19131 double *arg2 = (double *) 0 ;
19132 double *arg3 = (double *) 0 ;
19133 void *argp1 = 0 ;
19134 int res1 = 0 ;
19135 double temp2 ;
19136 int res2 = SWIG_TMPOBJ ;
19137 double temp3 ;
19138 int res3 = SWIG_TMPOBJ ;
19139 PyObject *swig_obj[1] ;
19140
19141 arg2 = &temp2;
19142 arg3 = &temp3;
19143 if (!args) SWIG_fail;
19144 swig_obj[0] = args;
19145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19146 if (!SWIG_IsOK(res1)) {
19147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19148 }
19149 arg1 = reinterpret_cast< wxDC * >(argp1);
19150 {
19151 PyThreadState* __tstate = wxPyBeginAllowThreads();
19152 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19153 wxPyEndAllowThreads(__tstate);
19154 if (PyErr_Occurred()) SWIG_fail;
19155 }
19156 resultobj = SWIG_Py_Void();
19157 if (SWIG_IsTmpObj(res2)) {
19158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19159 } else {
19160 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19162 }
19163 if (SWIG_IsTmpObj(res3)) {
19164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19165 } else {
19166 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19168 }
19169 return resultobj;
19170fail:
19171 return NULL;
19172}
19173
19174
19175SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19176 PyObject *resultobj = 0;
19177 wxDC *arg1 = (wxDC *) 0 ;
19178 double arg2 ;
19179 double arg3 ;
19180 void *argp1 = 0 ;
19181 int res1 = 0 ;
19182 double val2 ;
19183 int ecode2 = 0 ;
19184 double val3 ;
19185 int ecode3 = 0 ;
19186 PyObject * obj0 = 0 ;
19187 PyObject * obj1 = 0 ;
19188 PyObject * obj2 = 0 ;
19189 char * kwnames[] = {
19190 (char *) "self",(char *) "x",(char *) "y", NULL
19191 };
19192
19193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19195 if (!SWIG_IsOK(res1)) {
19196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19197 }
19198 arg1 = reinterpret_cast< wxDC * >(argp1);
19199 ecode2 = SWIG_AsVal_double(obj1, &val2);
19200 if (!SWIG_IsOK(ecode2)) {
19201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19202 }
19203 arg2 = static_cast< double >(val2);
19204 ecode3 = SWIG_AsVal_double(obj2, &val3);
19205 if (!SWIG_IsOK(ecode3)) {
19206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19207 }
19208 arg3 = static_cast< double >(val3);
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 (arg1)->SetUserScale(arg2,arg3);
19212 wxPyEndAllowThreads(__tstate);
19213 if (PyErr_Occurred()) SWIG_fail;
19214 }
19215 resultobj = SWIG_Py_Void();
19216 return resultobj;
19217fail:
19218 return NULL;
19219}
19220
19221
19222SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19223 PyObject *resultobj = 0;
19224 wxDC *arg1 = (wxDC *) 0 ;
19225 double *arg2 = (double *) 0 ;
19226 double *arg3 = (double *) 0 ;
19227 void *argp1 = 0 ;
19228 int res1 = 0 ;
19229 double temp2 ;
19230 int res2 = SWIG_TMPOBJ ;
19231 double temp3 ;
19232 int res3 = SWIG_TMPOBJ ;
19233 PyObject *swig_obj[1] ;
19234
19235 arg2 = &temp2;
19236 arg3 = &temp3;
19237 if (!args) SWIG_fail;
19238 swig_obj[0] = args;
19239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19242 }
19243 arg1 = reinterpret_cast< wxDC * >(argp1);
19244 {
19245 PyThreadState* __tstate = wxPyBeginAllowThreads();
19246 (arg1)->GetLogicalScale(arg2,arg3);
19247 wxPyEndAllowThreads(__tstate);
19248 if (PyErr_Occurred()) SWIG_fail;
19249 }
19250 resultobj = SWIG_Py_Void();
19251 if (SWIG_IsTmpObj(res2)) {
19252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19253 } else {
19254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19256 }
19257 if (SWIG_IsTmpObj(res3)) {
19258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19259 } else {
19260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19262 }
19263 return resultobj;
19264fail:
19265 return NULL;
19266}
19267
19268
19269SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19270 PyObject *resultobj = 0;
19271 wxDC *arg1 = (wxDC *) 0 ;
19272 double arg2 ;
19273 double arg3 ;
19274 void *argp1 = 0 ;
19275 int res1 = 0 ;
19276 double val2 ;
19277 int ecode2 = 0 ;
19278 double val3 ;
19279 int ecode3 = 0 ;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 PyObject * obj2 = 0 ;
19283 char * kwnames[] = {
19284 (char *) "self",(char *) "x",(char *) "y", NULL
19285 };
19286
19287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19289 if (!SWIG_IsOK(res1)) {
19290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19291 }
19292 arg1 = reinterpret_cast< wxDC * >(argp1);
19293 ecode2 = SWIG_AsVal_double(obj1, &val2);
19294 if (!SWIG_IsOK(ecode2)) {
19295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19296 }
19297 arg2 = static_cast< double >(val2);
19298 ecode3 = SWIG_AsVal_double(obj2, &val3);
19299 if (!SWIG_IsOK(ecode3)) {
19300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19301 }
19302 arg3 = static_cast< double >(val3);
19303 {
19304 PyThreadState* __tstate = wxPyBeginAllowThreads();
19305 (arg1)->SetLogicalScale(arg2,arg3);
19306 wxPyEndAllowThreads(__tstate);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 }
19309 resultobj = SWIG_Py_Void();
19310 return resultobj;
19311fail:
19312 return NULL;
19313}
19314
19315
19316SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19317 PyObject *resultobj = 0;
19318 wxDC *arg1 = (wxDC *) 0 ;
19319 wxPoint result;
19320 void *argp1 = 0 ;
19321 int res1 = 0 ;
19322 PyObject *swig_obj[1] ;
19323
19324 if (!args) SWIG_fail;
19325 swig_obj[0] = args;
19326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19327 if (!SWIG_IsOK(res1)) {
19328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19329 }
19330 arg1 = reinterpret_cast< wxDC * >(argp1);
19331 {
19332 PyThreadState* __tstate = wxPyBeginAllowThreads();
19333 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19334 wxPyEndAllowThreads(__tstate);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19338 return resultobj;
19339fail:
19340 return NULL;
19341}
19342
19343
19344SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19345 PyObject *resultobj = 0;
19346 wxDC *arg1 = (wxDC *) 0 ;
19347 int *arg2 = (int *) 0 ;
19348 int *arg3 = (int *) 0 ;
19349 void *argp1 = 0 ;
19350 int res1 = 0 ;
19351 int temp2 ;
19352 int res2 = SWIG_TMPOBJ ;
19353 int temp3 ;
19354 int res3 = SWIG_TMPOBJ ;
19355 PyObject *swig_obj[1] ;
19356
19357 arg2 = &temp2;
19358 arg3 = &temp3;
19359 if (!args) SWIG_fail;
19360 swig_obj[0] = args;
19361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19362 if (!SWIG_IsOK(res1)) {
19363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19364 }
19365 arg1 = reinterpret_cast< wxDC * >(argp1);
19366 {
19367 PyThreadState* __tstate = wxPyBeginAllowThreads();
19368 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19369 wxPyEndAllowThreads(__tstate);
19370 if (PyErr_Occurred()) SWIG_fail;
19371 }
19372 resultobj = SWIG_Py_Void();
19373 if (SWIG_IsTmpObj(res2)) {
19374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19375 } else {
19376 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19378 }
19379 if (SWIG_IsTmpObj(res3)) {
19380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19381 } else {
19382 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19384 }
19385 return resultobj;
19386fail:
19387 return NULL;
19388}
19389
19390
19391SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19392 PyObject *resultobj = 0;
19393 wxDC *arg1 = (wxDC *) 0 ;
19394 int arg2 ;
19395 int arg3 ;
19396 void *argp1 = 0 ;
19397 int res1 = 0 ;
19398 int val2 ;
19399 int ecode2 = 0 ;
19400 int val3 ;
19401 int ecode3 = 0 ;
19402 PyObject * obj0 = 0 ;
19403 PyObject * obj1 = 0 ;
19404 PyObject * obj2 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "self",(char *) "x",(char *) "y", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19411 if (!SWIG_IsOK(res1)) {
19412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19413 }
19414 arg1 = reinterpret_cast< wxDC * >(argp1);
19415 ecode2 = SWIG_AsVal_int(obj1, &val2);
19416 if (!SWIG_IsOK(ecode2)) {
19417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19418 }
19419 arg2 = static_cast< int >(val2);
19420 ecode3 = SWIG_AsVal_int(obj2, &val3);
19421 if (!SWIG_IsOK(ecode3)) {
19422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19423 }
19424 arg3 = static_cast< int >(val3);
19425 {
19426 PyThreadState* __tstate = wxPyBeginAllowThreads();
19427 (arg1)->SetLogicalOrigin(arg2,arg3);
19428 wxPyEndAllowThreads(__tstate);
19429 if (PyErr_Occurred()) SWIG_fail;
19430 }
19431 resultobj = SWIG_Py_Void();
19432 return resultobj;
19433fail:
19434 return NULL;
19435}
19436
19437
19438SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19439 PyObject *resultobj = 0;
19440 wxDC *arg1 = (wxDC *) 0 ;
19441 wxPoint *arg2 = 0 ;
19442 void *argp1 = 0 ;
19443 int res1 = 0 ;
19444 wxPoint temp2 ;
19445 PyObject * obj0 = 0 ;
19446 PyObject * obj1 = 0 ;
19447 char * kwnames[] = {
19448 (char *) "self",(char *) "point", NULL
19449 };
19450
19451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19453 if (!SWIG_IsOK(res1)) {
19454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19455 }
19456 arg1 = reinterpret_cast< wxDC * >(argp1);
19457 {
19458 arg2 = &temp2;
19459 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19460 }
19461 {
19462 PyThreadState* __tstate = wxPyBeginAllowThreads();
19463 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19464 wxPyEndAllowThreads(__tstate);
19465 if (PyErr_Occurred()) SWIG_fail;
19466 }
19467 resultobj = SWIG_Py_Void();
19468 return resultobj;
19469fail:
19470 return NULL;
19471}
19472
19473
19474SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19475 PyObject *resultobj = 0;
19476 wxDC *arg1 = (wxDC *) 0 ;
19477 wxPoint result;
19478 void *argp1 = 0 ;
19479 int res1 = 0 ;
19480 PyObject *swig_obj[1] ;
19481
19482 if (!args) SWIG_fail;
19483 swig_obj[0] = args;
19484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19485 if (!SWIG_IsOK(res1)) {
19486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19487 }
19488 arg1 = reinterpret_cast< wxDC * >(argp1);
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19496 return resultobj;
19497fail:
19498 return NULL;
19499}
19500
19501
19502SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19503 PyObject *resultobj = 0;
19504 wxDC *arg1 = (wxDC *) 0 ;
19505 int *arg2 = (int *) 0 ;
19506 int *arg3 = (int *) 0 ;
19507 void *argp1 = 0 ;
19508 int res1 = 0 ;
19509 int temp2 ;
19510 int res2 = SWIG_TMPOBJ ;
19511 int temp3 ;
19512 int res3 = SWIG_TMPOBJ ;
19513 PyObject *swig_obj[1] ;
19514
19515 arg2 = &temp2;
19516 arg3 = &temp3;
19517 if (!args) SWIG_fail;
19518 swig_obj[0] = args;
19519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19520 if (!SWIG_IsOK(res1)) {
19521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19522 }
19523 arg1 = reinterpret_cast< wxDC * >(argp1);
19524 {
19525 PyThreadState* __tstate = wxPyBeginAllowThreads();
19526 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19527 wxPyEndAllowThreads(__tstate);
19528 if (PyErr_Occurred()) SWIG_fail;
19529 }
19530 resultobj = SWIG_Py_Void();
19531 if (SWIG_IsTmpObj(res2)) {
19532 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19533 } else {
19534 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19536 }
19537 if (SWIG_IsTmpObj(res3)) {
19538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19539 } else {
19540 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19542 }
19543 return resultobj;
19544fail:
19545 return NULL;
19546}
19547
19548
19549SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj = 0;
19551 wxDC *arg1 = (wxDC *) 0 ;
19552 int arg2 ;
19553 int arg3 ;
19554 void *argp1 = 0 ;
19555 int res1 = 0 ;
19556 int val2 ;
19557 int ecode2 = 0 ;
19558 int val3 ;
19559 int ecode3 = 0 ;
19560 PyObject * obj0 = 0 ;
19561 PyObject * obj1 = 0 ;
19562 PyObject * obj2 = 0 ;
19563 char * kwnames[] = {
19564 (char *) "self",(char *) "x",(char *) "y", NULL
19565 };
19566
19567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19569 if (!SWIG_IsOK(res1)) {
19570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19571 }
19572 arg1 = reinterpret_cast< wxDC * >(argp1);
19573 ecode2 = SWIG_AsVal_int(obj1, &val2);
19574 if (!SWIG_IsOK(ecode2)) {
19575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19576 }
19577 arg2 = static_cast< int >(val2);
19578 ecode3 = SWIG_AsVal_int(obj2, &val3);
19579 if (!SWIG_IsOK(ecode3)) {
19580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19581 }
19582 arg3 = static_cast< int >(val3);
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 (arg1)->SetDeviceOrigin(arg2,arg3);
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 resultobj = SWIG_Py_Void();
19590 return resultobj;
19591fail:
19592 return NULL;
19593}
19594
19595
19596SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19597 PyObject *resultobj = 0;
19598 wxDC *arg1 = (wxDC *) 0 ;
19599 wxPoint *arg2 = 0 ;
19600 void *argp1 = 0 ;
19601 int res1 = 0 ;
19602 wxPoint temp2 ;
19603 PyObject * obj0 = 0 ;
19604 PyObject * obj1 = 0 ;
19605 char * kwnames[] = {
19606 (char *) "self",(char *) "point", NULL
19607 };
19608
19609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19611 if (!SWIG_IsOK(res1)) {
19612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19613 }
19614 arg1 = reinterpret_cast< wxDC * >(argp1);
19615 {
19616 arg2 = &temp2;
19617 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19618 }
19619 {
19620 PyThreadState* __tstate = wxPyBeginAllowThreads();
19621 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19622 wxPyEndAllowThreads(__tstate);
19623 if (PyErr_Occurred()) SWIG_fail;
19624 }
19625 resultobj = SWIG_Py_Void();
19626 return resultobj;
19627fail:
19628 return NULL;
19629}
19630
19631
19632SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19633 PyObject *resultobj = 0;
19634 wxDC *arg1 = (wxDC *) 0 ;
19635 bool arg2 ;
19636 bool arg3 ;
19637 void *argp1 = 0 ;
19638 int res1 = 0 ;
19639 bool val2 ;
19640 int ecode2 = 0 ;
19641 bool val3 ;
19642 int ecode3 = 0 ;
19643 PyObject * obj0 = 0 ;
19644 PyObject * obj1 = 0 ;
19645 PyObject * obj2 = 0 ;
19646 char * kwnames[] = {
19647 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19648 };
19649
19650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19652 if (!SWIG_IsOK(res1)) {
19653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19654 }
19655 arg1 = reinterpret_cast< wxDC * >(argp1);
19656 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19657 if (!SWIG_IsOK(ecode2)) {
19658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19659 }
19660 arg2 = static_cast< bool >(val2);
19661 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19662 if (!SWIG_IsOK(ecode3)) {
19663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19664 }
19665 arg3 = static_cast< bool >(val3);
19666 {
19667 PyThreadState* __tstate = wxPyBeginAllowThreads();
19668 (arg1)->SetAxisOrientation(arg2,arg3);
19669 wxPyEndAllowThreads(__tstate);
19670 if (PyErr_Occurred()) SWIG_fail;
19671 }
19672 resultobj = SWIG_Py_Void();
19673 return resultobj;
19674fail:
19675 return NULL;
19676}
19677
19678
19679SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19680 PyObject *resultobj = 0;
19681 wxDC *arg1 = (wxDC *) 0 ;
19682 int result;
19683 void *argp1 = 0 ;
19684 int res1 = 0 ;
19685 PyObject *swig_obj[1] ;
19686
19687 if (!args) SWIG_fail;
19688 swig_obj[0] = args;
19689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19690 if (!SWIG_IsOK(res1)) {
19691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19692 }
19693 arg1 = reinterpret_cast< wxDC * >(argp1);
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 resultobj = SWIG_From_int(static_cast< int >(result));
19701 return resultobj;
19702fail:
19703 return NULL;
19704}
19705
19706
19707SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19708 PyObject *resultobj = 0;
19709 wxDC *arg1 = (wxDC *) 0 ;
19710 int arg2 ;
19711 void *argp1 = 0 ;
19712 int res1 = 0 ;
19713 int val2 ;
19714 int ecode2 = 0 ;
19715 PyObject * obj0 = 0 ;
19716 PyObject * obj1 = 0 ;
19717 char * kwnames[] = {
19718 (char *) "self",(char *) "function", NULL
19719 };
19720
19721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19723 if (!SWIG_IsOK(res1)) {
19724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19725 }
19726 arg1 = reinterpret_cast< wxDC * >(argp1);
19727 ecode2 = SWIG_AsVal_int(obj1, &val2);
19728 if (!SWIG_IsOK(ecode2)) {
19729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19730 }
19731 arg2 = static_cast< int >(val2);
19732 {
19733 PyThreadState* __tstate = wxPyBeginAllowThreads();
19734 (arg1)->SetLogicalFunction(arg2);
19735 wxPyEndAllowThreads(__tstate);
19736 if (PyErr_Occurred()) SWIG_fail;
19737 }
19738 resultobj = SWIG_Py_Void();
19739 return resultobj;
19740fail:
19741 return NULL;
19742}
19743
19744
19745SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19746 PyObject *resultobj = 0;
19747 wxDC *arg1 = (wxDC *) 0 ;
19748 void *argp1 = 0 ;
19749 int res1 = 0 ;
19750 PyObject *swig_obj[1] ;
19751
19752 if (!args) SWIG_fail;
19753 swig_obj[0] = args;
19754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19755 if (!SWIG_IsOK(res1)) {
19756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19757 }
19758 arg1 = reinterpret_cast< wxDC * >(argp1);
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 (arg1)->ComputeScaleAndOrigin();
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 resultobj = SWIG_Py_Void();
19766 return resultobj;
19767fail:
19768 return NULL;
19769}
19770
19771
19772SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19773 PyObject *resultobj = 0;
19774 wxDC *arg1 = (wxDC *) 0 ;
19775 int arg2 ;
19776 int arg3 ;
19777 void *argp1 = 0 ;
19778 int res1 = 0 ;
19779 int val2 ;
19780 int ecode2 = 0 ;
19781 int val3 ;
19782 int ecode3 = 0 ;
19783 PyObject * obj0 = 0 ;
19784 PyObject * obj1 = 0 ;
19785 PyObject * obj2 = 0 ;
19786 char * kwnames[] = {
19787 (char *) "self",(char *) "x",(char *) "y", NULL
19788 };
19789
19790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19792 if (!SWIG_IsOK(res1)) {
19793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19794 }
19795 arg1 = reinterpret_cast< wxDC * >(argp1);
19796 ecode2 = SWIG_AsVal_int(obj1, &val2);
19797 if (!SWIG_IsOK(ecode2)) {
19798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19799 }
19800 arg2 = static_cast< int >(val2);
19801 ecode3 = SWIG_AsVal_int(obj2, &val3);
19802 if (!SWIG_IsOK(ecode3)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19804 }
19805 arg3 = static_cast< int >(val3);
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 (arg1)->CalcBoundingBox(arg2,arg3);
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 resultobj = SWIG_Py_Void();
19813 return resultobj;
19814fail:
19815 return NULL;
19816}
19817
19818
19819SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = 0;
19821 wxDC *arg1 = (wxDC *) 0 ;
19822 wxPoint *arg2 = 0 ;
19823 void *argp1 = 0 ;
19824 int res1 = 0 ;
19825 wxPoint temp2 ;
19826 PyObject * obj0 = 0 ;
19827 PyObject * obj1 = 0 ;
19828 char * kwnames[] = {
19829 (char *) "self",(char *) "point", NULL
19830 };
19831
19832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19834 if (!SWIG_IsOK(res1)) {
19835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19836 }
19837 arg1 = reinterpret_cast< wxDC * >(argp1);
19838 {
19839 arg2 = &temp2;
19840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19841 }
19842 {
19843 PyThreadState* __tstate = wxPyBeginAllowThreads();
19844 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19845 wxPyEndAllowThreads(__tstate);
19846 if (PyErr_Occurred()) SWIG_fail;
19847 }
19848 resultobj = SWIG_Py_Void();
19849 return resultobj;
19850fail:
19851 return NULL;
19852}
19853
19854
19855SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19856 PyObject *resultobj = 0;
19857 wxDC *arg1 = (wxDC *) 0 ;
19858 void *argp1 = 0 ;
19859 int res1 = 0 ;
19860 PyObject *swig_obj[1] ;
19861
19862 if (!args) SWIG_fail;
19863 swig_obj[0] = args;
19864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19865 if (!SWIG_IsOK(res1)) {
19866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19867 }
19868 arg1 = reinterpret_cast< wxDC * >(argp1);
19869 {
19870 PyThreadState* __tstate = wxPyBeginAllowThreads();
19871 (arg1)->ResetBoundingBox();
19872 wxPyEndAllowThreads(__tstate);
19873 if (PyErr_Occurred()) SWIG_fail;
19874 }
19875 resultobj = SWIG_Py_Void();
19876 return resultobj;
19877fail:
19878 return NULL;
19879}
19880
19881
19882SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19883 PyObject *resultobj = 0;
19884 wxDC *arg1 = (wxDC *) 0 ;
19885 int result;
19886 void *argp1 = 0 ;
19887 int res1 = 0 ;
19888 PyObject *swig_obj[1] ;
19889
19890 if (!args) SWIG_fail;
19891 swig_obj[0] = args;
19892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19893 if (!SWIG_IsOK(res1)) {
19894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19895 }
19896 arg1 = reinterpret_cast< wxDC * >(argp1);
19897 {
19898 PyThreadState* __tstate = wxPyBeginAllowThreads();
19899 result = (int)((wxDC const *)arg1)->MinX();
19900 wxPyEndAllowThreads(__tstate);
19901 if (PyErr_Occurred()) SWIG_fail;
19902 }
19903 resultobj = SWIG_From_int(static_cast< int >(result));
19904 return resultobj;
19905fail:
19906 return NULL;
19907}
19908
19909
19910SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19911 PyObject *resultobj = 0;
19912 wxDC *arg1 = (wxDC *) 0 ;
19913 int result;
19914 void *argp1 = 0 ;
19915 int res1 = 0 ;
19916 PyObject *swig_obj[1] ;
19917
19918 if (!args) SWIG_fail;
19919 swig_obj[0] = args;
19920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19921 if (!SWIG_IsOK(res1)) {
19922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19923 }
19924 arg1 = reinterpret_cast< wxDC * >(argp1);
19925 {
19926 PyThreadState* __tstate = wxPyBeginAllowThreads();
19927 result = (int)((wxDC const *)arg1)->MaxX();
19928 wxPyEndAllowThreads(__tstate);
19929 if (PyErr_Occurred()) SWIG_fail;
19930 }
19931 resultobj = SWIG_From_int(static_cast< int >(result));
19932 return resultobj;
19933fail:
19934 return NULL;
19935}
19936
19937
19938SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19939 PyObject *resultobj = 0;
19940 wxDC *arg1 = (wxDC *) 0 ;
19941 int result;
19942 void *argp1 = 0 ;
19943 int res1 = 0 ;
19944 PyObject *swig_obj[1] ;
19945
19946 if (!args) SWIG_fail;
19947 swig_obj[0] = args;
19948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19949 if (!SWIG_IsOK(res1)) {
19950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19951 }
19952 arg1 = reinterpret_cast< wxDC * >(argp1);
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = (int)((wxDC const *)arg1)->MinY();
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 resultobj = SWIG_From_int(static_cast< int >(result));
19960 return resultobj;
19961fail:
19962 return NULL;
19963}
19964
19965
19966SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19967 PyObject *resultobj = 0;
19968 wxDC *arg1 = (wxDC *) 0 ;
19969 int result;
19970 void *argp1 = 0 ;
19971 int res1 = 0 ;
19972 PyObject *swig_obj[1] ;
19973
19974 if (!args) SWIG_fail;
19975 swig_obj[0] = args;
19976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19977 if (!SWIG_IsOK(res1)) {
19978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19979 }
19980 arg1 = reinterpret_cast< wxDC * >(argp1);
19981 {
19982 PyThreadState* __tstate = wxPyBeginAllowThreads();
19983 result = (int)((wxDC const *)arg1)->MaxY();
19984 wxPyEndAllowThreads(__tstate);
19985 if (PyErr_Occurred()) SWIG_fail;
19986 }
19987 resultobj = SWIG_From_int(static_cast< int >(result));
19988 return resultobj;
19989fail:
19990 return NULL;
19991}
19992
19993
19994SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19995 PyObject *resultobj = 0;
19996 wxDC *arg1 = (wxDC *) 0 ;
19997 int *arg2 = (int *) 0 ;
19998 int *arg3 = (int *) 0 ;
19999 int *arg4 = (int *) 0 ;
20000 int *arg5 = (int *) 0 ;
20001 void *argp1 = 0 ;
20002 int res1 = 0 ;
20003 int temp2 ;
20004 int res2 = SWIG_TMPOBJ ;
20005 int temp3 ;
20006 int res3 = SWIG_TMPOBJ ;
20007 int temp4 ;
20008 int res4 = SWIG_TMPOBJ ;
20009 int temp5 ;
20010 int res5 = SWIG_TMPOBJ ;
20011 PyObject *swig_obj[1] ;
20012
20013 arg2 = &temp2;
20014 arg3 = &temp3;
20015 arg4 = &temp4;
20016 arg5 = &temp5;
20017 if (!args) SWIG_fail;
20018 swig_obj[0] = args;
20019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20020 if (!SWIG_IsOK(res1)) {
20021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20022 }
20023 arg1 = reinterpret_cast< wxDC * >(argp1);
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 resultobj = SWIG_Py_Void();
20031 if (SWIG_IsTmpObj(res2)) {
20032 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20033 } else {
20034 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20035 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20036 }
20037 if (SWIG_IsTmpObj(res3)) {
20038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20039 } else {
20040 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20042 }
20043 if (SWIG_IsTmpObj(res4)) {
20044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20045 } else {
20046 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20048 }
20049 if (SWIG_IsTmpObj(res5)) {
20050 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20051 } else {
20052 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20053 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20054 }
20055 return resultobj;
20056fail:
20057 return NULL;
20058}
20059
20060
20061SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = 0;
20063 wxDC *arg1 = (wxDC *) 0 ;
20064 PyObject *arg2 = (PyObject *) 0 ;
20065 PyObject *arg3 = (PyObject *) 0 ;
20066 PyObject *arg4 = (PyObject *) 0 ;
20067 PyObject *result = 0 ;
20068 void *argp1 = 0 ;
20069 int res1 = 0 ;
20070 PyObject * obj0 = 0 ;
20071 PyObject * obj1 = 0 ;
20072 PyObject * obj2 = 0 ;
20073 PyObject * obj3 = 0 ;
20074 char * kwnames[] = {
20075 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20076 };
20077
20078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20080 if (!SWIG_IsOK(res1)) {
20081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20082 }
20083 arg1 = reinterpret_cast< wxDC * >(argp1);
20084 arg2 = obj1;
20085 arg3 = obj2;
20086 arg4 = obj3;
20087 {
20088 PyThreadState* __tstate = wxPyBeginAllowThreads();
20089 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20090 wxPyEndAllowThreads(__tstate);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 }
20093 resultobj = result;
20094 return resultobj;
20095fail:
20096 return NULL;
20097}
20098
20099
20100SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj = 0;
20102 wxDC *arg1 = (wxDC *) 0 ;
20103 PyObject *arg2 = (PyObject *) 0 ;
20104 PyObject *arg3 = (PyObject *) 0 ;
20105 PyObject *arg4 = (PyObject *) 0 ;
20106 PyObject *result = 0 ;
20107 void *argp1 = 0 ;
20108 int res1 = 0 ;
20109 PyObject * obj0 = 0 ;
20110 PyObject * obj1 = 0 ;
20111 PyObject * obj2 = 0 ;
20112 PyObject * obj3 = 0 ;
20113 char * kwnames[] = {
20114 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20115 };
20116
20117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20119 if (!SWIG_IsOK(res1)) {
20120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20121 }
20122 arg1 = reinterpret_cast< wxDC * >(argp1);
20123 arg2 = obj1;
20124 arg3 = obj2;
20125 arg4 = obj3;
20126 {
20127 PyThreadState* __tstate = wxPyBeginAllowThreads();
20128 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20129 wxPyEndAllowThreads(__tstate);
20130 if (PyErr_Occurred()) SWIG_fail;
20131 }
20132 resultobj = result;
20133 return resultobj;
20134fail:
20135 return NULL;
20136}
20137
20138
20139SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20140 PyObject *resultobj = 0;
20141 wxDC *arg1 = (wxDC *) 0 ;
20142 PyObject *arg2 = (PyObject *) 0 ;
20143 PyObject *arg3 = (PyObject *) 0 ;
20144 PyObject *arg4 = (PyObject *) 0 ;
20145 PyObject *result = 0 ;
20146 void *argp1 = 0 ;
20147 int res1 = 0 ;
20148 PyObject * obj0 = 0 ;
20149 PyObject * obj1 = 0 ;
20150 PyObject * obj2 = 0 ;
20151 PyObject * obj3 = 0 ;
20152 char * kwnames[] = {
20153 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20154 };
20155
20156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20158 if (!SWIG_IsOK(res1)) {
20159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20160 }
20161 arg1 = reinterpret_cast< wxDC * >(argp1);
20162 arg2 = obj1;
20163 arg3 = obj2;
20164 arg4 = obj3;
20165 {
20166 PyThreadState* __tstate = wxPyBeginAllowThreads();
20167 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20168 wxPyEndAllowThreads(__tstate);
20169 if (PyErr_Occurred()) SWIG_fail;
20170 }
20171 resultobj = result;
20172 return resultobj;
20173fail:
20174 return NULL;
20175}
20176
20177
20178SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20179 PyObject *resultobj = 0;
20180 wxDC *arg1 = (wxDC *) 0 ;
20181 PyObject *arg2 = (PyObject *) 0 ;
20182 PyObject *arg3 = (PyObject *) 0 ;
20183 PyObject *arg4 = (PyObject *) 0 ;
20184 PyObject *result = 0 ;
20185 void *argp1 = 0 ;
20186 int res1 = 0 ;
20187 PyObject * obj0 = 0 ;
20188 PyObject * obj1 = 0 ;
20189 PyObject * obj2 = 0 ;
20190 PyObject * obj3 = 0 ;
20191 char * kwnames[] = {
20192 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20193 };
20194
20195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20197 if (!SWIG_IsOK(res1)) {
20198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20199 }
20200 arg1 = reinterpret_cast< wxDC * >(argp1);
20201 arg2 = obj1;
20202 arg3 = obj2;
20203 arg4 = obj3;
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 resultobj = result;
20211 return resultobj;
20212fail:
20213 return NULL;
20214}
20215
20216
20217SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj = 0;
20219 wxDC *arg1 = (wxDC *) 0 ;
20220 PyObject *arg2 = (PyObject *) 0 ;
20221 PyObject *arg3 = (PyObject *) 0 ;
20222 PyObject *arg4 = (PyObject *) 0 ;
20223 PyObject *result = 0 ;
20224 void *argp1 = 0 ;
20225 int res1 = 0 ;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228 PyObject * obj2 = 0 ;
20229 PyObject * obj3 = 0 ;
20230 char * kwnames[] = {
20231 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20232 };
20233
20234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20236 if (!SWIG_IsOK(res1)) {
20237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20238 }
20239 arg1 = reinterpret_cast< wxDC * >(argp1);
20240 arg2 = obj1;
20241 arg3 = obj2;
20242 arg4 = obj3;
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20246 wxPyEndAllowThreads(__tstate);
20247 if (PyErr_Occurred()) SWIG_fail;
20248 }
20249 resultobj = result;
20250 return resultobj;
20251fail:
20252 return NULL;
20253}
20254
20255
20256SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20257 PyObject *resultobj = 0;
20258 wxDC *arg1 = (wxDC *) 0 ;
20259 PyObject *arg2 = (PyObject *) 0 ;
20260 PyObject *arg3 = (PyObject *) 0 ;
20261 PyObject *arg4 = (PyObject *) 0 ;
20262 PyObject *arg5 = (PyObject *) 0 ;
20263 PyObject *result = 0 ;
20264 void *argp1 = 0 ;
20265 int res1 = 0 ;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268 PyObject * obj2 = 0 ;
20269 PyObject * obj3 = 0 ;
20270 PyObject * obj4 = 0 ;
20271 char * kwnames[] = {
20272 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20273 };
20274
20275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20277 if (!SWIG_IsOK(res1)) {
20278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20279 }
20280 arg1 = reinterpret_cast< wxDC * >(argp1);
20281 arg2 = obj1;
20282 arg3 = obj2;
20283 arg4 = obj3;
20284 arg5 = obj4;
20285 {
20286 PyThreadState* __tstate = wxPyBeginAllowThreads();
20287 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20288 wxPyEndAllowThreads(__tstate);
20289 if (PyErr_Occurred()) SWIG_fail;
20290 }
20291 resultobj = result;
20292 return resultobj;
20293fail:
20294 return NULL;
20295}
20296
20297
20298SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20299 PyObject *obj;
20300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20301 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20302 return SWIG_Py_Void();
20303}
20304
20305SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20306 PyObject *resultobj = 0;
20307 wxMemoryDC *result = 0 ;
20308
20309 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20310 {
20311 if (!wxPyCheckForApp()) SWIG_fail;
20312 PyThreadState* __tstate = wxPyBeginAllowThreads();
20313 result = (wxMemoryDC *)new wxMemoryDC();
20314 wxPyEndAllowThreads(__tstate);
20315 if (PyErr_Occurred()) SWIG_fail;
20316 }
20317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20318 return resultobj;
20319fail:
20320 return NULL;
20321}
20322
20323
20324SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20325 PyObject *resultobj = 0;
20326 wxDC *arg1 = (wxDC *) 0 ;
20327 wxMemoryDC *result = 0 ;
20328 void *argp1 = 0 ;
20329 int res1 = 0 ;
20330 PyObject * obj0 = 0 ;
20331 char * kwnames[] = {
20332 (char *) "oldDC", NULL
20333 };
20334
20335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20337 if (!SWIG_IsOK(res1)) {
20338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20339 }
20340 arg1 = reinterpret_cast< wxDC * >(argp1);
20341 {
20342 if (!wxPyCheckForApp()) SWIG_fail;
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20349 return resultobj;
20350fail:
20351 return NULL;
20352}
20353
20354
20355SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20356 PyObject *resultobj = 0;
20357 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20358 wxBitmap *arg2 = 0 ;
20359 void *argp1 = 0 ;
20360 int res1 = 0 ;
20361 void *argp2 = 0 ;
20362 int res2 = 0 ;
20363 PyObject * obj0 = 0 ;
20364 PyObject * obj1 = 0 ;
20365 char * kwnames[] = {
20366 (char *) "self",(char *) "bitmap", NULL
20367 };
20368
20369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20371 if (!SWIG_IsOK(res1)) {
20372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20373 }
20374 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20376 if (!SWIG_IsOK(res2)) {
20377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20378 }
20379 if (!argp2) {
20380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20381 }
20382 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 (arg1)->SelectObject((wxBitmap const &)*arg2);
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 resultobj = SWIG_Py_Void();
20390 return resultobj;
20391fail:
20392 return NULL;
20393}
20394
20395
20396SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20397 PyObject *obj;
20398 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20399 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20400 return SWIG_Py_Void();
20401}
20402
20403SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20404 return SWIG_Python_InitShadowInstance(args);
20405}
20406
20407SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20408 PyObject *resultobj = 0;
20409 wxDC *arg1 = (wxDC *) 0 ;
20410 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20411 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20412 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20413 wxBufferedDC *result = 0 ;
20414 void *argp1 = 0 ;
20415 int res1 = 0 ;
20416 void *argp2 = 0 ;
20417 int res2 = 0 ;
20418 int val3 ;
20419 int ecode3 = 0 ;
20420
20421 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20423 if (!SWIG_IsOK(res1)) {
20424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20425 }
20426 arg1 = reinterpret_cast< wxDC * >(argp1);
20427 if (swig_obj[1]) {
20428 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20429 if (!SWIG_IsOK(res2)) {
20430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 20431 }
1bd55598
RD
20432 if (!argp2) {
20433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 20434 }
1bd55598
RD
20435 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20436 }
20437 if (swig_obj[2]) {
20438 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20439 if (!SWIG_IsOK(ecode3)) {
20440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20441 }
20442 arg3 = static_cast< int >(val3);
20443 }
20444 {
20445 if (!wxPyCheckForApp()) SWIG_fail;
20446 PyThreadState* __tstate = wxPyBeginAllowThreads();
20447 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20448 wxPyEndAllowThreads(__tstate);
20449 if (PyErr_Occurred()) SWIG_fail;
20450 }
20451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20452 return resultobj;
20453fail:
20454 return NULL;
20455}
20456
20457
20458SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20459 PyObject *resultobj = 0;
20460 wxDC *arg1 = (wxDC *) 0 ;
20461 wxSize *arg2 = 0 ;
20462 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20463 wxBufferedDC *result = 0 ;
20464 void *argp1 = 0 ;
20465 int res1 = 0 ;
20466 wxSize temp2 ;
20467 int val3 ;
20468 int ecode3 = 0 ;
20469
20470 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20472 if (!SWIG_IsOK(res1)) {
20473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20474 }
20475 arg1 = reinterpret_cast< wxDC * >(argp1);
20476 {
20477 arg2 = &temp2;
20478 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20479 }
20480 if (swig_obj[2]) {
20481 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20482 if (!SWIG_IsOK(ecode3)) {
20483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20484 }
20485 arg3 = static_cast< int >(val3);
20486 }
20487 {
20488 if (!wxPyCheckForApp()) SWIG_fail;
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20495 return resultobj;
20496fail:
20497 return NULL;
20498}
20499
20500
20501SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20502 int argc;
20503 PyObject *argv[4];
20504
20505 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20506 --argc;
20507 if ((argc >= 1) && (argc <= 3)) {
20508 int _v = 0;
20509 if (argc > 1) {
20510 {
20511 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20512 _v = SWIG_CheckState(res);
20513 }
20514 if (!_v) goto check_1;
36ed4f51 20515 }
1bd55598
RD
20516 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20517 }
20518check_1:
20519
20520 if ((argc >= 2) && (argc <= 3)) {
20521 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20522 }
20523
20524fail:
20525 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20526 return NULL;
20527}
20528
20529
20530SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20531 PyObject *resultobj = 0;
20532 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20533 void *argp1 = 0 ;
20534 int res1 = 0 ;
20535 PyObject *swig_obj[1] ;
20536
20537 if (!args) SWIG_fail;
20538 swig_obj[0] = args;
20539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20540 if (!SWIG_IsOK(res1)) {
20541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20542 }
20543 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20544 {
20545 PyThreadState* __tstate = wxPyBeginAllowThreads();
20546 delete arg1;
20547
20548 wxPyEndAllowThreads(__tstate);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
20551 resultobj = SWIG_Py_Void();
20552 return resultobj;
20553fail:
20554 return NULL;
20555}
20556
20557
20558SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20559 PyObject *resultobj = 0;
20560 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20561 void *argp1 = 0 ;
20562 int res1 = 0 ;
20563 PyObject *swig_obj[1] ;
20564
20565 if (!args) SWIG_fail;
20566 swig_obj[0] = args;
20567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20568 if (!SWIG_IsOK(res1)) {
20569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20570 }
20571 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20572 {
20573 PyThreadState* __tstate = wxPyBeginAllowThreads();
20574 (arg1)->UnMask();
20575 wxPyEndAllowThreads(__tstate);
20576 if (PyErr_Occurred()) SWIG_fail;
20577 }
20578 resultobj = SWIG_Py_Void();
20579 return resultobj;
20580fail:
20581 return NULL;
20582}
20583
20584
20585SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20586 PyObject *obj;
20587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20588 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20589 return SWIG_Py_Void();
20590}
20591
20592SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20593 return SWIG_Python_InitShadowInstance(args);
20594}
20595
20596SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20597 PyObject *resultobj = 0;
20598 wxWindow *arg1 = (wxWindow *) 0 ;
20599 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20600 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20601 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20602 wxBufferedPaintDC *result = 0 ;
20603 void *argp1 = 0 ;
20604 int res1 = 0 ;
20605 void *argp2 = 0 ;
20606 int res2 = 0 ;
20607 int val3 ;
20608 int ecode3 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 PyObject * obj2 = 0 ;
20612 char * kwnames[] = {
20613 (char *) "window",(char *) "buffer",(char *) "style", NULL
20614 };
20615
20616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20618 if (!SWIG_IsOK(res1)) {
20619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20620 }
20621 arg1 = reinterpret_cast< wxWindow * >(argp1);
20622 if (obj1) {
20623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20624 if (!SWIG_IsOK(res2)) {
20625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 20626 }
1bd55598
RD
20627 if (!argp2) {
20628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 20629 }
1bd55598
RD
20630 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20631 }
20632 if (obj2) {
20633 ecode3 = SWIG_AsVal_int(obj2, &val3);
20634 if (!SWIG_IsOK(ecode3)) {
20635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20636 }
20637 arg3 = static_cast< int >(val3);
20638 }
20639 {
20640 if (!wxPyCheckForApp()) SWIG_fail;
20641 PyThreadState* __tstate = wxPyBeginAllowThreads();
20642 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20643 wxPyEndAllowThreads(__tstate);
20644 if (PyErr_Occurred()) SWIG_fail;
20645 }
20646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20647 return resultobj;
20648fail:
20649 return NULL;
20650}
20651
20652
20653SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20654 PyObject *obj;
20655 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20656 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20657 return SWIG_Py_Void();
20658}
20659
20660SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20661 return SWIG_Python_InitShadowInstance(args);
20662}
20663
20664SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20665 PyObject *resultobj = 0;
20666 wxScreenDC *result = 0 ;
20667
20668 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20669 {
20670 if (!wxPyCheckForApp()) SWIG_fail;
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 result = (wxScreenDC *)new wxScreenDC();
20673 wxPyEndAllowThreads(__tstate);
20674 if (PyErr_Occurred()) SWIG_fail;
20675 }
20676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20677 return resultobj;
20678fail:
20679 return NULL;
20680}
20681
20682
20683SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20684 PyObject *resultobj = 0;
20685 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20686 wxWindow *arg2 = (wxWindow *) 0 ;
20687 bool result;
20688 void *argp1 = 0 ;
20689 int res1 = 0 ;
20690 void *argp2 = 0 ;
20691 int res2 = 0 ;
20692 PyObject * obj0 = 0 ;
20693 PyObject * obj1 = 0 ;
20694 char * kwnames[] = {
20695 (char *) "self",(char *) "window", NULL
20696 };
20697
20698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20700 if (!SWIG_IsOK(res1)) {
20701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20702 }
20703 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20705 if (!SWIG_IsOK(res2)) {
20706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20707 }
20708 arg2 = reinterpret_cast< wxWindow * >(argp2);
20709 {
20710 PyThreadState* __tstate = wxPyBeginAllowThreads();
20711 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 {
20716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20717 }
20718 return resultobj;
20719fail:
20720 return NULL;
20721}
20722
20723
20724SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20725 PyObject *resultobj = 0;
20726 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20727 wxRect *arg2 = (wxRect *) NULL ;
20728 bool result;
20729 void *argp1 = 0 ;
20730 int res1 = 0 ;
20731 void *argp2 = 0 ;
20732 int res2 = 0 ;
20733 PyObject * obj0 = 0 ;
20734 PyObject * obj1 = 0 ;
20735 char * kwnames[] = {
20736 (char *) "self",(char *) "rect", NULL
20737 };
20738
20739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20741 if (!SWIG_IsOK(res1)) {
20742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20743 }
20744 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20745 if (obj1) {
20746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20747 if (!SWIG_IsOK(res2)) {
20748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 20749 }
1bd55598
RD
20750 arg2 = reinterpret_cast< wxRect * >(argp2);
20751 }
20752 {
20753 PyThreadState* __tstate = wxPyBeginAllowThreads();
20754 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20755 wxPyEndAllowThreads(__tstate);
20756 if (PyErr_Occurred()) SWIG_fail;
20757 }
20758 {
20759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20760 }
20761 return resultobj;
20762fail:
20763 return NULL;
20764}
20765
20766
20767SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20768 PyObject *resultobj = 0;
20769 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20770 bool result;
20771 void *argp1 = 0 ;
20772 int res1 = 0 ;
20773 PyObject *swig_obj[1] ;
20774
20775 if (!args) SWIG_fail;
20776 swig_obj[0] = args;
20777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20778 if (!SWIG_IsOK(res1)) {
20779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20780 }
20781 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20782 {
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 result = (bool)(arg1)->EndDrawingOnTop();
20785 wxPyEndAllowThreads(__tstate);
20786 if (PyErr_Occurred()) SWIG_fail;
20787 }
20788 {
20789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20790 }
20791 return resultobj;
20792fail:
20793 return NULL;
20794}
20795
20796
20797SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20798 PyObject *obj;
20799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20800 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20801 return SWIG_Py_Void();
20802}
20803
20804SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20805 return SWIG_Python_InitShadowInstance(args);
20806}
20807
20808SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20809 PyObject *resultobj = 0;
20810 wxWindow *arg1 = (wxWindow *) 0 ;
20811 wxClientDC *result = 0 ;
20812 void *argp1 = 0 ;
20813 int res1 = 0 ;
20814 PyObject * obj0 = 0 ;
20815 char * kwnames[] = {
20816 (char *) "win", NULL
20817 };
20818
20819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20821 if (!SWIG_IsOK(res1)) {
20822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20823 }
20824 arg1 = reinterpret_cast< wxWindow * >(argp1);
20825 {
20826 if (!wxPyCheckForApp()) SWIG_fail;
20827 PyThreadState* __tstate = wxPyBeginAllowThreads();
20828 result = (wxClientDC *)new wxClientDC(arg1);
20829 wxPyEndAllowThreads(__tstate);
20830 if (PyErr_Occurred()) SWIG_fail;
20831 }
20832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20833 return resultobj;
20834fail:
20835 return NULL;
20836}
20837
20838
20839SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20840 PyObject *obj;
20841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20842 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20843 return SWIG_Py_Void();
20844}
20845
20846SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20847 return SWIG_Python_InitShadowInstance(args);
20848}
20849
20850SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxWindow *arg1 = (wxWindow *) 0 ;
20853 wxPaintDC *result = 0 ;
20854 void *argp1 = 0 ;
20855 int res1 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 char * kwnames[] = {
20858 (char *) "win", NULL
20859 };
20860
20861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20863 if (!SWIG_IsOK(res1)) {
20864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20865 }
20866 arg1 = reinterpret_cast< wxWindow * >(argp1);
20867 {
20868 if (!wxPyCheckForApp()) SWIG_fail;
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 result = (wxPaintDC *)new wxPaintDC(arg1);
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20875 return resultobj;
20876fail:
20877 return NULL;
20878}
20879
20880
20881SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20882 PyObject *obj;
20883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20884 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20885 return SWIG_Py_Void();
20886}
20887
20888SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20889 return SWIG_Python_InitShadowInstance(args);
20890}
20891
20892SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20893 PyObject *resultobj = 0;
20894 wxWindow *arg1 = (wxWindow *) 0 ;
20895 wxWindowDC *result = 0 ;
20896 void *argp1 = 0 ;
20897 int res1 = 0 ;
20898 PyObject * obj0 = 0 ;
20899 char * kwnames[] = {
20900 (char *) "win", NULL
20901 };
20902
20903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20905 if (!SWIG_IsOK(res1)) {
20906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20907 }
20908 arg1 = reinterpret_cast< wxWindow * >(argp1);
20909 {
20910 if (!wxPyCheckForApp()) SWIG_fail;
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 result = (wxWindowDC *)new wxWindowDC(arg1);
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20917 return resultobj;
20918fail:
20919 return NULL;
20920}
20921
20922
20923SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20924 PyObject *obj;
20925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20926 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20927 return SWIG_Py_Void();
20928}
20929
20930SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20931 return SWIG_Python_InitShadowInstance(args);
20932}
20933
20934SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20935 PyObject *resultobj = 0;
20936 wxDC *arg1 = 0 ;
20937 bool arg2 ;
20938 wxMirrorDC *result = 0 ;
20939 void *argp1 = 0 ;
20940 int res1 = 0 ;
20941 bool val2 ;
20942 int ecode2 = 0 ;
20943 PyObject * obj0 = 0 ;
20944 PyObject * obj1 = 0 ;
20945 char * kwnames[] = {
20946 (char *) "dc",(char *) "mirror", NULL
20947 };
20948
20949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20950 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20951 if (!SWIG_IsOK(res1)) {
20952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20953 }
20954 if (!argp1) {
20955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20956 }
20957 arg1 = reinterpret_cast< wxDC * >(argp1);
20958 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20959 if (!SWIG_IsOK(ecode2)) {
20960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20961 }
20962 arg2 = static_cast< bool >(val2);
20963 {
20964 if (!wxPyCheckForApp()) SWIG_fail;
20965 PyThreadState* __tstate = wxPyBeginAllowThreads();
20966 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20967 wxPyEndAllowThreads(__tstate);
20968 if (PyErr_Occurred()) SWIG_fail;
20969 }
20970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20971 return resultobj;
20972fail:
20973 return NULL;
20974}
20975
20976
20977SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20978 PyObject *obj;
20979 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20980 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20981 return SWIG_Py_Void();
20982}
20983
20984SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20985 return SWIG_Python_InitShadowInstance(args);
20986}
20987
20988SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20989 PyObject *resultobj = 0;
20990 wxPrintData *arg1 = 0 ;
20991 wxPostScriptDC *result = 0 ;
20992 void *argp1 = 0 ;
20993 int res1 = 0 ;
20994 PyObject * obj0 = 0 ;
20995 char * kwnames[] = {
20996 (char *) "printData", NULL
20997 };
20998
20999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21000 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21001 if (!SWIG_IsOK(res1)) {
21002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21003 }
21004 if (!argp1) {
21005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21006 }
21007 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21008 {
21009 if (!wxPyCheckForApp()) SWIG_fail;
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21016 return resultobj;
21017fail:
21018 return NULL;
21019}
21020
21021
21022SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21023 PyObject *resultobj = 0;
21024 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21025 wxPrintData *result = 0 ;
21026 void *argp1 = 0 ;
21027 int res1 = 0 ;
21028 PyObject *swig_obj[1] ;
21029
21030 if (!args) SWIG_fail;
21031 swig_obj[0] = args;
21032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21033 if (!SWIG_IsOK(res1)) {
21034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21035 }
21036 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21037 {
21038 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 21039 {
1bd55598
RD
21040 wxPrintData &_result_ref = (arg1)->GetPrintData();
21041 result = (wxPrintData *) &_result_ref;
e2950dbb 21042 }
1bd55598
RD
21043 wxPyEndAllowThreads(__tstate);
21044 if (PyErr_Occurred()) SWIG_fail;
21045 }
21046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21047 return resultobj;
21048fail:
21049 return NULL;
21050}
21051
21052
21053SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21054 PyObject *resultobj = 0;
21055 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21056 wxPrintData *arg2 = 0 ;
21057 void *argp1 = 0 ;
21058 int res1 = 0 ;
21059 void *argp2 = 0 ;
21060 int res2 = 0 ;
21061 PyObject * obj0 = 0 ;
21062 PyObject * obj1 = 0 ;
21063 char * kwnames[] = {
21064 (char *) "self",(char *) "data", NULL
21065 };
21066
21067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21069 if (!SWIG_IsOK(res1)) {
21070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21071 }
21072 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21074 if (!SWIG_IsOK(res2)) {
21075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21076 }
21077 if (!argp2) {
21078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21079 }
21080 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21081 {
21082 PyThreadState* __tstate = wxPyBeginAllowThreads();
21083 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21084 wxPyEndAllowThreads(__tstate);
21085 if (PyErr_Occurred()) SWIG_fail;
21086 }
21087 resultobj = SWIG_Py_Void();
21088 return resultobj;
21089fail:
21090 return NULL;
21091}
21092
21093
21094SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21095 PyObject *resultobj = 0;
21096 int arg1 ;
21097 int val1 ;
21098 int ecode1 = 0 ;
21099 PyObject * obj0 = 0 ;
21100 char * kwnames[] = {
21101 (char *) "ppi", NULL
21102 };
21103
21104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21105 ecode1 = SWIG_AsVal_int(obj0, &val1);
21106 if (!SWIG_IsOK(ecode1)) {
21107 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21108 }
21109 arg1 = static_cast< int >(val1);
21110 {
21111 PyThreadState* __tstate = wxPyBeginAllowThreads();
21112 wxPostScriptDC::SetResolution(arg1);
21113 wxPyEndAllowThreads(__tstate);
21114 if (PyErr_Occurred()) SWIG_fail;
21115 }
21116 resultobj = SWIG_Py_Void();
21117 return resultobj;
21118fail:
21119 return NULL;
21120}
21121
21122
21123SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21124 PyObject *resultobj = 0;
21125 int result;
21126
21127 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21128 {
21129 PyThreadState* __tstate = wxPyBeginAllowThreads();
21130 result = (int)wxPostScriptDC::GetResolution();
21131 wxPyEndAllowThreads(__tstate);
21132 if (PyErr_Occurred()) SWIG_fail;
21133 }
21134 resultobj = SWIG_From_int(static_cast< int >(result));
21135 return resultobj;
21136fail:
21137 return NULL;
21138}
21139
21140
21141SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21142 PyObject *obj;
21143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21144 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21145 return SWIG_Py_Void();
21146}
21147
21148SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21149 return SWIG_Python_InitShadowInstance(args);
21150}
21151
21152SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21153 PyObject *resultobj = 0;
21154 wxString const &arg1_defvalue = wxPyEmptyString ;
21155 wxString *arg1 = (wxString *) &arg1_defvalue ;
21156 wxMetaFile *result = 0 ;
21157 bool temp1 = false ;
21158 PyObject * obj0 = 0 ;
21159 char * kwnames[] = {
21160 (char *) "filename", NULL
21161 };
21162
21163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21164 if (obj0) {
36ed4f51 21165 {
1bd55598
RD
21166 arg1 = wxString_in_helper(obj0);
21167 if (arg1 == NULL) SWIG_fail;
21168 temp1 = true;
36ed4f51 21169 }
1bd55598
RD
21170 }
21171 {
21172 if (!wxPyCheckForApp()) SWIG_fail;
21173 PyThreadState* __tstate = wxPyBeginAllowThreads();
21174 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21179 {
21180 if (temp1)
21181 delete arg1;
21182 }
21183 return resultobj;
21184fail:
21185 {
21186 if (temp1)
21187 delete arg1;
21188 }
21189 return NULL;
21190}
21191
21192
21193SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21194 PyObject *resultobj = 0;
21195 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21196 void *argp1 = 0 ;
21197 int res1 = 0 ;
21198 PyObject *swig_obj[1] ;
21199
21200 if (!args) SWIG_fail;
21201 swig_obj[0] = args;
21202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21203 if (!SWIG_IsOK(res1)) {
21204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21205 }
21206 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21207 {
21208 PyThreadState* __tstate = wxPyBeginAllowThreads();
21209 delete arg1;
21210
21211 wxPyEndAllowThreads(__tstate);
21212 if (PyErr_Occurred()) SWIG_fail;
21213 }
21214 resultobj = SWIG_Py_Void();
21215 return resultobj;
21216fail:
21217 return NULL;
21218}
21219
21220
21221SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21222 PyObject *resultobj = 0;
21223 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21224 bool result;
21225 void *argp1 = 0 ;
21226 int res1 = 0 ;
21227 PyObject *swig_obj[1] ;
21228
21229 if (!args) SWIG_fail;
21230 swig_obj[0] = args;
21231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21232 if (!SWIG_IsOK(res1)) {
21233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21234 }
21235 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = (bool)(arg1)->Ok();
21239 wxPyEndAllowThreads(__tstate);
21240 if (PyErr_Occurred()) SWIG_fail;
21241 }
21242 {
21243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21244 }
21245 return resultobj;
21246fail:
21247 return NULL;
21248}
21249
21250
21251SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21252 PyObject *resultobj = 0;
21253 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21254 int arg2 = (int) 0 ;
21255 int arg3 = (int) 0 ;
21256 bool result;
21257 void *argp1 = 0 ;
21258 int res1 = 0 ;
21259 int val2 ;
21260 int ecode2 = 0 ;
21261 int val3 ;
21262 int ecode3 = 0 ;
21263 PyObject * obj0 = 0 ;
21264 PyObject * obj1 = 0 ;
21265 PyObject * obj2 = 0 ;
21266 char * kwnames[] = {
21267 (char *) "self",(char *) "width",(char *) "height", NULL
21268 };
21269
21270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21272 if (!SWIG_IsOK(res1)) {
21273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21274 }
21275 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21276 if (obj1) {
21277 ecode2 = SWIG_AsVal_int(obj1, &val2);
21278 if (!SWIG_IsOK(ecode2)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21280 }
21281 arg2 = static_cast< int >(val2);
21282 }
21283 if (obj2) {
21284 ecode3 = SWIG_AsVal_int(obj2, &val3);
21285 if (!SWIG_IsOK(ecode3)) {
21286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21287 }
21288 arg3 = static_cast< int >(val3);
21289 }
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 {
21297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21298 }
21299 return resultobj;
21300fail:
21301 return NULL;
21302}
21303
21304
21305SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21306 PyObject *resultobj = 0;
21307 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21308 wxSize result;
21309 void *argp1 = 0 ;
21310 int res1 = 0 ;
21311 PyObject *swig_obj[1] ;
21312
21313 if (!args) SWIG_fail;
21314 swig_obj[0] = args;
21315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21316 if (!SWIG_IsOK(res1)) {
21317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21318 }
21319 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21320 {
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 result = (arg1)->GetSize();
21323 wxPyEndAllowThreads(__tstate);
21324 if (PyErr_Occurred()) SWIG_fail;
21325 }
21326 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21327 return resultobj;
21328fail:
21329 return NULL;
21330}
21331
21332
21333SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21334 PyObject *resultobj = 0;
21335 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21336 int result;
21337 void *argp1 = 0 ;
21338 int res1 = 0 ;
21339 PyObject *swig_obj[1] ;
21340
21341 if (!args) SWIG_fail;
21342 swig_obj[0] = args;
21343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21344 if (!SWIG_IsOK(res1)) {
21345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21346 }
21347 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21348 {
21349 PyThreadState* __tstate = wxPyBeginAllowThreads();
21350 result = (int)(arg1)->GetWidth();
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 resultobj = SWIG_From_int(static_cast< int >(result));
21355 return resultobj;
21356fail:
21357 return NULL;
21358}
21359
21360
21361SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21362 PyObject *resultobj = 0;
21363 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21364 int result;
21365 void *argp1 = 0 ;
21366 int res1 = 0 ;
21367 PyObject *swig_obj[1] ;
21368
21369 if (!args) SWIG_fail;
21370 swig_obj[0] = args;
21371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21372 if (!SWIG_IsOK(res1)) {
21373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21374 }
21375 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21376 {
21377 PyThreadState* __tstate = wxPyBeginAllowThreads();
21378 result = (int)(arg1)->GetHeight();
21379 wxPyEndAllowThreads(__tstate);
21380 if (PyErr_Occurred()) SWIG_fail;
21381 }
21382 resultobj = SWIG_From_int(static_cast< int >(result));
21383 return resultobj;
21384fail:
21385 return NULL;
21386}
21387
21388
21389SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21390 PyObject *obj;
21391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21392 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21393 return SWIG_Py_Void();
21394}
21395
21396SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21397 return SWIG_Python_InitShadowInstance(args);
21398}
21399
21400SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21401 PyObject *resultobj = 0;
21402 wxString const &arg1_defvalue = wxPyEmptyString ;
21403 wxString *arg1 = (wxString *) &arg1_defvalue ;
21404 int arg2 = (int) 0 ;
21405 int arg3 = (int) 0 ;
21406 wxString const &arg4_defvalue = wxPyEmptyString ;
21407 wxString *arg4 = (wxString *) &arg4_defvalue ;
21408 wxMetaFileDC *result = 0 ;
21409 bool temp1 = false ;
21410 int val2 ;
21411 int ecode2 = 0 ;
21412 int val3 ;
21413 int ecode3 = 0 ;
21414 bool temp4 = false ;
21415 PyObject * obj0 = 0 ;
21416 PyObject * obj1 = 0 ;
21417 PyObject * obj2 = 0 ;
21418 PyObject * obj3 = 0 ;
21419 char * kwnames[] = {
21420 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21421 };
21422
21423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21424 if (obj0) {
36ed4f51 21425 {
1bd55598
RD
21426 arg1 = wxString_in_helper(obj0);
21427 if (arg1 == NULL) SWIG_fail;
21428 temp1 = true;
36ed4f51 21429 }
1bd55598
RD
21430 }
21431 if (obj1) {
21432 ecode2 = SWIG_AsVal_int(obj1, &val2);
21433 if (!SWIG_IsOK(ecode2)) {
21434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21435 }
21436 arg2 = static_cast< int >(val2);
21437 }
21438 if (obj2) {
21439 ecode3 = SWIG_AsVal_int(obj2, &val3);
21440 if (!SWIG_IsOK(ecode3)) {
21441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21442 }
21443 arg3 = static_cast< int >(val3);
21444 }
21445 if (obj3) {
36ed4f51 21446 {
1bd55598
RD
21447 arg4 = wxString_in_helper(obj3);
21448 if (arg4 == NULL) SWIG_fail;
21449 temp4 = true;
36ed4f51 21450 }
1bd55598
RD
21451 }
21452 {
21453 if (!wxPyCheckForApp()) SWIG_fail;
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21460 {
21461 if (temp1)
21462 delete arg1;
21463 }
21464 {
21465 if (temp4)
21466 delete arg4;
21467 }
21468 return resultobj;
21469fail:
21470 {
21471 if (temp1)
21472 delete arg1;
21473 }
21474 {
21475 if (temp4)
21476 delete arg4;
21477 }
21478 return NULL;
21479}
21480
21481
21482SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21483 PyObject *resultobj = 0;
21484 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
21485 wxMetaFile *result = 0 ;
21486 void *argp1 = 0 ;
21487 int res1 = 0 ;
21488 PyObject *swig_obj[1] ;
21489
21490 if (!args) SWIG_fail;
21491 swig_obj[0] = args;
21492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
21493 if (!SWIG_IsOK(res1)) {
21494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
21495 }
21496 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = (wxMetaFile *)(arg1)->Close();
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
21504 return resultobj;
21505fail:
21506 return NULL;
21507}
21508
21509
21510SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21511 PyObject *obj;
21512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21513 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21514 return SWIG_Py_Void();
21515}
21516
21517SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21518 return SWIG_Python_InitShadowInstance(args);
21519}
21520
21521SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21522 PyObject *resultobj = 0;
21523 wxPrintData *arg1 = 0 ;
21524 wxPrinterDC *result = 0 ;
21525 void *argp1 = 0 ;
21526 int res1 = 0 ;
21527 PyObject * obj0 = 0 ;
21528 char * kwnames[] = {
21529 (char *) "printData", NULL
21530 };
21531
21532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21533 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21536 }
21537 if (!argp1) {
21538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21539 }
21540 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21541 {
21542 if (!wxPyCheckForApp()) SWIG_fail;
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21545 wxPyEndAllowThreads(__tstate);
21546 if (PyErr_Occurred()) SWIG_fail;
21547 }
21548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21549 return resultobj;
21550fail:
21551 return NULL;
21552}
21553
21554
21555SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21556 PyObject *obj;
21557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21558 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21559 return SWIG_Py_Void();
21560}
21561
21562SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21563 return SWIG_Python_InitShadowInstance(args);
21564}
21565
21566SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21567 PyObject *resultobj = 0;
21568 int arg1 ;
21569 int arg2 ;
21570 int arg3 = (int) true ;
21571 int arg4 = (int) 1 ;
21572 wxImageList *result = 0 ;
21573 int val1 ;
21574 int ecode1 = 0 ;
21575 int val2 ;
21576 int ecode2 = 0 ;
21577 int val3 ;
21578 int ecode3 = 0 ;
21579 int val4 ;
21580 int ecode4 = 0 ;
21581 PyObject * obj0 = 0 ;
21582 PyObject * obj1 = 0 ;
21583 PyObject * obj2 = 0 ;
21584 PyObject * obj3 = 0 ;
21585 char * kwnames[] = {
21586 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21587 };
21588
21589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21590 ecode1 = SWIG_AsVal_int(obj0, &val1);
21591 if (!SWIG_IsOK(ecode1)) {
21592 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21593 }
21594 arg1 = static_cast< int >(val1);
21595 ecode2 = SWIG_AsVal_int(obj1, &val2);
21596 if (!SWIG_IsOK(ecode2)) {
21597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21598 }
21599 arg2 = static_cast< int >(val2);
21600 if (obj2) {
21601 ecode3 = SWIG_AsVal_int(obj2, &val3);
21602 if (!SWIG_IsOK(ecode3)) {
21603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21604 }
21605 arg3 = static_cast< int >(val3);
21606 }
21607 if (obj3) {
21608 ecode4 = SWIG_AsVal_int(obj3, &val4);
21609 if (!SWIG_IsOK(ecode4)) {
21610 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21611 }
21612 arg4 = static_cast< int >(val4);
21613 }
21614 {
21615 if (!wxPyCheckForApp()) SWIG_fail;
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21618 wxPyEndAllowThreads(__tstate);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 {
21622 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21623 }
21624 return resultobj;
21625fail:
21626 return NULL;
21627}
21628
21629
21630SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21631 PyObject *resultobj = 0;
21632 wxImageList *arg1 = (wxImageList *) 0 ;
21633 void *argp1 = 0 ;
21634 int res1 = 0 ;
21635 PyObject *swig_obj[1] ;
21636
21637 if (!args) SWIG_fail;
21638 swig_obj[0] = args;
21639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21640 if (!SWIG_IsOK(res1)) {
21641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21642 }
21643 arg1 = reinterpret_cast< wxImageList * >(argp1);
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 delete arg1;
21647
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_Py_Void();
21652 return resultobj;
21653fail:
21654 return NULL;
21655}
21656
21657
21658SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj = 0;
21660 wxImageList *arg1 = (wxImageList *) 0 ;
21661 wxBitmap *arg2 = 0 ;
21662 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21663 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21664 int result;
21665 void *argp1 = 0 ;
21666 int res1 = 0 ;
21667 void *argp2 = 0 ;
21668 int res2 = 0 ;
21669 void *argp3 = 0 ;
21670 int res3 = 0 ;
21671 PyObject * obj0 = 0 ;
21672 PyObject * obj1 = 0 ;
21673 PyObject * obj2 = 0 ;
21674 char * kwnames[] = {
21675 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21676 };
21677
21678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21680 if (!SWIG_IsOK(res1)) {
21681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21682 }
21683 arg1 = reinterpret_cast< wxImageList * >(argp1);
21684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21685 if (!SWIG_IsOK(res2)) {
21686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21687 }
21688 if (!argp2) {
21689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21690 }
21691 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21692 if (obj2) {
21693 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21694 if (!SWIG_IsOK(res3)) {
21695 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
36ed4f51 21696 }
1bd55598
RD
21697 if (!argp3) {
21698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
36ed4f51 21699 }
1bd55598
RD
21700 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21701 }
21702 {
21703 PyThreadState* __tstate = wxPyBeginAllowThreads();
21704 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21705 wxPyEndAllowThreads(__tstate);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 }
21708 resultobj = SWIG_From_int(static_cast< int >(result));
21709 return resultobj;
21710fail:
21711 return NULL;
21712}
21713
21714
21715SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21716 PyObject *resultobj = 0;
21717 wxImageList *arg1 = (wxImageList *) 0 ;
21718 wxBitmap *arg2 = 0 ;
21719 wxColour *arg3 = 0 ;
21720 int result;
21721 void *argp1 = 0 ;
21722 int res1 = 0 ;
21723 void *argp2 = 0 ;
21724 int res2 = 0 ;
21725 wxColour temp3 ;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 PyObject * obj2 = 0 ;
21729 char * kwnames[] = {
21730 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21731 };
21732
21733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21735 if (!SWIG_IsOK(res1)) {
21736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21737 }
21738 arg1 = reinterpret_cast< wxImageList * >(argp1);
21739 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21740 if (!SWIG_IsOK(res2)) {
21741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21742 }
21743 if (!argp2) {
21744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21745 }
21746 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21747 {
21748 arg3 = &temp3;
21749 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21750 }
21751 {
21752 PyThreadState* __tstate = wxPyBeginAllowThreads();
21753 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 resultobj = SWIG_From_int(static_cast< int >(result));
21758 return resultobj;
21759fail:
21760 return NULL;
21761}
21762
21763
21764SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21765 PyObject *resultobj = 0;
21766 wxImageList *arg1 = (wxImageList *) 0 ;
21767 wxIcon *arg2 = 0 ;
21768 int result;
21769 void *argp1 = 0 ;
21770 int res1 = 0 ;
21771 void *argp2 = 0 ;
21772 int res2 = 0 ;
21773 PyObject * obj0 = 0 ;
21774 PyObject * obj1 = 0 ;
21775 char * kwnames[] = {
21776 (char *) "self",(char *) "icon", NULL
21777 };
21778
21779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21781 if (!SWIG_IsOK(res1)) {
21782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21783 }
21784 arg1 = reinterpret_cast< wxImageList * >(argp1);
21785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21786 if (!SWIG_IsOK(res2)) {
21787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21788 }
21789 if (!argp2) {
21790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21791 }
21792 arg2 = reinterpret_cast< wxIcon * >(argp2);
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21796 wxPyEndAllowThreads(__tstate);
21797 if (PyErr_Occurred()) SWIG_fail;
21798 }
21799 resultobj = SWIG_From_int(static_cast< int >(result));
21800 return resultobj;
21801fail:
21802 return NULL;
21803}
21804
21805
21806SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj = 0;
21808 wxImageList *arg1 = (wxImageList *) 0 ;
21809 int arg2 ;
21810 SwigValueWrapper<wxBitmap > result;
21811 void *argp1 = 0 ;
21812 int res1 = 0 ;
21813 int val2 ;
21814 int ecode2 = 0 ;
21815 PyObject * obj0 = 0 ;
21816 PyObject * obj1 = 0 ;
21817 char * kwnames[] = {
21818 (char *) "self",(char *) "index", NULL
21819 };
21820
21821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21823 if (!SWIG_IsOK(res1)) {
21824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21825 }
21826 arg1 = reinterpret_cast< wxImageList * >(argp1);
21827 ecode2 = SWIG_AsVal_int(obj1, &val2);
21828 if (!SWIG_IsOK(ecode2)) {
21829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21830 }
21831 arg2 = static_cast< int >(val2);
21832 {
21833 PyThreadState* __tstate = wxPyBeginAllowThreads();
21834 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21835 wxPyEndAllowThreads(__tstate);
21836 if (PyErr_Occurred()) SWIG_fail;
21837 }
21838 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21839 return resultobj;
21840fail:
21841 return NULL;
21842}
21843
21844
21845SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21846 PyObject *resultobj = 0;
21847 wxImageList *arg1 = (wxImageList *) 0 ;
21848 int arg2 ;
21849 wxIcon result;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 int val2 ;
21853 int ecode2 = 0 ;
21854 PyObject * obj0 = 0 ;
21855 PyObject * obj1 = 0 ;
21856 char * kwnames[] = {
21857 (char *) "self",(char *) "index", NULL
21858 };
21859
21860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21862 if (!SWIG_IsOK(res1)) {
21863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21864 }
21865 arg1 = reinterpret_cast< wxImageList * >(argp1);
21866 ecode2 = SWIG_AsVal_int(obj1, &val2);
21867 if (!SWIG_IsOK(ecode2)) {
21868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21869 }
21870 arg2 = static_cast< int >(val2);
21871 {
21872 PyThreadState* __tstate = wxPyBeginAllowThreads();
21873 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21874 wxPyEndAllowThreads(__tstate);
21875 if (PyErr_Occurred()) SWIG_fail;
21876 }
21877 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21878 return resultobj;
21879fail:
21880 return NULL;
21881}
21882
21883
21884SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21885 PyObject *resultobj = 0;
21886 wxImageList *arg1 = (wxImageList *) 0 ;
21887 int arg2 ;
21888 wxBitmap *arg3 = 0 ;
2131d850
RD
21889 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21890 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
21891 bool result;
21892 void *argp1 = 0 ;
21893 int res1 = 0 ;
21894 int val2 ;
21895 int ecode2 = 0 ;
21896 void *argp3 = 0 ;
21897 int res3 = 0 ;
2131d850
RD
21898 void *argp4 = 0 ;
21899 int res4 = 0 ;
1bd55598
RD
21900 PyObject * obj0 = 0 ;
21901 PyObject * obj1 = 0 ;
21902 PyObject * obj2 = 0 ;
2131d850 21903 PyObject * obj3 = 0 ;
1bd55598 21904 char * kwnames[] = {
2131d850 21905 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
21906 };
21907
2131d850 21908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
21909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21910 if (!SWIG_IsOK(res1)) {
21911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21912 }
21913 arg1 = reinterpret_cast< wxImageList * >(argp1);
21914 ecode2 = SWIG_AsVal_int(obj1, &val2);
21915 if (!SWIG_IsOK(ecode2)) {
21916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21917 }
21918 arg2 = static_cast< int >(val2);
21919 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21920 if (!SWIG_IsOK(res3)) {
21921 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21922 }
21923 if (!argp3) {
21924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21925 }
21926 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
21927 if (obj3) {
21928 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21929 if (!SWIG_IsOK(res4)) {
21930 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21931 }
21932 if (!argp4) {
21933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21934 }
21935 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21936 }
1bd55598
RD
21937 {
21938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 21939 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
21940 wxPyEndAllowThreads(__tstate);
21941 if (PyErr_Occurred()) SWIG_fail;
21942 }
21943 {
21944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21945 }
21946 return resultobj;
21947fail:
21948 return NULL;
21949}
21950
21951
21952SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21953 PyObject *resultobj = 0;
21954 wxImageList *arg1 = (wxImageList *) 0 ;
21955 int arg2 ;
21956 wxDC *arg3 = 0 ;
21957 int arg4 ;
21958 int arg5 ;
21959 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21960 bool arg7 = (bool) (bool)false ;
21961 bool result;
21962 void *argp1 = 0 ;
21963 int res1 = 0 ;
21964 int val2 ;
21965 int ecode2 = 0 ;
21966 void *argp3 = 0 ;
21967 int res3 = 0 ;
21968 int val4 ;
21969 int ecode4 = 0 ;
21970 int val5 ;
21971 int ecode5 = 0 ;
21972 int val6 ;
21973 int ecode6 = 0 ;
21974 bool val7 ;
21975 int ecode7 = 0 ;
21976 PyObject * obj0 = 0 ;
21977 PyObject * obj1 = 0 ;
21978 PyObject * obj2 = 0 ;
21979 PyObject * obj3 = 0 ;
21980 PyObject * obj4 = 0 ;
21981 PyObject * obj5 = 0 ;
21982 PyObject * obj6 = 0 ;
21983 char * kwnames[] = {
21984 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21985 };
21986
21987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21989 if (!SWIG_IsOK(res1)) {
21990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21991 }
21992 arg1 = reinterpret_cast< wxImageList * >(argp1);
21993 ecode2 = SWIG_AsVal_int(obj1, &val2);
21994 if (!SWIG_IsOK(ecode2)) {
21995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21996 }
21997 arg2 = static_cast< int >(val2);
21998 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21999 if (!SWIG_IsOK(res3)) {
22000 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22001 }
22002 if (!argp3) {
22003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22004 }
22005 arg3 = reinterpret_cast< wxDC * >(argp3);
22006 ecode4 = SWIG_AsVal_int(obj3, &val4);
22007 if (!SWIG_IsOK(ecode4)) {
22008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22009 }
22010 arg4 = static_cast< int >(val4);
22011 ecode5 = SWIG_AsVal_int(obj4, &val5);
22012 if (!SWIG_IsOK(ecode5)) {
22013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22014 }
22015 arg5 = static_cast< int >(val5);
22016 if (obj5) {
22017 ecode6 = SWIG_AsVal_int(obj5, &val6);
22018 if (!SWIG_IsOK(ecode6)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22020 }
22021 arg6 = static_cast< int >(val6);
22022 }
22023 if (obj6) {
22024 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22025 if (!SWIG_IsOK(ecode7)) {
22026 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22027 }
22028 arg7 = static_cast< bool >(val7);
22029 }
22030 {
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
22032 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 {
22037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22038 }
22039 return resultobj;
22040fail:
22041 return NULL;
22042}
22043
22044
22045SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22046 PyObject *resultobj = 0;
22047 wxImageList *arg1 = (wxImageList *) 0 ;
22048 int result;
22049 void *argp1 = 0 ;
22050 int res1 = 0 ;
22051 PyObject *swig_obj[1] ;
22052
22053 if (!args) SWIG_fail;
22054 swig_obj[0] = args;
22055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22056 if (!SWIG_IsOK(res1)) {
22057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22058 }
22059 arg1 = reinterpret_cast< wxImageList * >(argp1);
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = (int)(arg1)->GetImageCount();
22063 wxPyEndAllowThreads(__tstate);
22064 if (PyErr_Occurred()) SWIG_fail;
22065 }
22066 resultobj = SWIG_From_int(static_cast< int >(result));
22067 return resultobj;
22068fail:
22069 return NULL;
22070}
22071
22072
22073SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22074 PyObject *resultobj = 0;
22075 wxImageList *arg1 = (wxImageList *) 0 ;
22076 int arg2 ;
22077 bool result;
22078 void *argp1 = 0 ;
22079 int res1 = 0 ;
22080 int val2 ;
22081 int ecode2 = 0 ;
22082 PyObject * obj0 = 0 ;
22083 PyObject * obj1 = 0 ;
22084 char * kwnames[] = {
22085 (char *) "self",(char *) "index", NULL
22086 };
22087
22088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22090 if (!SWIG_IsOK(res1)) {
22091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22092 }
22093 arg1 = reinterpret_cast< wxImageList * >(argp1);
22094 ecode2 = SWIG_AsVal_int(obj1, &val2);
22095 if (!SWIG_IsOK(ecode2)) {
22096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22097 }
22098 arg2 = static_cast< int >(val2);
22099 {
22100 PyThreadState* __tstate = wxPyBeginAllowThreads();
22101 result = (bool)(arg1)->Remove(arg2);
22102 wxPyEndAllowThreads(__tstate);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 }
22105 {
22106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22107 }
22108 return resultobj;
22109fail:
22110 return NULL;
22111}
22112
22113
22114SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22115 PyObject *resultobj = 0;
22116 wxImageList *arg1 = (wxImageList *) 0 ;
22117 bool result;
22118 void *argp1 = 0 ;
22119 int res1 = 0 ;
22120 PyObject *swig_obj[1] ;
22121
22122 if (!args) SWIG_fail;
22123 swig_obj[0] = args;
22124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22125 if (!SWIG_IsOK(res1)) {
22126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22127 }
22128 arg1 = reinterpret_cast< wxImageList * >(argp1);
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 result = (bool)(arg1)->RemoveAll();
22132 wxPyEndAllowThreads(__tstate);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 }
22135 {
22136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22137 }
22138 return resultobj;
22139fail:
22140 return NULL;
22141}
22142
22143
22144SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22145 PyObject *resultobj = 0;
22146 wxImageList *arg1 = (wxImageList *) 0 ;
22147 int arg2 ;
22148 int *arg3 = 0 ;
22149 int *arg4 = 0 ;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 int val2 ;
22153 int ecode2 = 0 ;
22154 int temp3 ;
22155 int res3 = SWIG_TMPOBJ ;
22156 int temp4 ;
22157 int res4 = SWIG_TMPOBJ ;
22158 PyObject * obj0 = 0 ;
22159 PyObject * obj1 = 0 ;
22160 char * kwnames[] = {
22161 (char *) "self",(char *) "index", NULL
22162 };
22163
22164 arg3 = &temp3;
22165 arg4 = &temp4;
22166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22168 if (!SWIG_IsOK(res1)) {
22169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22170 }
22171 arg1 = reinterpret_cast< wxImageList * >(argp1);
22172 ecode2 = SWIG_AsVal_int(obj1, &val2);
22173 if (!SWIG_IsOK(ecode2)) {
22174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22175 }
22176 arg2 = static_cast< int >(val2);
22177 {
22178 PyThreadState* __tstate = wxPyBeginAllowThreads();
22179 (arg1)->GetSize(arg2,*arg3,*arg4);
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 resultobj = SWIG_Py_Void();
22184 if (SWIG_IsTmpObj(res3)) {
22185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22186 } else {
22187 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22189 }
22190 if (SWIG_IsTmpObj(res4)) {
22191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22192 } else {
22193 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22195 }
22196 return resultobj;
22197fail:
22198 return NULL;
22199}
22200
22201
22202SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22203 PyObject *obj;
22204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22205 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22206 return SWIG_Py_Void();
22207}
22208
22209SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22210 return SWIG_Python_InitShadowInstance(args);
22211}
22212
da91cb0f
RD
22213SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22214 PyObject *resultobj = 0;
22215 wxStockGDI *result = 0 ;
1bd55598 22216
da91cb0f
RD
22217 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 result = (wxStockGDI *)new wxStockGDI();
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22225 return resultobj;
22226fail:
22227 return NULL;
1bd55598
RD
22228}
22229
22230
da91cb0f
RD
22231SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22232 PyObject *resultobj = 0;
22233 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22234 void *argp1 = 0 ;
22235 int res1 = 0 ;
22236 PyObject *swig_obj[1] ;
1bd55598 22237
da91cb0f
RD
22238 if (!args) SWIG_fail;
22239 swig_obj[0] = args;
22240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22241 if (!SWIG_IsOK(res1)) {
22242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22243 }
22244 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 delete arg1;
22248
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 resultobj = SWIG_Py_Void();
22253 return resultobj;
22254fail:
22255 return NULL;
1bd55598
RD
22256}
22257
22258
da91cb0f
RD
22259SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22260 PyObject *resultobj = 0;
1bd55598 22261
da91cb0f
RD
22262 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22263 {
22264 PyThreadState* __tstate = wxPyBeginAllowThreads();
22265 wxStockGDI::DeleteAll();
22266 wxPyEndAllowThreads(__tstate);
22267 if (PyErr_Occurred()) SWIG_fail;
22268 }
22269 resultobj = SWIG_Py_Void();
22270 return resultobj;
22271fail:
22272 return NULL;
1bd55598
RD
22273}
22274
22275
da91cb0f
RD
22276SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22277 PyObject *resultobj = 0;
22278 wxStockGDI *result = 0 ;
1bd55598 22279
da91cb0f
RD
22280 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 {
22284 wxStockGDI &_result_ref = wxStockGDI::instance();
22285 result = (wxStockGDI *) &_result_ref;
22286 }
22287 wxPyEndAllowThreads(__tstate);
22288 if (PyErr_Occurred()) SWIG_fail;
22289 }
22290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22291 return resultobj;
22292fail:
22293 return NULL;
1bd55598
RD
22294}
22295
22296
da91cb0f
RD
22297SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22298 PyObject *resultobj = 0;
22299 wxStockGDI::Item arg1 ;
22300 wxBrush *result = 0 ;
22301 int val1 ;
22302 int ecode1 = 0 ;
22303 PyObject * obj0 = 0 ;
22304 char * kwnames[] = {
22305 (char *) "item", NULL
22306 };
22307
22308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22309 ecode1 = SWIG_AsVal_int(obj0, &val1);
22310 if (!SWIG_IsOK(ecode1)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22312 }
22313 arg1 = static_cast< wxStockGDI::Item >(val1);
22314 {
22315 PyThreadState* __tstate = wxPyBeginAllowThreads();
22316 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22321 return resultobj;
22322fail:
22323 return NULL;
1bd55598
RD
22324}
22325
22326
da91cb0f
RD
22327SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj = 0;
22329 wxStockGDI::Item arg1 ;
22330 wxColour *result = 0 ;
22331 int val1 ;
22332 int ecode1 = 0 ;
22333 PyObject * obj0 = 0 ;
22334 char * kwnames[] = {
22335 (char *) "item", NULL
22336 };
1bd55598 22337
da91cb0f
RD
22338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22339 ecode1 = SWIG_AsVal_int(obj0, &val1);
22340 if (!SWIG_IsOK(ecode1)) {
22341 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22342 }
22343 arg1 = static_cast< wxStockGDI::Item >(val1);
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 result = (wxColour *)wxStockGDI::GetColour(arg1);
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22351 return resultobj;
22352fail:
22353 return NULL;
1bd55598
RD
22354}
22355
22356
da91cb0f
RD
22357SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj = 0;
22359 wxStockGDI::Item arg1 ;
22360 wxCursor *result = 0 ;
22361 int val1 ;
22362 int ecode1 = 0 ;
22363 PyObject * obj0 = 0 ;
22364 char * kwnames[] = {
22365 (char *) "item", NULL
22366 };
22367
22368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22369 ecode1 = SWIG_AsVal_int(obj0, &val1);
22370 if (!SWIG_IsOK(ecode1)) {
22371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22372 }
22373 arg1 = static_cast< wxStockGDI::Item >(val1);
22374 {
22375 PyThreadState* __tstate = wxPyBeginAllowThreads();
22376 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22377 wxPyEndAllowThreads(__tstate);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 }
22380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22381 return resultobj;
22382fail:
22383 return NULL;
1bd55598
RD
22384}
22385
22386
da91cb0f
RD
22387SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj = 0;
22389 wxStockGDI::Item arg1 ;
22390 wxPen *result = 0 ;
22391 int val1 ;
22392 int ecode1 = 0 ;
22393 PyObject * obj0 = 0 ;
22394 char * kwnames[] = {
22395 (char *) "item", NULL
22396 };
22397
22398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22399 ecode1 = SWIG_AsVal_int(obj0, &val1);
22400 if (!SWIG_IsOK(ecode1)) {
22401 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22402 }
22403 arg1 = static_cast< wxStockGDI::Item >(val1);
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 result = (wxPen *)wxStockGDI::GetPen(arg1);
22407 wxPyEndAllowThreads(__tstate);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 }
22410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22411 return resultobj;
22412fail:
22413 return NULL;
1bd55598
RD
22414}
22415
22416
da91cb0f
RD
22417SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22418 PyObject *resultobj = 0;
22419 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22420 wxStockGDI::Item arg2 ;
22421 wxFont *result = 0 ;
22422 void *argp1 = 0 ;
22423 int res1 = 0 ;
22424 int val2 ;
22425 int ecode2 = 0 ;
22426 PyObject * obj0 = 0 ;
22427 PyObject * obj1 = 0 ;
22428 char * kwnames[] = {
22429 (char *) "self",(char *) "item", NULL
22430 };
1bd55598 22431
da91cb0f
RD
22432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22434 if (!SWIG_IsOK(res1)) {
22435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22436 }
22437 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22438 ecode2 = SWIG_AsVal_int(obj1, &val2);
22439 if (!SWIG_IsOK(ecode2)) {
22440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22441 }
22442 arg2 = static_cast< wxStockGDI::Item >(val2);
22443 {
22444 PyThreadState* __tstate = wxPyBeginAllowThreads();
22445 result = (wxFont *)(arg1)->GetFont(arg2);
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
22449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22450 return resultobj;
22451fail:
22452 return NULL;
1bd55598
RD
22453}
22454
22455
da91cb0f
RD
22456SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22457 PyObject *obj;
22458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22459 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22460 return SWIG_Py_Void();
1bd55598
RD
22461}
22462
da91cb0f
RD
22463SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22464 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
22465}
22466
1bd55598
RD
22467SWIGINTERN int NullBitmap_set(PyObject *) {
22468 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22469 return 1;
22470}
22471
22472
22473SWIGINTERN PyObject *NullBitmap_get(void) {
22474 PyObject *pyobj = 0;
22475
22476 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22477 return pyobj;
22478}
22479
22480
22481SWIGINTERN int NullIcon_set(PyObject *) {
22482 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22483 return 1;
22484}
22485
22486
22487SWIGINTERN PyObject *NullIcon_get(void) {
22488 PyObject *pyobj = 0;
22489
22490 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22491 return pyobj;
22492}
22493
22494
22495SWIGINTERN int NullCursor_set(PyObject *) {
22496 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22497 return 1;
22498}
22499
22500
22501SWIGINTERN PyObject *NullCursor_get(void) {
22502 PyObject *pyobj = 0;
22503
22504 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22505 return pyobj;
22506}
22507
22508
22509SWIGINTERN int NullPen_set(PyObject *) {
22510 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22511 return 1;
22512}
22513
22514
22515SWIGINTERN PyObject *NullPen_get(void) {
22516 PyObject *pyobj = 0;
22517
22518 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22519 return pyobj;
22520}
22521
22522
22523SWIGINTERN int NullBrush_set(PyObject *) {
22524 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22525 return 1;
22526}
22527
22528
22529SWIGINTERN PyObject *NullBrush_get(void) {
22530 PyObject *pyobj = 0;
22531
22532 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22533 return pyobj;
22534}
22535
22536
22537SWIGINTERN int NullPalette_set(PyObject *) {
22538 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22539 return 1;
22540}
22541
22542
22543SWIGINTERN PyObject *NullPalette_get(void) {
22544 PyObject *pyobj = 0;
22545
22546 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22547 return pyobj;
22548}
22549
22550
22551SWIGINTERN int NullFont_set(PyObject *) {
22552 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22553 return 1;
22554}
22555
22556
22557SWIGINTERN PyObject *NullFont_get(void) {
22558 PyObject *pyobj = 0;
22559
22560 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22561 return pyobj;
22562}
22563
22564
22565SWIGINTERN int NullColour_set(PyObject *) {
22566 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22567 return 1;
22568}
22569
22570
22571SWIGINTERN PyObject *NullColour_get(void) {
22572 PyObject *pyobj = 0;
22573
22574 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22575 return pyobj;
22576}
22577
22578
da91cb0f 22579SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 22580 PyObject *resultobj = 0;
da91cb0f
RD
22581 wxGDIObjListBase *result = 0 ;
22582
22583 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22584 {
22585 PyThreadState* __tstate = wxPyBeginAllowThreads();
22586 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22587 wxPyEndAllowThreads(__tstate);
22588 if (PyErr_Occurred()) SWIG_fail;
22589 }
22590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22591 return resultobj;
22592fail:
22593 return NULL;
22594}
22595
22596
22597SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22598 PyObject *resultobj = 0;
22599 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
22600 void *argp1 = 0 ;
22601 int res1 = 0 ;
da91cb0f 22602 PyObject *swig_obj[1] ;
1bd55598 22603
da91cb0f
RD
22604 if (!args) SWIG_fail;
22605 swig_obj[0] = args;
22606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 22607 if (!SWIG_IsOK(res1)) {
da91cb0f 22608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 22609 }
da91cb0f 22610 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
22611 {
22612 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
22613 delete arg1;
22614
1bd55598
RD
22615 wxPyEndAllowThreads(__tstate);
22616 if (PyErr_Occurred()) SWIG_fail;
22617 }
22618 resultobj = SWIG_Py_Void();
22619 return resultobj;
22620fail:
22621 return NULL;
22622}
22623
22624
da91cb0f
RD
22625SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22626 PyObject *obj;
22627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22628 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22629 return SWIG_Py_Void();
22630}
22631
22632SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22633 return SWIG_Python_InitShadowInstance(args);
22634}
22635
1bd55598
RD
22636SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22637 PyObject *resultobj = 0;
22638 wxPenList *arg1 = (wxPenList *) 0 ;
22639 wxColour *arg2 = 0 ;
22640 int arg3 ;
22641 int arg4 ;
22642 wxPen *result = 0 ;
22643 void *argp1 = 0 ;
22644 int res1 = 0 ;
22645 wxColour temp2 ;
22646 int val3 ;
22647 int ecode3 = 0 ;
22648 int val4 ;
22649 int ecode4 = 0 ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 PyObject * obj2 = 0 ;
22653 PyObject * obj3 = 0 ;
22654 char * kwnames[] = {
22655 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22656 };
22657
22658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22660 if (!SWIG_IsOK(res1)) {
22661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22662 }
22663 arg1 = reinterpret_cast< wxPenList * >(argp1);
22664 {
22665 arg2 = &temp2;
22666 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22667 }
22668 ecode3 = SWIG_AsVal_int(obj2, &val3);
22669 if (!SWIG_IsOK(ecode3)) {
22670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22671 }
22672 arg3 = static_cast< int >(val3);
22673 ecode4 = SWIG_AsVal_int(obj3, &val4);
22674 if (!SWIG_IsOK(ecode4)) {
22675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22676 }
22677 arg4 = static_cast< int >(val4);
22678 {
22679 PyThreadState* __tstate = wxPyBeginAllowThreads();
22680 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22685 return resultobj;
22686fail:
22687 return NULL;
22688}
22689
22690
da91cb0f 22691SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
22692 PyObject *resultobj = 0;
22693 wxPenList *arg1 = (wxPenList *) 0 ;
22694 wxPen *arg2 = (wxPen *) 0 ;
22695 void *argp1 = 0 ;
22696 int res1 = 0 ;
22697 void *argp2 = 0 ;
22698 int res2 = 0 ;
22699 PyObject * obj0 = 0 ;
22700 PyObject * obj1 = 0 ;
22701 char * kwnames[] = {
22702 (char *) "self",(char *) "pen", NULL
22703 };
22704
da91cb0f 22705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
22706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22707 if (!SWIG_IsOK(res1)) {
da91cb0f 22708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
22709 }
22710 arg1 = reinterpret_cast< wxPenList * >(argp1);
22711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22712 if (!SWIG_IsOK(res2)) {
da91cb0f 22713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
22714 }
22715 arg2 = reinterpret_cast< wxPen * >(argp2);
22716 {
22717 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 22718 (arg1)->AddPen(arg2);
1bd55598
RD
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 resultobj = SWIG_Py_Void();
22723 return resultobj;
22724fail:
22725 return NULL;
22726}
22727
22728
da91cb0f 22729SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
22730 PyObject *resultobj = 0;
22731 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 22732 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
22733 void *argp1 = 0 ;
22734 int res1 = 0 ;
da91cb0f
RD
22735 void *argp2 = 0 ;
22736 int res2 = 0 ;
22737 PyObject * obj0 = 0 ;
22738 PyObject * obj1 = 0 ;
22739 char * kwnames[] = {
22740 (char *) "self",(char *) "pen", NULL
22741 };
1bd55598 22742
da91cb0f
RD
22743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 22745 if (!SWIG_IsOK(res1)) {
da91cb0f 22746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
22747 }
22748 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
22749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22750 if (!SWIG_IsOK(res2)) {
22751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22752 }
22753 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 22756 (arg1)->RemovePen(arg2);
1bd55598
RD
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
da91cb0f 22760 resultobj = SWIG_Py_Void();
1bd55598
RD
22761 return resultobj;
22762fail:
22763 return NULL;
22764}
22765
22766
22767SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22768 PyObject *obj;
22769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22770 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22771 return SWIG_Py_Void();
22772}
22773
da91cb0f
RD
22774SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj = 0;
22776 wxBrushList *arg1 = (wxBrushList *) 0 ;
22777 wxColour *arg2 = 0 ;
22778 int arg3 = (int) wxSOLID ;
22779 wxBrush *result = 0 ;
22780 void *argp1 = 0 ;
22781 int res1 = 0 ;
22782 wxColour temp2 ;
22783 int val3 ;
22784 int ecode3 = 0 ;
22785 PyObject * obj0 = 0 ;
22786 PyObject * obj1 = 0 ;
22787 PyObject * obj2 = 0 ;
22788 char * kwnames[] = {
22789 (char *) "self",(char *) "colour",(char *) "style", NULL
22790 };
22791
22792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22794 if (!SWIG_IsOK(res1)) {
22795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22796 }
22797 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22798 {
22799 arg2 = &temp2;
22800 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22801 }
22802 if (obj2) {
22803 ecode3 = SWIG_AsVal_int(obj2, &val3);
22804 if (!SWIG_IsOK(ecode3)) {
22805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22806 }
22807 arg3 = static_cast< int >(val3);
22808 }
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22816 return resultobj;
22817fail:
22818 return NULL;
22819}
22820
22821
1bd55598
RD
22822SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj = 0;
22824 wxBrushList *arg1 = (wxBrushList *) 0 ;
22825 wxBrush *arg2 = (wxBrush *) 0 ;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 void *argp2 = 0 ;
22829 int res2 = 0 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "brush", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22840 }
22841 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22843 if (!SWIG_IsOK(res2)) {
22844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22845 }
22846 arg2 = reinterpret_cast< wxBrush * >(argp2);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 (arg1)->AddBrush(arg2);
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_Py_Void();
22854 return resultobj;
22855fail:
22856 return NULL;
22857}
22858
22859
da91cb0f 22860SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
22861 PyObject *resultobj = 0;
22862 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 22863 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
da91cb0f
RD
22866 void *argp2 = 0 ;
22867 int res2 = 0 ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char * kwnames[] = {
22871 (char *) "self",(char *) "brush", NULL
22872 };
22873
22874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22878 }
22879 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22881 if (!SWIG_IsOK(res2)) {
22882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22883 }
22884 arg2 = reinterpret_cast< wxBrush * >(argp2);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 (arg1)->RemoveBrush(arg2);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_Py_Void();
22892 return resultobj;
22893fail:
22894 return NULL;
22895}
22896
22897
22898SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *obj;
22900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22901 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22902 return SWIG_Py_Void();
22903}
22904
22905SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22906 PyObject *resultobj = 0;
22907 wxFontList *arg1 = (wxFontList *) 0 ;
22908 int arg2 ;
22909 int arg3 ;
22910 int arg4 ;
22911 int arg5 ;
22912 bool arg6 = (bool) false ;
22913 wxString const &arg7_defvalue = wxPyEmptyString ;
22914 wxString *arg7 = (wxString *) &arg7_defvalue ;
22915 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22916 wxFont *result = 0 ;
22917 void *argp1 = 0 ;
22918 int res1 = 0 ;
22919 int val2 ;
22920 int ecode2 = 0 ;
1bd55598
RD
22921 int val3 ;
22922 int ecode3 = 0 ;
da91cb0f
RD
22923 int val4 ;
22924 int ecode4 = 0 ;
22925 int val5 ;
22926 int ecode5 = 0 ;
22927 bool val6 ;
22928 int ecode6 = 0 ;
22929 bool temp7 = false ;
22930 int val8 ;
22931 int ecode8 = 0 ;
1bd55598
RD
22932 PyObject * obj0 = 0 ;
22933 PyObject * obj1 = 0 ;
22934 PyObject * obj2 = 0 ;
da91cb0f
RD
22935 PyObject * obj3 = 0 ;
22936 PyObject * obj4 = 0 ;
22937 PyObject * obj5 = 0 ;
22938 PyObject * obj6 = 0 ;
22939 PyObject * obj7 = 0 ;
1bd55598 22940 char * kwnames[] = {
da91cb0f 22941 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
22942 };
22943
da91cb0f
RD
22944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 22946 if (!SWIG_IsOK(res1)) {
da91cb0f 22947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 22948 }
da91cb0f
RD
22949 arg1 = reinterpret_cast< wxFontList * >(argp1);
22950 ecode2 = SWIG_AsVal_int(obj1, &val2);
22951 if (!SWIG_IsOK(ecode2)) {
22952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22953 }
22954 arg2 = static_cast< int >(val2);
22955 ecode3 = SWIG_AsVal_int(obj2, &val3);
22956 if (!SWIG_IsOK(ecode3)) {
22957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22958 }
22959 arg3 = static_cast< int >(val3);
22960 ecode4 = SWIG_AsVal_int(obj3, &val4);
22961 if (!SWIG_IsOK(ecode4)) {
22962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22963 }
22964 arg4 = static_cast< int >(val4);
22965 ecode5 = SWIG_AsVal_int(obj4, &val5);
22966 if (!SWIG_IsOK(ecode5)) {
22967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22968 }
22969 arg5 = static_cast< int >(val5);
22970 if (obj5) {
22971 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22972 if (!SWIG_IsOK(ecode6)) {
22973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22974 }
22975 arg6 = static_cast< bool >(val6);
1bd55598 22976 }
da91cb0f
RD
22977 if (obj6) {
22978 {
22979 arg7 = wxString_in_helper(obj6);
22980 if (arg7 == NULL) SWIG_fail;
22981 temp7 = true;
22982 }
22983 }
22984 if (obj7) {
22985 ecode8 = SWIG_AsVal_int(obj7, &val8);
22986 if (!SWIG_IsOK(ecode8)) {
22987 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 22988 }
da91cb0f 22989 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
22990 }
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 22993 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
da91cb0f
RD
22997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22998 {
22999 if (temp7)
23000 delete arg7;
23001 }
1bd55598
RD
23002 return resultobj;
23003fail:
da91cb0f
RD
23004 {
23005 if (temp7)
23006 delete arg7;
23007 }
1bd55598
RD
23008 return NULL;
23009}
23010
23011
da91cb0f 23012SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23013 PyObject *resultobj = 0;
da91cb0f
RD
23014 wxFontList *arg1 = (wxFontList *) 0 ;
23015 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 void *argp2 = 0 ;
23019 int res2 = 0 ;
23020 PyObject * obj0 = 0 ;
23021 PyObject * obj1 = 0 ;
23022 char * kwnames[] = {
da91cb0f 23023 (char *) "self",(char *) "font", NULL
1bd55598
RD
23024 };
23025
da91cb0f
RD
23026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 23028 if (!SWIG_IsOK(res1)) {
da91cb0f 23029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 23030 }
da91cb0f
RD
23031 arg1 = reinterpret_cast< wxFontList * >(argp1);
23032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 23033 if (!SWIG_IsOK(res2)) {
da91cb0f 23034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 23035 }
da91cb0f 23036 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 23039 (arg1)->AddFont(arg2);
1bd55598
RD
23040 wxPyEndAllowThreads(__tstate);
23041 if (PyErr_Occurred()) SWIG_fail;
23042 }
23043 resultobj = SWIG_Py_Void();
23044 return resultobj;
23045fail:
23046 return NULL;
23047}
23048
23049
da91cb0f 23050SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23051 PyObject *resultobj = 0;
da91cb0f
RD
23052 wxFontList *arg1 = (wxFontList *) 0 ;
23053 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
23054 void *argp1 = 0 ;
23055 int res1 = 0 ;
da91cb0f
RD
23056 void *argp2 = 0 ;
23057 int res2 = 0 ;
23058 PyObject * obj0 = 0 ;
23059 PyObject * obj1 = 0 ;
23060 char * kwnames[] = {
23061 (char *) "self",(char *) "font", NULL
23062 };
1bd55598 23063
da91cb0f
RD
23064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 23066 if (!SWIG_IsOK(res1)) {
da91cb0f 23067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 23068 }
da91cb0f
RD
23069 arg1 = reinterpret_cast< wxFontList * >(argp1);
23070 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23071 if (!SWIG_IsOK(res2)) {
23072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23073 }
23074 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 23077 (arg1)->RemoveFont(arg2);
1bd55598
RD
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
da91cb0f 23081 resultobj = SWIG_Py_Void();
1bd55598
RD
23082 return resultobj;
23083fail:
23084 return NULL;
23085}
23086
23087
da91cb0f 23088SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23089 PyObject *obj;
23090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 23091 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
23092 return SWIG_Py_Void();
23093}
23094
23095SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *resultobj = 0;
23097 wxColourDatabase *result = 0 ;
23098
23099 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23100 {
23101 if (!wxPyCheckForApp()) SWIG_fail;
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 result = (wxColourDatabase *)new wxColourDatabase();
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23108 return resultobj;
23109fail:
23110 return NULL;
23111}
23112
23113
23114SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115 PyObject *resultobj = 0;
23116 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23117 void *argp1 = 0 ;
23118 int res1 = 0 ;
23119 PyObject *swig_obj[1] ;
23120
23121 if (!args) SWIG_fail;
23122 swig_obj[0] = args;
23123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23124 if (!SWIG_IsOK(res1)) {
23125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23126 }
23127 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 delete arg1;
23131
23132 wxPyEndAllowThreads(__tstate);
23133 if (PyErr_Occurred()) SWIG_fail;
23134 }
23135 resultobj = SWIG_Py_Void();
23136 return resultobj;
23137fail:
23138 return NULL;
23139}
23140
23141
23142SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23143 PyObject *resultobj = 0;
23144 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23145 wxString *arg2 = 0 ;
23146 wxColour result;
23147 void *argp1 = 0 ;
23148 int res1 = 0 ;
23149 bool temp2 = false ;
23150 PyObject * obj0 = 0 ;
23151 PyObject * obj1 = 0 ;
23152 char * kwnames[] = {
23153 (char *) "self",(char *) "name", NULL
23154 };
23155
23156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23158 if (!SWIG_IsOK(res1)) {
23159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23160 }
23161 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23162 {
23163 arg2 = wxString_in_helper(obj1);
23164 if (arg2 == NULL) SWIG_fail;
23165 temp2 = true;
23166 }
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23174 {
23175 if (temp2)
23176 delete arg2;
23177 }
23178 return resultobj;
23179fail:
23180 {
23181 if (temp2)
23182 delete arg2;
23183 }
23184 return NULL;
23185}
23186
23187
23188SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23189 PyObject *resultobj = 0;
23190 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23191 wxColour *arg2 = 0 ;
23192 wxString result;
23193 void *argp1 = 0 ;
23194 int res1 = 0 ;
23195 wxColour temp2 ;
23196 PyObject * obj0 = 0 ;
23197 PyObject * obj1 = 0 ;
23198 char * kwnames[] = {
23199 (char *) "self",(char *) "colour", NULL
23200 };
23201
23202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23204 if (!SWIG_IsOK(res1)) {
23205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23206 }
23207 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23208 {
23209 arg2 = &temp2;
23210 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23211 }
23212 {
23213 PyThreadState* __tstate = wxPyBeginAllowThreads();
23214 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 {
23219#if wxUSE_UNICODE
23220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23221#else
23222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23223#endif
23224 }
23225 return resultobj;
23226fail:
23227 return NULL;
23228}
23229
23230
23231SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23232 PyObject *resultobj = 0;
23233 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23234 wxString *arg2 = 0 ;
23235 wxColour *arg3 = 0 ;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 bool temp2 = false ;
23239 wxColour temp3 ;
23240 PyObject * obj0 = 0 ;
23241 PyObject * obj1 = 0 ;
23242 PyObject * obj2 = 0 ;
23243 char * kwnames[] = {
23244 (char *) "self",(char *) "name",(char *) "colour", NULL
23245 };
23246
23247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23249 if (!SWIG_IsOK(res1)) {
23250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23251 }
23252 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23253 {
23254 arg2 = wxString_in_helper(obj1);
23255 if (arg2 == NULL) SWIG_fail;
23256 temp2 = true;
23257 }
23258 {
23259 arg3 = &temp3;
23260 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23261 }
23262 {
23263 PyThreadState* __tstate = wxPyBeginAllowThreads();
23264 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23265 wxPyEndAllowThreads(__tstate);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 }
23268 resultobj = SWIG_Py_Void();
23269 {
23270 if (temp2)
23271 delete arg2;
23272 }
23273 return resultobj;
23274fail:
23275 {
23276 if (temp2)
23277 delete arg2;
23278 }
23279 return NULL;
23280}
23281
23282
23283SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj = 0;
23285 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23286 wxString *arg2 = 0 ;
23287 int arg3 ;
23288 int arg4 ;
23289 int arg5 ;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 bool temp2 = false ;
23293 int val3 ;
23294 int ecode3 = 0 ;
23295 int val4 ;
23296 int ecode4 = 0 ;
da91cb0f
RD
23297 int val5 ;
23298 int ecode5 = 0 ;
1bd55598
RD
23299 PyObject * obj0 = 0 ;
23300 PyObject * obj1 = 0 ;
23301 PyObject * obj2 = 0 ;
23302 PyObject * obj3 = 0 ;
23303 PyObject * obj4 = 0 ;
1bd55598 23304 char * kwnames[] = {
da91cb0f 23305 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
23306 };
23307
da91cb0f
RD
23308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 23310 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
23311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23312 }
23313 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23314 {
23315 arg2 = wxString_in_helper(obj1);
23316 if (arg2 == NULL) SWIG_fail;
23317 temp2 = true;
1bd55598 23318 }
1bd55598
RD
23319 ecode3 = SWIG_AsVal_int(obj2, &val3);
23320 if (!SWIG_IsOK(ecode3)) {
da91cb0f 23321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
23322 }
23323 arg3 = static_cast< int >(val3);
23324 ecode4 = SWIG_AsVal_int(obj3, &val4);
23325 if (!SWIG_IsOK(ecode4)) {
da91cb0f 23326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
23327 }
23328 arg4 = static_cast< int >(val4);
23329 ecode5 = SWIG_AsVal_int(obj4, &val5);
23330 if (!SWIG_IsOK(ecode5)) {
da91cb0f 23331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
23332 }
23333 arg5 = static_cast< int >(val5);
1bd55598
RD
23334 {
23335 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 23336 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
da91cb0f 23340 resultobj = SWIG_Py_Void();
1bd55598 23341 {
da91cb0f
RD
23342 if (temp2)
23343 delete arg2;
1bd55598
RD
23344 }
23345 return resultobj;
23346fail:
23347 {
da91cb0f
RD
23348 if (temp2)
23349 delete arg2;
1bd55598
RD
23350 }
23351 return NULL;
23352}
23353
23354
da91cb0f
RD
23355SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23356 PyObject *obj;
23357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23358 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23359 return SWIG_Py_Void();
23360}
23361
23362SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23363 return SWIG_Python_InitShadowInstance(args);
23364}
23365
23366SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 23367 PyObject *resultobj = 0;
da91cb0f 23368 wxFontList *result = 0 ;
1bd55598 23369
da91cb0f 23370 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 23373 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
da91cb0f 23377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
23378 return resultobj;
23379fail:
23380 return NULL;
23381}
23382
23383
da91cb0f 23384SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 23385 PyObject *resultobj = 0;
da91cb0f 23386 wxPenList *result = 0 ;
1bd55598 23387
da91cb0f 23388 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 23391 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
da91cb0f 23395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
23396 return resultobj;
23397fail:
23398 return NULL;
23399}
23400
23401
da91cb0f
RD
23402SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23403 PyObject *resultobj = 0;
23404 wxBrushList *result = 0 ;
1bd55598 23405
da91cb0f
RD
23406 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23407 {
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 result = (wxBrushList *)_wxPyInitTheBrushList();
23410 wxPyEndAllowThreads(__tstate);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23414 return resultobj;
23415fail:
23416 return NULL;
1bd55598
RD
23417}
23418
23419
da91cb0f
RD
23420SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23421 PyObject *resultobj = 0;
23422 wxColourDatabase *result = 0 ;
1bd55598 23423
da91cb0f
RD
23424 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23425 {
23426 PyThreadState* __tstate = wxPyBeginAllowThreads();
23427 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23428 wxPyEndAllowThreads(__tstate);
23429 if (PyErr_Occurred()) SWIG_fail;
23430 }
23431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23432 return resultobj;
23433fail:
23434 return NULL;
1bd55598
RD
23435}
23436
23437
23438SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23439 PyObject *resultobj = 0;
23440 wxEffects *result = 0 ;
23441
23442 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23443 {
23444 PyThreadState* __tstate = wxPyBeginAllowThreads();
23445 result = (wxEffects *)new wxEffects();
23446 wxPyEndAllowThreads(__tstate);
23447 if (PyErr_Occurred()) SWIG_fail;
23448 }
23449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23450 return resultobj;
23451fail:
23452 return NULL;
23453}
23454
23455
23456SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23457 PyObject *resultobj = 0;
23458 wxEffects *arg1 = (wxEffects *) 0 ;
23459 wxColour result;
23460 void *argp1 = 0 ;
23461 int res1 = 0 ;
23462 PyObject *swig_obj[1] ;
23463
23464 if (!args) SWIG_fail;
23465 swig_obj[0] = args;
23466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23467 if (!SWIG_IsOK(res1)) {
23468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23469 }
23470 arg1 = reinterpret_cast< wxEffects * >(argp1);
23471 {
23472 PyThreadState* __tstate = wxPyBeginAllowThreads();
23473 result = ((wxEffects const *)arg1)->GetHighlightColour();
23474 wxPyEndAllowThreads(__tstate);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 }
23477 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23478 return resultobj;
23479fail:
23480 return NULL;
23481}
23482
23483
23484SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23485 PyObject *resultobj = 0;
23486 wxEffects *arg1 = (wxEffects *) 0 ;
23487 wxColour result;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 PyObject *swig_obj[1] ;
23491
23492 if (!args) SWIG_fail;
23493 swig_obj[0] = args;
23494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23495 if (!SWIG_IsOK(res1)) {
23496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23497 }
23498 arg1 = reinterpret_cast< wxEffects * >(argp1);
23499 {
23500 PyThreadState* __tstate = wxPyBeginAllowThreads();
23501 result = ((wxEffects const *)arg1)->GetLightShadow();
23502 wxPyEndAllowThreads(__tstate);
23503 if (PyErr_Occurred()) SWIG_fail;
23504 }
23505 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23506 return resultobj;
23507fail:
23508 return NULL;
23509}
23510
23511
23512SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23513 PyObject *resultobj = 0;
23514 wxEffects *arg1 = (wxEffects *) 0 ;
23515 wxColour result;
23516 void *argp1 = 0 ;
23517 int res1 = 0 ;
23518 PyObject *swig_obj[1] ;
23519
23520 if (!args) SWIG_fail;
23521 swig_obj[0] = args;
23522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23523 if (!SWIG_IsOK(res1)) {
23524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23525 }
23526 arg1 = reinterpret_cast< wxEffects * >(argp1);
23527 {
23528 PyThreadState* __tstate = wxPyBeginAllowThreads();
23529 result = ((wxEffects const *)arg1)->GetFaceColour();
23530 wxPyEndAllowThreads(__tstate);
23531 if (PyErr_Occurred()) SWIG_fail;
23532 }
23533 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23534 return resultobj;
23535fail:
23536 return NULL;
23537}
23538
23539
23540SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23541 PyObject *resultobj = 0;
23542 wxEffects *arg1 = (wxEffects *) 0 ;
23543 wxColour result;
23544 void *argp1 = 0 ;
23545 int res1 = 0 ;
23546 PyObject *swig_obj[1] ;
23547
23548 if (!args) SWIG_fail;
23549 swig_obj[0] = args;
23550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23551 if (!SWIG_IsOK(res1)) {
23552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23553 }
23554 arg1 = reinterpret_cast< wxEffects * >(argp1);
23555 {
23556 PyThreadState* __tstate = wxPyBeginAllowThreads();
23557 result = ((wxEffects const *)arg1)->GetMediumShadow();
23558 wxPyEndAllowThreads(__tstate);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23562 return resultobj;
23563fail:
23564 return NULL;
23565}
23566
23567
23568SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23569 PyObject *resultobj = 0;
23570 wxEffects *arg1 = (wxEffects *) 0 ;
23571 wxColour result;
23572 void *argp1 = 0 ;
23573 int res1 = 0 ;
23574 PyObject *swig_obj[1] ;
23575
23576 if (!args) SWIG_fail;
23577 swig_obj[0] = args;
23578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23579 if (!SWIG_IsOK(res1)) {
23580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23581 }
23582 arg1 = reinterpret_cast< wxEffects * >(argp1);
23583 {
23584 PyThreadState* __tstate = wxPyBeginAllowThreads();
23585 result = ((wxEffects const *)arg1)->GetDarkShadow();
23586 wxPyEndAllowThreads(__tstate);
23587 if (PyErr_Occurred()) SWIG_fail;
23588 }
23589 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23590 return resultobj;
23591fail:
23592 return NULL;
23593}
23594
23595
23596SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23597 PyObject *resultobj = 0;
23598 wxEffects *arg1 = (wxEffects *) 0 ;
23599 wxColour *arg2 = 0 ;
23600 void *argp1 = 0 ;
23601 int res1 = 0 ;
23602 wxColour temp2 ;
23603 PyObject * obj0 = 0 ;
23604 PyObject * obj1 = 0 ;
23605 char * kwnames[] = {
23606 (char *) "self",(char *) "c", NULL
23607 };
23608
23609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23611 if (!SWIG_IsOK(res1)) {
23612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23613 }
23614 arg1 = reinterpret_cast< wxEffects * >(argp1);
23615 {
23616 arg2 = &temp2;
23617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23618 }
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23622 wxPyEndAllowThreads(__tstate);
23623 if (PyErr_Occurred()) SWIG_fail;
23624 }
23625 resultobj = SWIG_Py_Void();
23626 return resultobj;
23627fail:
23628 return NULL;
23629}
23630
23631
23632SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23633 PyObject *resultobj = 0;
23634 wxEffects *arg1 = (wxEffects *) 0 ;
23635 wxColour *arg2 = 0 ;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 wxColour temp2 ;
23639 PyObject * obj0 = 0 ;
23640 PyObject * obj1 = 0 ;
23641 char * kwnames[] = {
23642 (char *) "self",(char *) "c", NULL
23643 };
23644
23645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23649 }
23650 arg1 = reinterpret_cast< wxEffects * >(argp1);
23651 {
23652 arg2 = &temp2;
23653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23654 }
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 (arg1)->SetLightShadow((wxColour const &)*arg2);
23658 wxPyEndAllowThreads(__tstate);
23659 if (PyErr_Occurred()) SWIG_fail;
23660 }
23661 resultobj = SWIG_Py_Void();
23662 return resultobj;
23663fail:
23664 return NULL;
23665}
23666
23667
23668SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23669 PyObject *resultobj = 0;
23670 wxEffects *arg1 = (wxEffects *) 0 ;
23671 wxColour *arg2 = 0 ;
23672 void *argp1 = 0 ;
23673 int res1 = 0 ;
23674 wxColour temp2 ;
23675 PyObject * obj0 = 0 ;
23676 PyObject * obj1 = 0 ;
23677 char * kwnames[] = {
23678 (char *) "self",(char *) "c", NULL
23679 };
23680
23681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23683 if (!SWIG_IsOK(res1)) {
23684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23685 }
23686 arg1 = reinterpret_cast< wxEffects * >(argp1);
23687 {
23688 arg2 = &temp2;
23689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23690 }
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 (arg1)->SetFaceColour((wxColour const &)*arg2);
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_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23705 PyObject *resultobj = 0;
23706 wxEffects *arg1 = (wxEffects *) 0 ;
23707 wxColour *arg2 = 0 ;
23708 void *argp1 = 0 ;
23709 int res1 = 0 ;
23710 wxColour temp2 ;
23711 PyObject * obj0 = 0 ;
23712 PyObject * obj1 = 0 ;
23713 char * kwnames[] = {
23714 (char *) "self",(char *) "c", NULL
23715 };
23716
23717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23719 if (!SWIG_IsOK(res1)) {
23720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23721 }
23722 arg1 = reinterpret_cast< wxEffects * >(argp1);
23723 {
23724 arg2 = &temp2;
23725 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23726 }
23727 {
23728 PyThreadState* __tstate = wxPyBeginAllowThreads();
23729 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 resultobj = SWIG_Py_Void();
23734 return resultobj;
23735fail:
23736 return NULL;
23737}
23738
23739
23740SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23741 PyObject *resultobj = 0;
23742 wxEffects *arg1 = (wxEffects *) 0 ;
23743 wxColour *arg2 = 0 ;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 wxColour temp2 ;
23747 PyObject * obj0 = 0 ;
23748 PyObject * obj1 = 0 ;
23749 char * kwnames[] = {
23750 (char *) "self",(char *) "c", NULL
23751 };
23752
23753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23755 if (!SWIG_IsOK(res1)) {
23756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23757 }
23758 arg1 = reinterpret_cast< wxEffects * >(argp1);
23759 {
23760 arg2 = &temp2;
23761 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23762 }
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 resultobj = SWIG_Py_Void();
23770 return resultobj;
23771fail:
23772 return NULL;
23773}
23774
23775
23776SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23777 PyObject *resultobj = 0;
23778 wxEffects *arg1 = (wxEffects *) 0 ;
23779 wxColour *arg2 = 0 ;
23780 wxColour *arg3 = 0 ;
23781 wxColour *arg4 = 0 ;
23782 wxColour *arg5 = 0 ;
23783 wxColour *arg6 = 0 ;
23784 void *argp1 = 0 ;
23785 int res1 = 0 ;
23786 wxColour temp2 ;
23787 wxColour temp3 ;
23788 wxColour temp4 ;
23789 wxColour temp5 ;
23790 wxColour temp6 ;
23791 PyObject * obj0 = 0 ;
23792 PyObject * obj1 = 0 ;
23793 PyObject * obj2 = 0 ;
23794 PyObject * obj3 = 0 ;
23795 PyObject * obj4 = 0 ;
23796 PyObject * obj5 = 0 ;
23797 char * kwnames[] = {
23798 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23799 };
23800
23801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23803 if (!SWIG_IsOK(res1)) {
23804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23805 }
23806 arg1 = reinterpret_cast< wxEffects * >(argp1);
23807 {
23808 arg2 = &temp2;
23809 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23810 }
23811 {
23812 arg3 = &temp3;
23813 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23814 }
23815 {
23816 arg4 = &temp4;
23817 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23818 }
23819 {
23820 arg5 = &temp5;
23821 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23822 }
23823 {
23824 arg6 = &temp6;
23825 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23826 }
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 resultobj = SWIG_Py_Void();
23834 return resultobj;
23835fail:
23836 return NULL;
23837}
23838
23839
23840SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj = 0;
23842 wxEffects *arg1 = (wxEffects *) 0 ;
23843 wxDC *arg2 = 0 ;
23844 wxRect *arg3 = 0 ;
23845 int arg4 = (int) 1 ;
23846 void *argp1 = 0 ;
23847 int res1 = 0 ;
23848 void *argp2 = 0 ;
23849 int res2 = 0 ;
23850 wxRect temp3 ;
23851 int val4 ;
23852 int ecode4 = 0 ;
23853 PyObject * obj0 = 0 ;
23854 PyObject * obj1 = 0 ;
23855 PyObject * obj2 = 0 ;
23856 PyObject * obj3 = 0 ;
23857 char * kwnames[] = {
23858 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23859 };
23860
23861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23863 if (!SWIG_IsOK(res1)) {
23864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23865 }
23866 arg1 = reinterpret_cast< wxEffects * >(argp1);
23867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23868 if (!SWIG_IsOK(res2)) {
23869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23870 }
23871 if (!argp2) {
23872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23873 }
23874 arg2 = reinterpret_cast< wxDC * >(argp2);
23875 {
23876 arg3 = &temp3;
23877 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23878 }
23879 if (obj3) {
23880 ecode4 = SWIG_AsVal_int(obj3, &val4);
23881 if (!SWIG_IsOK(ecode4)) {
23882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23883 }
23884 arg4 = static_cast< int >(val4);
23885 }
23886 {
23887 PyThreadState* __tstate = wxPyBeginAllowThreads();
23888 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23889 wxPyEndAllowThreads(__tstate);
23890 if (PyErr_Occurred()) SWIG_fail;
23891 }
23892 resultobj = SWIG_Py_Void();
23893 return resultobj;
23894fail:
23895 return NULL;
23896}
23897
23898
23899SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23900 PyObject *resultobj = 0;
23901 wxEffects *arg1 = (wxEffects *) 0 ;
23902 wxRect *arg2 = 0 ;
23903 wxDC *arg3 = 0 ;
23904 wxBitmap *arg4 = 0 ;
23905 bool result;
23906 void *argp1 = 0 ;
23907 int res1 = 0 ;
23908 wxRect temp2 ;
23909 void *argp3 = 0 ;
23910 int res3 = 0 ;
23911 void *argp4 = 0 ;
23912 int res4 = 0 ;
23913 PyObject * obj0 = 0 ;
23914 PyObject * obj1 = 0 ;
23915 PyObject * obj2 = 0 ;
23916 PyObject * obj3 = 0 ;
23917 char * kwnames[] = {
23918 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23919 };
23920
23921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23923 if (!SWIG_IsOK(res1)) {
23924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23925 }
23926 arg1 = reinterpret_cast< wxEffects * >(argp1);
23927 {
23928 arg2 = &temp2;
23929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23930 }
23931 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23932 if (!SWIG_IsOK(res3)) {
23933 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23934 }
23935 if (!argp3) {
23936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23937 }
23938 arg3 = reinterpret_cast< wxDC * >(argp3);
23939 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23940 if (!SWIG_IsOK(res4)) {
23941 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23942 }
23943 if (!argp4) {
23944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23945 }
23946 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23947 {
23948 PyThreadState* __tstate = wxPyBeginAllowThreads();
23949 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23950 wxPyEndAllowThreads(__tstate);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 }
23953 {
23954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23955 }
23956 return resultobj;
23957fail:
23958 return NULL;
23959}
23960
23961
23962SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23963 PyObject *obj;
23964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23965 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23966 return SWIG_Py_Void();
23967}
23968
23969SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23970 return SWIG_Python_InitShadowInstance(args);
23971}
23972
23973SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23974 PyObject *resultobj = 0;
23975 int arg1 ;
23976 int arg2 ;
23977 bool arg3 ;
23978 wxSplitterRenderParams *result = 0 ;
23979 int val1 ;
23980 int ecode1 = 0 ;
23981 int val2 ;
23982 int ecode2 = 0 ;
23983 bool val3 ;
23984 int ecode3 = 0 ;
23985 PyObject * obj0 = 0 ;
23986 PyObject * obj1 = 0 ;
23987 PyObject * obj2 = 0 ;
23988 char * kwnames[] = {
23989 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23990 };
23991
23992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23993 ecode1 = SWIG_AsVal_int(obj0, &val1);
23994 if (!SWIG_IsOK(ecode1)) {
23995 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23996 }
23997 arg1 = static_cast< int >(val1);
23998 ecode2 = SWIG_AsVal_int(obj1, &val2);
23999 if (!SWIG_IsOK(ecode2)) {
24000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24001 }
24002 arg2 = static_cast< int >(val2);
24003 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24004 if (!SWIG_IsOK(ecode3)) {
24005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24006 }
24007 arg3 = static_cast< bool >(val3);
24008 {
24009 PyThreadState* __tstate = wxPyBeginAllowThreads();
24010 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24011 wxPyEndAllowThreads(__tstate);
24012 if (PyErr_Occurred()) SWIG_fail;
24013 }
24014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24015 return resultobj;
24016fail:
24017 return NULL;
24018}
24019
24020
24021SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24022 PyObject *resultobj = 0;
24023 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24024 void *argp1 = 0 ;
24025 int res1 = 0 ;
24026 PyObject *swig_obj[1] ;
24027
24028 if (!args) SWIG_fail;
24029 swig_obj[0] = args;
24030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24031 if (!SWIG_IsOK(res1)) {
24032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24033 }
24034 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24035 {
24036 PyThreadState* __tstate = wxPyBeginAllowThreads();
24037 delete arg1;
24038
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 resultobj = SWIG_Py_Void();
24043 return resultobj;
24044fail:
24045 return NULL;
24046}
24047
24048
24049SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24050 PyObject *resultobj = 0;
24051 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24052 int result;
24053 void *argp1 = 0 ;
24054 int res1 = 0 ;
24055 PyObject *swig_obj[1] ;
24056
24057 if (!args) SWIG_fail;
24058 swig_obj[0] = args;
24059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24060 if (!SWIG_IsOK(res1)) {
24061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24062 }
24063 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24064 result = (int)(int) ((arg1)->widthSash);
24065 resultobj = SWIG_From_int(static_cast< int >(result));
24066 return resultobj;
24067fail:
24068 return NULL;
24069}
24070
24071
24072SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24073 PyObject *resultobj = 0;
24074 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24075 int result;
24076 void *argp1 = 0 ;
24077 int res1 = 0 ;
24078 PyObject *swig_obj[1] ;
24079
24080 if (!args) SWIG_fail;
24081 swig_obj[0] = args;
24082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24083 if (!SWIG_IsOK(res1)) {
24084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24085 }
24086 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24087 result = (int)(int) ((arg1)->border);
24088 resultobj = SWIG_From_int(static_cast< int >(result));
24089 return resultobj;
24090fail:
24091 return NULL;
24092}
24093
24094
24095SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24096 PyObject *resultobj = 0;
24097 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24098 bool result;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 PyObject *swig_obj[1] ;
24102
24103 if (!args) SWIG_fail;
24104 swig_obj[0] = args;
24105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24108 }
24109 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24110 result = (bool)(bool) ((arg1)->isHotSensitive);
24111 resultobj = SWIG_From_bool(static_cast< bool >(result));
24112 return resultobj;
24113fail:
24114 return NULL;
24115}
24116
24117
24118SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24119 PyObject *obj;
24120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24121 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24122 return SWIG_Py_Void();
24123}
24124
24125SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24126 return SWIG_Python_InitShadowInstance(args);
24127}
24128
24129SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24130 PyObject *resultobj = 0;
24131 int arg1 ;
24132 int arg2 ;
24133 wxRendererVersion *result = 0 ;
24134 int val1 ;
24135 int ecode1 = 0 ;
24136 int val2 ;
24137 int ecode2 = 0 ;
24138 PyObject * obj0 = 0 ;
24139 PyObject * obj1 = 0 ;
24140 char * kwnames[] = {
24141 (char *) "version_",(char *) "age_", NULL
24142 };
24143
24144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24145 ecode1 = SWIG_AsVal_int(obj0, &val1);
24146 if (!SWIG_IsOK(ecode1)) {
24147 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24148 }
24149 arg1 = static_cast< int >(val1);
24150 ecode2 = SWIG_AsVal_int(obj1, &val2);
24151 if (!SWIG_IsOK(ecode2)) {
24152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24153 }
24154 arg2 = static_cast< int >(val2);
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24158 wxPyEndAllowThreads(__tstate);
24159 if (PyErr_Occurred()) SWIG_fail;
24160 }
24161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24162 return resultobj;
24163fail:
24164 return NULL;
24165}
24166
24167
24168SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24169 PyObject *resultobj = 0;
24170 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24171 void *argp1 = 0 ;
24172 int res1 = 0 ;
24173 PyObject *swig_obj[1] ;
24174
24175 if (!args) SWIG_fail;
24176 swig_obj[0] = args;
24177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24178 if (!SWIG_IsOK(res1)) {
24179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24180 }
24181 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24182 {
24183 PyThreadState* __tstate = wxPyBeginAllowThreads();
24184 delete arg1;
24185
24186 wxPyEndAllowThreads(__tstate);
24187 if (PyErr_Occurred()) SWIG_fail;
24188 }
24189 resultobj = SWIG_Py_Void();
24190 return resultobj;
24191fail:
24192 return NULL;
24193}
24194
24195
24196SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj = 0;
24198 wxRendererVersion *arg1 = 0 ;
24199 bool result;
24200 void *argp1 = 0 ;
24201 int res1 = 0 ;
24202 PyObject * obj0 = 0 ;
24203 char * kwnames[] = {
24204 (char *) "ver", NULL
24205 };
24206
24207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24208 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24209 if (!SWIG_IsOK(res1)) {
24210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24211 }
24212 if (!argp1) {
24213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24214 }
24215 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24216 {
24217 PyThreadState* __tstate = wxPyBeginAllowThreads();
24218 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24219 wxPyEndAllowThreads(__tstate);
24220 if (PyErr_Occurred()) SWIG_fail;
24221 }
24222 {
24223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24224 }
24225 return resultobj;
24226fail:
24227 return NULL;
24228}
24229
24230
24231SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24232 PyObject *resultobj = 0;
24233 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24234 int result;
24235 void *argp1 = 0 ;
24236 int res1 = 0 ;
24237 PyObject *swig_obj[1] ;
24238
24239 if (!args) SWIG_fail;
24240 swig_obj[0] = args;
24241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24242 if (!SWIG_IsOK(res1)) {
24243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24244 }
24245 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24246 result = (int)(int) ((arg1)->version);
24247 resultobj = SWIG_From_int(static_cast< int >(result));
24248 return resultobj;
24249fail:
24250 return NULL;
24251}
24252
24253
24254SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24255 PyObject *resultobj = 0;
24256 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24257 int result;
24258 void *argp1 = 0 ;
24259 int res1 = 0 ;
24260 PyObject *swig_obj[1] ;
24261
24262 if (!args) SWIG_fail;
24263 swig_obj[0] = args;
24264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24265 if (!SWIG_IsOK(res1)) {
24266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24267 }
24268 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24269 result = (int)(int) ((arg1)->age);
24270 resultobj = SWIG_From_int(static_cast< int >(result));
24271 return resultobj;
24272fail:
24273 return NULL;
24274}
24275
24276
24277SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *obj;
24279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24280 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24281 return SWIG_Py_Void();
24282}
24283
24284SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24285 return SWIG_Python_InitShadowInstance(args);
24286}
24287
24288SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24289 PyObject *resultobj = 0;
24290 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24291 wxWindow *arg2 = (wxWindow *) 0 ;
24292 wxDC *arg3 = 0 ;
24293 wxRect *arg4 = 0 ;
24294 int arg5 = (int) 0 ;
24295 void *argp1 = 0 ;
24296 int res1 = 0 ;
24297 void *argp2 = 0 ;
24298 int res2 = 0 ;
24299 void *argp3 = 0 ;
24300 int res3 = 0 ;
24301 wxRect temp4 ;
24302 int val5 ;
24303 int ecode5 = 0 ;
24304 PyObject * obj0 = 0 ;
24305 PyObject * obj1 = 0 ;
24306 PyObject * obj2 = 0 ;
24307 PyObject * obj3 = 0 ;
24308 PyObject * obj4 = 0 ;
24309 char * kwnames[] = {
24310 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24311 };
24312
24313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24315 if (!SWIG_IsOK(res1)) {
24316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24317 }
24318 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24320 if (!SWIG_IsOK(res2)) {
24321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24322 }
24323 arg2 = reinterpret_cast< wxWindow * >(argp2);
24324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24325 if (!SWIG_IsOK(res3)) {
24326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24327 }
24328 if (!argp3) {
24329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24330 }
24331 arg3 = reinterpret_cast< wxDC * >(argp3);
24332 {
24333 arg4 = &temp4;
24334 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24335 }
24336 if (obj4) {
24337 ecode5 = SWIG_AsVal_int(obj4, &val5);
24338 if (!SWIG_IsOK(ecode5)) {
24339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24340 }
24341 arg5 = static_cast< int >(val5);
24342 }
24343 {
24344 PyThreadState* __tstate = wxPyBeginAllowThreads();
24345 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24346 wxPyEndAllowThreads(__tstate);
24347 if (PyErr_Occurred()) SWIG_fail;
24348 }
24349 resultobj = SWIG_Py_Void();
24350 return resultobj;
24351fail:
24352 return NULL;
24353}
24354
24355
24356SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24357 PyObject *resultobj = 0;
24358 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24359 wxWindow *arg2 = (wxWindow *) 0 ;
24360 wxDC *arg3 = 0 ;
24361 wxRect *arg4 = 0 ;
24362 int arg5 = (int) 0 ;
24363 void *argp1 = 0 ;
24364 int res1 = 0 ;
24365 void *argp2 = 0 ;
24366 int res2 = 0 ;
24367 void *argp3 = 0 ;
24368 int res3 = 0 ;
24369 wxRect temp4 ;
24370 int val5 ;
24371 int ecode5 = 0 ;
24372 PyObject * obj0 = 0 ;
24373 PyObject * obj1 = 0 ;
24374 PyObject * obj2 = 0 ;
24375 PyObject * obj3 = 0 ;
24376 PyObject * obj4 = 0 ;
24377 char * kwnames[] = {
24378 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24379 };
24380
24381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24383 if (!SWIG_IsOK(res1)) {
24384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24385 }
24386 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24388 if (!SWIG_IsOK(res2)) {
24389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24390 }
24391 arg2 = reinterpret_cast< wxWindow * >(argp2);
24392 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24393 if (!SWIG_IsOK(res3)) {
24394 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24395 }
24396 if (!argp3) {
24397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24398 }
24399 arg3 = reinterpret_cast< wxDC * >(argp3);
24400 {
24401 arg4 = &temp4;
24402 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24403 }
24404 if (obj4) {
24405 ecode5 = SWIG_AsVal_int(obj4, &val5);
24406 if (!SWIG_IsOK(ecode5)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24408 }
24409 arg5 = static_cast< int >(val5);
24410 }
24411 {
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_Py_Void();
24418 return resultobj;
24419fail:
24420 return NULL;
24421}
24422
24423
24424SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24425 PyObject *resultobj = 0;
24426 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24427 wxWindow *arg2 = (wxWindow *) 0 ;
24428 wxDC *arg3 = 0 ;
24429 wxRect *arg4 = 0 ;
24430 int arg5 = (int) 0 ;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 void *argp2 = 0 ;
24434 int res2 = 0 ;
24435 void *argp3 = 0 ;
24436 int res3 = 0 ;
24437 wxRect temp4 ;
24438 int val5 ;
24439 int ecode5 = 0 ;
24440 PyObject * obj0 = 0 ;
24441 PyObject * obj1 = 0 ;
24442 PyObject * obj2 = 0 ;
24443 PyObject * obj3 = 0 ;
24444 PyObject * obj4 = 0 ;
24445 char * kwnames[] = {
24446 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24447 };
24448
24449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24451 if (!SWIG_IsOK(res1)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24453 }
24454 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24456 if (!SWIG_IsOK(res2)) {
24457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24458 }
24459 arg2 = reinterpret_cast< wxWindow * >(argp2);
24460 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24461 if (!SWIG_IsOK(res3)) {
24462 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24463 }
24464 if (!argp3) {
24465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24466 }
24467 arg3 = reinterpret_cast< wxDC * >(argp3);
24468 {
24469 arg4 = &temp4;
24470 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24471 }
24472 if (obj4) {
24473 ecode5 = SWIG_AsVal_int(obj4, &val5);
24474 if (!SWIG_IsOK(ecode5)) {
24475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24476 }
24477 arg5 = static_cast< int >(val5);
24478 }
24479 {
24480 PyThreadState* __tstate = wxPyBeginAllowThreads();
24481 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24482 wxPyEndAllowThreads(__tstate);
24483 if (PyErr_Occurred()) SWIG_fail;
24484 }
24485 resultobj = SWIG_Py_Void();
24486 return resultobj;
24487fail:
24488 return NULL;
24489}
24490
24491
24492SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24493 PyObject *resultobj = 0;
24494 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24495 wxWindow *arg2 = (wxWindow *) 0 ;
24496 wxDC *arg3 = 0 ;
24497 wxSize *arg4 = 0 ;
24498 int arg5 ;
24499 wxOrientation arg6 ;
24500 int arg7 = (int) 0 ;
24501 void *argp1 = 0 ;
24502 int res1 = 0 ;
24503 void *argp2 = 0 ;
24504 int res2 = 0 ;
24505 void *argp3 = 0 ;
24506 int res3 = 0 ;
24507 wxSize temp4 ;
24508 int val5 ;
24509 int ecode5 = 0 ;
24510 int val6 ;
24511 int ecode6 = 0 ;
24512 int val7 ;
24513 int ecode7 = 0 ;
24514 PyObject * obj0 = 0 ;
24515 PyObject * obj1 = 0 ;
24516 PyObject * obj2 = 0 ;
24517 PyObject * obj3 = 0 ;
24518 PyObject * obj4 = 0 ;
24519 PyObject * obj5 = 0 ;
24520 PyObject * obj6 = 0 ;
24521 char * kwnames[] = {
24522 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24523 };
24524
24525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24527 if (!SWIG_IsOK(res1)) {
24528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24529 }
24530 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24532 if (!SWIG_IsOK(res2)) {
24533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24534 }
24535 arg2 = reinterpret_cast< wxWindow * >(argp2);
24536 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24537 if (!SWIG_IsOK(res3)) {
24538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24539 }
24540 if (!argp3) {
24541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24542 }
24543 arg3 = reinterpret_cast< wxDC * >(argp3);
24544 {
24545 arg4 = &temp4;
24546 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24547 }
24548 ecode5 = SWIG_AsVal_int(obj4, &val5);
24549 if (!SWIG_IsOK(ecode5)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24551 }
24552 arg5 = static_cast< int >(val5);
24553 ecode6 = SWIG_AsVal_int(obj5, &val6);
24554 if (!SWIG_IsOK(ecode6)) {
24555 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24556 }
24557 arg6 = static_cast< wxOrientation >(val6);
24558 if (obj6) {
24559 ecode7 = SWIG_AsVal_int(obj6, &val7);
24560 if (!SWIG_IsOK(ecode7)) {
24561 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24562 }
24563 arg7 = static_cast< int >(val7);
24564 }
24565 {
24566 PyThreadState* __tstate = wxPyBeginAllowThreads();
24567 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 resultobj = SWIG_Py_Void();
24572 return resultobj;
24573fail:
24574 return NULL;
24575}
24576
24577
24578SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24579 PyObject *resultobj = 0;
24580 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24581 wxWindow *arg2 = (wxWindow *) 0 ;
24582 wxDC *arg3 = 0 ;
24583 wxRect *arg4 = 0 ;
24584 int arg5 = (int) 0 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 void *argp2 = 0 ;
24588 int res2 = 0 ;
24589 void *argp3 = 0 ;
24590 int res3 = 0 ;
24591 wxRect temp4 ;
24592 int val5 ;
24593 int ecode5 = 0 ;
24594 PyObject * obj0 = 0 ;
24595 PyObject * obj1 = 0 ;
24596 PyObject * obj2 = 0 ;
24597 PyObject * obj3 = 0 ;
24598 PyObject * obj4 = 0 ;
24599 char * kwnames[] = {
24600 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24601 };
24602
24603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24605 if (!SWIG_IsOK(res1)) {
24606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24607 }
24608 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24610 if (!SWIG_IsOK(res2)) {
24611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24612 }
24613 arg2 = reinterpret_cast< wxWindow * >(argp2);
24614 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24615 if (!SWIG_IsOK(res3)) {
24616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24617 }
24618 if (!argp3) {
24619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24620 }
24621 arg3 = reinterpret_cast< wxDC * >(argp3);
24622 {
24623 arg4 = &temp4;
24624 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24625 }
24626 if (obj4) {
24627 ecode5 = SWIG_AsVal_int(obj4, &val5);
24628 if (!SWIG_IsOK(ecode5)) {
24629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24630 }
24631 arg5 = static_cast< int >(val5);
24632 }
24633 {
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24636 wxPyEndAllowThreads(__tstate);
24637 if (PyErr_Occurred()) SWIG_fail;
24638 }
24639 resultobj = SWIG_Py_Void();
24640 return resultobj;
24641fail:
24642 return NULL;
24643}
24644
24645
24646SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24649 wxWindow *arg2 = (wxWindow *) 0 ;
24650 wxDC *arg3 = 0 ;
24651 wxRect *arg4 = 0 ;
24652 int arg5 = (int) 0 ;
24653 void *argp1 = 0 ;
24654 int res1 = 0 ;
24655 void *argp2 = 0 ;
24656 int res2 = 0 ;
24657 void *argp3 = 0 ;
24658 int res3 = 0 ;
24659 wxRect temp4 ;
24660 int val5 ;
24661 int ecode5 = 0 ;
24662 PyObject * obj0 = 0 ;
24663 PyObject * obj1 = 0 ;
24664 PyObject * obj2 = 0 ;
24665 PyObject * obj3 = 0 ;
24666 PyObject * obj4 = 0 ;
24667 char * kwnames[] = {
24668 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24669 };
24670
24671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24673 if (!SWIG_IsOK(res1)) {
24674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24675 }
24676 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24678 if (!SWIG_IsOK(res2)) {
24679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24680 }
24681 arg2 = reinterpret_cast< wxWindow * >(argp2);
24682 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24683 if (!SWIG_IsOK(res3)) {
24684 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24685 }
24686 if (!argp3) {
24687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24688 }
24689 arg3 = reinterpret_cast< wxDC * >(argp3);
24690 {
24691 arg4 = &temp4;
24692 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24693 }
24694 if (obj4) {
24695 ecode5 = SWIG_AsVal_int(obj4, &val5);
24696 if (!SWIG_IsOK(ecode5)) {
24697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24698 }
24699 arg5 = static_cast< int >(val5);
24700 }
24701 {
24702 PyThreadState* __tstate = wxPyBeginAllowThreads();
24703 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24704 wxPyEndAllowThreads(__tstate);
24705 if (PyErr_Occurred()) SWIG_fail;
24706 }
24707 resultobj = SWIG_Py_Void();
24708 return resultobj;
24709fail:
24710 return NULL;
24711}
24712
24713
2131d850 24714SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
24715 PyObject *resultobj = 0;
24716 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24717 wxWindow *arg2 = (wxWindow *) 0 ;
24718 wxDC *arg3 = 0 ;
24719 wxRect *arg4 = 0 ;
24720 int arg5 = (int) 0 ;
24721 void *argp1 = 0 ;
24722 int res1 = 0 ;
24723 void *argp2 = 0 ;
24724 int res2 = 0 ;
24725 void *argp3 = 0 ;
24726 int res3 = 0 ;
24727 wxRect temp4 ;
24728 int val5 ;
24729 int ecode5 = 0 ;
24730 PyObject * obj0 = 0 ;
24731 PyObject * obj1 = 0 ;
24732 PyObject * obj2 = 0 ;
24733 PyObject * obj3 = 0 ;
24734 PyObject * obj4 = 0 ;
24735 char * kwnames[] = {
24736 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24737 };
24738
2131d850 24739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
24740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24741 if (!SWIG_IsOK(res1)) {
2131d850 24742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
24743 }
24744 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24746 if (!SWIG_IsOK(res2)) {
2131d850 24747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
24748 }
24749 arg2 = reinterpret_cast< wxWindow * >(argp2);
24750 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24751 if (!SWIG_IsOK(res3)) {
2131d850 24752 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
24753 }
24754 if (!argp3) {
2131d850 24755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
24756 }
24757 arg3 = reinterpret_cast< wxDC * >(argp3);
24758 {
24759 arg4 = &temp4;
24760 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24761 }
24762 if (obj4) {
24763 ecode5 = SWIG_AsVal_int(obj4, &val5);
24764 if (!SWIG_IsOK(ecode5)) {
2131d850 24765 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
24766 }
24767 arg5 = static_cast< int >(val5);
24768 }
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
24771 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 resultobj = SWIG_Py_Void();
24776 return resultobj;
24777fail:
24778 return NULL;
24779}
24780
24781
24782SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24783 PyObject *resultobj = 0;
24784 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24785 wxWindow *arg2 = (wxWindow *) 0 ;
24786 wxDC *arg3 = 0 ;
24787 wxRect *arg4 = 0 ;
24788 int arg5 = (int) 0 ;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 void *argp2 = 0 ;
24792 int res2 = 0 ;
24793 void *argp3 = 0 ;
24794 int res3 = 0 ;
24795 wxRect temp4 ;
24796 int val5 ;
24797 int ecode5 = 0 ;
24798 PyObject * obj0 = 0 ;
24799 PyObject * obj1 = 0 ;
24800 PyObject * obj2 = 0 ;
24801 PyObject * obj3 = 0 ;
24802 PyObject * obj4 = 0 ;
24803 char * kwnames[] = {
24804 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24805 };
24806
24807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24809 if (!SWIG_IsOK(res1)) {
24810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24811 }
24812 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24813 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24814 if (!SWIG_IsOK(res2)) {
24815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24816 }
24817 arg2 = reinterpret_cast< wxWindow * >(argp2);
24818 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24819 if (!SWIG_IsOK(res3)) {
24820 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24821 }
24822 if (!argp3) {
24823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24824 }
24825 arg3 = reinterpret_cast< wxDC * >(argp3);
24826 {
24827 arg4 = &temp4;
24828 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24829 }
24830 if (obj4) {
24831 ecode5 = SWIG_AsVal_int(obj4, &val5);
24832 if (!SWIG_IsOK(ecode5)) {
24833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24834 }
24835 arg5 = static_cast< int >(val5);
24836 }
24837 {
24838 PyThreadState* __tstate = wxPyBeginAllowThreads();
24839 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24840 wxPyEndAllowThreads(__tstate);
24841 if (PyErr_Occurred()) SWIG_fail;
24842 }
24843 resultobj = SWIG_Py_Void();
24844 return resultobj;
24845fail:
24846 return NULL;
24847}
24848
24849
24850SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24851 PyObject *resultobj = 0;
24852 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24853 wxWindow *arg2 = (wxWindow *) 0 ;
24854 wxDC *arg3 = 0 ;
24855 wxRect *arg4 = 0 ;
24856 int arg5 = (int) 0 ;
24857 void *argp1 = 0 ;
24858 int res1 = 0 ;
24859 void *argp2 = 0 ;
24860 int res2 = 0 ;
24861 void *argp3 = 0 ;
24862 int res3 = 0 ;
24863 wxRect temp4 ;
24864 int val5 ;
24865 int ecode5 = 0 ;
24866 PyObject * obj0 = 0 ;
24867 PyObject * obj1 = 0 ;
24868 PyObject * obj2 = 0 ;
24869 PyObject * obj3 = 0 ;
24870 PyObject * obj4 = 0 ;
24871 char * kwnames[] = {
24872 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24873 };
24874
24875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24877 if (!SWIG_IsOK(res1)) {
24878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24879 }
24880 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24882 if (!SWIG_IsOK(res2)) {
24883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24884 }
24885 arg2 = reinterpret_cast< wxWindow * >(argp2);
24886 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24887 if (!SWIG_IsOK(res3)) {
24888 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24889 }
24890 if (!argp3) {
24891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24892 }
24893 arg3 = reinterpret_cast< wxDC * >(argp3);
24894 {
24895 arg4 = &temp4;
24896 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24897 }
24898 if (obj4) {
24899 ecode5 = SWIG_AsVal_int(obj4, &val5);
24900 if (!SWIG_IsOK(ecode5)) {
24901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24902 }
24903 arg5 = static_cast< int >(val5);
24904 }
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
24908 wxPyEndAllowThreads(__tstate);
24909 if (PyErr_Occurred()) SWIG_fail;
24910 }
24911 resultobj = SWIG_Py_Void();
24912 return resultobj;
24913fail:
24914 return NULL;
24915}
24916
24917
1bd55598
RD
24918SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24919 PyObject *resultobj = 0;
24920 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24921 wxWindow *arg2 = (wxWindow *) 0 ;
24922 SwigValueWrapper<wxSplitterRenderParams > result;
24923 void *argp1 = 0 ;
24924 int res1 = 0 ;
24925 void *argp2 = 0 ;
24926 int res2 = 0 ;
24927 PyObject * obj0 = 0 ;
24928 PyObject * obj1 = 0 ;
24929 char * kwnames[] = {
24930 (char *) "self",(char *) "win", NULL
24931 };
24932
24933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24935 if (!SWIG_IsOK(res1)) {
24936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24937 }
24938 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24940 if (!SWIG_IsOK(res2)) {
24941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24942 }
24943 arg2 = reinterpret_cast< wxWindow * >(argp2);
24944 {
24945 PyThreadState* __tstate = wxPyBeginAllowThreads();
24946 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24947 wxPyEndAllowThreads(__tstate);
24948 if (PyErr_Occurred()) SWIG_fail;
24949 }
24950 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24951 return resultobj;
24952fail:
24953 return NULL;
24954}
24955
24956
24957SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24958 PyObject *resultobj = 0;
24959 wxRendererNative *result = 0 ;
24960
24961 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24962 {
704eda0c 24963 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 24964 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 24965 {
1bd55598
RD
24966 wxRendererNative &_result_ref = wxRendererNative::Get();
24967 result = (wxRendererNative *) &_result_ref;
36ed4f51 24968 }
1bd55598
RD
24969 wxPyEndAllowThreads(__tstate);
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24973 return resultobj;
24974fail:
24975 return NULL;
24976}
24977
24978
24979SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980 PyObject *resultobj = 0;
24981 wxRendererNative *result = 0 ;
24982
24983 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24984 {
704eda0c 24985 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 24987 {
1bd55598
RD
24988 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24989 result = (wxRendererNative *) &_result_ref;
be9b1dca 24990 }
1bd55598
RD
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24995 return resultobj;
24996fail:
24997 return NULL;
24998}
24999
25000
25001SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25002 PyObject *resultobj = 0;
25003 wxRendererNative *result = 0 ;
25004
25005 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25006 {
704eda0c 25007 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 25009 {
1bd55598
RD
25010 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25011 result = (wxRendererNative *) &_result_ref;
be9b1dca 25012 }
1bd55598
RD
25013 wxPyEndAllowThreads(__tstate);
25014 if (PyErr_Occurred()) SWIG_fail;
25015 }
25016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25017 return resultobj;
25018fail:
25019 return NULL;
25020}
25021
25022
25023SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25024 PyObject *resultobj = 0;
25025 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25026 wxRendererNative *result = 0 ;
25027 void *argp1 = 0 ;
25028 int res1 = 0 ;
25029 PyObject * obj0 = 0 ;
25030 char * kwnames[] = {
25031 (char *) "renderer", NULL
25032 };
25033
25034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25036 if (!SWIG_IsOK(res1)) {
25037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25038 }
25039 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25040 {
704eda0c 25041 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25048 return resultobj;
25049fail:
25050 return NULL;
25051}
25052
25053
25054SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25055 PyObject *resultobj = 0;
25056 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25057 SwigValueWrapper<wxRendererVersion > result;
25058 void *argp1 = 0 ;
25059 int res1 = 0 ;
25060 PyObject *swig_obj[1] ;
25061
25062 if (!args) SWIG_fail;
25063 swig_obj[0] = args;
25064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25065 if (!SWIG_IsOK(res1)) {
25066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25067 }
25068 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25069 {
25070 PyThreadState* __tstate = wxPyBeginAllowThreads();
25071 result = ((wxRendererNative const *)arg1)->GetVersion();
25072 wxPyEndAllowThreads(__tstate);
25073 if (PyErr_Occurred()) SWIG_fail;
25074 }
25075 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25076 return resultobj;
25077fail:
25078 return NULL;
25079}
25080
25081
25082SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25083 PyObject *obj;
25084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25085 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25086 return SWIG_Py_Void();
25087}
25088
27e45892
RD
25089SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25090 PyObject *resultobj = 0;
25091 wxPseudoDC *result = 0 ;
25092
25093 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
25094 {
25095 PyThreadState* __tstate = wxPyBeginAllowThreads();
25096 result = (wxPseudoDC *)new wxPseudoDC();
25097 wxPyEndAllowThreads(__tstate);
25098 if (PyErr_Occurred()) SWIG_fail;
25099 }
25100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
25101 return resultobj;
25102fail:
25103 return NULL;
25104}
25105
25106
25107SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25108 PyObject *resultobj = 0;
25109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25110 void *argp1 = 0 ;
25111 int res1 = 0 ;
25112 PyObject *swig_obj[1] ;
25113
25114 if (!args) SWIG_fail;
25115 swig_obj[0] = args;
25116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25117 if (!SWIG_IsOK(res1)) {
25118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25119 }
25120 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 (arg1)->BeginDrawing();
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 resultobj = SWIG_Py_Void();
25128 return resultobj;
25129fail:
25130 return NULL;
25131}
25132
25133
25134SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25135 PyObject *resultobj = 0;
25136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25137 void *argp1 = 0 ;
25138 int res1 = 0 ;
25139 PyObject *swig_obj[1] ;
25140
25141 if (!args) SWIG_fail;
25142 swig_obj[0] = args;
25143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25144 if (!SWIG_IsOK(res1)) {
25145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25146 }
25147 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25148 {
25149 PyThreadState* __tstate = wxPyBeginAllowThreads();
25150 (arg1)->EndDrawing();
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 resultobj = SWIG_Py_Void();
25155 return resultobj;
25156fail:
25157 return NULL;
25158}
25159
25160
25161SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25162 PyObject *resultobj = 0;
25163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25164 void *argp1 = 0 ;
25165 int res1 = 0 ;
25166 PyObject *swig_obj[1] ;
25167
25168 if (!args) SWIG_fail;
25169 swig_obj[0] = args;
25170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
25171 if (!SWIG_IsOK(res1)) {
25172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25173 }
25174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 delete arg1;
25178
25179 wxPyEndAllowThreads(__tstate);
25180 if (PyErr_Occurred()) SWIG_fail;
25181 }
25182 resultobj = SWIG_Py_Void();
25183 return resultobj;
25184fail:
25185 return NULL;
25186}
25187
25188
25189SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25190 PyObject *resultobj = 0;
25191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25192 void *argp1 = 0 ;
25193 int res1 = 0 ;
25194 PyObject *swig_obj[1] ;
25195
25196 if (!args) SWIG_fail;
25197 swig_obj[0] = args;
25198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25199 if (!SWIG_IsOK(res1)) {
25200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25201 }
25202 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25203 {
25204 PyThreadState* __tstate = wxPyBeginAllowThreads();
25205 (arg1)->RemoveAll();
25206 wxPyEndAllowThreads(__tstate);
25207 if (PyErr_Occurred()) SWIG_fail;
25208 }
25209 resultobj = SWIG_Py_Void();
25210 return resultobj;
25211fail:
25212 return NULL;
25213}
25214
25215
25216SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25217 PyObject *resultobj = 0;
25218 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25219 int result;
25220 void *argp1 = 0 ;
25221 int res1 = 0 ;
25222 PyObject *swig_obj[1] ;
25223
25224 if (!args) SWIG_fail;
25225 swig_obj[0] = args;
25226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25227 if (!SWIG_IsOK(res1)) {
25228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25229 }
25230 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25231 {
25232 PyThreadState* __tstate = wxPyBeginAllowThreads();
25233 result = (int)(arg1)->GetLen();
25234 wxPyEndAllowThreads(__tstate);
25235 if (PyErr_Occurred()) SWIG_fail;
25236 }
25237 resultobj = SWIG_From_int(static_cast< int >(result));
25238 return resultobj;
25239fail:
25240 return NULL;
25241}
25242
25243
25244SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25245 PyObject *resultobj = 0;
25246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25247 int arg2 ;
25248 void *argp1 = 0 ;
25249 int res1 = 0 ;
25250 int val2 ;
25251 int ecode2 = 0 ;
25252 PyObject * obj0 = 0 ;
25253 PyObject * obj1 = 0 ;
25254 char * kwnames[] = {
25255 (char *) "self",(char *) "id", NULL
25256 };
25257
25258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
25259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25260 if (!SWIG_IsOK(res1)) {
25261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25262 }
25263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25264 ecode2 = SWIG_AsVal_int(obj1, &val2);
25265 if (!SWIG_IsOK(ecode2)) {
25266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
25267 }
25268 arg2 = static_cast< int >(val2);
25269 {
25270 PyThreadState* __tstate = wxPyBeginAllowThreads();
25271 (arg1)->SetId(arg2);
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 resultobj = SWIG_Py_Void();
25276 return resultobj;
25277fail:
25278 return NULL;
25279}
25280
25281
25282SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25283 PyObject *resultobj = 0;
25284 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25285 int arg2 ;
25286 void *argp1 = 0 ;
25287 int res1 = 0 ;
25288 int val2 ;
25289 int ecode2 = 0 ;
25290 PyObject * obj0 = 0 ;
25291 PyObject * obj1 = 0 ;
25292 char * kwnames[] = {
25293 (char *) "self",(char *) "id", NULL
25294 };
25295
25296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
25297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25298 if (!SWIG_IsOK(res1)) {
25299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25300 }
25301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25302 ecode2 = SWIG_AsVal_int(obj1, &val2);
25303 if (!SWIG_IsOK(ecode2)) {
25304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
25305 }
25306 arg2 = static_cast< int >(val2);
25307 {
25308 PyThreadState* __tstate = wxPyBeginAllowThreads();
25309 (arg1)->ClearId(arg2);
25310 wxPyEndAllowThreads(__tstate);
25311 if (PyErr_Occurred()) SWIG_fail;
25312 }
25313 resultobj = SWIG_Py_Void();
25314 return resultobj;
25315fail:
25316 return NULL;
25317}
25318
25319
25320SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25321 PyObject *resultobj = 0;
25322 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25323 int arg2 ;
25324 void *argp1 = 0 ;
25325 int res1 = 0 ;
25326 int val2 ;
25327 int ecode2 = 0 ;
25328 PyObject * obj0 = 0 ;
25329 PyObject * obj1 = 0 ;
25330 char * kwnames[] = {
25331 (char *) "self",(char *) "id", NULL
25332 };
25333
25334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
25335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25336 if (!SWIG_IsOK(res1)) {
25337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25338 }
25339 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25340 ecode2 = SWIG_AsVal_int(obj1, &val2);
25341 if (!SWIG_IsOK(ecode2)) {
25342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
25343 }
25344 arg2 = static_cast< int >(val2);
25345 {
25346 PyThreadState* __tstate = wxPyBeginAllowThreads();
25347 (arg1)->RemoveId(arg2);
25348 wxPyEndAllowThreads(__tstate);
25349 if (PyErr_Occurred()) SWIG_fail;
25350 }
25351 resultobj = SWIG_Py_Void();
25352 return resultobj;
25353fail:
25354 return NULL;
25355}
25356
25357
25358SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25359 PyObject *resultobj = 0;
25360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25361 int arg2 ;
25362 int arg3 ;
25363 int arg4 ;
25364 void *argp1 = 0 ;
25365 int res1 = 0 ;
25366 int val2 ;
25367 int ecode2 = 0 ;
25368 int val3 ;
25369 int ecode3 = 0 ;
25370 int val4 ;
25371 int ecode4 = 0 ;
25372 PyObject * obj0 = 0 ;
25373 PyObject * obj1 = 0 ;
25374 PyObject * obj2 = 0 ;
25375 PyObject * obj3 = 0 ;
25376 char * kwnames[] = {
25377 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
25378 };
25379
25380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25382 if (!SWIG_IsOK(res1)) {
25383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25384 }
25385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25386 ecode2 = SWIG_AsVal_int(obj1, &val2);
25387 if (!SWIG_IsOK(ecode2)) {
25388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
25389 }
25390 arg2 = static_cast< int >(val2);
25391 ecode3 = SWIG_AsVal_int(obj2, &val3);
25392 if (!SWIG_IsOK(ecode3)) {
25393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
25394 }
25395 arg3 = static_cast< int >(val3);
25396 ecode4 = SWIG_AsVal_int(obj3, &val4);
25397 if (!SWIG_IsOK(ecode4)) {
25398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
25399 }
25400 arg4 = static_cast< int >(val4);
25401 {
25402 PyThreadState* __tstate = wxPyBeginAllowThreads();
25403 (arg1)->TranslateId(arg2,arg3,arg4);
25404 wxPyEndAllowThreads(__tstate);
25405 if (PyErr_Occurred()) SWIG_fail;
25406 }
25407 resultobj = SWIG_Py_Void();
25408 return resultobj;
25409fail:
25410 return NULL;
25411}
25412
25413
25414SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25415 PyObject *resultobj = 0;
25416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25417 int arg2 ;
25418 wxDC *arg3 = (wxDC *) 0 ;
25419 void *argp1 = 0 ;
25420 int res1 = 0 ;
25421 int val2 ;
25422 int ecode2 = 0 ;
25423 void *argp3 = 0 ;
25424 int res3 = 0 ;
25425 PyObject * obj0 = 0 ;
25426 PyObject * obj1 = 0 ;
25427 PyObject * obj2 = 0 ;
25428 char * kwnames[] = {
25429 (char *) "self",(char *) "id",(char *) "dc", NULL
25430 };
25431
25432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25434 if (!SWIG_IsOK(res1)) {
25435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25436 }
25437 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25438 ecode2 = SWIG_AsVal_int(obj1, &val2);
25439 if (!SWIG_IsOK(ecode2)) {
25440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
25441 }
25442 arg2 = static_cast< int >(val2);
25443 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
25444 if (!SWIG_IsOK(res3)) {
25445 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
25446 }
25447 arg3 = reinterpret_cast< wxDC * >(argp3);
25448 {
25449 PyThreadState* __tstate = wxPyBeginAllowThreads();
25450 (arg1)->DrawIdToDC(arg2,arg3);
25451 wxPyEndAllowThreads(__tstate);
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_Py_Void();
25455 return resultobj;
25456fail:
25457 return NULL;
25458}
25459
25460
25461SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25462 PyObject *resultobj = 0;
25463 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25464 int arg2 ;
25465 wxRect *arg3 = 0 ;
25466 void *argp1 = 0 ;
25467 int res1 = 0 ;
25468 int val2 ;
25469 int ecode2 = 0 ;
25470 wxRect temp3 ;
25471 PyObject * obj0 = 0 ;
25472 PyObject * obj1 = 0 ;
25473 PyObject * obj2 = 0 ;
25474 char * kwnames[] = {
25475 (char *) "self",(char *) "id",(char *) "rect", NULL
25476 };
25477
25478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25480 if (!SWIG_IsOK(res1)) {
25481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25482 }
25483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25484 ecode2 = SWIG_AsVal_int(obj1, &val2);
25485 if (!SWIG_IsOK(ecode2)) {
25486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
25487 }
25488 arg2 = static_cast< int >(val2);
25489 {
25490 arg3 = &temp3;
25491 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
25492 }
25493 {
25494 PyThreadState* __tstate = wxPyBeginAllowThreads();
25495 (arg1)->SetIdBounds(arg2,*arg3);
25496 wxPyEndAllowThreads(__tstate);
25497 if (PyErr_Occurred()) SWIG_fail;
25498 }
25499 resultobj = SWIG_Py_Void();
25500 return resultobj;
25501fail:
25502 return NULL;
25503}
25504
25505
25506SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25507 PyObject *resultobj = 0;
25508 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25509 int arg2 ;
25510 wxRect result;
25511 void *argp1 = 0 ;
25512 int res1 = 0 ;
25513 int val2 ;
25514 int ecode2 = 0 ;
25515 PyObject * obj0 = 0 ;
25516 PyObject * obj1 = 0 ;
25517 char * kwnames[] = {
25518 (char *) "self",(char *) "id", NULL
25519 };
25520
25521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
25522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25523 if (!SWIG_IsOK(res1)) {
25524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25525 }
25526 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25527 ecode2 = SWIG_AsVal_int(obj1, &val2);
25528 if (!SWIG_IsOK(ecode2)) {
25529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
25530 }
25531 arg2 = static_cast< int >(val2);
25532 {
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 result = wxPseudoDC_GetIdBounds(arg1,arg2);
25535 wxPyEndAllowThreads(__tstate);
25536 if (PyErr_Occurred()) SWIG_fail;
25537 }
25538 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
25539 return resultobj;
25540fail:
25541 return NULL;
25542}
25543
25544
25545SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25546 PyObject *resultobj = 0;
25547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25548 wxDC *arg2 = (wxDC *) 0 ;
25549 wxRect *arg3 = 0 ;
25550 void *argp1 = 0 ;
25551 int res1 = 0 ;
25552 void *argp2 = 0 ;
25553 int res2 = 0 ;
25554 wxRect temp3 ;
25555 PyObject * obj0 = 0 ;
25556 PyObject * obj1 = 0 ;
25557 PyObject * obj2 = 0 ;
25558 char * kwnames[] = {
25559 (char *) "self",(char *) "dc",(char *) "rect", NULL
25560 };
25561
25562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25564 if (!SWIG_IsOK(res1)) {
25565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25566 }
25567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25569 if (!SWIG_IsOK(res2)) {
25570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
25571 }
25572 arg2 = reinterpret_cast< wxDC * >(argp2);
25573 {
25574 arg3 = &temp3;
25575 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
25576 }
25577 {
25578 PyThreadState* __tstate = wxPyBeginAllowThreads();
25579 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_Py_Void();
25584 return resultobj;
25585fail:
25586 return NULL;
25587}
25588
25589
25590SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25591 PyObject *resultobj = 0;
25592 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25593 wxDC *arg2 = (wxDC *) 0 ;
25594 wxRegion *arg3 = 0 ;
25595 void *argp1 = 0 ;
25596 int res1 = 0 ;
25597 void *argp2 = 0 ;
25598 int res2 = 0 ;
25599 void *argp3 = 0 ;
25600 int res3 = 0 ;
25601 PyObject * obj0 = 0 ;
25602 PyObject * obj1 = 0 ;
25603 PyObject * obj2 = 0 ;
25604 char * kwnames[] = {
25605 (char *) "self",(char *) "dc",(char *) "region", NULL
25606 };
25607
25608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25610 if (!SWIG_IsOK(res1)) {
25611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25612 }
25613 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25615 if (!SWIG_IsOK(res2)) {
25616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
25617 }
25618 arg2 = reinterpret_cast< wxDC * >(argp2);
25619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
25620 if (!SWIG_IsOK(res3)) {
25621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
25622 }
25623 if (!argp3) {
25624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
25625 }
25626 arg3 = reinterpret_cast< wxRegion * >(argp3);
25627 {
25628 PyThreadState* __tstate = wxPyBeginAllowThreads();
25629 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
25630 wxPyEndAllowThreads(__tstate);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 resultobj = SWIG_Py_Void();
25634 return resultobj;
25635fail:
25636 return NULL;
25637}
25638
25639
25640SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25641 PyObject *resultobj = 0;
25642 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25643 wxDC *arg2 = (wxDC *) 0 ;
25644 void *argp1 = 0 ;
25645 int res1 = 0 ;
25646 void *argp2 = 0 ;
25647 int res2 = 0 ;
25648 PyObject * obj0 = 0 ;
25649 PyObject * obj1 = 0 ;
25650 char * kwnames[] = {
25651 (char *) "self",(char *) "dc", NULL
25652 };
25653
25654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
25655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25656 if (!SWIG_IsOK(res1)) {
25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25658 }
25659 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
25661 if (!SWIG_IsOK(res2)) {
25662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
25663 }
25664 arg2 = reinterpret_cast< wxDC * >(argp2);
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 (arg1)->DrawToDC(arg2);
25668 wxPyEndAllowThreads(__tstate);
25669 if (PyErr_Occurred()) SWIG_fail;
25670 }
25671 resultobj = SWIG_Py_Void();
25672 return resultobj;
25673fail:
25674 return NULL;
25675}
25676
25677
25678SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25679 PyObject *resultobj = 0;
25680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25681 int arg2 ;
25682 int arg3 ;
25683 wxColour *arg4 = 0 ;
25684 int arg5 = (int) wxFLOOD_SURFACE ;
25685 void *argp1 = 0 ;
25686 int res1 = 0 ;
25687 int val2 ;
25688 int ecode2 = 0 ;
25689 int val3 ;
25690 int ecode3 = 0 ;
25691 wxColour temp4 ;
25692 int val5 ;
25693 int ecode5 = 0 ;
25694 PyObject * obj0 = 0 ;
25695 PyObject * obj1 = 0 ;
25696 PyObject * obj2 = 0 ;
25697 PyObject * obj3 = 0 ;
25698 PyObject * obj4 = 0 ;
25699 char * kwnames[] = {
25700 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
25701 };
25702
25703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25705 if (!SWIG_IsOK(res1)) {
25706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25707 }
25708 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25709 ecode2 = SWIG_AsVal_int(obj1, &val2);
25710 if (!SWIG_IsOK(ecode2)) {
25711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
25712 }
25713 arg2 = static_cast< int >(val2);
25714 ecode3 = SWIG_AsVal_int(obj2, &val3);
25715 if (!SWIG_IsOK(ecode3)) {
25716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
25717 }
25718 arg3 = static_cast< int >(val3);
25719 {
25720 arg4 = &temp4;
25721 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
25722 }
25723 if (obj4) {
25724 ecode5 = SWIG_AsVal_int(obj4, &val5);
25725 if (!SWIG_IsOK(ecode5)) {
25726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
25727 }
25728 arg5 = static_cast< int >(val5);
25729 }
25730 {
25731 PyThreadState* __tstate = wxPyBeginAllowThreads();
25732 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
25733 wxPyEndAllowThreads(__tstate);
25734 if (PyErr_Occurred()) SWIG_fail;
25735 }
25736 resultobj = SWIG_Py_Void();
25737 return resultobj;
25738fail:
25739 return NULL;
25740}
25741
25742
25743SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25744 PyObject *resultobj = 0;
25745 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25746 wxPoint *arg2 = 0 ;
25747 wxColour *arg3 = 0 ;
25748 int arg4 = (int) wxFLOOD_SURFACE ;
25749 void *argp1 = 0 ;
25750 int res1 = 0 ;
25751 wxPoint temp2 ;
25752 wxColour temp3 ;
25753 int val4 ;
25754 int ecode4 = 0 ;
25755 PyObject * obj0 = 0 ;
25756 PyObject * obj1 = 0 ;
25757 PyObject * obj2 = 0 ;
25758 PyObject * obj3 = 0 ;
25759 char * kwnames[] = {
25760 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
25761 };
25762
25763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25765 if (!SWIG_IsOK(res1)) {
25766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25767 }
25768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25769 {
25770 arg2 = &temp2;
25771 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25772 }
25773 {
25774 arg3 = &temp3;
25775 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25776 }
25777 if (obj3) {
25778 ecode4 = SWIG_AsVal_int(obj3, &val4);
25779 if (!SWIG_IsOK(ecode4)) {
25780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
25781 }
25782 arg4 = static_cast< int >(val4);
25783 }
25784 {
25785 PyThreadState* __tstate = wxPyBeginAllowThreads();
25786 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
25787 wxPyEndAllowThreads(__tstate);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 resultobj = SWIG_Py_Void();
25791 return resultobj;
25792fail:
25793 return NULL;
25794}
25795
25796
25797SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25798 PyObject *resultobj = 0;
25799 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25800 int arg2 ;
25801 int arg3 ;
25802 int arg4 ;
25803 int arg5 ;
25804 void *argp1 = 0 ;
25805 int res1 = 0 ;
25806 int val2 ;
25807 int ecode2 = 0 ;
25808 int val3 ;
25809 int ecode3 = 0 ;
25810 int val4 ;
25811 int ecode4 = 0 ;
25812 int val5 ;
25813 int ecode5 = 0 ;
25814 PyObject * obj0 = 0 ;
25815 PyObject * obj1 = 0 ;
25816 PyObject * obj2 = 0 ;
25817 PyObject * obj3 = 0 ;
25818 PyObject * obj4 = 0 ;
25819 char * kwnames[] = {
25820 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25821 };
25822
25823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25825 if (!SWIG_IsOK(res1)) {
25826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25827 }
25828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25829 ecode2 = SWIG_AsVal_int(obj1, &val2);
25830 if (!SWIG_IsOK(ecode2)) {
25831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
25832 }
25833 arg2 = static_cast< int >(val2);
25834 ecode3 = SWIG_AsVal_int(obj2, &val3);
25835 if (!SWIG_IsOK(ecode3)) {
25836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
25837 }
25838 arg3 = static_cast< int >(val3);
25839 ecode4 = SWIG_AsVal_int(obj3, &val4);
25840 if (!SWIG_IsOK(ecode4)) {
25841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
25842 }
25843 arg4 = static_cast< int >(val4);
25844 ecode5 = SWIG_AsVal_int(obj4, &val5);
25845 if (!SWIG_IsOK(ecode5)) {
25846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
25847 }
25848 arg5 = static_cast< int >(val5);
25849 {
25850 PyThreadState* __tstate = wxPyBeginAllowThreads();
25851 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
25852 wxPyEndAllowThreads(__tstate);
25853 if (PyErr_Occurred()) SWIG_fail;
25854 }
25855 resultobj = SWIG_Py_Void();
25856 return resultobj;
25857fail:
25858 return NULL;
25859}
25860
25861
25862SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25863 PyObject *resultobj = 0;
25864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25865 wxPoint *arg2 = 0 ;
25866 wxPoint *arg3 = 0 ;
25867 void *argp1 = 0 ;
25868 int res1 = 0 ;
25869 wxPoint temp2 ;
25870 wxPoint temp3 ;
25871 PyObject * obj0 = 0 ;
25872 PyObject * obj1 = 0 ;
25873 PyObject * obj2 = 0 ;
25874 char * kwnames[] = {
25875 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
25876 };
25877
25878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25880 if (!SWIG_IsOK(res1)) {
25881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25882 }
25883 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25884 {
25885 arg2 = &temp2;
25886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25887 }
25888 {
25889 arg3 = &temp3;
25890 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25891 }
25892 {
25893 PyThreadState* __tstate = wxPyBeginAllowThreads();
25894 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
25895 wxPyEndAllowThreads(__tstate);
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 resultobj = SWIG_Py_Void();
25899 return resultobj;
25900fail:
25901 return NULL;
25902}
25903
25904
25905SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25906 PyObject *resultobj = 0;
25907 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25908 int arg2 ;
25909 int arg3 ;
25910 void *argp1 = 0 ;
25911 int res1 = 0 ;
25912 int val2 ;
25913 int ecode2 = 0 ;
25914 int val3 ;
25915 int ecode3 = 0 ;
25916 PyObject * obj0 = 0 ;
25917 PyObject * obj1 = 0 ;
25918 PyObject * obj2 = 0 ;
25919 char * kwnames[] = {
25920 (char *) "self",(char *) "x",(char *) "y", NULL
25921 };
25922
25923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25925 if (!SWIG_IsOK(res1)) {
25926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25927 }
25928 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25929 ecode2 = SWIG_AsVal_int(obj1, &val2);
25930 if (!SWIG_IsOK(ecode2)) {
25931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
25932 }
25933 arg2 = static_cast< int >(val2);
25934 ecode3 = SWIG_AsVal_int(obj2, &val3);
25935 if (!SWIG_IsOK(ecode3)) {
25936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
25937 }
25938 arg3 = static_cast< int >(val3);
25939 {
25940 PyThreadState* __tstate = wxPyBeginAllowThreads();
25941 (arg1)->CrossHair(arg2,arg3);
25942 wxPyEndAllowThreads(__tstate);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
25945 resultobj = SWIG_Py_Void();
25946 return resultobj;
25947fail:
25948 return NULL;
25949}
25950
25951
25952SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj = 0;
25954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25955 wxPoint *arg2 = 0 ;
25956 void *argp1 = 0 ;
25957 int res1 = 0 ;
25958 wxPoint temp2 ;
25959 PyObject * obj0 = 0 ;
25960 PyObject * obj1 = 0 ;
25961 char * kwnames[] = {
25962 (char *) "self",(char *) "pt", NULL
25963 };
25964
25965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
25966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25967 if (!SWIG_IsOK(res1)) {
25968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25969 }
25970 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25971 {
25972 arg2 = &temp2;
25973 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25974 }
25975 {
25976 PyThreadState* __tstate = wxPyBeginAllowThreads();
25977 (arg1)->CrossHair((wxPoint const &)*arg2);
25978 wxPyEndAllowThreads(__tstate);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 }
25981 resultobj = SWIG_Py_Void();
25982 return resultobj;
25983fail:
25984 return NULL;
25985}
25986
25987
25988SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj = 0;
25990 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25991 int arg2 ;
25992 int arg3 ;
25993 int arg4 ;
25994 int arg5 ;
25995 int arg6 ;
25996 int arg7 ;
25997 void *argp1 = 0 ;
25998 int res1 = 0 ;
25999 int val2 ;
26000 int ecode2 = 0 ;
26001 int val3 ;
26002 int ecode3 = 0 ;
26003 int val4 ;
26004 int ecode4 = 0 ;
26005 int val5 ;
26006 int ecode5 = 0 ;
26007 int val6 ;
26008 int ecode6 = 0 ;
26009 int val7 ;
26010 int ecode7 = 0 ;
26011 PyObject * obj0 = 0 ;
26012 PyObject * obj1 = 0 ;
26013 PyObject * obj2 = 0 ;
26014 PyObject * obj3 = 0 ;
26015 PyObject * obj4 = 0 ;
26016 PyObject * obj5 = 0 ;
26017 PyObject * obj6 = 0 ;
26018 char * kwnames[] = {
26019 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
26020 };
26021
26022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26024 if (!SWIG_IsOK(res1)) {
26025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26026 }
26027 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26028 ecode2 = SWIG_AsVal_int(obj1, &val2);
26029 if (!SWIG_IsOK(ecode2)) {
26030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
26031 }
26032 arg2 = static_cast< int >(val2);
26033 ecode3 = SWIG_AsVal_int(obj2, &val3);
26034 if (!SWIG_IsOK(ecode3)) {
26035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
26036 }
26037 arg3 = static_cast< int >(val3);
26038 ecode4 = SWIG_AsVal_int(obj3, &val4);
26039 if (!SWIG_IsOK(ecode4)) {
26040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
26041 }
26042 arg4 = static_cast< int >(val4);
26043 ecode5 = SWIG_AsVal_int(obj4, &val5);
26044 if (!SWIG_IsOK(ecode5)) {
26045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
26046 }
26047 arg5 = static_cast< int >(val5);
26048 ecode6 = SWIG_AsVal_int(obj5, &val6);
26049 if (!SWIG_IsOK(ecode6)) {
26050 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
26051 }
26052 arg6 = static_cast< int >(val6);
26053 ecode7 = SWIG_AsVal_int(obj6, &val7);
26054 if (!SWIG_IsOK(ecode7)) {
26055 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
26056 }
26057 arg7 = static_cast< int >(val7);
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_Py_Void();
26065 return resultobj;
26066fail:
26067 return NULL;
26068}
26069
26070
26071SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj = 0;
26073 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26074 wxPoint *arg2 = 0 ;
26075 wxPoint *arg3 = 0 ;
26076 wxPoint *arg4 = 0 ;
26077 void *argp1 = 0 ;
26078 int res1 = 0 ;
26079 wxPoint temp2 ;
26080 wxPoint temp3 ;
26081 wxPoint temp4 ;
26082 PyObject * obj0 = 0 ;
26083 PyObject * obj1 = 0 ;
26084 PyObject * obj2 = 0 ;
26085 PyObject * obj3 = 0 ;
26086 char * kwnames[] = {
26087 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
26088 };
26089
26090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26092 if (!SWIG_IsOK(res1)) {
26093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26094 }
26095 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26096 {
26097 arg2 = &temp2;
26098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26099 }
26100 {
26101 arg3 = &temp3;
26102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26103 }
26104 {
26105 arg4 = &temp4;
26106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26107 }
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
26111 wxPyEndAllowThreads(__tstate);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 resultobj = SWIG_Py_Void();
26115 return resultobj;
26116fail:
26117 return NULL;
26118}
26119
26120
26121SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26122 PyObject *resultobj = 0;
26123 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26124 int arg2 ;
26125 int arg3 ;
26126 int arg4 ;
26127 int arg5 ;
26128 void *argp1 = 0 ;
26129 int res1 = 0 ;
26130 int val2 ;
26131 int ecode2 = 0 ;
26132 int val3 ;
26133 int ecode3 = 0 ;
26134 int val4 ;
26135 int ecode4 = 0 ;
26136 int val5 ;
26137 int ecode5 = 0 ;
26138 PyObject * obj0 = 0 ;
26139 PyObject * obj1 = 0 ;
26140 PyObject * obj2 = 0 ;
26141 PyObject * obj3 = 0 ;
26142 PyObject * obj4 = 0 ;
26143 char * kwnames[] = {
26144 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26145 };
26146
26147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26149 if (!SWIG_IsOK(res1)) {
26150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26151 }
26152 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26153 ecode2 = SWIG_AsVal_int(obj1, &val2);
26154 if (!SWIG_IsOK(ecode2)) {
26155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
26156 }
26157 arg2 = static_cast< int >(val2);
26158 ecode3 = SWIG_AsVal_int(obj2, &val3);
26159 if (!SWIG_IsOK(ecode3)) {
26160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
26161 }
26162 arg3 = static_cast< int >(val3);
26163 ecode4 = SWIG_AsVal_int(obj3, &val4);
26164 if (!SWIG_IsOK(ecode4)) {
26165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
26166 }
26167 arg4 = static_cast< int >(val4);
26168 ecode5 = SWIG_AsVal_int(obj4, &val5);
26169 if (!SWIG_IsOK(ecode5)) {
26170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
26171 }
26172 arg5 = static_cast< int >(val5);
26173 {
26174 PyThreadState* __tstate = wxPyBeginAllowThreads();
26175 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
26176 wxPyEndAllowThreads(__tstate);
26177 if (PyErr_Occurred()) SWIG_fail;
26178 }
26179 resultobj = SWIG_Py_Void();
26180 return resultobj;
26181fail:
26182 return NULL;
26183}
26184
26185
26186SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26187 PyObject *resultobj = 0;
26188 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26189 wxRect *arg2 = 0 ;
26190 void *argp1 = 0 ;
26191 int res1 = 0 ;
26192 wxRect temp2 ;
26193 PyObject * obj0 = 0 ;
26194 PyObject * obj1 = 0 ;
26195 char * kwnames[] = {
26196 (char *) "self",(char *) "rect", NULL
26197 };
26198
26199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
26200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26201 if (!SWIG_IsOK(res1)) {
26202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26203 }
26204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26205 {
26206 arg2 = &temp2;
26207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26208 }
26209 {
26210 PyThreadState* __tstate = wxPyBeginAllowThreads();
26211 (arg1)->DrawCheckMark((wxRect const &)*arg2);
26212 wxPyEndAllowThreads(__tstate);
26213 if (PyErr_Occurred()) SWIG_fail;
26214 }
26215 resultobj = SWIG_Py_Void();
26216 return resultobj;
26217fail:
26218 return NULL;
26219}
26220
26221
26222SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26223 PyObject *resultobj = 0;
26224 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26225 int arg2 ;
26226 int arg3 ;
26227 int arg4 ;
26228 int arg5 ;
26229 double arg6 ;
26230 double arg7 ;
26231 void *argp1 = 0 ;
26232 int res1 = 0 ;
26233 int val2 ;
26234 int ecode2 = 0 ;
26235 int val3 ;
26236 int ecode3 = 0 ;
26237 int val4 ;
26238 int ecode4 = 0 ;
26239 int val5 ;
26240 int ecode5 = 0 ;
26241 double val6 ;
26242 int ecode6 = 0 ;
26243 double val7 ;
26244 int ecode7 = 0 ;
26245 PyObject * obj0 = 0 ;
26246 PyObject * obj1 = 0 ;
26247 PyObject * obj2 = 0 ;
26248 PyObject * obj3 = 0 ;
26249 PyObject * obj4 = 0 ;
26250 PyObject * obj5 = 0 ;
26251 PyObject * obj6 = 0 ;
26252 char * kwnames[] = {
26253 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
26254 };
26255
26256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26258 if (!SWIG_IsOK(res1)) {
26259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26260 }
26261 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26262 ecode2 = SWIG_AsVal_int(obj1, &val2);
26263 if (!SWIG_IsOK(ecode2)) {
26264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
26265 }
26266 arg2 = static_cast< int >(val2);
26267 ecode3 = SWIG_AsVal_int(obj2, &val3);
26268 if (!SWIG_IsOK(ecode3)) {
26269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
26270 }
26271 arg3 = static_cast< int >(val3);
26272 ecode4 = SWIG_AsVal_int(obj3, &val4);
26273 if (!SWIG_IsOK(ecode4)) {
26274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
26275 }
26276 arg4 = static_cast< int >(val4);
26277 ecode5 = SWIG_AsVal_int(obj4, &val5);
26278 if (!SWIG_IsOK(ecode5)) {
26279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
26280 }
26281 arg5 = static_cast< int >(val5);
26282 ecode6 = SWIG_AsVal_double(obj5, &val6);
26283 if (!SWIG_IsOK(ecode6)) {
26284 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
26285 }
26286 arg6 = static_cast< double >(val6);
26287 ecode7 = SWIG_AsVal_double(obj6, &val7);
26288 if (!SWIG_IsOK(ecode7)) {
26289 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
26290 }
26291 arg7 = static_cast< double >(val7);
26292 {
26293 PyThreadState* __tstate = wxPyBeginAllowThreads();
26294 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
26295 wxPyEndAllowThreads(__tstate);
26296 if (PyErr_Occurred()) SWIG_fail;
26297 }
26298 resultobj = SWIG_Py_Void();
26299 return resultobj;
26300fail:
26301 return NULL;
26302}
26303
26304
26305SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26306 PyObject *resultobj = 0;
26307 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26308 wxPoint *arg2 = 0 ;
26309 wxSize *arg3 = 0 ;
26310 double arg4 ;
26311 double arg5 ;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 wxPoint temp2 ;
26315 wxSize temp3 ;
26316 double val4 ;
26317 int ecode4 = 0 ;
26318 double val5 ;
26319 int ecode5 = 0 ;
26320 PyObject * obj0 = 0 ;
26321 PyObject * obj1 = 0 ;
26322 PyObject * obj2 = 0 ;
26323 PyObject * obj3 = 0 ;
26324 PyObject * obj4 = 0 ;
26325 char * kwnames[] = {
26326 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
26327 };
26328
26329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26331 if (!SWIG_IsOK(res1)) {
26332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26333 }
26334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26335 {
26336 arg2 = &temp2;
26337 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26338 }
26339 {
26340 arg3 = &temp3;
26341 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26342 }
26343 ecode4 = SWIG_AsVal_double(obj3, &val4);
26344 if (!SWIG_IsOK(ecode4)) {
26345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
26346 }
26347 arg4 = static_cast< double >(val4);
26348 ecode5 = SWIG_AsVal_double(obj4, &val5);
26349 if (!SWIG_IsOK(ecode5)) {
26350 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
26351 }
26352 arg5 = static_cast< double >(val5);
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
26356 wxPyEndAllowThreads(__tstate);
26357 if (PyErr_Occurred()) SWIG_fail;
26358 }
26359 resultobj = SWIG_Py_Void();
26360 return resultobj;
26361fail:
26362 return NULL;
26363}
26364
26365
26366SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj = 0;
26368 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26369 int arg2 ;
26370 int arg3 ;
26371 void *argp1 = 0 ;
26372 int res1 = 0 ;
26373 int val2 ;
26374 int ecode2 = 0 ;
26375 int val3 ;
26376 int ecode3 = 0 ;
26377 PyObject * obj0 = 0 ;
26378 PyObject * obj1 = 0 ;
26379 PyObject * obj2 = 0 ;
26380 char * kwnames[] = {
26381 (char *) "self",(char *) "x",(char *) "y", NULL
26382 };
26383
26384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26386 if (!SWIG_IsOK(res1)) {
26387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26388 }
26389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26390 ecode2 = SWIG_AsVal_int(obj1, &val2);
26391 if (!SWIG_IsOK(ecode2)) {
26392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
26393 }
26394 arg2 = static_cast< int >(val2);
26395 ecode3 = SWIG_AsVal_int(obj2, &val3);
26396 if (!SWIG_IsOK(ecode3)) {
26397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
26398 }
26399 arg3 = static_cast< int >(val3);
26400 {
26401 PyThreadState* __tstate = wxPyBeginAllowThreads();
26402 (arg1)->DrawPoint(arg2,arg3);
26403 wxPyEndAllowThreads(__tstate);
26404 if (PyErr_Occurred()) SWIG_fail;
26405 }
26406 resultobj = SWIG_Py_Void();
26407 return resultobj;
26408fail:
26409 return NULL;
26410}
26411
26412
26413SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26414 PyObject *resultobj = 0;
26415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26416 wxPoint *arg2 = 0 ;
26417 void *argp1 = 0 ;
26418 int res1 = 0 ;
26419 wxPoint temp2 ;
26420 PyObject * obj0 = 0 ;
26421 PyObject * obj1 = 0 ;
26422 char * kwnames[] = {
26423 (char *) "self",(char *) "pt", NULL
26424 };
26425
26426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
26427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26428 if (!SWIG_IsOK(res1)) {
26429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26430 }
26431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26432 {
26433 arg2 = &temp2;
26434 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26435 }
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 (arg1)->DrawPoint((wxPoint const &)*arg2);
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_Py_Void();
26443 return resultobj;
26444fail:
26445 return NULL;
26446}
26447
26448
26449SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26450 PyObject *resultobj = 0;
26451 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26452 int arg2 ;
26453 int arg3 ;
26454 int arg4 ;
26455 int arg5 ;
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 int val2 ;
26459 int ecode2 = 0 ;
26460 int val3 ;
26461 int ecode3 = 0 ;
26462 int val4 ;
26463 int ecode4 = 0 ;
26464 int val5 ;
26465 int ecode5 = 0 ;
26466 PyObject * obj0 = 0 ;
26467 PyObject * obj1 = 0 ;
26468 PyObject * obj2 = 0 ;
26469 PyObject * obj3 = 0 ;
26470 PyObject * obj4 = 0 ;
26471 char * kwnames[] = {
26472 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26473 };
26474
26475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26477 if (!SWIG_IsOK(res1)) {
26478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26479 }
26480 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26481 ecode2 = SWIG_AsVal_int(obj1, &val2);
26482 if (!SWIG_IsOK(ecode2)) {
26483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
26484 }
26485 arg2 = static_cast< int >(val2);
26486 ecode3 = SWIG_AsVal_int(obj2, &val3);
26487 if (!SWIG_IsOK(ecode3)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
26489 }
26490 arg3 = static_cast< int >(val3);
26491 ecode4 = SWIG_AsVal_int(obj3, &val4);
26492 if (!SWIG_IsOK(ecode4)) {
26493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
26494 }
26495 arg4 = static_cast< int >(val4);
26496 ecode5 = SWIG_AsVal_int(obj4, &val5);
26497 if (!SWIG_IsOK(ecode5)) {
26498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
26499 }
26500 arg5 = static_cast< int >(val5);
26501 {
26502 PyThreadState* __tstate = wxPyBeginAllowThreads();
26503 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26504 wxPyEndAllowThreads(__tstate);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_Py_Void();
26508 return resultobj;
26509fail:
26510 return NULL;
26511}
26512
26513
26514SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26515 PyObject *resultobj = 0;
26516 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26517 wxRect *arg2 = 0 ;
26518 void *argp1 = 0 ;
26519 int res1 = 0 ;
26520 wxRect temp2 ;
26521 PyObject * obj0 = 0 ;
26522 PyObject * obj1 = 0 ;
26523 char * kwnames[] = {
26524 (char *) "self",(char *) "rect", NULL
26525 };
26526
26527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
26528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26529 if (!SWIG_IsOK(res1)) {
26530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26531 }
26532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26533 {
26534 arg2 = &temp2;
26535 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26536 }
26537 {
26538 PyThreadState* __tstate = wxPyBeginAllowThreads();
26539 (arg1)->DrawRectangle((wxRect const &)*arg2);
26540 wxPyEndAllowThreads(__tstate);
26541 if (PyErr_Occurred()) SWIG_fail;
26542 }
26543 resultobj = SWIG_Py_Void();
26544 return resultobj;
26545fail:
26546 return NULL;
26547}
26548
26549
26550SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26551 PyObject *resultobj = 0;
26552 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26553 wxPoint *arg2 = 0 ;
26554 wxSize *arg3 = 0 ;
26555 void *argp1 = 0 ;
26556 int res1 = 0 ;
26557 wxPoint temp2 ;
26558 wxSize temp3 ;
26559 PyObject * obj0 = 0 ;
26560 PyObject * obj1 = 0 ;
26561 PyObject * obj2 = 0 ;
26562 char * kwnames[] = {
26563 (char *) "self",(char *) "pt",(char *) "sz", NULL
26564 };
26565
26566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26568 if (!SWIG_IsOK(res1)) {
26569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26570 }
26571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26572 {
26573 arg2 = &temp2;
26574 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26575 }
26576 {
26577 arg3 = &temp3;
26578 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26579 }
26580 {
26581 PyThreadState* __tstate = wxPyBeginAllowThreads();
26582 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
26583 wxPyEndAllowThreads(__tstate);
26584 if (PyErr_Occurred()) SWIG_fail;
26585 }
26586 resultobj = SWIG_Py_Void();
26587 return resultobj;
26588fail:
26589 return NULL;
26590}
26591
26592
26593SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26594 PyObject *resultobj = 0;
26595 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26596 int arg2 ;
26597 int arg3 ;
26598 int arg4 ;
26599 int arg5 ;
26600 double arg6 ;
26601 void *argp1 = 0 ;
26602 int res1 = 0 ;
26603 int val2 ;
26604 int ecode2 = 0 ;
26605 int val3 ;
26606 int ecode3 = 0 ;
26607 int val4 ;
26608 int ecode4 = 0 ;
26609 int val5 ;
26610 int ecode5 = 0 ;
26611 double val6 ;
26612 int ecode6 = 0 ;
26613 PyObject * obj0 = 0 ;
26614 PyObject * obj1 = 0 ;
26615 PyObject * obj2 = 0 ;
26616 PyObject * obj3 = 0 ;
26617 PyObject * obj4 = 0 ;
26618 PyObject * obj5 = 0 ;
26619 char * kwnames[] = {
26620 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
26621 };
26622
26623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26625 if (!SWIG_IsOK(res1)) {
26626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26627 }
26628 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26629 ecode2 = SWIG_AsVal_int(obj1, &val2);
26630 if (!SWIG_IsOK(ecode2)) {
26631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
26632 }
26633 arg2 = static_cast< int >(val2);
26634 ecode3 = SWIG_AsVal_int(obj2, &val3);
26635 if (!SWIG_IsOK(ecode3)) {
26636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
26637 }
26638 arg3 = static_cast< int >(val3);
26639 ecode4 = SWIG_AsVal_int(obj3, &val4);
26640 if (!SWIG_IsOK(ecode4)) {
26641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
26642 }
26643 arg4 = static_cast< int >(val4);
26644 ecode5 = SWIG_AsVal_int(obj4, &val5);
26645 if (!SWIG_IsOK(ecode5)) {
26646 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
26647 }
26648 arg5 = static_cast< int >(val5);
26649 ecode6 = SWIG_AsVal_double(obj5, &val6);
26650 if (!SWIG_IsOK(ecode6)) {
26651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
26652 }
26653 arg6 = static_cast< double >(val6);
26654 {
26655 PyThreadState* __tstate = wxPyBeginAllowThreads();
26656 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26657 wxPyEndAllowThreads(__tstate);
26658 if (PyErr_Occurred()) SWIG_fail;
26659 }
26660 resultobj = SWIG_Py_Void();
26661 return resultobj;
26662fail:
26663 return NULL;
26664}
26665
26666
26667SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26668 PyObject *resultobj = 0;
26669 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26670 wxRect *arg2 = 0 ;
26671 double arg3 ;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 wxRect temp2 ;
26675 double val3 ;
26676 int ecode3 = 0 ;
26677 PyObject * obj0 = 0 ;
26678 PyObject * obj1 = 0 ;
26679 PyObject * obj2 = 0 ;
26680 char * kwnames[] = {
26681 (char *) "self",(char *) "r",(char *) "radius", NULL
26682 };
26683
26684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26686 if (!SWIG_IsOK(res1)) {
26687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26688 }
26689 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26690 {
26691 arg2 = &temp2;
26692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26693 }
26694 ecode3 = SWIG_AsVal_double(obj2, &val3);
26695 if (!SWIG_IsOK(ecode3)) {
26696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
26697 }
26698 arg3 = static_cast< double >(val3);
26699 {
26700 PyThreadState* __tstate = wxPyBeginAllowThreads();
26701 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 resultobj = SWIG_Py_Void();
26706 return resultobj;
26707fail:
26708 return NULL;
26709}
26710
26711
26712SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj = 0;
26714 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26715 wxPoint *arg2 = 0 ;
26716 wxSize *arg3 = 0 ;
26717 double arg4 ;
26718 void *argp1 = 0 ;
26719 int res1 = 0 ;
26720 wxPoint temp2 ;
26721 wxSize temp3 ;
26722 double val4 ;
26723 int ecode4 = 0 ;
26724 PyObject * obj0 = 0 ;
26725 PyObject * obj1 = 0 ;
26726 PyObject * obj2 = 0 ;
26727 PyObject * obj3 = 0 ;
26728 char * kwnames[] = {
26729 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
26730 };
26731
26732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26734 if (!SWIG_IsOK(res1)) {
26735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26736 }
26737 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26738 {
26739 arg2 = &temp2;
26740 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26741 }
26742 {
26743 arg3 = &temp3;
26744 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26745 }
26746 ecode4 = SWIG_AsVal_double(obj3, &val4);
26747 if (!SWIG_IsOK(ecode4)) {
26748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
26749 }
26750 arg4 = static_cast< double >(val4);
26751 {
26752 PyThreadState* __tstate = wxPyBeginAllowThreads();
26753 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
26754 wxPyEndAllowThreads(__tstate);
26755 if (PyErr_Occurred()) SWIG_fail;
26756 }
26757 resultobj = SWIG_Py_Void();
26758 return resultobj;
26759fail:
26760 return NULL;
26761}
26762
26763
26764SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26765 PyObject *resultobj = 0;
26766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26767 int arg2 ;
26768 int arg3 ;
26769 int arg4 ;
26770 void *argp1 = 0 ;
26771 int res1 = 0 ;
26772 int val2 ;
26773 int ecode2 = 0 ;
26774 int val3 ;
26775 int ecode3 = 0 ;
26776 int val4 ;
26777 int ecode4 = 0 ;
26778 PyObject * obj0 = 0 ;
26779 PyObject * obj1 = 0 ;
26780 PyObject * obj2 = 0 ;
26781 PyObject * obj3 = 0 ;
26782 char * kwnames[] = {
26783 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
26784 };
26785
26786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26788 if (!SWIG_IsOK(res1)) {
26789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26790 }
26791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26792 ecode2 = SWIG_AsVal_int(obj1, &val2);
26793 if (!SWIG_IsOK(ecode2)) {
26794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
26795 }
26796 arg2 = static_cast< int >(val2);
26797 ecode3 = SWIG_AsVal_int(obj2, &val3);
26798 if (!SWIG_IsOK(ecode3)) {
26799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
26800 }
26801 arg3 = static_cast< int >(val3);
26802 ecode4 = SWIG_AsVal_int(obj3, &val4);
26803 if (!SWIG_IsOK(ecode4)) {
26804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
26805 }
26806 arg4 = static_cast< int >(val4);
26807 {
26808 PyThreadState* __tstate = wxPyBeginAllowThreads();
26809 (arg1)->DrawCircle(arg2,arg3,arg4);
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 resultobj = SWIG_Py_Void();
26814 return resultobj;
26815fail:
26816 return NULL;
26817}
26818
26819
26820SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj = 0;
26822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26823 wxPoint *arg2 = 0 ;
26824 int arg3 ;
26825 void *argp1 = 0 ;
26826 int res1 = 0 ;
26827 wxPoint temp2 ;
26828 int val3 ;
26829 int ecode3 = 0 ;
26830 PyObject * obj0 = 0 ;
26831 PyObject * obj1 = 0 ;
26832 PyObject * obj2 = 0 ;
26833 char * kwnames[] = {
26834 (char *) "self",(char *) "pt",(char *) "radius", NULL
26835 };
26836
26837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26839 if (!SWIG_IsOK(res1)) {
26840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26841 }
26842 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26843 {
26844 arg2 = &temp2;
26845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26846 }
26847 ecode3 = SWIG_AsVal_int(obj2, &val3);
26848 if (!SWIG_IsOK(ecode3)) {
26849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
26850 }
26851 arg3 = static_cast< int >(val3);
26852 {
26853 PyThreadState* __tstate = wxPyBeginAllowThreads();
26854 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
26855 wxPyEndAllowThreads(__tstate);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_Py_Void();
26859 return resultobj;
26860fail:
26861 return NULL;
26862}
26863
26864
26865SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26866 PyObject *resultobj = 0;
26867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26868 int arg2 ;
26869 int arg3 ;
26870 int arg4 ;
26871 int arg5 ;
26872 void *argp1 = 0 ;
26873 int res1 = 0 ;
26874 int val2 ;
26875 int ecode2 = 0 ;
26876 int val3 ;
26877 int ecode3 = 0 ;
26878 int val4 ;
26879 int ecode4 = 0 ;
26880 int val5 ;
26881 int ecode5 = 0 ;
26882 PyObject * obj0 = 0 ;
26883 PyObject * obj1 = 0 ;
26884 PyObject * obj2 = 0 ;
26885 PyObject * obj3 = 0 ;
26886 PyObject * obj4 = 0 ;
26887 char * kwnames[] = {
26888 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26889 };
26890
26891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26893 if (!SWIG_IsOK(res1)) {
26894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26895 }
26896 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26897 ecode2 = SWIG_AsVal_int(obj1, &val2);
26898 if (!SWIG_IsOK(ecode2)) {
26899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
26900 }
26901 arg2 = static_cast< int >(val2);
26902 ecode3 = SWIG_AsVal_int(obj2, &val3);
26903 if (!SWIG_IsOK(ecode3)) {
26904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
26905 }
26906 arg3 = static_cast< int >(val3);
26907 ecode4 = SWIG_AsVal_int(obj3, &val4);
26908 if (!SWIG_IsOK(ecode4)) {
26909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
26910 }
26911 arg4 = static_cast< int >(val4);
26912 ecode5 = SWIG_AsVal_int(obj4, &val5);
26913 if (!SWIG_IsOK(ecode5)) {
26914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
26915 }
26916 arg5 = static_cast< int >(val5);
26917 {
26918 PyThreadState* __tstate = wxPyBeginAllowThreads();
26919 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26920 wxPyEndAllowThreads(__tstate);
26921 if (PyErr_Occurred()) SWIG_fail;
26922 }
26923 resultobj = SWIG_Py_Void();
26924 return resultobj;
26925fail:
26926 return NULL;
26927}
26928
26929
26930SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26931 PyObject *resultobj = 0;
26932 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26933 wxRect *arg2 = 0 ;
26934 void *argp1 = 0 ;
26935 int res1 = 0 ;
26936 wxRect temp2 ;
26937 PyObject * obj0 = 0 ;
26938 PyObject * obj1 = 0 ;
26939 char * kwnames[] = {
26940 (char *) "self",(char *) "rect", NULL
26941 };
26942
26943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
26944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26945 if (!SWIG_IsOK(res1)) {
26946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26947 }
26948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26949 {
26950 arg2 = &temp2;
26951 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26952 }
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 (arg1)->DrawEllipse((wxRect const &)*arg2);
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_Py_Void();
26960 return resultobj;
26961fail:
26962 return NULL;
26963}
26964
26965
26966SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26967 PyObject *resultobj = 0;
26968 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26969 wxPoint *arg2 = 0 ;
26970 wxSize *arg3 = 0 ;
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
26973 wxPoint temp2 ;
26974 wxSize temp3 ;
26975 PyObject * obj0 = 0 ;
26976 PyObject * obj1 = 0 ;
26977 PyObject * obj2 = 0 ;
26978 char * kwnames[] = {
26979 (char *) "self",(char *) "pt",(char *) "sz", NULL
26980 };
26981
26982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26984 if (!SWIG_IsOK(res1)) {
26985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26986 }
26987 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26988 {
26989 arg2 = &temp2;
26990 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26991 }
26992 {
26993 arg3 = &temp3;
26994 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26995 }
26996 {
26997 PyThreadState* __tstate = wxPyBeginAllowThreads();
26998 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
26999 wxPyEndAllowThreads(__tstate);
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_Py_Void();
27003 return resultobj;
27004fail:
27005 return NULL;
27006}
27007
27008
27009SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27010 PyObject *resultobj = 0;
27011 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27012 wxIcon *arg2 = 0 ;
27013 int arg3 ;
27014 int arg4 ;
27015 void *argp1 = 0 ;
27016 int res1 = 0 ;
27017 void *argp2 = 0 ;
27018 int res2 = 0 ;
27019 int val3 ;
27020 int ecode3 = 0 ;
27021 int val4 ;
27022 int ecode4 = 0 ;
27023 PyObject * obj0 = 0 ;
27024 PyObject * obj1 = 0 ;
27025 PyObject * obj2 = 0 ;
27026 PyObject * obj3 = 0 ;
27027 char * kwnames[] = {
27028 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
27029 };
27030
27031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27035 }
27036 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27038 if (!SWIG_IsOK(res2)) {
27039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27040 }
27041 if (!argp2) {
27042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27043 }
27044 arg2 = reinterpret_cast< wxIcon * >(argp2);
27045 ecode3 = SWIG_AsVal_int(obj2, &val3);
27046 if (!SWIG_IsOK(ecode3)) {
27047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
27048 }
27049 arg3 = static_cast< int >(val3);
27050 ecode4 = SWIG_AsVal_int(obj3, &val4);
27051 if (!SWIG_IsOK(ecode4)) {
27052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
27053 }
27054 arg4 = static_cast< int >(val4);
27055 {
27056 PyThreadState* __tstate = wxPyBeginAllowThreads();
27057 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
27058 wxPyEndAllowThreads(__tstate);
27059 if (PyErr_Occurred()) SWIG_fail;
27060 }
27061 resultobj = SWIG_Py_Void();
27062 return resultobj;
27063fail:
27064 return NULL;
27065}
27066
27067
27068SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27069 PyObject *resultobj = 0;
27070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27071 wxIcon *arg2 = 0 ;
27072 wxPoint *arg3 = 0 ;
27073 void *argp1 = 0 ;
27074 int res1 = 0 ;
27075 void *argp2 = 0 ;
27076 int res2 = 0 ;
27077 wxPoint temp3 ;
27078 PyObject * obj0 = 0 ;
27079 PyObject * obj1 = 0 ;
27080 PyObject * obj2 = 0 ;
27081 char * kwnames[] = {
27082 (char *) "self",(char *) "icon",(char *) "pt", NULL
27083 };
27084
27085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27087 if (!SWIG_IsOK(res1)) {
27088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27089 }
27090 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27092 if (!SWIG_IsOK(res2)) {
27093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27094 }
27095 if (!argp2) {
27096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27097 }
27098 arg2 = reinterpret_cast< wxIcon * >(argp2);
27099 {
27100 arg3 = &temp3;
27101 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27102 }
27103 {
27104 PyThreadState* __tstate = wxPyBeginAllowThreads();
27105 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
27106 wxPyEndAllowThreads(__tstate);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_Py_Void();
27110 return resultobj;
27111fail:
27112 return NULL;
27113}
27114
27115
27116SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27117 PyObject *resultobj = 0;
27118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27119 wxBitmap *arg2 = 0 ;
27120 int arg3 ;
27121 int arg4 ;
27122 bool arg5 = (bool) false ;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 void *argp2 = 0 ;
27126 int res2 = 0 ;
27127 int val3 ;
27128 int ecode3 = 0 ;
27129 int val4 ;
27130 int ecode4 = 0 ;
27131 bool val5 ;
27132 int ecode5 = 0 ;
27133 PyObject * obj0 = 0 ;
27134 PyObject * obj1 = 0 ;
27135 PyObject * obj2 = 0 ;
27136 PyObject * obj3 = 0 ;
27137 PyObject * obj4 = 0 ;
27138 char * kwnames[] = {
27139 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
27140 };
27141
27142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27144 if (!SWIG_IsOK(res1)) {
27145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27146 }
27147 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27149 if (!SWIG_IsOK(res2)) {
27150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27151 }
27152 if (!argp2) {
27153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27154 }
27155 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27156 ecode3 = SWIG_AsVal_int(obj2, &val3);
27157 if (!SWIG_IsOK(ecode3)) {
27158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
27159 }
27160 arg3 = static_cast< int >(val3);
27161 ecode4 = SWIG_AsVal_int(obj3, &val4);
27162 if (!SWIG_IsOK(ecode4)) {
27163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
27164 }
27165 arg4 = static_cast< int >(val4);
27166 if (obj4) {
27167 ecode5 = SWIG_AsVal_bool(obj4, &val5);
27168 if (!SWIG_IsOK(ecode5)) {
27169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
27170 }
27171 arg5 = static_cast< bool >(val5);
27172 }
27173 {
27174 PyThreadState* __tstate = wxPyBeginAllowThreads();
27175 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
27176 wxPyEndAllowThreads(__tstate);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 resultobj = SWIG_Py_Void();
27180 return resultobj;
27181fail:
27182 return NULL;
27183}
27184
27185
27186SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27187 PyObject *resultobj = 0;
27188 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27189 wxBitmap *arg2 = 0 ;
27190 wxPoint *arg3 = 0 ;
27191 bool arg4 = (bool) false ;
27192 void *argp1 = 0 ;
27193 int res1 = 0 ;
27194 void *argp2 = 0 ;
27195 int res2 = 0 ;
27196 wxPoint temp3 ;
27197 bool val4 ;
27198 int ecode4 = 0 ;
27199 PyObject * obj0 = 0 ;
27200 PyObject * obj1 = 0 ;
27201 PyObject * obj2 = 0 ;
27202 PyObject * obj3 = 0 ;
27203 char * kwnames[] = {
27204 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
27205 };
27206
27207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27209 if (!SWIG_IsOK(res1)) {
27210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27211 }
27212 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27214 if (!SWIG_IsOK(res2)) {
27215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27216 }
27217 if (!argp2) {
27218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27219 }
27220 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27221 {
27222 arg3 = &temp3;
27223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27224 }
27225 if (obj3) {
27226 ecode4 = SWIG_AsVal_bool(obj3, &val4);
27227 if (!SWIG_IsOK(ecode4)) {
27228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
27229 }
27230 arg4 = static_cast< bool >(val4);
27231 }
27232 {
27233 PyThreadState* __tstate = wxPyBeginAllowThreads();
27234 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
27235 wxPyEndAllowThreads(__tstate);
27236 if (PyErr_Occurred()) SWIG_fail;
27237 }
27238 resultobj = SWIG_Py_Void();
27239 return resultobj;
27240fail:
27241 return NULL;
27242}
27243
27244
27245SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27246 PyObject *resultobj = 0;
27247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27248 wxString *arg2 = 0 ;
27249 int arg3 ;
27250 int arg4 ;
27251 void *argp1 = 0 ;
27252 int res1 = 0 ;
27253 bool temp2 = false ;
27254 int val3 ;
27255 int ecode3 = 0 ;
27256 int val4 ;
27257 int ecode4 = 0 ;
27258 PyObject * obj0 = 0 ;
27259 PyObject * obj1 = 0 ;
27260 PyObject * obj2 = 0 ;
27261 PyObject * obj3 = 0 ;
27262 char * kwnames[] = {
27263 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
27264 };
27265
27266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27268 if (!SWIG_IsOK(res1)) {
27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27270 }
27271 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27272 {
27273 arg2 = wxString_in_helper(obj1);
27274 if (arg2 == NULL) SWIG_fail;
27275 temp2 = true;
27276 }
27277 ecode3 = SWIG_AsVal_int(obj2, &val3);
27278 if (!SWIG_IsOK(ecode3)) {
27279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
27280 }
27281 arg3 = static_cast< int >(val3);
27282 ecode4 = SWIG_AsVal_int(obj3, &val4);
27283 if (!SWIG_IsOK(ecode4)) {
27284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
27285 }
27286 arg4 = static_cast< int >(val4);
27287 {
27288 PyThreadState* __tstate = wxPyBeginAllowThreads();
27289 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_Py_Void();
27294 {
27295 if (temp2)
27296 delete arg2;
27297 }
27298 return resultobj;
27299fail:
27300 {
27301 if (temp2)
27302 delete arg2;
27303 }
27304 return NULL;
27305}
27306
27307
27308SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27309 PyObject *resultobj = 0;
27310 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27311 wxString *arg2 = 0 ;
27312 wxPoint *arg3 = 0 ;
27313 void *argp1 = 0 ;
27314 int res1 = 0 ;
27315 bool temp2 = false ;
27316 wxPoint temp3 ;
27317 PyObject * obj0 = 0 ;
27318 PyObject * obj1 = 0 ;
27319 PyObject * obj2 = 0 ;
27320 char * kwnames[] = {
27321 (char *) "self",(char *) "text",(char *) "pt", NULL
27322 };
27323
27324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27328 }
27329 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27330 {
27331 arg2 = wxString_in_helper(obj1);
27332 if (arg2 == NULL) SWIG_fail;
27333 temp2 = true;
27334 }
27335 {
27336 arg3 = &temp3;
27337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27338 }
27339 {
27340 PyThreadState* __tstate = wxPyBeginAllowThreads();
27341 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
27342 wxPyEndAllowThreads(__tstate);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 resultobj = SWIG_Py_Void();
27346 {
27347 if (temp2)
27348 delete arg2;
27349 }
27350 return resultobj;
27351fail:
27352 {
27353 if (temp2)
27354 delete arg2;
27355 }
27356 return NULL;
27357}
27358
27359
27360SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj = 0;
27362 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27363 wxString *arg2 = 0 ;
27364 int arg3 ;
27365 int arg4 ;
27366 double arg5 ;
27367 void *argp1 = 0 ;
27368 int res1 = 0 ;
27369 bool temp2 = false ;
27370 int val3 ;
27371 int ecode3 = 0 ;
27372 int val4 ;
27373 int ecode4 = 0 ;
27374 double val5 ;
27375 int ecode5 = 0 ;
27376 PyObject * obj0 = 0 ;
27377 PyObject * obj1 = 0 ;
27378 PyObject * obj2 = 0 ;
27379 PyObject * obj3 = 0 ;
27380 PyObject * obj4 = 0 ;
27381 char * kwnames[] = {
27382 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
27383 };
27384
27385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27387 if (!SWIG_IsOK(res1)) {
27388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27389 }
27390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27391 {
27392 arg2 = wxString_in_helper(obj1);
27393 if (arg2 == NULL) SWIG_fail;
27394 temp2 = true;
27395 }
27396 ecode3 = SWIG_AsVal_int(obj2, &val3);
27397 if (!SWIG_IsOK(ecode3)) {
27398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
27399 }
27400 arg3 = static_cast< int >(val3);
27401 ecode4 = SWIG_AsVal_int(obj3, &val4);
27402 if (!SWIG_IsOK(ecode4)) {
27403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
27404 }
27405 arg4 = static_cast< int >(val4);
27406 ecode5 = SWIG_AsVal_double(obj4, &val5);
27407 if (!SWIG_IsOK(ecode5)) {
27408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
27409 }
27410 arg5 = static_cast< double >(val5);
27411 {
27412 PyThreadState* __tstate = wxPyBeginAllowThreads();
27413 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_Py_Void();
27418 {
27419 if (temp2)
27420 delete arg2;
27421 }
27422 return resultobj;
27423fail:
27424 {
27425 if (temp2)
27426 delete arg2;
27427 }
27428 return NULL;
27429}
27430
27431
27432SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27433 PyObject *resultobj = 0;
27434 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27435 wxString *arg2 = 0 ;
27436 wxPoint *arg3 = 0 ;
27437 double arg4 ;
27438 void *argp1 = 0 ;
27439 int res1 = 0 ;
27440 bool temp2 = false ;
27441 wxPoint temp3 ;
27442 double val4 ;
27443 int ecode4 = 0 ;
27444 PyObject * obj0 = 0 ;
27445 PyObject * obj1 = 0 ;
27446 PyObject * obj2 = 0 ;
27447 PyObject * obj3 = 0 ;
27448 char * kwnames[] = {
27449 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
27450 };
27451
27452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27454 if (!SWIG_IsOK(res1)) {
27455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27456 }
27457 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27458 {
27459 arg2 = wxString_in_helper(obj1);
27460 if (arg2 == NULL) SWIG_fail;
27461 temp2 = true;
27462 }
27463 {
27464 arg3 = &temp3;
27465 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27466 }
27467 ecode4 = SWIG_AsVal_double(obj3, &val4);
27468 if (!SWIG_IsOK(ecode4)) {
27469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
27470 }
27471 arg4 = static_cast< double >(val4);
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
27474 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
27475 wxPyEndAllowThreads(__tstate);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 }
27478 resultobj = SWIG_Py_Void();
27479 {
27480 if (temp2)
27481 delete arg2;
27482 }
27483 return resultobj;
27484fail:
27485 {
27486 if (temp2)
27487 delete arg2;
27488 }
27489 return NULL;
27490}
27491
27492
27493SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27494 PyObject *resultobj = 0;
27495 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27496 int arg2 ;
27497 wxPoint *arg3 = (wxPoint *) 0 ;
27498 int arg4 = (int) 0 ;
27499 int arg5 = (int) 0 ;
27500 void *argp1 = 0 ;
27501 int res1 = 0 ;
27502 int val4 ;
27503 int ecode4 = 0 ;
27504 int val5 ;
27505 int ecode5 = 0 ;
27506 PyObject * obj0 = 0 ;
27507 PyObject * obj1 = 0 ;
27508 PyObject * obj2 = 0 ;
27509 PyObject * obj3 = 0 ;
27510 char * kwnames[] = {
27511 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
27512 };
27513
27514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27516 if (!SWIG_IsOK(res1)) {
27517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27518 }
27519 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27520 {
27521 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27522 if (arg3 == NULL) SWIG_fail;
27523 }
27524 if (obj2) {
27525 ecode4 = SWIG_AsVal_int(obj2, &val4);
27526 if (!SWIG_IsOK(ecode4)) {
27527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
27528 }
27529 arg4 = static_cast< int >(val4);
27530 }
27531 if (obj3) {
27532 ecode5 = SWIG_AsVal_int(obj3, &val5);
27533 if (!SWIG_IsOK(ecode5)) {
27534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
27535 }
27536 arg5 = static_cast< int >(val5);
27537 }
27538 {
27539 PyThreadState* __tstate = wxPyBeginAllowThreads();
27540 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
27541 wxPyEndAllowThreads(__tstate);
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
27544 resultobj = SWIG_Py_Void();
27545 {
27546 if (arg3) delete [] arg3;
27547 }
27548 return resultobj;
27549fail:
27550 {
27551 if (arg3) delete [] arg3;
27552 }
27553 return NULL;
27554}
27555
27556
27557SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27558 PyObject *resultobj = 0;
27559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27560 int arg2 ;
27561 wxPoint *arg3 = (wxPoint *) 0 ;
27562 int arg4 = (int) 0 ;
27563 int arg5 = (int) 0 ;
27564 int arg6 = (int) wxODDEVEN_RULE ;
27565 void *argp1 = 0 ;
27566 int res1 = 0 ;
27567 int val4 ;
27568 int ecode4 = 0 ;
27569 int val5 ;
27570 int ecode5 = 0 ;
27571 int val6 ;
27572 int ecode6 = 0 ;
27573 PyObject * obj0 = 0 ;
27574 PyObject * obj1 = 0 ;
27575 PyObject * obj2 = 0 ;
27576 PyObject * obj3 = 0 ;
27577 PyObject * obj4 = 0 ;
27578 char * kwnames[] = {
27579 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
27580 };
27581
27582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27586 }
27587 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27588 {
27589 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27590 if (arg3 == NULL) SWIG_fail;
27591 }
27592 if (obj2) {
27593 ecode4 = SWIG_AsVal_int(obj2, &val4);
27594 if (!SWIG_IsOK(ecode4)) {
27595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
27596 }
27597 arg4 = static_cast< int >(val4);
27598 }
27599 if (obj3) {
27600 ecode5 = SWIG_AsVal_int(obj3, &val5);
27601 if (!SWIG_IsOK(ecode5)) {
27602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
27603 }
27604 arg5 = static_cast< int >(val5);
27605 }
27606 if (obj4) {
27607 ecode6 = SWIG_AsVal_int(obj4, &val6);
27608 if (!SWIG_IsOK(ecode6)) {
27609 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
27610 }
27611 arg6 = static_cast< int >(val6);
27612 }
27613 {
27614 PyThreadState* __tstate = wxPyBeginAllowThreads();
27615 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
27616 wxPyEndAllowThreads(__tstate);
27617 if (PyErr_Occurred()) SWIG_fail;
27618 }
27619 resultobj = SWIG_Py_Void();
27620 {
27621 if (arg3) delete [] arg3;
27622 }
27623 return resultobj;
27624fail:
27625 {
27626 if (arg3) delete [] arg3;
27627 }
27628 return NULL;
27629}
27630
27631
27632SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27633 PyObject *resultobj = 0;
27634 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27635 wxString *arg2 = 0 ;
27636 wxRect *arg3 = 0 ;
27637 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
27638 int arg5 = (int) -1 ;
27639 void *argp1 = 0 ;
27640 int res1 = 0 ;
27641 bool temp2 = false ;
27642 wxRect temp3 ;
27643 int val4 ;
27644 int ecode4 = 0 ;
27645 int val5 ;
27646 int ecode5 = 0 ;
27647 PyObject * obj0 = 0 ;
27648 PyObject * obj1 = 0 ;
27649 PyObject * obj2 = 0 ;
27650 PyObject * obj3 = 0 ;
27651 PyObject * obj4 = 0 ;
27652 char * kwnames[] = {
27653 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
27654 };
27655
27656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27658 if (!SWIG_IsOK(res1)) {
27659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27660 }
27661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27662 {
27663 arg2 = wxString_in_helper(obj1);
27664 if (arg2 == NULL) SWIG_fail;
27665 temp2 = true;
27666 }
27667 {
27668 arg3 = &temp3;
27669 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27670 }
27671 if (obj3) {
27672 ecode4 = SWIG_AsVal_int(obj3, &val4);
27673 if (!SWIG_IsOK(ecode4)) {
27674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
27675 }
27676 arg4 = static_cast< int >(val4);
27677 }
27678 if (obj4) {
27679 ecode5 = SWIG_AsVal_int(obj4, &val5);
27680 if (!SWIG_IsOK(ecode5)) {
27681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
27682 }
27683 arg5 = static_cast< int >(val5);
27684 }
27685 {
27686 PyThreadState* __tstate = wxPyBeginAllowThreads();
27687 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
27688 wxPyEndAllowThreads(__tstate);
27689 if (PyErr_Occurred()) SWIG_fail;
27690 }
27691 resultobj = SWIG_Py_Void();
27692 {
27693 if (temp2)
27694 delete arg2;
27695 }
27696 return resultobj;
27697fail:
27698 {
27699 if (temp2)
27700 delete arg2;
27701 }
27702 return NULL;
27703}
27704
27705
27706SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27707 PyObject *resultobj = 0;
27708 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27709 wxString *arg2 = 0 ;
27710 wxBitmap *arg3 = 0 ;
27711 wxRect *arg4 = 0 ;
27712 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
27713 int arg6 = (int) -1 ;
27714 void *argp1 = 0 ;
27715 int res1 = 0 ;
27716 bool temp2 = false ;
27717 void *argp3 = 0 ;
27718 int res3 = 0 ;
27719 wxRect temp4 ;
27720 int val5 ;
27721 int ecode5 = 0 ;
27722 int val6 ;
27723 int ecode6 = 0 ;
27724 PyObject * obj0 = 0 ;
27725 PyObject * obj1 = 0 ;
27726 PyObject * obj2 = 0 ;
27727 PyObject * obj3 = 0 ;
27728 PyObject * obj4 = 0 ;
27729 PyObject * obj5 = 0 ;
27730 char * kwnames[] = {
27731 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
27732 };
27733
27734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27736 if (!SWIG_IsOK(res1)) {
27737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27738 }
27739 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27740 {
27741 arg2 = wxString_in_helper(obj1);
27742 if (arg2 == NULL) SWIG_fail;
27743 temp2 = true;
27744 }
27745 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27746 if (!SWIG_IsOK(res3)) {
27747 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27748 }
27749 if (!argp3) {
27750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27751 }
27752 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27753 {
27754 arg4 = &temp4;
27755 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27756 }
27757 if (obj4) {
27758 ecode5 = SWIG_AsVal_int(obj4, &val5);
27759 if (!SWIG_IsOK(ecode5)) {
27760 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
27761 }
27762 arg5 = static_cast< int >(val5);
27763 }
27764 if (obj5) {
27765 ecode6 = SWIG_AsVal_int(obj5, &val6);
27766 if (!SWIG_IsOK(ecode6)) {
27767 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
27768 }
27769 arg6 = static_cast< int >(val6);
27770 }
27771 {
27772 PyThreadState* __tstate = wxPyBeginAllowThreads();
27773 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
27774 wxPyEndAllowThreads(__tstate);
27775 if (PyErr_Occurred()) SWIG_fail;
27776 }
27777 resultobj = SWIG_Py_Void();
27778 {
27779 if (temp2)
27780 delete arg2;
27781 }
27782 return resultobj;
27783fail:
27784 {
27785 if (temp2)
27786 delete arg2;
27787 }
27788 return NULL;
27789}
27790
27791
27792SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27793 PyObject *resultobj = 0;
27794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27795 int arg2 ;
27796 wxPoint *arg3 = (wxPoint *) 0 ;
27797 void *argp1 = 0 ;
27798 int res1 = 0 ;
27799 PyObject * obj0 = 0 ;
27800 PyObject * obj1 = 0 ;
27801 char * kwnames[] = {
27802 (char *) "self",(char *) "points", NULL
27803 };
27804
27805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
27806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27807 if (!SWIG_IsOK(res1)) {
27808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27809 }
27810 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27811 {
27812 arg3 = wxPoint_LIST_helper(obj1, &arg2);
27813 if (arg3 == NULL) SWIG_fail;
27814 }
27815 {
27816 PyThreadState* __tstate = wxPyBeginAllowThreads();
27817 (arg1)->DrawSpline(arg2,arg3);
27818 wxPyEndAllowThreads(__tstate);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_Py_Void();
27822 {
27823 if (arg3) delete [] arg3;
27824 }
27825 return resultobj;
27826fail:
27827 {
27828 if (arg3) delete [] arg3;
27829 }
27830 return NULL;
27831}
27832
27833
27834SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27835 PyObject *resultobj = 0;
27836 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
27839 PyObject *swig_obj[1] ;
27840
27841 if (!args) SWIG_fail;
27842 swig_obj[0] = args;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27846 }
27847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27848 {
27849 PyThreadState* __tstate = wxPyBeginAllowThreads();
27850 (arg1)->Clear();
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 resultobj = SWIG_Py_Void();
27855 return resultobj;
27856fail:
27857 return NULL;
27858}
27859
27860
27861SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27862 PyObject *resultobj = 0;
27863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27864 wxFont *arg2 = 0 ;
27865 void *argp1 = 0 ;
27866 int res1 = 0 ;
27867 void *argp2 = 0 ;
27868 int res2 = 0 ;
27869 PyObject * obj0 = 0 ;
27870 PyObject * obj1 = 0 ;
27871 char * kwnames[] = {
27872 (char *) "self",(char *) "font", NULL
27873 };
27874
27875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27879 }
27880 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27882 if (!SWIG_IsOK(res2)) {
27883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27884 }
27885 if (!argp2) {
27886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27887 }
27888 arg2 = reinterpret_cast< wxFont * >(argp2);
27889 {
27890 PyThreadState* __tstate = wxPyBeginAllowThreads();
27891 (arg1)->SetFont((wxFont const &)*arg2);
27892 wxPyEndAllowThreads(__tstate);
27893 if (PyErr_Occurred()) SWIG_fail;
27894 }
27895 resultobj = SWIG_Py_Void();
27896 return resultobj;
27897fail:
27898 return NULL;
27899}
27900
27901
27902SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27903 PyObject *resultobj = 0;
27904 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27905 wxPen *arg2 = 0 ;
27906 void *argp1 = 0 ;
27907 int res1 = 0 ;
27908 void *argp2 = 0 ;
27909 int res2 = 0 ;
27910 PyObject * obj0 = 0 ;
27911 PyObject * obj1 = 0 ;
27912 char * kwnames[] = {
27913 (char *) "self",(char *) "pen", NULL
27914 };
27915
27916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
27917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27918 if (!SWIG_IsOK(res1)) {
27919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27920 }
27921 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27923 if (!SWIG_IsOK(res2)) {
27924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27925 }
27926 if (!argp2) {
27927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27928 }
27929 arg2 = reinterpret_cast< wxPen * >(argp2);
27930 {
27931 PyThreadState* __tstate = wxPyBeginAllowThreads();
27932 (arg1)->SetPen((wxPen const &)*arg2);
27933 wxPyEndAllowThreads(__tstate);
27934 if (PyErr_Occurred()) SWIG_fail;
27935 }
27936 resultobj = SWIG_Py_Void();
27937 return resultobj;
27938fail:
27939 return NULL;
27940}
27941
27942
27943SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27944 PyObject *resultobj = 0;
27945 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27946 wxBrush *arg2 = 0 ;
27947 void *argp1 = 0 ;
27948 int res1 = 0 ;
27949 void *argp2 = 0 ;
27950 int res2 = 0 ;
27951 PyObject * obj0 = 0 ;
27952 PyObject * obj1 = 0 ;
27953 char * kwnames[] = {
27954 (char *) "self",(char *) "brush", NULL
27955 };
27956
27957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27959 if (!SWIG_IsOK(res1)) {
27960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27961 }
27962 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27964 if (!SWIG_IsOK(res2)) {
27965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27966 }
27967 if (!argp2) {
27968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27969 }
27970 arg2 = reinterpret_cast< wxBrush * >(argp2);
27971 {
27972 PyThreadState* __tstate = wxPyBeginAllowThreads();
27973 (arg1)->SetBrush((wxBrush const &)*arg2);
27974 wxPyEndAllowThreads(__tstate);
27975 if (PyErr_Occurred()) SWIG_fail;
27976 }
27977 resultobj = SWIG_Py_Void();
27978 return resultobj;
27979fail:
27980 return NULL;
27981}
27982
27983
27984SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27985 PyObject *resultobj = 0;
27986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27987 wxBrush *arg2 = 0 ;
27988 void *argp1 = 0 ;
27989 int res1 = 0 ;
27990 void *argp2 = 0 ;
27991 int res2 = 0 ;
27992 PyObject * obj0 = 0 ;
27993 PyObject * obj1 = 0 ;
27994 char * kwnames[] = {
27995 (char *) "self",(char *) "brush", NULL
27996 };
27997
27998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28002 }
28003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28005 if (!SWIG_IsOK(res2)) {
28006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28007 }
28008 if (!argp2) {
28009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28010 }
28011 arg2 = reinterpret_cast< wxBrush * >(argp2);
28012 {
28013 PyThreadState* __tstate = wxPyBeginAllowThreads();
28014 (arg1)->SetBackground((wxBrush const &)*arg2);
28015 wxPyEndAllowThreads(__tstate);
28016 if (PyErr_Occurred()) SWIG_fail;
28017 }
28018 resultobj = SWIG_Py_Void();
28019 return resultobj;
28020fail:
28021 return NULL;
28022}
28023
28024
28025SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28026 PyObject *resultobj = 0;
28027 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28028 int arg2 ;
28029 void *argp1 = 0 ;
28030 int res1 = 0 ;
28031 int val2 ;
28032 int ecode2 = 0 ;
28033 PyObject * obj0 = 0 ;
28034 PyObject * obj1 = 0 ;
28035 char * kwnames[] = {
28036 (char *) "self",(char *) "mode", NULL
28037 };
28038
28039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
28040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28041 if (!SWIG_IsOK(res1)) {
28042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28043 }
28044 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28045 ecode2 = SWIG_AsVal_int(obj1, &val2);
28046 if (!SWIG_IsOK(ecode2)) {
28047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
28048 }
28049 arg2 = static_cast< int >(val2);
28050 {
28051 PyThreadState* __tstate = wxPyBeginAllowThreads();
28052 (arg1)->SetBackgroundMode(arg2);
28053 wxPyEndAllowThreads(__tstate);
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 resultobj = SWIG_Py_Void();
28057 return resultobj;
28058fail:
28059 return NULL;
28060}
28061
28062
28063SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28064 PyObject *resultobj = 0;
28065 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28066 wxPalette *arg2 = 0 ;
28067 void *argp1 = 0 ;
28068 int res1 = 0 ;
28069 void *argp2 = 0 ;
28070 int res2 = 0 ;
28071 PyObject * obj0 = 0 ;
28072 PyObject * obj1 = 0 ;
28073 char * kwnames[] = {
28074 (char *) "self",(char *) "palette", NULL
28075 };
28076
28077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
28078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28079 if (!SWIG_IsOK(res1)) {
28080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28081 }
28082 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
28084 if (!SWIG_IsOK(res2)) {
28085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28086 }
28087 if (!argp2) {
28088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28089 }
28090 arg2 = reinterpret_cast< wxPalette * >(argp2);
28091 {
28092 PyThreadState* __tstate = wxPyBeginAllowThreads();
28093 (arg1)->SetPalette((wxPalette const &)*arg2);
28094 wxPyEndAllowThreads(__tstate);
28095 if (PyErr_Occurred()) SWIG_fail;
28096 }
28097 resultobj = SWIG_Py_Void();
28098 return resultobj;
28099fail:
28100 return NULL;
28101}
28102
28103
28104SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28105 PyObject *resultobj = 0;
28106 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28107 wxColour *arg2 = 0 ;
28108 void *argp1 = 0 ;
28109 int res1 = 0 ;
28110 wxColour temp2 ;
28111 PyObject * obj0 = 0 ;
28112 PyObject * obj1 = 0 ;
28113 char * kwnames[] = {
28114 (char *) "self",(char *) "colour", NULL
28115 };
28116
28117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
28118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28119 if (!SWIG_IsOK(res1)) {
28120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28121 }
28122 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28123 {
28124 arg2 = &temp2;
28125 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28126 }
28127 {
28128 PyThreadState* __tstate = wxPyBeginAllowThreads();
28129 (arg1)->SetTextForeground((wxColour const &)*arg2);
28130 wxPyEndAllowThreads(__tstate);
28131 if (PyErr_Occurred()) SWIG_fail;
28132 }
28133 resultobj = SWIG_Py_Void();
28134 return resultobj;
28135fail:
28136 return NULL;
28137}
28138
28139
28140SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28141 PyObject *resultobj = 0;
28142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28143 wxColour *arg2 = 0 ;
28144 void *argp1 = 0 ;
28145 int res1 = 0 ;
28146 wxColour temp2 ;
28147 PyObject * obj0 = 0 ;
28148 PyObject * obj1 = 0 ;
28149 char * kwnames[] = {
28150 (char *) "self",(char *) "colour", NULL
28151 };
28152
28153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28155 if (!SWIG_IsOK(res1)) {
28156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28157 }
28158 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28159 {
28160 arg2 = &temp2;
28161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28162 }
28163 {
28164 PyThreadState* __tstate = wxPyBeginAllowThreads();
28165 (arg1)->SetTextBackground((wxColour const &)*arg2);
28166 wxPyEndAllowThreads(__tstate);
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
28169 resultobj = SWIG_Py_Void();
28170 return resultobj;
28171fail:
28172 return NULL;
28173}
28174
28175
28176SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28177 PyObject *resultobj = 0;
28178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28179 int arg2 ;
28180 void *argp1 = 0 ;
28181 int res1 = 0 ;
28182 int val2 ;
28183 int ecode2 = 0 ;
28184 PyObject * obj0 = 0 ;
28185 PyObject * obj1 = 0 ;
28186 char * kwnames[] = {
28187 (char *) "self",(char *) "function", NULL
28188 };
28189
28190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28192 if (!SWIG_IsOK(res1)) {
28193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28194 }
28195 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28196 ecode2 = SWIG_AsVal_int(obj1, &val2);
28197 if (!SWIG_IsOK(ecode2)) {
28198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28199 }
28200 arg2 = static_cast< int >(val2);
28201 {
28202 PyThreadState* __tstate = wxPyBeginAllowThreads();
28203 (arg1)->SetLogicalFunction(arg2);
28204 wxPyEndAllowThreads(__tstate);
28205 if (PyErr_Occurred()) SWIG_fail;
28206 }
28207 resultobj = SWIG_Py_Void();
28208 return resultobj;
28209fail:
28210 return NULL;
28211}
28212
28213
28214SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28215 PyObject *obj;
28216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28217 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
28218 return SWIG_Py_Void();
28219}
28220
28221SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28222 return SWIG_Python_InitShadowInstance(args);
28223}
28224
28225static PyMethodDef SwigMethods[] = {
28226 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
28227 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
28228 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
28229 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
28230 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
28231 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
28232 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
28233 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28234 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
28235 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
28236 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
28237 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
28238 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
28239 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28240 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28241 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28242 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
28243 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
28244 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28245 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28246 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
28247 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
28248 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
28249 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
28250 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
28251 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
28252 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
28253 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28254 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
28255 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
28256 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
28257 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
28258 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
28259 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
28260 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
28261 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
28262 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
28263 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
28264 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
28265 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
28266 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
28267 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28268 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
28269 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28270 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28271 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
28272 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
28273 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
28274 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28275 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28276 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
28277 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
28278 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
28279 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28280 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
28281 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28282 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28283 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
28284 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
28285 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
28286 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
28287 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
28288 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
28289 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
28290 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
28291 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
28292 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
28293 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28294 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
28295 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28296 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28297 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
28298 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
28299 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
28300 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
28301 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
28302 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
28303 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
28304 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
28305 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
28306 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
28307 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
28308 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
28309 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28310 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
28311 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
28312 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
28313 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28314 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
28315 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28316 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
28317 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
28318 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28319 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28320 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
28321 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
28322 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
28323 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
28324 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
28325 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
28326 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
28327 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
28328 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
28329 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
28330 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28331 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
28332 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
28333 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
28334 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
28335 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
28336 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
28337 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
28338 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
28339 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28340 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
28341 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
28342 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
28343 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
28344 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
28345 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
28346 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
28347 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
28348 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
28349 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
28350 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
28351 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
28352 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
28353 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28354 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
28355 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28356 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
28357 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28358 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
28359 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
28360 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
28361 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
28362 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
28363 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
28364 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
28365 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
28366 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
28367 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
28368 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28369 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
28370 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
28371 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
28372 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
28373 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
28374 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
28375 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28376 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
28377 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
28378 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
28379 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
28380 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
28381 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28382 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
28383 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
28384 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
28385 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28386 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
28387 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
28388 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28389 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
28390 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
28391 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28392 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
28393 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28394 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
28395 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
28396 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
28397 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
28398 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
28399 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
28400 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
28401 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
28402 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
28403 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
28404 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
28405 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
28406 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
28407 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
28408 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
28409 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
28410 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
28411 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
28412 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
28413 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
28414 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
28415 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
28416 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
28417 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
28418 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
28419 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
28420 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
28421 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
28422 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
28423 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28424 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28425 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
28426 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
28427 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
28428 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
28429 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28430 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
28431 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
28432 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
28433 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
28434 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
28435 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
28436 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
28437 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
28438 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
28439 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
28440 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
28441 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
28442 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
28443 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
28444 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
28445 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
28446 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
28447 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28448 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28449 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
28450 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
28451 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
28452 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28453 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28454 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
28455 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28456 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
28457 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
28458 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28459 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
28460 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
28461 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28462 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
28463 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
28464 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
28465 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
28466 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
28467 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
28468 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
28469 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28470 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
28471 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
28472 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28473 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28474 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
28475 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
28476 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28477 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
28478 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
28479 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
28480 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
28481 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
28482 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
28483 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
28484 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
28485 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
28486 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
28487 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
28488 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
28489 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
28490 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28491 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
28492 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
28493 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
28494 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
28495 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
28496 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
28497 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28498 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28499 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
28500 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
28501 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
28502 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
28503 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
28504 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
28505 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
28506 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
28507 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
28508 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
28509 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
28510 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
28511 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
28512 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28513 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
28514 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
28515 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
28516 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
28517 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
28518 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
28519 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
28520 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
28521 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
28522 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
28523 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
28524 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
28525 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
28526 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
28527 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
28528 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
28529 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
28530 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
28531 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
28532 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
28533 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
28534 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
28535 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
28536 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
28537 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
28538 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
28539 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
28540 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
28541 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
28542 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28543 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
28544 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
28545 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
28546 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
28547 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
28548 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
28549 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
28550 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
28551 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
28552 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
28553 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
28554 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
28555 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
28556 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
28557 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
28558 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
28559 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
28560 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
28561 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
28562 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
28563 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28564 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
28565 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
28566 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
28567 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28568 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
28569 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28570 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
28571 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28572 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
28573 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28574 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
28575 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
28576 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
28577 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28578 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28579 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28580 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28581 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28582 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28583 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28584 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28585 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28586 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
28587 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28588 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
28589 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
28590 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28591 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28592 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28593 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28594 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28595 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
28596 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28597 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
28598 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28599 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
28600 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28601 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28602 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28603 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
28604 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
28605 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
28606 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
28607 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28608 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28609 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
28610 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
28611 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
28612 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
28613 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
28614 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
28615 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28616 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28617 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28618 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28619 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
28620 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
28621 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
28622 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
28623 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
28624 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
28625 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
28626 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28627 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28628 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
28629 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
28630 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
28631 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
28632 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
28633 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
28634 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
28635 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
28636 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
28637 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
28638 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
28639 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
28640 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
28641 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
28642 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
28643 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
28644 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
28645 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
28646 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
28647 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
28648 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
28649 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
28650 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
28651 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
28652 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
28653 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
28654 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
28655 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28656 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
28657 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
28658 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
28659 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
28660 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
28661 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
28662 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
28663 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
28664 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
28665 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28666 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
28667 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
28668 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
28669 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28670 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
28671 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
28672 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
28673 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
28674 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
28675 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28676 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
28677 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
28678 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
28679 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
28680 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
28681 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
28682 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
28683 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
28684 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
28685 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
28686 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
28687 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
28688 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
28689 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
28690 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
28691 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
28692 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
28693 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
28694 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
28695 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
28696 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
28697 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
28698 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
28699 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
28700 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
28701 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
28702 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
28703 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
28704 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
28705 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
28706 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
28707 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
28708 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
28709 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
28710 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
28711 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
28712 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
28713 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
28714 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
28715 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
28716 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
28717 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
28718 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
28719 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
28720 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
28721 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
28722 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
28723 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
28724 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
28725 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
28726 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
28727 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
28728 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
28729 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
28730 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
28731 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
28732 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
28733 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
28734 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
28735 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
28736 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
28737 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
28738 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
28739 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
28740 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
28741 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
28742 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
28743 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
28744 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
28745 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
28746 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
28747 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28748 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28749 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28750 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
28751 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
28752 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
28753 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
28754 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
28755 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
28756 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
28757 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
28758 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
28759 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
28760 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
28761 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
28762 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28763 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
28764 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
28765 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28766 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28767 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
28768 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
28769 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
28770 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
28771 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
28772 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 28773 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 28774 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 28775 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 28776 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 28777 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 28778 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 28779 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 28780 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
28781 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
28782 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
28783 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
28784 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
28785 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
28786 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
28787 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
28788 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
28789 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
28790 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
28791 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
28792 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
28793 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
28794 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
28795 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
28796 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
28797 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
28798 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
28799 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
28800 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
28801 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
28802 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
28803 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
28804 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28805 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
28806 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28807 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
28808 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28809 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
28810 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28811 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
28812 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
28813 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
28814 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
28815 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
28816 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
28817 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
28818 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
28819 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
28820 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
28821 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
28822 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
28823 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
28824 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
28825 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
28826 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
28827 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
28828 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
28829 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
28830 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
28831 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
28832 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
28833 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
28834 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
28835 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
28836 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
28837 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
28838 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
28839 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
28840 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28841 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
28842 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
28843 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
28844 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
28845 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
28846 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
28847 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
28848 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
28849 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
28850 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
28851 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
28852 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
28853 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
28854 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
28855 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
28856 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
28857 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
28858 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
28859 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
28860 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28861 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
28862 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28863 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
28864 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28865 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
28866 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28867 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
28868 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
28869 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
28870 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28871 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28872 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28873 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28874 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28875 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28876 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
28877 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
28878 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28879 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
28880 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
28881 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
28882 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
28883 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
28884 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
28885 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28886 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
28887 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28888 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
28889 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28890 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
28891 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
28892 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
28893 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
28894 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28895 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
28896 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
28897 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
28898 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
28899 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
28900 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
28901 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28902 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
28903 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
28904 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
28905 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
28906 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
28907 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
28908 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
28909 { NULL, NULL, 0, NULL }
28910};
28911
28912
28913/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28914
28915static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
28916 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
28917}
28918static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
28919 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
28920}
28921static void *_p_wxIconTo_p_wxGDIObject(void *x) {
28922 return (void *)((wxGDIObject *) ((wxIcon *) x));
28923}
28924static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
28925 return (void *)((wxGDIObject *) ((wxPalette *) x));
28926}
28927static void *_p_wxPenTo_p_wxGDIObject(void *x) {
28928 return (void *)((wxGDIObject *) ((wxPen *) x));
28929}
28930static void *_p_wxFontTo_p_wxGDIObject(void *x) {
28931 return (void *)((wxGDIObject *) ((wxFont *) x));
28932}
28933static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
28934 return (void *)((wxGDIObject *) ((wxCursor *) x));
28935}
28936static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
28937 return (void *)((wxGDIObject *) ((wxBitmap *) x));
28938}
28939static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
28940 return (void *)((wxGDIObject *) ((wxRegion *) x));
28941}
28942static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
28943 return (void *)((wxGDIObject *) ((wxBrush *) x));
28944}
28945static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
28946 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
28947}
28948static void *_p_wxScreenDCTo_p_wxDC(void *x) {
28949 return (void *)((wxDC *) ((wxScreenDC *) x));
28950}
28951static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
28952 return (void *)((wxDC *) ((wxMirrorDC *) x));
28953}
28954static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
28955 return (void *)((wxDC *) ((wxMemoryDC *) x));
28956}
28957static void *_p_wxWindowDCTo_p_wxDC(void *x) {
28958 return (void *)((wxDC *) ((wxWindowDC *) x));
28959}
28960static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
28961 return (void *)((wxDC *) ((wxMetaFileDC *) x));
28962}
28963static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
28964 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
28965}
28966static void *_p_wxClientDCTo_p_wxDC(void *x) {
28967 return (void *)((wxDC *) ((wxClientDC *) x));
28968}
28969static void *_p_wxPaintDCTo_p_wxDC(void *x) {
28970 return (void *)((wxDC *) ((wxPaintDC *) x));
28971}
28972static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
28973 return (void *)((wxDC *) ((wxPostScriptDC *) x));
28974}
28975static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
28976 return (void *)((wxDC *) ((wxPrinterDC *) x));
28977}
da91cb0f
RD
28978static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
28979 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
28980}
28981static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
28982 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
28983}
28984static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
28985 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
28986}
1bd55598
RD
28987static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
28988 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
28989}
28990static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
28991 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
28992}
28993static void *_p_wxPenTo_p_wxObject(void *x) {
28994 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
28995}
28996static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
28997 return (void *)((wxObject *) ((wxRegionIterator *) x));
28998}
28999static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29000 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29001}
29002static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29003 return (void *)((wxObject *) ((wxSizerItem *) x));
29004}
1bd55598
RD
29005static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29006 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29007}
29008static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29009 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29010}
29011static void *_p_wxIconTo_p_wxObject(void *x) {
29012 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
29013}
29014static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29015 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29016}
29017static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29018 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29019}
29020static void *_p_wxSizerTo_p_wxObject(void *x) {
29021 return (void *)((wxObject *) ((wxSizer *) x));
29022}
29023static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29024 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29025}
29026static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29027 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29028}
1bd55598
RD
29029static void *_p_wxEventTo_p_wxObject(void *x) {
29030 return (void *)((wxObject *) ((wxEvent *) x));
29031}
29032static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29033 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29034}
29035static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29036 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29037}
29038static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29039 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29040}
27e45892
RD
29041static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
29042 return (void *)((wxObject *) ((wxPseudoDC *) x));
29043}
2131d850
RD
29044static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
29045 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
29046}
1bd55598
RD
29047static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29048 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29049}
29050static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29051 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29052}
29053static void *_p_wxDCTo_p_wxObject(void *x) {
29054 return (void *)((wxObject *) ((wxDC *) x));
29055}
29056static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29057 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29058}
29059static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29060 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29061}
29062static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29063 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29064}
29065static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29066 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29067}
29068static void *_p_wxControlTo_p_wxObject(void *x) {
29069 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29070}
29071static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29072 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29073}
29074static void *_p_wxClientDCTo_p_wxObject(void *x) {
29075 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
29076}
29077static void *_p_wxFSFileTo_p_wxObject(void *x) {
29078 return (void *)((wxObject *) ((wxFSFile *) x));
29079}
29080static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
29081 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
29082}
29083static void *_p_wxRegionTo_p_wxObject(void *x) {
29084 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
29085}
29086static void *_p_wxPySizerTo_p_wxObject(void *x) {
29087 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29088}
29089static void *_p_wxWindowDCTo_p_wxObject(void *x) {
29090 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
29091}
29092static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
29093 return (void *)((wxObject *) ((wxGDIObject *) x));
29094}
29095static void *_p_wxEffectsTo_p_wxObject(void *x) {
29096 return (void *)((wxObject *) ((wxEffects *) x));
29097}
29098static void *_p_wxPyEventTo_p_wxObject(void *x) {
29099 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29100}
29101static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29102 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29103}
29104static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
29105 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
29106}
29107static void *_p_wxShowEventTo_p_wxObject(void *x) {
29108 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29109}
29110static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29111 return (void *)((wxObject *) ((wxMenuItem *) x));
29112}
29113static void *_p_wxDateEventTo_p_wxObject(void *x) {
29114 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
29115}
29116static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29117 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29118}
29119static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29120 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29121}
29122static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29123 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29124}
29125static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29126 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29127}
29128static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29129 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29130}
29131static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29132 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29133}
29134static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29135 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29136}
29137static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29138 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29139}
29140static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29141 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29142}
29143static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29144 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29145}
29146static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29147 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29148}
29149static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29150 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29151}
29152static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29153 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29154}
29155static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29156 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29157}
29158static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29159 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29160}
29161static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29162 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29163}
29164static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29165 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29166}
29167static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
29168 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
29169}
29170static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29171 return (void *)((wxObject *) ((wxImageHandler *) x));
29172}
29173static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29174 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29175}
29176static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29177 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29178}
29179static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29180 return (void *)((wxObject *) ((wxEvtHandler *) x));
29181}
29182static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
29183 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
29184}
29185static void *_p_wxPaintDCTo_p_wxObject(void *x) {
29186 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
29187}
29188static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
29189 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
29190}
29191static void *_p_wxScreenDCTo_p_wxObject(void *x) {
29192 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
29193}
29194static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
29195 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
29196}
29197static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29198 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29199}
29200static void *_p_wxImageTo_p_wxObject(void *x) {
29201 return (void *)((wxObject *) ((wxImage *) x));
29202}
29203static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29204 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29205}
29206static void *_p_wxPaletteTo_p_wxObject(void *x) {
29207 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
29208}
29209static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
29210 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
29211}
29212static void *_p_wxImageListTo_p_wxObject(void *x) {
29213 return (void *)((wxObject *) ((wxImageList *) x));
29214}
29215static void *_p_wxCursorTo_p_wxObject(void *x) {
29216 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
29217}
29218static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
29219 return (void *)((wxObject *) ((wxEncodingConverter *) x));
29220}
29221static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
29222 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
29223}
29224static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29225 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29226}
29227static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29228 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29229}
29230static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29231 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29232}
29233static void *_p_wxWindowTo_p_wxObject(void *x) {
29234 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29235}
29236static void *_p_wxMenuTo_p_wxObject(void *x) {
29237 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29238}
29239static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29240 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29241}
29242static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
29243 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
29244}
1bd55598
RD
29245static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29246 return (void *)((wxObject *) ((wxFileSystem *) x));
29247}
29248static void *_p_wxBitmapTo_p_wxObject(void *x) {
29249 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
29250}
29251static void *_p_wxMaskTo_p_wxObject(void *x) {
29252 return (void *)((wxObject *) ((wxMask *) x));
29253}
29254static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29256}
29257static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29258 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29259}
29260static void *_p_wxPyAppTo_p_wxObject(void *x) {
29261 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29262}
29263static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29264 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29265}
29266static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29267 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29268}
29269static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29270 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29271}
29272static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29273 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29274}
29275static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29276 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29277}
29278static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29279 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29280}
29281static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29282 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29283}
29284static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29285 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29286}
29287static void *_p_wxFontTo_p_wxObject(void *x) {
29288 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
29289}
29290static void *_p_wxBrushTo_p_wxObject(void *x) {
29291 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
29292}
29293static void *_p_wxMetaFileTo_p_wxObject(void *x) {
29294 return (void *)((wxObject *) ((wxMetaFile *) x));
29295}
29296static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29297 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29298}
29299static void *_p_wxColourTo_p_wxObject(void *x) {
29300 return (void *)((wxObject *) ((wxColour *) x));
29301}
1bd55598
RD
29302static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29303 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29304}
29305static void *_p_wxValidatorTo_p_wxObject(void *x) {
29306 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29307}
29308static void *_p_wxControlTo_p_wxWindow(void *x) {
29309 return (void *)((wxWindow *) ((wxControl *) x));
29310}
29311static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29312 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29313}
29314static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29315 return (void *)((wxWindow *) ((wxMenuBar *) x));
29316}
29317static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
29318static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
29319static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
29320static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
29321static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
29322static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
29323static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
29324static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
29325static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
29326static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
29327static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
29328static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
29329static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
29330static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
29331static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
29332static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
29333static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
29334static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
29335static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
29336static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
29337static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
29338static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
29339static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
29340static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
da91cb0f 29341static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598
RD
29342static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
29343static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
29344static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
29345static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
29346static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
29347static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
29348static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
29349static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
29350static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
29351static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
29352static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
29353static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
29354static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
29355static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
29356static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
29357static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
29358static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
29359static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
29360static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
29361static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
29362static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
29363static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
29364static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
29365static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
29366static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
29367static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
29368static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
29369static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
29370static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
29371static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
29372static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 29373static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
29374static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
29375static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
29376static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
29377static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
29378static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
29379static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
29380static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
29381static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
29382static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
29383static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
29384static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
29385static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
29386static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
29387static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
29388static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
29389static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
29390static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
29391static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
29392static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
29393static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
29394static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
29395static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
29396static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
29397static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
29398static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
29399static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
29400static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
29401static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
29402static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
29403static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
29404static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
29405static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
27e45892 29406static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 29407static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
29408static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
29409static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
29410static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
29411static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
29412static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
29413static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
29414static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
29415static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
29416static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
29417static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
29418static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
29419static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
29420static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
29421static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
29422static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
29423static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
29424static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
29425static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
29426static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
29427static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
29428static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
29429static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
29430static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
29431static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
29432static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
29433static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
29434static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
29435static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
29436static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
29437static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
29438static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
29439static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
29440static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
29441static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 29442static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598
RD
29443static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
29444static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
29445static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
29446static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
29447static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
29448static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
29449static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
29450static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
29451static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 29452static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
29453static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
29454static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
29455static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
29456
29457static swig_type_info *swig_type_initial[] = {
29458 &_swigt__p_char,
29459 &_swigt__p_double,
29460 &_swigt__p_form_ops_t,
29461 &_swigt__p_int,
29462 &_swigt__p_unsigned_char,
29463 &_swigt__p_unsigned_int,
29464 &_swigt__p_unsigned_long,
29465 &_swigt__p_wxANIHandler,
29466 &_swigt__p_wxAcceleratorTable,
29467 &_swigt__p_wxActivateEvent,
29468 &_swigt__p_wxBMPHandler,
29469 &_swigt__p_wxBitmap,
29470 &_swigt__p_wxBoxSizer,
29471 &_swigt__p_wxBrush,
29472 &_swigt__p_wxBrushList,
29473 &_swigt__p_wxBufferedDC,
29474 &_swigt__p_wxBufferedPaintDC,
29475 &_swigt__p_wxCURHandler,
29476 &_swigt__p_wxChildFocusEvent,
29477 &_swigt__p_wxClientDC,
2131d850 29478 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
29479 &_swigt__p_wxCloseEvent,
29480 &_swigt__p_wxColour,
29481 &_swigt__p_wxColourDatabase,
29482 &_swigt__p_wxCommandEvent,
29483 &_swigt__p_wxContextMenuEvent,
29484 &_swigt__p_wxControl,
29485 &_swigt__p_wxControlWithItems,
29486 &_swigt__p_wxCursor,
29487 &_swigt__p_wxDC,
29488 &_swigt__p_wxDash,
29489 &_swigt__p_wxDateEvent,
29490 &_swigt__p_wxDisplayChangedEvent,
29491 &_swigt__p_wxDropFilesEvent,
29492 &_swigt__p_wxDuplexMode,
29493 &_swigt__p_wxEffects,
29494 &_swigt__p_wxEncodingConverter,
29495 &_swigt__p_wxEraseEvent,
29496 &_swigt__p_wxEvent,
29497 &_swigt__p_wxEvtHandler,
29498 &_swigt__p_wxFSFile,
29499 &_swigt__p_wxFileSystem,
29500 &_swigt__p_wxFlexGridSizer,
29501 &_swigt__p_wxFocusEvent,
29502 &_swigt__p_wxFont,
29503 &_swigt__p_wxFontList,
29504 &_swigt__p_wxFontMapper,
29505 &_swigt__p_wxGBSizerItem,
da91cb0f 29506 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
29507 &_swigt__p_wxGDIObject,
29508 &_swigt__p_wxGIFHandler,
29509 &_swigt__p_wxGridBagSizer,
29510 &_swigt__p_wxGridSizer,
29511 &_swigt__p_wxICOHandler,
29512 &_swigt__p_wxIcon,
29513 &_swigt__p_wxIconBundle,
29514 &_swigt__p_wxIconLocation,
29515 &_swigt__p_wxIconizeEvent,
29516 &_swigt__p_wxIdleEvent,
29517 &_swigt__p_wxImage,
29518 &_swigt__p_wxImageHandler,
29519 &_swigt__p_wxImageList,
29520 &_swigt__p_wxIndividualLayoutConstraint,
29521 &_swigt__p_wxInitDialogEvent,
29522 &_swigt__p_wxJPEGHandler,
29523 &_swigt__p_wxKeyEvent,
29524 &_swigt__p_wxLanguageInfo,
29525 &_swigt__p_wxLayoutConstraints,
29526 &_swigt__p_wxLocale,
29527 &_swigt__p_wxMask,
29528 &_swigt__p_wxMaximizeEvent,
29529 &_swigt__p_wxMemoryDC,
29530 &_swigt__p_wxMenu,
29531 &_swigt__p_wxMenuBar,
29532 &_swigt__p_wxMenuEvent,
29533 &_swigt__p_wxMenuItem,
29534 &_swigt__p_wxMetaFile,
29535 &_swigt__p_wxMetaFileDC,
29536 &_swigt__p_wxMirrorDC,
29537 &_swigt__p_wxMouseCaptureChangedEvent,
29538 &_swigt__p_wxMouseEvent,
29539 &_swigt__p_wxMoveEvent,
29540 &_swigt__p_wxNativeEncodingInfo,
29541 &_swigt__p_wxNativeFontInfo,
29542 &_swigt__p_wxNavigationKeyEvent,
29543 &_swigt__p_wxNcPaintEvent,
29544 &_swigt__p_wxNotifyEvent,
29545 &_swigt__p_wxObject,
29546 &_swigt__p_wxPCXHandler,
29547 &_swigt__p_wxPNGHandler,
29548 &_swigt__p_wxPNMHandler,
29549 &_swigt__p_wxPaintDC,
29550 &_swigt__p_wxPaintEvent,
29551 &_swigt__p_wxPalette,
29552 &_swigt__p_wxPaletteChangedEvent,
29553 &_swigt__p_wxPaperSize,
29554 &_swigt__p_wxPen,
29555 &_swigt__p_wxPenList,
29556 &_swigt__p_wxPoint,
29557 &_swigt__p_wxPostScriptDC,
29558 &_swigt__p_wxPrintData,
29559 &_swigt__p_wxPrinterDC,
27e45892 29560 &_swigt__p_wxPseudoDC,
1bd55598
RD
29561 &_swigt__p_wxPyApp,
29562 &_swigt__p_wxPyCommandEvent,
29563 &_swigt__p_wxPyEvent,
29564 &_swigt__p_wxPyFontEnumerator,
29565 &_swigt__p_wxPyImageHandler,
29566 &_swigt__p_wxPySizer,
29567 &_swigt__p_wxPyValidator,
29568 &_swigt__p_wxQueryNewPaletteEvent,
29569 &_swigt__p_wxRect,
29570 &_swigt__p_wxRegion,
29571 &_swigt__p_wxRegionIterator,
29572 &_swigt__p_wxRendererNative,
29573 &_swigt__p_wxRendererVersion,
29574 &_swigt__p_wxScreenDC,
29575 &_swigt__p_wxScrollEvent,
29576 &_swigt__p_wxScrollWinEvent,
29577 &_swigt__p_wxSetCursorEvent,
29578 &_swigt__p_wxShowEvent,
29579 &_swigt__p_wxSize,
29580 &_swigt__p_wxSizeEvent,
29581 &_swigt__p_wxSizer,
29582 &_swigt__p_wxSizerItem,
29583 &_swigt__p_wxSplitterRenderParams,
29584 &_swigt__p_wxStaticBoxSizer,
29585 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 29586 &_swigt__p_wxStockGDI,
1bd55598
RD
29587 &_swigt__p_wxString,
29588 &_swigt__p_wxSysColourChangedEvent,
29589 &_swigt__p_wxTIFFHandler,
29590 &_swigt__p_wxUpdateUIEvent,
29591 &_swigt__p_wxValidator,
29592 &_swigt__p_wxWindow,
29593 &_swigt__p_wxWindowCreateEvent,
29594 &_swigt__p_wxWindowDC,
29595 &_swigt__p_wxWindowDestroyEvent,
29596 &_swigt__p_wxXPMHandler,
29597};
29598
29599static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
29600static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
29601static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
29602static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
29603static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
29604static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
29605static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
29606static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
29607static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
29608static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
29609static 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}};
29610static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
29611static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
29612static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
29613static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
29614static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
29615static 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}};
29616static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
29617static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
29618static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
29619static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
29620static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
29621static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
29622static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 29623static 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
RD
29624static 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}};
29625static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
29626static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
29627static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
29628static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
29629static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
29630static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
29631static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
29632static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
29633static 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}};
29634static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
29635static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
29636static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
29637static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
29638static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
29639static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
29640static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
29641static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
29642static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
29643static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
29644static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
29645static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
29646static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
29647static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
29648static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
29649static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
29650static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
29651static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
29652static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
29653static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 29654static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
29655static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
29656static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
29657static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29658static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29659static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29660static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
29661static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
29662static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
29663static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
29664static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
29665static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
29666static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
29667static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
29668static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
29669static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
29670static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
29671static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
29672static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
29673static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29674static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29675static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
29676static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
29677static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
29678static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
29679static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
29680static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
29681static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
29682static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
29683static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
29684static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
29685static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
29686static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 29687static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 29688static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
29689static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
29690static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
29691static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
29692static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
29693static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
29694static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
29695static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
29696static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
29697static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
29698static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
29699static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
29700static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
29701static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
29702static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
29703static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
29704static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
29705static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
29706static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
29707static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
29708static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
29709static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
29710static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
29711static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
29712static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
29713static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
27e45892 29714static 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_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_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
29715static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
29716static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
29717static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
29718static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
29719static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
29720static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
29721static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
29722static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
29723static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 29724static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
29725static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
29726static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
29727static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
29728static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
29729static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
29730static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
29731static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
29732static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
29733static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 29734static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
29735static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
29736static 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}};
29737static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
29738
29739static swig_cast_info *swig_cast_initial[] = {
29740 _swigc__p_char,
29741 _swigc__p_double,
29742 _swigc__p_form_ops_t,
29743 _swigc__p_int,
29744 _swigc__p_unsigned_char,
29745 _swigc__p_unsigned_int,
29746 _swigc__p_unsigned_long,
29747 _swigc__p_wxANIHandler,
29748 _swigc__p_wxAcceleratorTable,
29749 _swigc__p_wxActivateEvent,
29750 _swigc__p_wxBMPHandler,
29751 _swigc__p_wxBitmap,
29752 _swigc__p_wxBoxSizer,
29753 _swigc__p_wxBrush,
29754 _swigc__p_wxBrushList,
29755 _swigc__p_wxBufferedDC,
29756 _swigc__p_wxBufferedPaintDC,
29757 _swigc__p_wxCURHandler,
29758 _swigc__p_wxChildFocusEvent,
29759 _swigc__p_wxClientDC,
2131d850 29760 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
29761 _swigc__p_wxCloseEvent,
29762 _swigc__p_wxColour,
29763 _swigc__p_wxColourDatabase,
29764 _swigc__p_wxCommandEvent,
29765 _swigc__p_wxContextMenuEvent,
29766 _swigc__p_wxControl,
29767 _swigc__p_wxControlWithItems,
29768 _swigc__p_wxCursor,
29769 _swigc__p_wxDC,
29770 _swigc__p_wxDash,
29771 _swigc__p_wxDateEvent,
29772 _swigc__p_wxDisplayChangedEvent,
29773 _swigc__p_wxDropFilesEvent,
29774 _swigc__p_wxDuplexMode,
29775 _swigc__p_wxEffects,
29776 _swigc__p_wxEncodingConverter,
29777 _swigc__p_wxEraseEvent,
29778 _swigc__p_wxEvent,
29779 _swigc__p_wxEvtHandler,
29780 _swigc__p_wxFSFile,
29781 _swigc__p_wxFileSystem,
29782 _swigc__p_wxFlexGridSizer,
29783 _swigc__p_wxFocusEvent,
29784 _swigc__p_wxFont,
29785 _swigc__p_wxFontList,
29786 _swigc__p_wxFontMapper,
29787 _swigc__p_wxGBSizerItem,
da91cb0f 29788 _swigc__p_wxGDIObjListBase,
1bd55598
RD
29789 _swigc__p_wxGDIObject,
29790 _swigc__p_wxGIFHandler,
29791 _swigc__p_wxGridBagSizer,
29792 _swigc__p_wxGridSizer,
29793 _swigc__p_wxICOHandler,
29794 _swigc__p_wxIcon,
29795 _swigc__p_wxIconBundle,
29796 _swigc__p_wxIconLocation,
29797 _swigc__p_wxIconizeEvent,
29798 _swigc__p_wxIdleEvent,
29799 _swigc__p_wxImage,
29800 _swigc__p_wxImageHandler,
29801 _swigc__p_wxImageList,
29802 _swigc__p_wxIndividualLayoutConstraint,
29803 _swigc__p_wxInitDialogEvent,
29804 _swigc__p_wxJPEGHandler,
29805 _swigc__p_wxKeyEvent,
29806 _swigc__p_wxLanguageInfo,
29807 _swigc__p_wxLayoutConstraints,
29808 _swigc__p_wxLocale,
29809 _swigc__p_wxMask,
29810 _swigc__p_wxMaximizeEvent,
29811 _swigc__p_wxMemoryDC,
29812 _swigc__p_wxMenu,
29813 _swigc__p_wxMenuBar,
29814 _swigc__p_wxMenuEvent,
29815 _swigc__p_wxMenuItem,
29816 _swigc__p_wxMetaFile,
29817 _swigc__p_wxMetaFileDC,
29818 _swigc__p_wxMirrorDC,
29819 _swigc__p_wxMouseCaptureChangedEvent,
29820 _swigc__p_wxMouseEvent,
29821 _swigc__p_wxMoveEvent,
29822 _swigc__p_wxNativeEncodingInfo,
29823 _swigc__p_wxNativeFontInfo,
29824 _swigc__p_wxNavigationKeyEvent,
29825 _swigc__p_wxNcPaintEvent,
29826 _swigc__p_wxNotifyEvent,
29827 _swigc__p_wxObject,
29828 _swigc__p_wxPCXHandler,
29829 _swigc__p_wxPNGHandler,
29830 _swigc__p_wxPNMHandler,
29831 _swigc__p_wxPaintDC,
29832 _swigc__p_wxPaintEvent,
29833 _swigc__p_wxPalette,
29834 _swigc__p_wxPaletteChangedEvent,
29835 _swigc__p_wxPaperSize,
29836 _swigc__p_wxPen,
29837 _swigc__p_wxPenList,
29838 _swigc__p_wxPoint,
29839 _swigc__p_wxPostScriptDC,
29840 _swigc__p_wxPrintData,
29841 _swigc__p_wxPrinterDC,
27e45892 29842 _swigc__p_wxPseudoDC,
1bd55598
RD
29843 _swigc__p_wxPyApp,
29844 _swigc__p_wxPyCommandEvent,
29845 _swigc__p_wxPyEvent,
29846 _swigc__p_wxPyFontEnumerator,
29847 _swigc__p_wxPyImageHandler,
29848 _swigc__p_wxPySizer,
29849 _swigc__p_wxPyValidator,
29850 _swigc__p_wxQueryNewPaletteEvent,
29851 _swigc__p_wxRect,
29852 _swigc__p_wxRegion,
29853 _swigc__p_wxRegionIterator,
29854 _swigc__p_wxRendererNative,
29855 _swigc__p_wxRendererVersion,
29856 _swigc__p_wxScreenDC,
29857 _swigc__p_wxScrollEvent,
29858 _swigc__p_wxScrollWinEvent,
29859 _swigc__p_wxSetCursorEvent,
29860 _swigc__p_wxShowEvent,
29861 _swigc__p_wxSize,
29862 _swigc__p_wxSizeEvent,
29863 _swigc__p_wxSizer,
29864 _swigc__p_wxSizerItem,
29865 _swigc__p_wxSplitterRenderParams,
29866 _swigc__p_wxStaticBoxSizer,
29867 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 29868 _swigc__p_wxStockGDI,
1bd55598
RD
29869 _swigc__p_wxString,
29870 _swigc__p_wxSysColourChangedEvent,
29871 _swigc__p_wxTIFFHandler,
29872 _swigc__p_wxUpdateUIEvent,
29873 _swigc__p_wxValidator,
29874 _swigc__p_wxWindow,
29875 _swigc__p_wxWindowCreateEvent,
29876 _swigc__p_wxWindowDC,
29877 _swigc__p_wxWindowDestroyEvent,
29878 _swigc__p_wxXPMHandler,
29879};
29880
29881
29882/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29883
29884static swig_const_info swig_const_table[] = {
29885{0, 0, 0, 0.0, 0, 0}};
29886
29887#ifdef __cplusplus
29888}
29889#endif
29890/* -----------------------------------------------------------------------------
29891 * Type initialization:
29892 * This problem is tough by the requirement that no dynamic
29893 * memory is used. Also, since swig_type_info structures store pointers to
29894 * swig_cast_info structures and swig_cast_info structures store pointers back
29895 * to swig_type_info structures, we need some lookup code at initialization.
29896 * The idea is that swig generates all the structures that are needed.
29897 * The runtime then collects these partially filled structures.
29898 * The SWIG_InitializeModule function takes these initial arrays out of
29899 * swig_module, and does all the lookup, filling in the swig_module.types
29900 * array with the correct data and linking the correct swig_cast_info
29901 * structures together.
29902 *
29903 * The generated swig_type_info structures are assigned staticly to an initial
29904 * array. We just loop though that array, and handle each type individually.
29905 * First we lookup if this type has been already loaded, and if so, use the
29906 * loaded structure instead of the generated one. Then we have to fill in the
29907 * cast linked list. The cast data is initially stored in something like a
29908 * two-dimensional array. Each row corresponds to a type (there are the same
29909 * number of rows as there are in the swig_type_initial array). Each entry in
29910 * a column is one of the swig_cast_info structures for that type.
29911 * The cast_initial array is actually an array of arrays, because each row has
29912 * a variable number of columns. So to actually build the cast linked list,
29913 * we find the array of casts associated with the type, and loop through it
29914 * adding the casts to the list. The one last trick we need to do is making
29915 * sure the type pointer in the swig_cast_info struct is correct.
29916 *
29917 * First off, we lookup the cast->type name to see if it is already loaded.
29918 * There are three cases to handle:
29919 * 1) If the cast->type has already been loaded AND the type we are adding
29920 * casting info to has not been loaded (it is in this module), THEN we
29921 * replace the cast->type pointer with the type pointer that has already
29922 * been loaded.
29923 * 2) If BOTH types (the one we are adding casting info to, and the
29924 * cast->type) are loaded, THEN the cast info has already been loaded by
29925 * the previous module so we just ignore it.
29926 * 3) Finally, if cast->type has not already been loaded, then we add that
29927 * swig_cast_info to the linked list (because the cast->type) pointer will
29928 * be correct.
29929 * ----------------------------------------------------------------------------- */
29930
29931#ifdef __cplusplus
29932extern "C" {
29933#if 0
29934} /* c-mode */
29935#endif
29936#endif
29937
29938#if 0
29939#define SWIGRUNTIME_DEBUG
29940#endif
29941
29942SWIGRUNTIME void
29943SWIG_InitializeModule(void *clientdata) {
29944 size_t i;
29945 swig_module_info *module_head;
29946 static int init_run = 0;
29947
29948 clientdata = clientdata;
29949
29950 if (init_run) return;
29951 init_run = 1;
29952
29953 /* Initialize the swig_module */
29954 swig_module.type_initial = swig_type_initial;
29955 swig_module.cast_initial = swig_cast_initial;
29956
29957 /* Try and load any already created modules */
29958 module_head = SWIG_GetModule(clientdata);
29959 if (module_head) {
29960 swig_module.next = module_head->next;
29961 module_head->next = &swig_module;
29962 } else {
29963 /* This is the first module loaded */
29964 swig_module.next = &swig_module;
29965 SWIG_SetModule(clientdata, &swig_module);
29966 }
29967
29968 /* Now work on filling in swig_module.types */
29969#ifdef SWIGRUNTIME_DEBUG
29970 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
29971#endif
29972 for (i = 0; i < swig_module.size; ++i) {
29973 swig_type_info *type = 0;
29974 swig_type_info *ret;
29975 swig_cast_info *cast;
29976
29977#ifdef SWIGRUNTIME_DEBUG
29978 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
29979#endif
29980
29981 /* if there is another module already loaded */
29982 if (swig_module.next != &swig_module) {
29983 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 29984 }
1bd55598
RD
29985 if (type) {
29986 /* Overwrite clientdata field */
29987#ifdef SWIGRUNTIME_DEBUG
29988 printf("SWIG_InitializeModule: found type %s\n", type->name);
29989#endif
29990 if (swig_module.type_initial[i]->clientdata) {
29991 type->clientdata = swig_module.type_initial[i]->clientdata;
29992#ifdef SWIGRUNTIME_DEBUG
29993 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
29994#endif
29995 }
29996 } else {
29997 type = swig_module.type_initial[i];
be9b1dca 29998 }
1bd55598
RD
29999
30000 /* Insert casting types */
30001 cast = swig_module.cast_initial[i];
30002 while (cast->type) {
30003 /* Don't need to add information already in the list */
30004 ret = 0;
30005#ifdef SWIGRUNTIME_DEBUG
30006 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
30007#endif
30008 if (swig_module.next != &swig_module) {
30009 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
30010#ifdef SWIGRUNTIME_DEBUG
30011 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
30012#endif
30013 }
30014 if (ret) {
30015 if (type == swig_module.type_initial[i]) {
30016#ifdef SWIGRUNTIME_DEBUG
30017 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
30018#endif
30019 cast->type = ret;
30020 ret = 0;
30021 } else {
30022 /* Check for casting already in the list */
30023 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
30024#ifdef SWIGRUNTIME_DEBUG
30025 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
30026#endif
30027 if (!ocast) ret = 0;
30028 }
30029 }
30030
30031 if (!ret) {
30032#ifdef SWIGRUNTIME_DEBUG
30033 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
30034#endif
30035 if (type->cast) {
30036 type->cast->prev = cast;
30037 cast->next = type->cast;
30038 }
30039 type->cast = cast;
30040 }
30041 cast++;
be9b1dca 30042 }
1bd55598
RD
30043 /* Set entry in modules->types array equal to the type */
30044 swig_module.types[i] = type;
30045 }
30046 swig_module.types[i] = 0;
30047
30048#ifdef SWIGRUNTIME_DEBUG
30049 printf("**** SWIG_InitializeModule: Cast List ******\n");
30050 for (i = 0; i < swig_module.size; ++i) {
30051 int j = 0;
30052 swig_cast_info *cast = swig_module.cast_initial[i];
30053 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
30054 while (cast->type) {
30055 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
30056 cast++;
30057 ++j;
30058 }
30059 printf("---- Total casts: %d\n",j);
30060 }
30061 printf("**** SWIG_InitializeModule: Cast List ******\n");
30062#endif
30063}
30064
30065/* This function will propagate the clientdata field of type to
30066* any new swig_type_info structures that have been added into the list
30067* of equivalent types. It is like calling
30068* SWIG_TypeClientData(type, clientdata) a second time.
30069*/
30070SWIGRUNTIME void
30071SWIG_PropagateClientData(void) {
30072 size_t i;
30073 swig_cast_info *equiv;
30074 static int init_run = 0;
30075
30076 if (init_run) return;
30077 init_run = 1;
30078
30079 for (i = 0; i < swig_module.size; i++) {
30080 if (swig_module.types[i]->clientdata) {
30081 equiv = swig_module.types[i]->cast;
30082 while (equiv) {
30083 if (!equiv->converter) {
30084 if (equiv->type && !equiv->type->clientdata)
30085 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
30086 }
30087 equiv = equiv->next;
30088 }
be9b1dca 30089 }
1bd55598
RD
30090 }
30091}
30092
30093#ifdef __cplusplus
30094#if 0
30095{
30096 /* c-mode */
30097#endif
30098}
30099#endif
30100
30101
30102
30103#ifdef __cplusplus
30104extern "C" {
30105#endif
30106
30107 /* Python-specific SWIG API */
30108#define SWIG_newvarlink() SWIG_Python_newvarlink()
30109#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
30110#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
30111
30112 /* -----------------------------------------------------------------------------
30113 * global variable support code.
30114 * ----------------------------------------------------------------------------- */
30115
30116 typedef struct swig_globalvar {
30117 char *name; /* Name of global variable */
30118 PyObject *(*get_attr)(void); /* Return the current value */
30119 int (*set_attr)(PyObject *); /* Set the value */
30120 struct swig_globalvar *next;
30121 } swig_globalvar;
30122
30123 typedef struct swig_varlinkobject {
30124 PyObject_HEAD
30125 swig_globalvar *vars;
30126 } swig_varlinkobject;
30127
30128 SWIGINTERN PyObject *
30129 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
30130 return PyString_FromString("<Swig global variables>");
30131 }
30132
30133 SWIGINTERN PyObject *
30134 swig_varlink_str(swig_varlinkobject *v) {
30135 PyObject *str = PyString_FromString("(");
30136 swig_globalvar *var;
30137 for (var = v->vars; var; var=var->next) {
30138 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
30139 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
30140 }
30141 PyString_ConcatAndDel(&str,PyString_FromString(")"));
30142 return str;
30143 }
30144
30145 SWIGINTERN int
30146 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
30147 PyObject *str = swig_varlink_str(v);
30148 fprintf(fp,"Swig global variables ");
30149 fprintf(fp,"%s\n", PyString_AsString(str));
30150 Py_DECREF(str);
30151 return 0;
30152 }
30153
30154 SWIGINTERN void
30155 swig_varlink_dealloc(swig_varlinkobject *v) {
30156 swig_globalvar *var = v->vars;
30157 while (var) {
30158 swig_globalvar *n = var->next;
30159 free(var->name);
30160 free(var);
30161 var = n;
be9b1dca 30162 }
1bd55598
RD
30163 }
30164
30165 SWIGINTERN PyObject *
30166 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
30167 PyObject *res = NULL;
30168 swig_globalvar *var = v->vars;
30169 while (var) {
30170 if (strcmp(var->name,n) == 0) {
30171 res = (*var->get_attr)();
30172 break;
30173 }
30174 var = var->next;
be9b1dca 30175 }
1bd55598
RD
30176 if (res == NULL && !PyErr_Occurred()) {
30177 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 30178 }
1bd55598
RD
30179 return res;
30180 }
30181
30182 SWIGINTERN int
30183 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
30184 int res = 1;
30185 swig_globalvar *var = v->vars;
30186 while (var) {
30187 if (strcmp(var->name,n) == 0) {
30188 res = (*var->set_attr)(p);
30189 break;
30190 }
30191 var = var->next;
be9b1dca 30192 }
1bd55598
RD
30193 if (res == 1 && !PyErr_Occurred()) {
30194 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 30195 }
1bd55598
RD
30196 return res;
30197 }
30198
30199 SWIGINTERN PyTypeObject*
30200 swig_varlink_type(void) {
30201 static char varlink__doc__[] = "Swig var link object";
30202 static PyTypeObject varlink_type;
30203 static int type_init = 0;
30204 if (!type_init) {
30205 const PyTypeObject tmp
30206 = {
30207 PyObject_HEAD_INIT(NULL)
30208 0, /* Number of items in variable part (ob_size) */
30209 (char *)"swigvarlink", /* Type name (tp_name) */
30210 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
30211 0, /* Itemsize (tp_itemsize) */
30212 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
30213 (printfunc) swig_varlink_print, /* Print (tp_print) */
30214 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
30215 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
30216 0, /* tp_compare */
30217 (reprfunc) swig_varlink_repr, /* tp_repr */
30218 0, /* tp_as_number */
30219 0, /* tp_as_sequence */
30220 0, /* tp_as_mapping */
30221 0, /* tp_hash */
30222 0, /* tp_call */
30223 (reprfunc)swig_varlink_str, /* tp_str */
30224 0, /* tp_getattro */
30225 0, /* tp_setattro */
30226 0, /* tp_as_buffer */
30227 0, /* tp_flags */
30228 varlink__doc__, /* tp_doc */
30229 0, /* tp_traverse */
30230 0, /* tp_clear */
30231 0, /* tp_richcompare */
30232 0, /* tp_weaklistoffset */
30233#if PY_VERSION_HEX >= 0x02020000
30234 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
30235#endif
30236#if PY_VERSION_HEX >= 0x02030000
30237 0, /* tp_del */
30238#endif
30239#ifdef COUNT_ALLOCS
30240 0,0,0,0 /* tp_alloc -> tp_next */
30241#endif
30242 };
30243 varlink_type = tmp;
30244 varlink_type.ob_type = &PyType_Type;
30245 type_init = 1;
be9b1dca 30246 }
1bd55598
RD
30247 return &varlink_type;
30248 }
30249
30250 /* Create a variable linking object for use later */
30251 SWIGINTERN PyObject *
30252 SWIG_Python_newvarlink(void) {
30253 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
30254 if (result) {
30255 result->vars = 0;
30256 }
30257 return ((PyObject*) result);
30258 }
30259
30260 SWIGINTERN void
30261 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
30262 swig_varlinkobject *v = (swig_varlinkobject *) p;
30263 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
30264 if (gv) {
30265 size_t size = strlen(name)+1;
30266 gv->name = (char *)malloc(size);
30267 if (gv->name) {
30268 strncpy(gv->name,name,size);
30269 gv->get_attr = get_attr;
30270 gv->set_attr = set_attr;
30271 gv->next = v->vars;
30272 }
be9b1dca 30273 }
1bd55598
RD
30274 v->vars = gv;
30275 }
30276
30277 SWIGINTERN PyObject *
30278 SWIG_globals() {
30279 static PyObject *_SWIG_globals = 0;
30280 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
30281 return _SWIG_globals;
30282 }
30283
30284 /* -----------------------------------------------------------------------------
30285 * constants/methods manipulation
30286 * ----------------------------------------------------------------------------- */
30287
30288 /* Install Constants */
30289 SWIGINTERN void
30290 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
30291 PyObject *obj = 0;
30292 size_t i;
30293 for (i = 0; constants[i].type; ++i) {
30294 switch(constants[i].type) {
30295 case SWIG_PY_POINTER:
30296 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
30297 break;
30298 case SWIG_PY_BINARY:
30299 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
30300 break;
30301 default:
30302 obj = 0;
30303 break;
30304 }
30305 if (obj) {
30306 PyDict_SetItemString(d, constants[i].name, obj);
30307 Py_DECREF(obj);
30308 }
be9b1dca 30309 }
1bd55598
RD
30310 }
30311
30312 /* -----------------------------------------------------------------------------*/
30313 /* Fix SwigMethods to carry the callback ptrs when needed */
30314 /* -----------------------------------------------------------------------------*/
30315
30316 SWIGINTERN void
30317 SWIG_Python_FixMethods(PyMethodDef *methods,
30318 swig_const_info *const_table,
30319 swig_type_info **types,
30320 swig_type_info **types_initial) {
30321 size_t i;
30322 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 30323 const char *c = methods[i].ml_doc;
1bd55598
RD
30324 if (c && (c = strstr(c, "swig_ptr: "))) {
30325 int j;
30326 swig_const_info *ci = 0;
3d6c9062 30327 const char *name = c + 10;
1bd55598
RD
30328 for (j = 0; const_table[j].type; ++j) {
30329 if (strncmp(const_table[j].name, name,
30330 strlen(const_table[j].name)) == 0) {
30331 ci = &(const_table[j]);
30332 break;
30333 }
30334 }
30335 if (ci) {
30336 size_t shift = (ci->ptype) - types;
30337 swig_type_info *ty = types_initial[shift];
30338 size_t ldoc = (c - methods[i].ml_doc);
30339 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
30340 char *ndoc = (char*)malloc(ldoc + lptr + 10);
30341 if (ndoc) {
30342 char *buff = ndoc;
30343 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
30344 if (ptr) {
30345 strncpy(buff, methods[i].ml_doc, ldoc);
30346 buff += ldoc;
30347 strncpy(buff, "swig_ptr: ", 10);
30348 buff += 10;
30349 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
30350 methods[i].ml_doc = ndoc;
30351 }
30352 }
30353 }
30354 }
be9b1dca 30355 }
1bd55598
RD
30356 }
30357
30358#ifdef __cplusplus
30359}
30360#endif
30361
30362/* -----------------------------------------------------------------------------*
30363 * Partial Init method
30364 * -----------------------------------------------------------------------------*/
30365
30366#ifdef __cplusplus
30367extern "C"
30368#endif
30369SWIGEXPORT void SWIG_init(void) {
30370 PyObject *m, *d;
30371
30372 /* Fix SwigMethods to carry the callback ptrs when needed */
30373 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
30374
30375 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30376 d = PyModule_GetDict(m);
30377
30378 SWIG_InitializeModule(0);
30379 SWIG_InstallConstants(d,swig_const_table);
30380
30381
2131d850
RD
30382 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
30383 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
30384 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
1bd55598
RD
30385 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
30386 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
30387 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
30388 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
30389 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
30390 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
30391 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
30392 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
30393 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
30394 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
30395 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
30396 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
30397 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
30398 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
30399 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
30400 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
30401 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
30402 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
30403 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
30404 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
30405 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
30406 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
30407 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
30408 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
30409 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
30410 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
30411 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
30412 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
30413 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
30414 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
30415 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
30416 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
30417 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
30418 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
30419 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
30420 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
30421 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
30422 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
30423 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
30424 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
30425 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
30426 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
30427 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
30428 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
30429 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
30430 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
30431 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
30432 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
30433 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
30434 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
30435 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
30436 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
30437 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
30438 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
30439 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
30440 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
30441 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
30442 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
30443 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
30444 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
30445 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
30446 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
30447 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
30448 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
30449 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
30450 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
30451 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
30452 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
30453 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
30454 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
30455 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
30456 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
30457 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
30458 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
30459 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
30460 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
30461 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
30462 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
30463 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
30464 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
30465 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
30466 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
30467 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
30468 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
30469 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
30470 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
30471 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
30472 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
30473 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
30474 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
30475 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
30476 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
30477 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
30478 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
30479 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
30480 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
30481 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
30482 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
30483 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
30484 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
30485 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
30486 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
30487 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
30488 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
30489 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
30490 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
30491 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
30492 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
30493 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
30494 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
30495 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
30496 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
30497 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
30498 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
30499 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
30500 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
30501 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
30502 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
30503 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
30504 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
30505 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
30506 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
30507 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
30508 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
30509 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
30510 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
30511 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
30512
30513 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
30514
30515 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
30516 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
30517 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
30518 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
30519 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
30520 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
30521 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
30522 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
30523 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
30524 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
30525 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
30526 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
30527 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
30528 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
30529 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
30530 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
30531 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
30532 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
30533 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
30534 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
30535 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
30536 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
30537 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
30538 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
30539 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
30540 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
30541 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
30542 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
30543 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
30544 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
30545 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
30546 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
30547 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
30548 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
30549 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
30550 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
30551 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
30552 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
30553 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
30554 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
30555 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
30556 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
30557 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
30558 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
30559 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
30560 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
30561 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
30562 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
30563 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
30564 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
30565 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
30566 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
30567 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
30568 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
30569 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
30570 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
30571 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
30572 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
30573 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
30574 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
30575 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
30576 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
30577 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
30578 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
30579 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
30580 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
30581 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
30582 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
30583 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
30584 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
30585 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
30586 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
30587 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
30588 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
30589 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
30590 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
30591 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
30592 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
30593 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
30594 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
30595 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
30596 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
30597 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
30598 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
30599 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
30600 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
30601 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
30602 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
30603 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
30604 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
30605 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
30606 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
30607 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
30608 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
30609 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
30610 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
30611 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
30612 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
30613 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
30614 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
30615 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
30616 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
30617 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
30618 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
30619 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
30620 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
30621 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
30622 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
30623 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
30624 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
30625 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
30626 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
30627 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
30628 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
30629 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
30630 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
30631 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
30632 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
30633 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
30634 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
30635 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
30636 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
30637 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
30638 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
30639 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
30640 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
30641 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
30642 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
30643 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
30644 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
30645 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
30646 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
30647 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
30648 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
30649 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
30650 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
30651 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
30652 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
30653 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
30654 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
30655 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
30656 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
30657 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
30658 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
30659 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
30660 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
30661 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
30662 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
30663 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
30664 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
30665 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
30666 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
30667 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
30668 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
30669 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
30670 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
30671 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
30672 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
30673 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
30674 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
30675 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
30676 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
30677 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
30678 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
30679 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
30680 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
30681 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
30682 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
30683 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
30684 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
30685 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
30686 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
30687 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
30688 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
30689 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
30690 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
30691 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
30692 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
30693 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
30694 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
30695 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
30696 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
30697 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
30698 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
30699 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
30700 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
30701 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
30702 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
30703 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
30704 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
30705 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
30706 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
30707 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
30708 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
30709 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
30710 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
30711 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
30712 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
30713 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
30714 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
30715 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
30716 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
30717 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
30718 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
30719 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
30720 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
30721 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
30722 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
30723 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
30724 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
30725 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
30726 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
30727 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
30728 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
30729 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
30730 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
30731 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
30732 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
30733 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
30734 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
30735 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
30736 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
30737 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
30738 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
30739 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
30740 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
30741 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
30742 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
30743 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
30744 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
30745 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
30746 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
30747 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
30748 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
30749 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
30750 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
30751 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
30752 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
30753 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
30754 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
30755 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
30756 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
30757 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
30758 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
30759 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
30760 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
30761 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
30762 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
30763 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
30764 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
30765 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
30766 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
30767 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
30768 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
30769 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
30770 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
30771 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
30772 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
30773 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
30774 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
30775 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
30776 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
30777 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
30778 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
30779 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
30780 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
30781 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
30782 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
30783 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
30784 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
30785 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
30786 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
30787 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
30788 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
30789 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
30790 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
30791 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
30792 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
30793 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
30794 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
30795 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
30796 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
30797 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
30798 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
30799 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
30800 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
30801 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
30802 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
30803 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
30804 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598 30805 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
1bd55598
RD
30806 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
30807 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
30808 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
30809 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
30810 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
30811 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
30812 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
30813 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
30814 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
30815 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
30816 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
30817 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
30818 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
30819 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
30820 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
30821 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
30822 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
30823 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
30824 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
30825 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
30826 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
30827 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
30828 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
30829
30830 // Work around a chicken/egg problem in drawlist.cpp
30831 wxPyDrawList_SetAPIPtr();
30832
d55e5bfc
RD
30833}
30834